Class PublicAdvertisedPrefix (1.37.0)

public final class PublicAdvertisedPrefix extends GeneratedMessageV3 implements PublicAdvertisedPrefixOrBuilder

A public advertised prefix represents an aggregated IP prefix or netblock which customers bring to cloud. The IP prefix is a single unit of route advertisement and is announced globally to the internet.

Protobuf type google.cloud.compute.v1.PublicAdvertisedPrefix

Static Fields

CREATION_TIMESTAMP_FIELD_NUMBER

public static final int CREATION_TIMESTAMP_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

DNS_VERIFICATION_IP_FIELD_NUMBER

public static final int DNS_VERIFICATION_IP_FIELD_NUMBER
Field Value
TypeDescription
int

FINGERPRINT_FIELD_NUMBER

public static final int FINGERPRINT_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

IP_CIDR_RANGE_FIELD_NUMBER

public static final int IP_CIDR_RANGE_FIELD_NUMBER
Field Value
TypeDescription
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PUBLIC_DELEGATED_PREFIXS_FIELD_NUMBER

public static final int PUBLIC_DELEGATED_PREFIXS_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int SELF_LINK_FIELD_NUMBER
Field Value
TypeDescription
int

SHARED_SECRET_FIELD_NUMBER

public static final int SHARED_SECRET_FIELD_NUMBER
Field Value
TypeDescription
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PublicAdvertisedPrefix getDefaultInstance()
Returns
TypeDescription
PublicAdvertisedPrefix

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PublicAdvertisedPrefix.Builder newBuilder()
Returns
TypeDescription
PublicAdvertisedPrefix.Builder

newBuilder(PublicAdvertisedPrefix prototype)

public static PublicAdvertisedPrefix.Builder newBuilder(PublicAdvertisedPrefix prototype)
Parameter
NameDescription
prototypePublicAdvertisedPrefix
Returns
TypeDescription
PublicAdvertisedPrefix.Builder

parseDelimitedFrom(InputStream input)

public static PublicAdvertisedPrefix parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PublicAdvertisedPrefix
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PublicAdvertisedPrefix parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublicAdvertisedPrefix
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PublicAdvertisedPrefix parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PublicAdvertisedPrefix
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PublicAdvertisedPrefix parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublicAdvertisedPrefix
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PublicAdvertisedPrefix parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PublicAdvertisedPrefix
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PublicAdvertisedPrefix parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublicAdvertisedPrefix
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PublicAdvertisedPrefix parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PublicAdvertisedPrefix
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PublicAdvertisedPrefix parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublicAdvertisedPrefix
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PublicAdvertisedPrefix parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PublicAdvertisedPrefix
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PublicAdvertisedPrefix parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublicAdvertisedPrefix
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PublicAdvertisedPrefix parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PublicAdvertisedPrefix
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PublicAdvertisedPrefix parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublicAdvertisedPrefix
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PublicAdvertisedPrefix> parser()
Returns
TypeDescription
Parser<PublicAdvertisedPrefix>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

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 PublicAdvertisedPrefix getDefaultInstanceForType()
Returns
TypeDescription
PublicAdvertisedPrefix

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.

getDnsVerificationIp()

public String getDnsVerificationIp()

The address to be used for reverse DNS verification.

optional string dns_verification_ip = 241011381;

Returns
TypeDescription
String

The dnsVerificationIp.

getDnsVerificationIpBytes()

public ByteString getDnsVerificationIpBytes()

The address to be used for reverse DNS verification.

optional string dns_verification_ip = 241011381;

Returns
TypeDescription
ByteString

The bytes for dnsVerificationIp.

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 PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update the PublicAdvertisedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix.

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 PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update the PublicAdvertisedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix.

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 address range, in CIDR format, represented by this public advertised prefix.

optional string ip_cidr_range = 98117322;

Returns
TypeDescription
String

The ipCidrRange.

getIpCidrRangeBytes()

public ByteString getIpCidrRangeBytes()

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

optional string ip_cidr_range = 98117322;

Returns
TypeDescription
ByteString

The bytes for ipCidrRange.

getKind()

public String getKind()

[Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised 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.

getParserForType()

public Parser<PublicAdvertisedPrefix> getParserForType()
Returns
TypeDescription
Parser<PublicAdvertisedPrefix>
Overrides

getPublicDelegatedPrefixs(int index)

public PublicAdvertisedPrefixPublicDelegatedPrefix getPublicDelegatedPrefixs(int index)

[Output Only] The list of public delegated prefixes that exist for this public advertised prefix.

repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723;

Parameter
NameDescription
indexint
Returns
TypeDescription
PublicAdvertisedPrefixPublicDelegatedPrefix

getPublicDelegatedPrefixsCount()

public int getPublicDelegatedPrefixsCount()

[Output Only] The list of public delegated prefixes that exist for this public advertised prefix.

repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723;

Returns
TypeDescription
int

getPublicDelegatedPrefixsList()

public List<PublicAdvertisedPrefixPublicDelegatedPrefix> getPublicDelegatedPrefixsList()

[Output Only] The list of public delegated prefixes that exist for this public advertised prefix.

repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723;

Returns
TypeDescription
List<PublicAdvertisedPrefixPublicDelegatedPrefix>

getPublicDelegatedPrefixsOrBuilder(int index)

public PublicAdvertisedPrefixPublicDelegatedPrefixOrBuilder getPublicDelegatedPrefixsOrBuilder(int index)

[Output Only] The list of public delegated prefixes that exist for this public advertised prefix.

repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723;

Parameter
NameDescription
indexint
Returns
TypeDescription
PublicAdvertisedPrefixPublicDelegatedPrefixOrBuilder

getPublicDelegatedPrefixsOrBuilderList()

public List<? extends PublicAdvertisedPrefixPublicDelegatedPrefixOrBuilder> getPublicDelegatedPrefixsOrBuilderList()

[Output Only] The list of public delegated prefixes that exist for this public advertised prefix.

repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefixOrBuilder>
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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSharedSecret()

public String getSharedSecret()

[Output Only] The shared secret to be used for reverse DNS verification.

optional string shared_secret = 381932490;

Returns
TypeDescription
String

The sharedSecret.

getSharedSecretBytes()

public ByteString getSharedSecretBytes()

[Output Only] The shared secret to be used for reverse DNS verification.

optional string shared_secret = 381932490;

Returns
TypeDescription
ByteString

The bytes for sharedSecret.

getStatus()

public String getStatus()

The status of the public advertised prefix. Possible values include: - INITIAL: RPKI validation is complete. - PTR_CONFIGURED: User has configured the PTR. - VALIDATED: Reverse DNS lookup is successful. - REVERSE_DNS_LOOKUP_FAILED: Reverse DNS lookup failed. - PREFIX_CONFIGURATION_IN_PROGRESS: The prefix is being configured. - PREFIX_CONFIGURATION_COMPLETE: The prefix is fully configured. - PREFIX_REMOVAL_IN_PROGRESS: The prefix is being removed. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
String

The status.

getStatusBytes()

public ByteString getStatusBytes()

The status of the public advertised prefix. Possible values include: - INITIAL: RPKI validation is complete. - PTR_CONFIGURED: User has configured the PTR. - VALIDATED: Reverse DNS lookup is successful. - REVERSE_DNS_LOOKUP_FAILED: Reverse DNS lookup failed. - PREFIX_CONFIGURATION_IN_PROGRESS: The prefix is being configured. - PREFIX_CONFIGURATION_COMPLETE: The prefix is fully configured. - PREFIX_REMOVAL_IN_PROGRESS: The prefix is being removed. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
ByteString

The bytes for status.

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.

hasDnsVerificationIp()

public boolean hasDnsVerificationIp()

The address to be used for reverse DNS verification.

optional string dns_verification_ip = 241011381;

Returns
TypeDescription
boolean

Whether the dnsVerificationIp 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 PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update the PublicAdvertisedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix.

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 address range, in CIDR format, represented by this public advertised prefix.

optional string ip_cidr_range = 98117322;

Returns
TypeDescription
boolean

Whether the ipCidrRange field is set.

hasKind()

public boolean hasKind()

[Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised 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.

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.

hasSharedSecret()

public boolean hasSharedSecret()

[Output Only] The shared secret to be used for reverse DNS verification.

optional string shared_secret = 381932490;

Returns
TypeDescription
boolean

Whether the sharedSecret field is set.

hasStatus()

public boolean hasStatus()

The status of the public advertised prefix. Possible values include: - INITIAL: RPKI validation is complete. - PTR_CONFIGURED: User has configured the PTR. - VALIDATED: Reverse DNS lookup is successful. - REVERSE_DNS_LOOKUP_FAILED: Reverse DNS lookup failed. - PREFIX_CONFIGURATION_IN_PROGRESS: The prefix is being configured. - PREFIX_CONFIGURATION_COMPLETE: The prefix is fully configured. - PREFIX_REMOVAL_IN_PROGRESS: The prefix is being removed. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
boolean

Whether the status field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PublicAdvertisedPrefix.Builder newBuilderForType()
Returns
TypeDescription
PublicAdvertisedPrefix.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PublicAdvertisedPrefix.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PublicAdvertisedPrefix.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PublicAdvertisedPrefix.Builder toBuilder()
Returns
TypeDescription
PublicAdvertisedPrefix.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException