Package com.google.cloud.compute.v1
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 Summary
Modifier and TypeMethodDescriptionaddAllIncludeHttpHeaders(Iterable<String> values) Allows HTTP request headers (by name) to be used in the cache key.addAllQueryStringWhitelist(Iterable<String> values) Names of query string parameters to include in cache keys.addIncludeHttpHeaders(String value) Allows HTTP request headers (by name) to be used in the cache key.addIncludeHttpHeadersBytes(com.google.protobuf.ByteString value) Allows HTTP request headers (by name) to be used in the cache key.addQueryStringWhitelist(String value) Names of query string parameters to include in cache keys.addQueryStringWhitelistBytes(com.google.protobuf.ByteString value) Names of query string parameters to include in cache keys.build()clear()Allows HTTP request headers (by name) to be used in the cache key.Names of query string parameters to include in cache keys.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetIncludeHttpHeaders(int index) Allows HTTP request headers (by name) to be used in the cache key.com.google.protobuf.ByteStringgetIncludeHttpHeadersBytes(int index) Allows HTTP request headers (by name) to be used in the cache key.intAllows HTTP request headers (by name) to be used in the cache key.com.google.protobuf.ProtocolStringListAllows HTTP request headers (by name) to be used in the cache key.getQueryStringWhitelist(int index) Names of query string parameters to include in cache keys.com.google.protobuf.ByteStringgetQueryStringWhitelistBytes(int index) Names of query string parameters to include in cache keys.intNames of query string parameters to include in cache keys.com.google.protobuf.ProtocolStringListNames of query string parameters to include in cache keys.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setIncludeHttpHeaders(int index, String value) Allows HTTP request headers (by name) to be used in the cache key.setQueryStringWhitelist(int index, String value) Names of query string parameters to include in cache keys.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BackendBucketCdnPolicyCacheKeyPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BackendBucketCdnPolicyCacheKeyPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BackendBucketCdnPolicyCacheKeyPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BackendBucketCdnPolicyCacheKeyPolicy.Builder>
-
mergeFrom
public BackendBucketCdnPolicyCacheKeyPolicy.Builder mergeFrom(BackendBucketCdnPolicyCacheKeyPolicy other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getIncludeHttpHeadersListin interfaceBackendBucketCdnPolicyCacheKeyPolicyOrBuilder- 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:
getIncludeHttpHeadersCountin interfaceBackendBucketCdnPolicyCacheKeyPolicyOrBuilder- Returns:
- The count of includeHttpHeaders.
-
getIncludeHttpHeaders
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;- Specified by:
getIncludeHttpHeadersin interfaceBackendBucketCdnPolicyCacheKeyPolicyOrBuilder- 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:
getIncludeHttpHeadersBytesin interfaceBackendBucketCdnPolicyCacheKeyPolicyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the includeHttpHeaders at the given index.
-
setIncludeHttpHeaders
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
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
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:
getQueryStringWhitelistListin interfaceBackendBucketCdnPolicyCacheKeyPolicyOrBuilder- 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:
getQueryStringWhitelistCountin interfaceBackendBucketCdnPolicyCacheKeyPolicyOrBuilder- Returns:
- The count of queryStringWhitelist.
-
getQueryStringWhitelist
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:
getQueryStringWhitelistin interfaceBackendBucketCdnPolicyCacheKeyPolicyOrBuilder- 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:
getQueryStringWhitelistBytesin interfaceBackendBucketCdnPolicyCacheKeyPolicyOrBuilder- 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
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
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.
-