Class CachePolicyCacheKeyPolicy.Builder

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

public static final class CachePolicyCacheKeyPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<CachePolicyCacheKeyPolicy.Builder> implements CachePolicyCacheKeyPolicyOrBuilder
 Message containing what to include in the cache key for a request for Cache
 Policy defined on Route Action.
 
Protobuf type google.cloud.compute.v1.CachePolicyCacheKeyPolicy
  • 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<CachePolicyCacheKeyPolicy.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<CachePolicyCacheKeyPolicy.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<CachePolicyCacheKeyPolicy.Builder>
    • getDefaultInstanceForType

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

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

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

      public CachePolicyCacheKeyPolicy.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<CachePolicyCacheKeyPolicy.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<CachePolicyCacheKeyPolicy.Builder>
    • mergeFrom

      public CachePolicyCacheKeyPolicy.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<CachePolicyCacheKeyPolicy.Builder>
      Throws:
      IOException
    • getExcludedQueryParametersList

      public com.google.protobuf.ProtocolStringList getExcludedQueryParametersList()
       Names of query string parameters to exclude in cache keys. All other
       parameters will be included. Either specify `excludedQueryParameters`
       or `includedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
      
       Note: This field applies to routes that use backend services. Attempting
       to set it on a route that points exclusively to Backend Buckets will
       result in a configuration error. For routes that point to a Backend
       Bucket, use `includedQueryParameters` to define which parameters should
       be part of the cache key.
       
      repeated string excluded_query_parameters = 124896150;
      Specified by:
      getExcludedQueryParametersList in interface CachePolicyCacheKeyPolicyOrBuilder
      Returns:
      A list containing the excludedQueryParameters.
    • getExcludedQueryParametersCount

      public int getExcludedQueryParametersCount()
       Names of query string parameters to exclude in cache keys. All other
       parameters will be included. Either specify `excludedQueryParameters`
       or `includedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
      
       Note: This field applies to routes that use backend services. Attempting
       to set it on a route that points exclusively to Backend Buckets will
       result in a configuration error. For routes that point to a Backend
       Bucket, use `includedQueryParameters` to define which parameters should
       be part of the cache key.
       
      repeated string excluded_query_parameters = 124896150;
      Specified by:
      getExcludedQueryParametersCount in interface CachePolicyCacheKeyPolicyOrBuilder
      Returns:
      The count of excludedQueryParameters.
    • getExcludedQueryParameters

      public String getExcludedQueryParameters(int index)
       Names of query string parameters to exclude in cache keys. All other
       parameters will be included. Either specify `excludedQueryParameters`
       or `includedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
      
       Note: This field applies to routes that use backend services. Attempting
       to set it on a route that points exclusively to Backend Buckets will
       result in a configuration error. For routes that point to a Backend
       Bucket, use `includedQueryParameters` to define which parameters should
       be part of the cache key.
       
      repeated string excluded_query_parameters = 124896150;
      Specified by:
      getExcludedQueryParameters in interface CachePolicyCacheKeyPolicyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The excludedQueryParameters at the given index.
    • getExcludedQueryParametersBytes

      public com.google.protobuf.ByteString getExcludedQueryParametersBytes(int index)
       Names of query string parameters to exclude in cache keys. All other
       parameters will be included. Either specify `excludedQueryParameters`
       or `includedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
      
       Note: This field applies to routes that use backend services. Attempting
       to set it on a route that points exclusively to Backend Buckets will
       result in a configuration error. For routes that point to a Backend
       Bucket, use `includedQueryParameters` to define which parameters should
       be part of the cache key.
       
      repeated string excluded_query_parameters = 124896150;
      Specified by:
      getExcludedQueryParametersBytes in interface CachePolicyCacheKeyPolicyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the excludedQueryParameters at the given index.
    • setExcludedQueryParameters

      public CachePolicyCacheKeyPolicy.Builder setExcludedQueryParameters(int index, String value)
       Names of query string parameters to exclude in cache keys. All other
       parameters will be included. Either specify `excludedQueryParameters`
       or `includedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
      
       Note: This field applies to routes that use backend services. Attempting
       to set it on a route that points exclusively to Backend Buckets will
       result in a configuration error. For routes that point to a Backend
       Bucket, use `includedQueryParameters` to define which parameters should
       be part of the cache key.
       
      repeated string excluded_query_parameters = 124896150;
      Parameters:
      index - The index to set the value at.
      value - The excludedQueryParameters to set.
      Returns:
      This builder for chaining.
    • addExcludedQueryParameters

      public CachePolicyCacheKeyPolicy.Builder addExcludedQueryParameters(String value)
       Names of query string parameters to exclude in cache keys. All other
       parameters will be included. Either specify `excludedQueryParameters`
       or `includedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
      
       Note: This field applies to routes that use backend services. Attempting
       to set it on a route that points exclusively to Backend Buckets will
       result in a configuration error. For routes that point to a Backend
       Bucket, use `includedQueryParameters` to define which parameters should
       be part of the cache key.
       
      repeated string excluded_query_parameters = 124896150;
      Parameters:
      value - The excludedQueryParameters to add.
      Returns:
      This builder for chaining.
    • addAllExcludedQueryParameters

      public CachePolicyCacheKeyPolicy.Builder addAllExcludedQueryParameters(Iterable<String> values)
       Names of query string parameters to exclude in cache keys. All other
       parameters will be included. Either specify `excludedQueryParameters`
       or `includedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
      
       Note: This field applies to routes that use backend services. Attempting
       to set it on a route that points exclusively to Backend Buckets will
       result in a configuration error. For routes that point to a Backend
       Bucket, use `includedQueryParameters` to define which parameters should
       be part of the cache key.
       
      repeated string excluded_query_parameters = 124896150;
      Parameters:
      values - The excludedQueryParameters to add.
      Returns:
      This builder for chaining.
    • clearExcludedQueryParameters

      public CachePolicyCacheKeyPolicy.Builder clearExcludedQueryParameters()
       Names of query string parameters to exclude in cache keys. All other
       parameters will be included. Either specify `excludedQueryParameters`
       or `includedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
      
       Note: This field applies to routes that use backend services. Attempting
       to set it on a route that points exclusively to Backend Buckets will
       result in a configuration error. For routes that point to a Backend
       Bucket, use `includedQueryParameters` to define which parameters should
       be part of the cache key.
       
      repeated string excluded_query_parameters = 124896150;
      Returns:
      This builder for chaining.
    • addExcludedQueryParametersBytes

      public CachePolicyCacheKeyPolicy.Builder addExcludedQueryParametersBytes(com.google.protobuf.ByteString value)
       Names of query string parameters to exclude in cache keys. All other
       parameters will be included. Either specify `excludedQueryParameters`
       or `includedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
      
       Note: This field applies to routes that use backend services. Attempting
       to set it on a route that points exclusively to Backend Buckets will
       result in a configuration error. For routes that point to a Backend
       Bucket, use `includedQueryParameters` to define which parameters should
       be part of the cache key.
       
      repeated string excluded_query_parameters = 124896150;
      Parameters:
      value - The bytes of the excludedQueryParameters to add.
      Returns:
      This builder for chaining.
    • hasIncludeHost

      public boolean hasIncludeHost()
       If true, requests to different hosts will be cached separately.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket, as the
       host is never included in a Backend Bucket's cache key. Attempting to set
       it on a route that points exclusively to Backend Buckets will result in a
       configuration error.
       
      optional bool include_host = 486867679;
      Specified by:
      hasIncludeHost in interface CachePolicyCacheKeyPolicyOrBuilder
      Returns:
      Whether the includeHost field is set.
    • getIncludeHost

      public boolean getIncludeHost()
       If true, requests to different hosts will be cached separately.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket, as the
       host is never included in a Backend Bucket's cache key. Attempting to set
       it on a route that points exclusively to Backend Buckets will result in a
       configuration error.
       
      optional bool include_host = 486867679;
      Specified by:
      getIncludeHost in interface CachePolicyCacheKeyPolicyOrBuilder
      Returns:
      The includeHost.
    • setIncludeHost

      public CachePolicyCacheKeyPolicy.Builder setIncludeHost(boolean value)
       If true, requests to different hosts will be cached separately.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket, as the
       host is never included in a Backend Bucket's cache key. Attempting to set
       it on a route that points exclusively to Backend Buckets will result in a
       configuration error.
       
      optional bool include_host = 486867679;
      Parameters:
      value - The includeHost to set.
      Returns:
      This builder for chaining.
    • clearIncludeHost

      public CachePolicyCacheKeyPolicy.Builder clearIncludeHost()
       If true, requests to different hosts will be cached separately.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket, as the
       host is never included in a Backend Bucket's cache key. Attempting to set
       it on a route that points exclusively to Backend Buckets will result in a
       configuration error.
       
      optional bool include_host = 486867679;
      Returns:
      This builder for chaining.
    • hasIncludeProtocol

      public boolean hasIncludeProtocol()
       If true, http and https requests will be cached separately.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket, as the
       protocol is never included in a Backend Bucket's cache key. Attempting to
       set on a route that points exclusively to Backend Buckets will result in
       a configuration error.
       
      optional bool include_protocol = 303507535;
      Specified by:
      hasIncludeProtocol in interface CachePolicyCacheKeyPolicyOrBuilder
      Returns:
      Whether the includeProtocol field is set.
    • getIncludeProtocol

      public boolean getIncludeProtocol()
       If true, http and https requests will be cached separately.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket, as the
       protocol is never included in a Backend Bucket's cache key. Attempting to
       set on a route that points exclusively to Backend Buckets will result in
       a configuration error.
       
      optional bool include_protocol = 303507535;
      Specified by:
      getIncludeProtocol in interface CachePolicyCacheKeyPolicyOrBuilder
      Returns:
      The includeProtocol.
    • setIncludeProtocol

      public CachePolicyCacheKeyPolicy.Builder setIncludeProtocol(boolean value)
       If true, http and https requests will be cached separately.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket, as the
       protocol is never included in a Backend Bucket's cache key. Attempting to
       set on a route that points exclusively to Backend Buckets will result in
       a configuration error.
       
      optional bool include_protocol = 303507535;
      Parameters:
      value - The includeProtocol to set.
      Returns:
      This builder for chaining.
    • clearIncludeProtocol

      public CachePolicyCacheKeyPolicy.Builder clearIncludeProtocol()
       If true, http and https requests will be cached separately.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket, as the
       protocol is never included in a Backend Bucket's cache key. Attempting to
       set on a route that points exclusively to Backend Buckets will result in
       a configuration error.
       
      optional bool include_protocol = 303507535;
      Returns:
      This builder for chaining.
    • hasIncludeQueryString

      public boolean hasIncludeQueryString()
       If true, include query string parameters in the cache key according to
       `includedQueryParameters` and `excludedQueryParameters`. If neither
       is set, the entire query string will be included. If false, the query
       string will be excluded from the cache key entirely.
      
       Note: This field applies to routes that use backend services. Attempting
       to set it on a route that points exclusively to Backend Buckets will
       result in a configuration error. For routes that point to a Backend
       Bucket, use `includedQueryParameters` to define which parameters should
       be part of the cache key.
       
      optional bool include_query_string = 474036639;
      Specified by:
      hasIncludeQueryString in interface CachePolicyCacheKeyPolicyOrBuilder
      Returns:
      Whether the includeQueryString field is set.
    • getIncludeQueryString

      public boolean getIncludeQueryString()
       If true, include query string parameters in the cache key according to
       `includedQueryParameters` and `excludedQueryParameters`. If neither
       is set, the entire query string will be included. If false, the query
       string will be excluded from the cache key entirely.
      
       Note: This field applies to routes that use backend services. Attempting
       to set it on a route that points exclusively to Backend Buckets will
       result in a configuration error. For routes that point to a Backend
       Bucket, use `includedQueryParameters` to define which parameters should
       be part of the cache key.
       
      optional bool include_query_string = 474036639;
      Specified by:
      getIncludeQueryString in interface CachePolicyCacheKeyPolicyOrBuilder
      Returns:
      The includeQueryString.
    • setIncludeQueryString

      public CachePolicyCacheKeyPolicy.Builder setIncludeQueryString(boolean value)
       If true, include query string parameters in the cache key according to
       `includedQueryParameters` and `excludedQueryParameters`. If neither
       is set, the entire query string will be included. If false, the query
       string will be excluded from the cache key entirely.
      
       Note: This field applies to routes that use backend services. Attempting
       to set it on a route that points exclusively to Backend Buckets will
       result in a configuration error. For routes that point to a Backend
       Bucket, use `includedQueryParameters` to define which parameters should
       be part of the cache key.
       
      optional bool include_query_string = 474036639;
      Parameters:
      value - The includeQueryString to set.
      Returns:
      This builder for chaining.
    • clearIncludeQueryString

      public CachePolicyCacheKeyPolicy.Builder clearIncludeQueryString()
       If true, include query string parameters in the cache key according to
       `includedQueryParameters` and `excludedQueryParameters`. If neither
       is set, the entire query string will be included. If false, the query
       string will be excluded from the cache key entirely.
      
       Note: This field applies to routes that use backend services. Attempting
       to set it on a route that points exclusively to Backend Buckets will
       result in a configuration error. For routes that point to a Backend
       Bucket, use `includedQueryParameters` to define which parameters should
       be part of the cache key.
       
      optional bool include_query_string = 474036639;
      Returns:
      This builder for chaining.
    • getIncludedCookieNamesList

      public com.google.protobuf.ProtocolStringList getIncludedCookieNamesList()
       Allows HTTP cookies (by name) to be used in the cache key.
       The name=value pair will be used in the cache key Cloud CDN generates.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket.
       Attempting to set it on a route that points exclusively to Backend
       Buckets will result in a configuration error. Up to 5 cookie names can be
       specified.
       
      repeated string included_cookie_names = 66987088;
      Specified by:
      getIncludedCookieNamesList in interface CachePolicyCacheKeyPolicyOrBuilder
      Returns:
      A list containing the includedCookieNames.
    • getIncludedCookieNamesCount

      public int getIncludedCookieNamesCount()
       Allows HTTP cookies (by name) to be used in the cache key.
       The name=value pair will be used in the cache key Cloud CDN generates.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket.
       Attempting to set it on a route that points exclusively to Backend
       Buckets will result in a configuration error. Up to 5 cookie names can be
       specified.
       
      repeated string included_cookie_names = 66987088;
      Specified by:
      getIncludedCookieNamesCount in interface CachePolicyCacheKeyPolicyOrBuilder
      Returns:
      The count of includedCookieNames.
    • getIncludedCookieNames

      public String getIncludedCookieNames(int index)
       Allows HTTP cookies (by name) to be used in the cache key.
       The name=value pair will be used in the cache key Cloud CDN generates.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket.
       Attempting to set it on a route that points exclusively to Backend
       Buckets will result in a configuration error. Up to 5 cookie names can be
       specified.
       
      repeated string included_cookie_names = 66987088;
      Specified by:
      getIncludedCookieNames in interface CachePolicyCacheKeyPolicyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The includedCookieNames at the given index.
    • getIncludedCookieNamesBytes

      public com.google.protobuf.ByteString getIncludedCookieNamesBytes(int index)
       Allows HTTP cookies (by name) to be used in the cache key.
       The name=value pair will be used in the cache key Cloud CDN generates.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket.
       Attempting to set it on a route that points exclusively to Backend
       Buckets will result in a configuration error. Up to 5 cookie names can be
       specified.
       
      repeated string included_cookie_names = 66987088;
      Specified by:
      getIncludedCookieNamesBytes in interface CachePolicyCacheKeyPolicyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the includedCookieNames at the given index.
    • setIncludedCookieNames

      public CachePolicyCacheKeyPolicy.Builder setIncludedCookieNames(int index, String value)
       Allows HTTP cookies (by name) to be used in the cache key.
       The name=value pair will be used in the cache key Cloud CDN generates.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket.
       Attempting to set it on a route that points exclusively to Backend
       Buckets will result in a configuration error. Up to 5 cookie names can be
       specified.
       
      repeated string included_cookie_names = 66987088;
      Parameters:
      index - The index to set the value at.
      value - The includedCookieNames to set.
      Returns:
      This builder for chaining.
    • addIncludedCookieNames

      public CachePolicyCacheKeyPolicy.Builder addIncludedCookieNames(String value)
       Allows HTTP cookies (by name) to be used in the cache key.
       The name=value pair will be used in the cache key Cloud CDN generates.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket.
       Attempting to set it on a route that points exclusively to Backend
       Buckets will result in a configuration error. Up to 5 cookie names can be
       specified.
       
      repeated string included_cookie_names = 66987088;
      Parameters:
      value - The includedCookieNames to add.
      Returns:
      This builder for chaining.
    • addAllIncludedCookieNames

      public CachePolicyCacheKeyPolicy.Builder addAllIncludedCookieNames(Iterable<String> values)
       Allows HTTP cookies (by name) to be used in the cache key.
       The name=value pair will be used in the cache key Cloud CDN generates.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket.
       Attempting to set it on a route that points exclusively to Backend
       Buckets will result in a configuration error. Up to 5 cookie names can be
       specified.
       
      repeated string included_cookie_names = 66987088;
      Parameters:
      values - The includedCookieNames to add.
      Returns:
      This builder for chaining.
    • clearIncludedCookieNames

      public CachePolicyCacheKeyPolicy.Builder clearIncludedCookieNames()
       Allows HTTP cookies (by name) to be used in the cache key.
       The name=value pair will be used in the cache key Cloud CDN generates.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket.
       Attempting to set it on a route that points exclusively to Backend
       Buckets will result in a configuration error. Up to 5 cookie names can be
       specified.
       
      repeated string included_cookie_names = 66987088;
      Returns:
      This builder for chaining.
    • addIncludedCookieNamesBytes

      public CachePolicyCacheKeyPolicy.Builder addIncludedCookieNamesBytes(com.google.protobuf.ByteString value)
       Allows HTTP cookies (by name) to be used in the cache key.
       The name=value pair will be used in the cache key Cloud CDN generates.
      
       Note: This setting is only applicable to routes that use a Backend
       Service. It does not affect requests served by a Backend Bucket.
       Attempting to set it on a route that points exclusively to Backend
       Buckets will result in a configuration error. Up to 5 cookie names can be
       specified.
       
      repeated string included_cookie_names = 66987088;
      Parameters:
      value - The bytes of the includedCookieNames to add.
      Returns:
      This builder for chaining.
    • getIncludedHeaderNamesList

      public com.google.protobuf.ProtocolStringList getIncludedHeaderNamesList()
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string included_header_names = 533756345;
      Specified by:
      getIncludedHeaderNamesList in interface CachePolicyCacheKeyPolicyOrBuilder
      Returns:
      A list containing the includedHeaderNames.
    • getIncludedHeaderNamesCount

      public int getIncludedHeaderNamesCount()
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string included_header_names = 533756345;
      Specified by:
      getIncludedHeaderNamesCount in interface CachePolicyCacheKeyPolicyOrBuilder
      Returns:
      The count of includedHeaderNames.
    • getIncludedHeaderNames

      public String getIncludedHeaderNames(int index)
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string included_header_names = 533756345;
      Specified by:
      getIncludedHeaderNames in interface CachePolicyCacheKeyPolicyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The includedHeaderNames at the given index.
    • getIncludedHeaderNamesBytes

      public com.google.protobuf.ByteString getIncludedHeaderNamesBytes(int index)
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string included_header_names = 533756345;
      Specified by:
      getIncludedHeaderNamesBytes in interface CachePolicyCacheKeyPolicyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the includedHeaderNames at the given index.
    • setIncludedHeaderNames

      public CachePolicyCacheKeyPolicy.Builder setIncludedHeaderNames(int index, String value)
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string included_header_names = 533756345;
      Parameters:
      index - The index to set the value at.
      value - The includedHeaderNames to set.
      Returns:
      This builder for chaining.
    • addIncludedHeaderNames

      public CachePolicyCacheKeyPolicy.Builder addIncludedHeaderNames(String value)
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string included_header_names = 533756345;
      Parameters:
      value - The includedHeaderNames to add.
      Returns:
      This builder for chaining.
    • addAllIncludedHeaderNames

      public CachePolicyCacheKeyPolicy.Builder addAllIncludedHeaderNames(Iterable<String> values)
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string included_header_names = 533756345;
      Parameters:
      values - The includedHeaderNames to add.
      Returns:
      This builder for chaining.
    • clearIncludedHeaderNames

      public CachePolicyCacheKeyPolicy.Builder clearIncludedHeaderNames()
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string included_header_names = 533756345;
      Returns:
      This builder for chaining.
    • addIncludedHeaderNamesBytes

      public CachePolicyCacheKeyPolicy.Builder addIncludedHeaderNamesBytes(com.google.protobuf.ByteString value)
       Allows HTTP request headers (by name) to be used in the cache key.
       
      repeated string included_header_names = 533756345;
      Parameters:
      value - The bytes of the includedHeaderNames to add.
      Returns:
      This builder for chaining.
    • getIncludedQueryParametersList

      public com.google.protobuf.ProtocolStringList getIncludedQueryParametersList()
       Names of query string parameters to include in cache keys. All other
       parameters will be excluded. Either specify `includedQueryParameters`
       or `excludedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
       
      repeated string included_query_parameters = 2319076;
      Specified by:
      getIncludedQueryParametersList in interface CachePolicyCacheKeyPolicyOrBuilder
      Returns:
      A list containing the includedQueryParameters.
    • getIncludedQueryParametersCount

      public int getIncludedQueryParametersCount()
       Names of query string parameters to include in cache keys. All other
       parameters will be excluded. Either specify `includedQueryParameters`
       or `excludedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
       
      repeated string included_query_parameters = 2319076;
      Specified by:
      getIncludedQueryParametersCount in interface CachePolicyCacheKeyPolicyOrBuilder
      Returns:
      The count of includedQueryParameters.
    • getIncludedQueryParameters

      public String getIncludedQueryParameters(int index)
       Names of query string parameters to include in cache keys. All other
       parameters will be excluded. Either specify `includedQueryParameters`
       or `excludedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
       
      repeated string included_query_parameters = 2319076;
      Specified by:
      getIncludedQueryParameters in interface CachePolicyCacheKeyPolicyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The includedQueryParameters at the given index.
    • getIncludedQueryParametersBytes

      public com.google.protobuf.ByteString getIncludedQueryParametersBytes(int index)
       Names of query string parameters to include in cache keys. All other
       parameters will be excluded. Either specify `includedQueryParameters`
       or `excludedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
       
      repeated string included_query_parameters = 2319076;
      Specified by:
      getIncludedQueryParametersBytes in interface CachePolicyCacheKeyPolicyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the includedQueryParameters at the given index.
    • setIncludedQueryParameters

      public CachePolicyCacheKeyPolicy.Builder setIncludedQueryParameters(int index, String value)
       Names of query string parameters to include in cache keys. All other
       parameters will be excluded. Either specify `includedQueryParameters`
       or `excludedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
       
      repeated string included_query_parameters = 2319076;
      Parameters:
      index - The index to set the value at.
      value - The includedQueryParameters to set.
      Returns:
      This builder for chaining.
    • addIncludedQueryParameters

      public CachePolicyCacheKeyPolicy.Builder addIncludedQueryParameters(String value)
       Names of query string parameters to include in cache keys. All other
       parameters will be excluded. Either specify `includedQueryParameters`
       or `excludedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
       
      repeated string included_query_parameters = 2319076;
      Parameters:
      value - The includedQueryParameters to add.
      Returns:
      This builder for chaining.
    • addAllIncludedQueryParameters

      public CachePolicyCacheKeyPolicy.Builder addAllIncludedQueryParameters(Iterable<String> values)
       Names of query string parameters to include in cache keys. All other
       parameters will be excluded. Either specify `includedQueryParameters`
       or `excludedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
       
      repeated string included_query_parameters = 2319076;
      Parameters:
      values - The includedQueryParameters to add.
      Returns:
      This builder for chaining.
    • clearIncludedQueryParameters

      public CachePolicyCacheKeyPolicy.Builder clearIncludedQueryParameters()
       Names of query string parameters to include in cache keys. All other
       parameters will be excluded. Either specify `includedQueryParameters`
       or `excludedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
       
      repeated string included_query_parameters = 2319076;
      Returns:
      This builder for chaining.
    • addIncludedQueryParametersBytes

      public CachePolicyCacheKeyPolicy.Builder addIncludedQueryParametersBytes(com.google.protobuf.ByteString value)
       Names of query string parameters to include in cache keys. All other
       parameters will be excluded. Either specify `includedQueryParameters`
       or `excludedQueryParameters`, not both. '&' and '=' will be percent
       encoded and not treated as delimiters.
       
      repeated string included_query_parameters = 2319076;
      Parameters:
      value - The bytes of the includedQueryParameters to add.
      Returns:
      This builder for chaining.