Class PublicDelegatedPrefix.Builder (1.47.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix>
Returns
TypeDescription
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
NameDescription
valuePublicDelegatedPrefixPublicDelegatedSubPrefix
Returns
TypeDescription
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
NameDescription
builderForValuePublicDelegatedPrefixPublicDelegatedSubPrefix.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePublicDelegatedPrefixPublicDelegatedSubPrefix
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePublicDelegatedPrefixPublicDelegatedSubPrefix.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PublicDelegatedPrefixPublicDelegatedSubPrefix.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PublicDelegatedPrefix.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PublicDelegatedPrefix.Builder
Overrides

build()

public PublicDelegatedPrefix build()
Returns
TypeDescription
PublicDelegatedPrefix

buildPartial()

public PublicDelegatedPrefix buildPartial()
Returns
TypeDescription
PublicDelegatedPrefix

clear()

public PublicDelegatedPrefix.Builder clear()
Returns
TypeDescription
PublicDelegatedPrefix.Builder
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
PublicDelegatedPrefix.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PublicDelegatedPrefix.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
PublicDelegatedPrefix.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PublicDelegatedPrefix.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PublicDelegatedPrefix.Builder
Overrides

clearParentPrefix()

public PublicDelegatedPrefix.Builder clearParentPrefix()

The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.

optional string parent_prefix = 15233991;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PublicDelegatedPrefix.Builder

This builder for chaining.

public PublicDelegatedPrefix.Builder clearSelfLink()

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

optional string self_link = 456214797;

Returns
TypeDescription
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
TypeDescription
PublicDelegatedPrefix.Builder

This builder for chaining.

clone()

public PublicDelegatedPrefix.Builder clone()
Returns
TypeDescription
PublicDelegatedPrefix.Builder
Overrides

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
TypeDescription
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
TypeDescription
ByteString

The bytes for byoipApiVersion.

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public PublicDelegatedPrefix getDefaultInstanceForType()
Returns
TypeDescription
PublicDelegatedPrefix

getDescription()

public String getDescription()

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

optional string description = 422937596;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for ipCidrRange.

getIsLiveMigration()

public boolean getIsLiveMigration()

If true, the prefix will be live migrated.

optional bool is_live_migration = 511823856;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for kind.

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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getParentPrefix()

public String getParentPrefix()

The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.

optional string parent_prefix = 15233991;

Returns
TypeDescription
String

The parentPrefix.

getParentPrefixBytes()

public ByteString getParentPrefixBytes()

The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.

optional string parent_prefix = 15233991;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for region.

public String getSelfLink()

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

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

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

optional string self_link = 456214797;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for status.

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the kind 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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the region field is set.

public boolean hasSelfLink()

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

optional string self_link = 456214797;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PublicDelegatedPrefix other)

public PublicDelegatedPrefix.Builder mergeFrom(PublicDelegatedPrefix other)
Parameter
NameDescription
otherPublicDelegatedPrefix
Returns
TypeDescription
PublicDelegatedPrefix.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PublicDelegatedPrefix.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublicDelegatedPrefix.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PublicDelegatedPrefix.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PublicDelegatedPrefix.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PublicDelegatedPrefix.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PublicDelegatedPrefix.Builder

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
NameDescription
valueString

The byoipApiVersion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for byoipApiVersion to set.

Returns
TypeDescription
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
NameDescription
valueString

The creationTimestamp to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for creationTimestamp to set.

Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
PublicDelegatedPrefix.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PublicDelegatedPrefix.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The fingerprint to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for fingerprint to set.

Returns
TypeDescription
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
NameDescription
valuelong

The id to set.

Returns
TypeDescription
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
NameDescription
valueString

The ipCidrRange to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for ipCidrRange to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The isLiveMigration to set.

Returns
TypeDescription
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
NameDescription
valueString

The kind to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The parentPrefix to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parentPrefix to set.

Returns
TypeDescription
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
NameDescription
indexint
valuePublicDelegatedPrefixPublicDelegatedSubPrefix
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePublicDelegatedPrefixPublicDelegatedSubPrefix.Builder
Returns
TypeDescription
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
NameDescription
valueString

The region to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PublicDelegatedPrefix.Builder
Overrides
public PublicDelegatedPrefix.Builder setSelfLink(String value)

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

optional string self_link = 456214797;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
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
NameDescription
valueString

The status to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for status to set.

Returns
TypeDescription
PublicDelegatedPrefix.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PublicDelegatedPrefix.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PublicDelegatedPrefix.Builder
Overrides