Class BackendBucket

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

    public final class BackendBucket
    extends com.google.protobuf.GeneratedMessageV3
    implements BackendBucketOrBuilder
     Represents a Cloud Storage Bucket resource. This Cloud Storage bucket resource is referenced by a URL map of a load balancer. For more information, read Backend Buckets.
     
    Protobuf type google.cloud.compute.v1.BackendBucket
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  BackendBucket.Builder
      Represents a Cloud Storage Bucket resource.
      static class  BackendBucket.CompressionMode
      Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • 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
      • hasBucketName

        public boolean hasBucketName()
         Cloud Storage bucket name.
         
        optional string bucket_name = 283610048;
        Specified by:
        hasBucketName in interface BackendBucketOrBuilder
        Returns:
        Whether the bucketName field is set.
      • getBucketName

        public String getBucketName()
         Cloud Storage bucket name.
         
        optional string bucket_name = 283610048;
        Specified by:
        getBucketName in interface BackendBucketOrBuilder
        Returns:
        The bucketName.
      • getBucketNameBytes

        public com.google.protobuf.ByteString getBucketNameBytes()
         Cloud Storage bucket name.
         
        optional string bucket_name = 283610048;
        Specified by:
        getBucketNameBytes in interface BackendBucketOrBuilder
        Returns:
        The bytes for bucketName.
      • hasCdnPolicy

        public boolean hasCdnPolicy()
         Cloud CDN configuration for this BackendBucket.
         
        optional .google.cloud.compute.v1.BackendBucketCdnPolicy cdn_policy = 213976452;
        Specified by:
        hasCdnPolicy in interface BackendBucketOrBuilder
        Returns:
        Whether the cdnPolicy field is set.
      • hasCompressionMode

        public boolean hasCompressionMode()
         Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.
         Check the CompressionMode enum for the list of possible values.
         
        optional string compression_mode = 95520988;
        Specified by:
        hasCompressionMode in interface BackendBucketOrBuilder
        Returns:
        Whether the compressionMode field is set.
      • getCompressionMode

        public String getCompressionMode()
         Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.
         Check the CompressionMode enum for the list of possible values.
         
        optional string compression_mode = 95520988;
        Specified by:
        getCompressionMode in interface BackendBucketOrBuilder
        Returns:
        The compressionMode.
      • getCompressionModeBytes

        public com.google.protobuf.ByteString getCompressionModeBytes()
         Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.
         Check the CompressionMode enum for the list of possible values.
         
        optional string compression_mode = 95520988;
        Specified by:
        getCompressionModeBytes in interface BackendBucketOrBuilder
        Returns:
        The bytes for compressionMode.
      • hasCreationTimestamp

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

        public String getCreationTimestamp()
         [Output Only] Creation timestamp in RFC3339 text format.
         
        optional string creation_timestamp = 30525366;
        Specified by:
        getCreationTimestamp in interface BackendBucketOrBuilder
        Returns:
        The creationTimestamp.
      • getCreationTimestampBytes

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

        public com.google.protobuf.ProtocolStringList getCustomResponseHeadersList()
         Headers that the Application Load Balancer should add to proxied responses.
         
        repeated string custom_response_headers = 387539094;
        Specified by:
        getCustomResponseHeadersList in interface BackendBucketOrBuilder
        Returns:
        A list containing the customResponseHeaders.
      • getCustomResponseHeadersCount

        public int getCustomResponseHeadersCount()
         Headers that the Application Load Balancer should add to proxied responses.
         
        repeated string custom_response_headers = 387539094;
        Specified by:
        getCustomResponseHeadersCount in interface BackendBucketOrBuilder
        Returns:
        The count of customResponseHeaders.
      • getCustomResponseHeaders

        public String getCustomResponseHeaders​(int index)
         Headers that the Application Load Balancer should add to proxied responses.
         
        repeated string custom_response_headers = 387539094;
        Specified by:
        getCustomResponseHeaders in interface BackendBucketOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The customResponseHeaders at the given index.
      • getCustomResponseHeadersBytes

        public com.google.protobuf.ByteString getCustomResponseHeadersBytes​(int index)
         Headers that the Application Load Balancer should add to proxied responses.
         
        repeated string custom_response_headers = 387539094;
        Specified by:
        getCustomResponseHeadersBytes in interface BackendBucketOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the customResponseHeaders at the given index.
      • hasDescription

        public boolean hasDescription()
         An optional textual description of the resource; provided by the client when the resource is created.
         
        optional string description = 422937596;
        Specified by:
        hasDescription in interface BackendBucketOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public String getDescription()
         An optional textual description of the resource; provided by the client when the resource is created.
         
        optional string description = 422937596;
        Specified by:
        getDescription in interface BackendBucketOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         An optional textual description of the resource; provided by the client when the resource is created.
         
        optional string description = 422937596;
        Specified by:
        getDescriptionBytes in interface BackendBucketOrBuilder
        Returns:
        The bytes for description.
      • hasEdgeSecurityPolicy

        public boolean hasEdgeSecurityPolicy()
         [Output Only] The resource URL for the edge security policy associated with this backend bucket.
         
        optional string edge_security_policy = 41036943;
        Specified by:
        hasEdgeSecurityPolicy in interface BackendBucketOrBuilder
        Returns:
        Whether the edgeSecurityPolicy field is set.
      • getEdgeSecurityPolicy

        public String getEdgeSecurityPolicy()
         [Output Only] The resource URL for the edge security policy associated with this backend bucket.
         
        optional string edge_security_policy = 41036943;
        Specified by:
        getEdgeSecurityPolicy in interface BackendBucketOrBuilder
        Returns:
        The edgeSecurityPolicy.
      • getEdgeSecurityPolicyBytes

        public com.google.protobuf.ByteString getEdgeSecurityPolicyBytes()
         [Output Only] The resource URL for the edge security policy associated with this backend bucket.
         
        optional string edge_security_policy = 41036943;
        Specified by:
        getEdgeSecurityPolicyBytes in interface BackendBucketOrBuilder
        Returns:
        The bytes for edgeSecurityPolicy.
      • hasEnableCdn

        public boolean hasEnableCdn()
         If true, enable Cloud CDN for this BackendBucket.
         
        optional bool enable_cdn = 282942321;
        Specified by:
        hasEnableCdn in interface BackendBucketOrBuilder
        Returns:
        Whether the enableCdn field is set.
      • getEnableCdn

        public boolean getEnableCdn()
         If true, enable Cloud CDN for this BackendBucket.
         
        optional bool enable_cdn = 282942321;
        Specified by:
        getEnableCdn in interface BackendBucketOrBuilder
        Returns:
        The enableCdn.
      • hasId

        public boolean hasId()
         [Output Only] Unique identifier for the resource; defined by the server.
         
        optional uint64 id = 3355;
        Specified by:
        hasId in interface BackendBucketOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public long getId()
         [Output Only] Unique identifier for the resource; defined by the server.
         
        optional uint64 id = 3355;
        Specified by:
        getId in interface BackendBucketOrBuilder
        Returns:
        The id.
      • hasKind

        public boolean hasKind()
         Type of the resource.
         
        optional string kind = 3292052;
        Specified by:
        hasKind in interface BackendBucketOrBuilder
        Returns:
        Whether the kind field is set.
      • getKindBytes

        public com.google.protobuf.ByteString getKindBytes()
         Type of the resource.
         
        optional string kind = 3292052;
        Specified by:
        getKindBytes in interface BackendBucketOrBuilder
        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 BackendBucketOrBuilder
        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 BackendBucketOrBuilder
        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 BackendBucketOrBuilder
        Returns:
        The bytes for name.
      • hasSelfLink

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

        public String getSelfLink()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        getSelfLink in interface BackendBucketOrBuilder
        Returns:
        The selfLink.
      • getSelfLinkBytes

        public com.google.protobuf.ByteString getSelfLinkBytes()
         [Output Only] Server-defined URL for the resource.
         
        optional string self_link = 456214797;
        Specified by:
        getSelfLinkBytes in interface BackendBucketOrBuilder
        Returns:
        The bytes for selfLink.
      • 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 BackendBucket parseFrom​(ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

        public static BackendBucket parseFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

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

        public static BackendBucket getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<BackendBucket> parser()
      • getParserForType

        public com.google.protobuf.Parser<BackendBucket> 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 BackendBucket getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder