Class BackendBucketCdnPolicyCacheKeyPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BackendBucketCdnPolicyCacheKeyPolicy.Builder>
com.google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy.Builder
All Implemented Interfaces:
BackendBucketCdnPolicyCacheKeyPolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BackendBucketCdnPolicyCacheKeyPolicy

public static final class BackendBucketCdnPolicyCacheKeyPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<BackendBucketCdnPolicyCacheKeyPolicy.Builder> implements BackendBucketCdnPolicyCacheKeyPolicyOrBuilder
 Message containing what to include in the cache key for a request for
 Cloud CDN.
 
Protobuf type google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BackendBucketCdnPolicyCacheKeyPolicy.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<BackendBucketCdnPolicyCacheKeyPolicy.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<BackendBucketCdnPolicyCacheKeyPolicy.Builder>
    • getDefaultInstanceForType

      public BackendBucketCdnPolicyCacheKeyPolicy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BackendBucketCdnPolicyCacheKeyPolicy buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public BackendBucketCdnPolicyCacheKeyPolicy.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BackendBucketCdnPolicyCacheKeyPolicy.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<BackendBucketCdnPolicyCacheKeyPolicy.Builder>
    • mergeFrom

      public BackendBucketCdnPolicyCacheKeyPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BackendBucketCdnPolicyCacheKeyPolicy.Builder>
      Throws:
      IOException
    • getIncludeHttpHeadersList

      public com.google.protobuf.ProtocolStringList getIncludeHttpHeadersList()
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string include_http_headers = 2489606;
      Specified by:
      getIncludeHttpHeadersList in interface BackendBucketCdnPolicyCacheKeyPolicyOrBuilder
      Returns:
      A list containing the includeHttpHeaders.
    • getIncludeHttpHeadersCount

      public int getIncludeHttpHeadersCount()
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string include_http_headers = 2489606;
      Specified by:
      getIncludeHttpHeadersCount in interface BackendBucketCdnPolicyCacheKeyPolicyOrBuilder
      Returns:
      The count of includeHttpHeaders.
    • getIncludeHttpHeaders

      public String getIncludeHttpHeaders(int index)
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string include_http_headers = 2489606;
      Specified by:
      getIncludeHttpHeaders in interface BackendBucketCdnPolicyCacheKeyPolicyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The includeHttpHeaders at the given index.
    • getIncludeHttpHeadersBytes

      public com.google.protobuf.ByteString getIncludeHttpHeadersBytes(int index)
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string include_http_headers = 2489606;
      Specified by:
      getIncludeHttpHeadersBytes in interface BackendBucketCdnPolicyCacheKeyPolicyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the includeHttpHeaders at the given index.
    • setIncludeHttpHeaders

      public BackendBucketCdnPolicyCacheKeyPolicy.Builder setIncludeHttpHeaders(int index, String value)
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string include_http_headers = 2489606;
      Parameters:
      index - The index to set the value at.
      value - The includeHttpHeaders to set.
      Returns:
      This builder for chaining.
    • addIncludeHttpHeaders

      public BackendBucketCdnPolicyCacheKeyPolicy.Builder addIncludeHttpHeaders(String value)
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string include_http_headers = 2489606;
      Parameters:
      value - The includeHttpHeaders to add.
      Returns:
      This builder for chaining.
    • addAllIncludeHttpHeaders

      public BackendBucketCdnPolicyCacheKeyPolicy.Builder addAllIncludeHttpHeaders(Iterable<String> values)
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string include_http_headers = 2489606;
      Parameters:
      values - The includeHttpHeaders to add.
      Returns:
      This builder for chaining.
    • clearIncludeHttpHeaders

      public BackendBucketCdnPolicyCacheKeyPolicy.Builder clearIncludeHttpHeaders()
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string include_http_headers = 2489606;
      Returns:
      This builder for chaining.
    • addIncludeHttpHeadersBytes

      public BackendBucketCdnPolicyCacheKeyPolicy.Builder addIncludeHttpHeadersBytes(com.google.protobuf.ByteString value)
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string include_http_headers = 2489606;
      Parameters:
      value - The bytes of the includeHttpHeaders to add.
      Returns:
      This builder for chaining.
    • getQueryStringWhitelistList

      public com.google.protobuf.ProtocolStringList getQueryStringWhitelistList()
       Names of query string parameters to include in cache keys. Default
       parameters are always included. '&' and '=' will be percent encoded
       and not treated as delimiters.
       
      repeated string query_string_whitelist = 52456496;
      Specified by:
      getQueryStringWhitelistList in interface BackendBucketCdnPolicyCacheKeyPolicyOrBuilder
      Returns:
      A list containing the queryStringWhitelist.
    • getQueryStringWhitelistCount

      public int getQueryStringWhitelistCount()
       Names of query string parameters to include in cache keys. Default
       parameters are always included. '&' and '=' will be percent encoded
       and not treated as delimiters.
       
      repeated string query_string_whitelist = 52456496;
      Specified by:
      getQueryStringWhitelistCount in interface BackendBucketCdnPolicyCacheKeyPolicyOrBuilder
      Returns:
      The count of queryStringWhitelist.
    • getQueryStringWhitelist

      public String getQueryStringWhitelist(int index)
       Names of query string parameters to include in cache keys. Default
       parameters are always included. '&' and '=' will be percent encoded
       and not treated as delimiters.
       
      repeated string query_string_whitelist = 52456496;
      Specified by:
      getQueryStringWhitelist in interface BackendBucketCdnPolicyCacheKeyPolicyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The queryStringWhitelist at the given index.
    • getQueryStringWhitelistBytes

      public com.google.protobuf.ByteString getQueryStringWhitelistBytes(int index)
       Names of query string parameters to include in cache keys. Default
       parameters are always included. '&' and '=' will be percent encoded
       and not treated as delimiters.
       
      repeated string query_string_whitelist = 52456496;
      Specified by:
      getQueryStringWhitelistBytes in interface BackendBucketCdnPolicyCacheKeyPolicyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the queryStringWhitelist at the given index.
    • setQueryStringWhitelist

      public BackendBucketCdnPolicyCacheKeyPolicy.Builder setQueryStringWhitelist(int index, String value)
       Names of query string parameters to include in cache keys. Default
       parameters are always included. '&' and '=' will be percent encoded
       and not treated as delimiters.
       
      repeated string query_string_whitelist = 52456496;
      Parameters:
      index - The index to set the value at.
      value - The queryStringWhitelist to set.
      Returns:
      This builder for chaining.
    • addQueryStringWhitelist

      public BackendBucketCdnPolicyCacheKeyPolicy.Builder addQueryStringWhitelist(String value)
       Names of query string parameters to include in cache keys. Default
       parameters are always included. '&' and '=' will be percent encoded
       and not treated as delimiters.
       
      repeated string query_string_whitelist = 52456496;
      Parameters:
      value - The queryStringWhitelist to add.
      Returns:
      This builder for chaining.
    • addAllQueryStringWhitelist

      public BackendBucketCdnPolicyCacheKeyPolicy.Builder addAllQueryStringWhitelist(Iterable<String> values)
       Names of query string parameters to include in cache keys. Default
       parameters are always included. '&' and '=' will be percent encoded
       and not treated as delimiters.
       
      repeated string query_string_whitelist = 52456496;
      Parameters:
      values - The queryStringWhitelist to add.
      Returns:
      This builder for chaining.
    • clearQueryStringWhitelist

      public BackendBucketCdnPolicyCacheKeyPolicy.Builder clearQueryStringWhitelist()
       Names of query string parameters to include in cache keys. Default
       parameters are always included. '&' and '=' will be percent encoded
       and not treated as delimiters.
       
      repeated string query_string_whitelist = 52456496;
      Returns:
      This builder for chaining.
    • addQueryStringWhitelistBytes

      public BackendBucketCdnPolicyCacheKeyPolicy.Builder addQueryStringWhitelistBytes(com.google.protobuf.ByteString value)
       Names of query string parameters to include in cache keys. Default
       parameters are always included. '&' and '=' will be percent encoded
       and not treated as delimiters.
       
      repeated string query_string_whitelist = 52456496;
      Parameters:
      value - The bytes of the queryStringWhitelist to add.
      Returns:
      This builder for chaining.