Class PublicDelegatedPrefix

  • All Implemented Interfaces:
    PublicDelegatedPrefixOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class PublicDelegatedPrefix
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasCreationTimestamp

        public boolean hasCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        hasCreationTimestamp in interface PublicDelegatedPrefixOrBuilder
        Returns:
        Whether the creationTimestamp field is set.
      • getCreationTimestampBytes

        public com.google.protobuf.ByteString getCreationTimestampBytes()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        getCreationTimestampBytes in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The bytes for creationTimestamp.
      • hasDescription

        public boolean hasDescription()
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Specified by:
        hasDescription in interface PublicDelegatedPrefixOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public String getDescription()
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Specified by:
        getDescription in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         An optional description of this resource. Provide this property when you create the resource.
         
        optional string description = 422937596;
        Specified by:
        getDescriptionBytes in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The bytes for description.
      • 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;
        Specified by:
        hasFingerprint in interface PublicDelegatedPrefixOrBuilder
        Returns:
        Whether the fingerprint field is set.
      • 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;
        Specified by:
        getFingerprint in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The fingerprint.
      • getFingerprintBytes

        public com.google.protobuf.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;
        Specified by:
        getFingerprintBytes in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The bytes for fingerprint.
      • hasId

        public boolean hasId()
         [Output Only] The unique identifier for the resource type. The server generates this identifier.
         
        optional uint64 id = 3355;
        Specified by:
        hasId in interface PublicDelegatedPrefixOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public long getId()
         [Output Only] The unique identifier for the resource type. The server generates this identifier.
         
        optional uint64 id = 3355;
        Specified by:
        getId in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The id.
      • hasIpCidrRange

        public boolean hasIpCidrRange()
         The IP address range, in CIDR format, represented by this public delegated prefix.
         
        optional string ip_cidr_range = 98117322;
        Specified by:
        hasIpCidrRange in interface PublicDelegatedPrefixOrBuilder
        Returns:
        Whether the ipCidrRange field is set.
      • getIpCidrRange

        public String getIpCidrRange()
         The IP address range, in CIDR format, represented by this public delegated prefix.
         
        optional string ip_cidr_range = 98117322;
        Specified by:
        getIpCidrRange in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The ipCidrRange.
      • getIpCidrRangeBytes

        public com.google.protobuf.ByteString getIpCidrRangeBytes()
         The IP address range, in CIDR format, represented by this public delegated prefix.
         
        optional string ip_cidr_range = 98117322;
        Specified by:
        getIpCidrRangeBytes in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The bytes for ipCidrRange.
      • hasIsLiveMigration

        public boolean hasIsLiveMigration()
         If true, the prefix will be live migrated.
         
        optional bool is_live_migration = 511823856;
        Specified by:
        hasIsLiveMigration in interface PublicDelegatedPrefixOrBuilder
        Returns:
        Whether the isLiveMigration field is set.
      • getIsLiveMigration

        public boolean getIsLiveMigration()
         If true, the prefix will be live migrated.
         
        optional bool is_live_migration = 511823856;
        Specified by:
        getIsLiveMigration in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The isLiveMigration.
      • hasKind

        public boolean hasKind()
         [Output Only] Type of the resource. Always compute#publicDelegatedPrefix for public delegated prefixes.
         
        optional string kind = 3292052;
        Specified by:
        hasKind in interface PublicDelegatedPrefixOrBuilder
        Returns:
        Whether the kind field is set.
      • getKind

        public String getKind()
         [Output Only] Type of the resource. Always compute#publicDelegatedPrefix for public delegated prefixes.
         
        optional string kind = 3292052;
        Specified by:
        getKind in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The kind.
      • getKindBytes

        public com.google.protobuf.ByteString getKindBytes()
         [Output Only] Type of the resource. Always compute#publicDelegatedPrefix for public delegated prefixes.
         
        optional string kind = 3292052;
        Specified by:
        getKindBytes in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The bytes for kind.
      • hasName

        public boolean hasName()
         Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` 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;
        Specified by:
        hasName in interface PublicDelegatedPrefixOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public String getName()
         Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` 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;
        Specified by:
        getName in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` 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;
        Specified by:
        getNameBytes in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The bytes for name.
      • hasParentPrefix

        public boolean hasParentPrefix()
         The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.
         
        optional string parent_prefix = 15233991;
        Specified by:
        hasParentPrefix in interface PublicDelegatedPrefixOrBuilder
        Returns:
        Whether the parentPrefix field is set.
      • getParentPrefix

        public String getParentPrefix()
         The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.
         
        optional string parent_prefix = 15233991;
        Specified by:
        getParentPrefix in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The parentPrefix.
      • getParentPrefixBytes

        public com.google.protobuf.ByteString getParentPrefixBytes()
         The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.
         
        optional string parent_prefix = 15233991;
        Specified by:
        getParentPrefixBytes in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The bytes for parentPrefix.
      • 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;
        Specified by:
        getPublicDelegatedSubPrefixsCount in interface PublicDelegatedPrefixOrBuilder
      • 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;
        Specified by:
        hasRegion in interface PublicDelegatedPrefixOrBuilder
        Returns:
        Whether the region field is set.
      • 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;
        Specified by:
        getRegion in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The region.
      • getRegionBytes

        public com.google.protobuf.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;
        Specified by:
        getRegionBytes in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The bytes for region.
      • hasSelfLink

        public boolean hasSelfLink()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        hasSelfLink in interface PublicDelegatedPrefixOrBuilder
        Returns:
        Whether the selfLink field is set.
      • getSelfLinkBytes

        public com.google.protobuf.ByteString getSelfLinkBytes()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        getSelfLinkBytes in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The bytes for selfLink.
      • 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;
        Specified by:
        hasStatus in interface PublicDelegatedPrefixOrBuilder
        Returns:
        Whether the status field is set.
      • 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;
        Specified by:
        getStatus in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The status.
      • getStatusBytes

        public com.google.protobuf.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;
        Specified by:
        getStatusBytes in interface PublicDelegatedPrefixOrBuilder
        Returns:
        The bytes for status.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static PublicDelegatedPrefix parseFrom​(ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PublicDelegatedPrefix parseFrom​(ByteBuffer data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PublicDelegatedPrefix parseFrom​(com.google.protobuf.ByteString data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PublicDelegatedPrefix parseFrom​(com.google.protobuf.ByteString data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PublicDelegatedPrefix parseFrom​(byte[] data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PublicDelegatedPrefix parseFrom​(byte[] data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public PublicDelegatedPrefix.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public PublicDelegatedPrefix.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected PublicDelegatedPrefix.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<PublicDelegatedPrefix> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public PublicDelegatedPrefix getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder