public final class CacheKeyPolicy extends com.google.protobuf.GeneratedMessageV3 implements CacheKeyPolicyOrBuilder
Message containing what to include in the cache key for a request for Cloud CDN.Protobuf type
google.cloud.compute.v1.CacheKeyPolicy| Modifier and Type | Class and Description |
|---|---|
static class |
CacheKeyPolicy.Builder
Message containing what to include in the cache key for a request for Cloud CDN.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
INCLUDE_HOST_FIELD_NUMBER |
static int |
INCLUDE_HTTP_HEADERS_FIELD_NUMBER |
static int |
INCLUDE_NAMED_COOKIES_FIELD_NUMBER |
static int |
INCLUDE_PROTOCOL_FIELD_NUMBER |
static int |
INCLUDE_QUERY_STRING_FIELD_NUMBER |
static int |
QUERY_STRING_BLACKLIST_FIELD_NUMBER |
static int |
QUERY_STRING_WHITELIST_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static CacheKeyPolicy |
getDefaultInstance() |
CacheKeyPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getIncludeHost()
If true, requests to different hosts will be cached separately.
|
String |
getIncludeHttpHeaders(int index)
Allows HTTP request headers (by name) to be used in the cache key.
|
com.google.protobuf.ByteString |
getIncludeHttpHeadersBytes(int index)
Allows HTTP request headers (by name) to be used in the cache key.
|
int |
getIncludeHttpHeadersCount()
Allows HTTP request headers (by name) to be used in the cache key.
|
com.google.protobuf.ProtocolStringList |
getIncludeHttpHeadersList()
Allows HTTP request headers (by name) to be used in the cache key.
|
String |
getIncludeNamedCookies(int index)
Allows HTTP cookies (by name) to be used in the cache key.
|
com.google.protobuf.ByteString |
getIncludeNamedCookiesBytes(int index)
Allows HTTP cookies (by name) to be used in the cache key.
|
int |
getIncludeNamedCookiesCount()
Allows HTTP cookies (by name) to be used in the cache key.
|
com.google.protobuf.ProtocolStringList |
getIncludeNamedCookiesList()
Allows HTTP cookies (by name) to be used in the cache key.
|
boolean |
getIncludeProtocol()
If true, http and https requests will be cached separately.
|
boolean |
getIncludeQueryString()
If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist.
|
com.google.protobuf.Parser<CacheKeyPolicy> |
getParserForType() |
String |
getQueryStringBlacklist(int index)
Names of query string parameters to exclude in cache keys.
|
com.google.protobuf.ByteString |
getQueryStringBlacklistBytes(int index)
Names of query string parameters to exclude in cache keys.
|
int |
getQueryStringBlacklistCount()
Names of query string parameters to exclude in cache keys.
|
com.google.protobuf.ProtocolStringList |
getQueryStringBlacklistList()
Names of query string parameters to exclude in cache keys.
|
String |
getQueryStringWhitelist(int index)
Names of query string parameters to include in cache keys.
|
com.google.protobuf.ByteString |
getQueryStringWhitelistBytes(int index)
Names of query string parameters to include in cache keys.
|
int |
getQueryStringWhitelistCount()
Names of query string parameters to include in cache keys.
|
com.google.protobuf.ProtocolStringList |
getQueryStringWhitelistList()
Names of query string parameters to include in cache keys.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasIncludeHost()
If true, requests to different hosts will be cached separately.
|
boolean |
hasIncludeProtocol()
If true, http and https requests will be cached separately.
|
boolean |
hasIncludeQueryString()
If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static CacheKeyPolicy.Builder |
newBuilder() |
static CacheKeyPolicy.Builder |
newBuilder(CacheKeyPolicy prototype) |
CacheKeyPolicy.Builder |
newBuilderForType() |
protected CacheKeyPolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CacheKeyPolicy |
parseDelimitedFrom(InputStream input) |
static CacheKeyPolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CacheKeyPolicy |
parseFrom(byte[] data) |
static CacheKeyPolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CacheKeyPolicy |
parseFrom(ByteBuffer data) |
static CacheKeyPolicy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CacheKeyPolicy |
parseFrom(com.google.protobuf.ByteString data) |
static CacheKeyPolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CacheKeyPolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CacheKeyPolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CacheKeyPolicy |
parseFrom(InputStream input) |
static CacheKeyPolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CacheKeyPolicy> |
parser() |
CacheKeyPolicy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int INCLUDE_HOST_FIELD_NUMBER
public static final int INCLUDE_HTTP_HEADERS_FIELD_NUMBER
public static final int INCLUDE_NAMED_COOKIES_FIELD_NUMBER
public static final int INCLUDE_PROTOCOL_FIELD_NUMBER
public static final int INCLUDE_QUERY_STRING_FIELD_NUMBER
public static final int QUERY_STRING_BLACKLIST_FIELD_NUMBER
public static final int QUERY_STRING_WHITELIST_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasIncludeHost()
If true, requests to different hosts will be cached separately.
optional bool include_host = 486867679;hasIncludeHost in interface CacheKeyPolicyOrBuilderpublic boolean getIncludeHost()
If true, requests to different hosts will be cached separately.
optional bool include_host = 486867679;getIncludeHost in interface CacheKeyPolicyOrBuilderpublic com.google.protobuf.ProtocolStringList getIncludeHttpHeadersList()
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;getIncludeHttpHeadersList in interface CacheKeyPolicyOrBuilderpublic int getIncludeHttpHeadersCount()
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;getIncludeHttpHeadersCount in interface CacheKeyPolicyOrBuilderpublic String getIncludeHttpHeaders(int index)
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;getIncludeHttpHeaders in interface CacheKeyPolicyOrBuilderindex - The index of the element to return.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;getIncludeHttpHeadersBytes in interface CacheKeyPolicyOrBuilderindex - The index of the value to return.public com.google.protobuf.ProtocolStringList getIncludeNamedCookiesList()
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.
repeated string include_named_cookies = 87316530;getIncludeNamedCookiesList in interface CacheKeyPolicyOrBuilderpublic int getIncludeNamedCookiesCount()
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.
repeated string include_named_cookies = 87316530;getIncludeNamedCookiesCount in interface CacheKeyPolicyOrBuilderpublic String getIncludeNamedCookies(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.
repeated string include_named_cookies = 87316530;getIncludeNamedCookies in interface CacheKeyPolicyOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getIncludeNamedCookiesBytes(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.
repeated string include_named_cookies = 87316530;getIncludeNamedCookiesBytes in interface CacheKeyPolicyOrBuilderindex - The index of the value to return.public boolean hasIncludeProtocol()
If true, http and https requests will be cached separately.
optional bool include_protocol = 303507535;hasIncludeProtocol in interface CacheKeyPolicyOrBuilderpublic boolean getIncludeProtocol()
If true, http and https requests will be cached separately.
optional bool include_protocol = 303507535;getIncludeProtocol in interface CacheKeyPolicyOrBuilderpublic boolean hasIncludeQueryString()
If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
optional bool include_query_string = 474036639;hasIncludeQueryString in interface CacheKeyPolicyOrBuilderpublic boolean getIncludeQueryString()
If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
optional bool include_query_string = 474036639;getIncludeQueryString in interface CacheKeyPolicyOrBuilderpublic com.google.protobuf.ProtocolStringList getQueryStringBlacklistList()
Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string query_string_blacklist = 354964742;getQueryStringBlacklistList in interface CacheKeyPolicyOrBuilderpublic int getQueryStringBlacklistCount()
Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string query_string_blacklist = 354964742;getQueryStringBlacklistCount in interface CacheKeyPolicyOrBuilderpublic String getQueryStringBlacklist(int index)
Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string query_string_blacklist = 354964742;getQueryStringBlacklist in interface CacheKeyPolicyOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getQueryStringBlacklistBytes(int index)
Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string query_string_blacklist = 354964742;getQueryStringBlacklistBytes in interface CacheKeyPolicyOrBuilderindex - The index of the value to return.public com.google.protobuf.ProtocolStringList getQueryStringWhitelistList()
Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string query_string_whitelist = 52456496;getQueryStringWhitelistList in interface CacheKeyPolicyOrBuilderpublic int getQueryStringWhitelistCount()
Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string query_string_whitelist = 52456496;getQueryStringWhitelistCount in interface CacheKeyPolicyOrBuilderpublic String getQueryStringWhitelist(int index)
Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string query_string_whitelist = 52456496;getQueryStringWhitelist in interface CacheKeyPolicyOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getQueryStringWhitelistBytes(int index)
Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
repeated string query_string_whitelist = 52456496;getQueryStringWhitelistBytes in interface CacheKeyPolicyOrBuilderindex - The index of the value to return.public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static CacheKeyPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CacheKeyPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CacheKeyPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CacheKeyPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CacheKeyPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CacheKeyPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CacheKeyPolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static CacheKeyPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CacheKeyPolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CacheKeyPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CacheKeyPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CacheKeyPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CacheKeyPolicy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CacheKeyPolicy.Builder newBuilder()
public static CacheKeyPolicy.Builder newBuilder(CacheKeyPolicy prototype)
public CacheKeyPolicy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CacheKeyPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CacheKeyPolicy getDefaultInstance()
public static com.google.protobuf.Parser<CacheKeyPolicy> parser()
public com.google.protobuf.Parser<CacheKeyPolicy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CacheKeyPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.