public final class CacheKeyPolicy extends 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
INCLUDE_HOST_FIELD_NUMBER
public static final int INCLUDE_HOST_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int INCLUDE_HTTP_HEADERS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
INCLUDE_NAMED_COOKIES_FIELD_NUMBER
public static final int INCLUDE_NAMED_COOKIES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
INCLUDE_PROTOCOL_FIELD_NUMBER
public static final int INCLUDE_PROTOCOL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
INCLUDE_QUERY_STRING_FIELD_NUMBER
public static final int INCLUDE_QUERY_STRING_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
QUERY_STRING_BLACKLIST_FIELD_NUMBER
public static final int QUERY_STRING_BLACKLIST_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
QUERY_STRING_WHITELIST_FIELD_NUMBER
public static final int QUERY_STRING_WHITELIST_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static CacheKeyPolicy getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CacheKeyPolicy.Builder newBuilder()
newBuilder(CacheKeyPolicy prototype)
public static CacheKeyPolicy.Builder newBuilder(CacheKeyPolicy prototype)
public static CacheKeyPolicy parseDelimitedFrom(InputStream input)
public static CacheKeyPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CacheKeyPolicy parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CacheKeyPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CacheKeyPolicy parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CacheKeyPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CacheKeyPolicy parseFrom(CodedInputStream input)
public static CacheKeyPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CacheKeyPolicy parseFrom(InputStream input)
public static CacheKeyPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CacheKeyPolicy parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CacheKeyPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CacheKeyPolicy> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public CacheKeyPolicy getDefaultInstanceForType()
getIncludeHost()
public boolean getIncludeHost()
If true, requests to different hosts will be cached separately.
optional bool include_host = 486867679;
Returns |
---|
Type | Description |
boolean | The includeHost.
|
public String getIncludeHttpHeaders(int index)
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The includeHttpHeaders at the given index.
|
public ByteString getIncludeHttpHeadersBytes(int index)
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the includeHttpHeaders at the given index.
|
public int getIncludeHttpHeadersCount()
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;
Returns |
---|
Type | Description |
int | The count of includeHttpHeaders.
|
public ProtocolStringList getIncludeHttpHeadersList()
Allows HTTP request headers (by name) to be used in the cache key.
repeated string include_http_headers = 2489606;
getIncludeNamedCookies(int index)
public 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;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The includeNamedCookies at the given index.
|
getIncludeNamedCookiesBytes(int index)
public 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;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the includeNamedCookies at the given index.
|
getIncludeNamedCookiesCount()
public 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;
Returns |
---|
Type | Description |
int | The count of includeNamedCookies.
|
getIncludeNamedCookiesList()
public 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;
getIncludeProtocol()
public boolean getIncludeProtocol()
If true, http and https requests will be cached separately.
optional bool include_protocol = 303507535;
Returns |
---|
Type | Description |
boolean | The includeProtocol.
|
getIncludeQueryString()
public 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;
Returns |
---|
Type | Description |
boolean | The includeQueryString.
|
getParserForType()
public Parser<CacheKeyPolicy> getParserForType()
Overrides
getQueryStringBlacklist(int index)
public 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;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The queryStringBlacklist at the given index.
|
getQueryStringBlacklistBytes(int index)
public 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;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the queryStringBlacklist at the given index.
|
getQueryStringBlacklistCount()
public 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;
Returns |
---|
Type | Description |
int | The count of queryStringBlacklist.
|
getQueryStringBlacklistList()
public 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;
getQueryStringWhitelist(int index)
public 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;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The queryStringWhitelist at the given index.
|
getQueryStringWhitelistBytes(int index)
public 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;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the queryStringWhitelist at the given index.
|
getQueryStringWhitelistCount()
public 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;
Returns |
---|
Type | Description |
int | The count of queryStringWhitelist.
|
getQueryStringWhitelistList()
public 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;
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
hasIncludeHost()
public boolean hasIncludeHost()
If true, requests to different hosts will be cached separately.
optional bool include_host = 486867679;
Returns |
---|
Type | Description |
boolean | Whether the includeHost field is set.
|
hasIncludeProtocol()
public boolean hasIncludeProtocol()
If true, http and https requests will be cached separately.
optional bool include_protocol = 303507535;
Returns |
---|
Type | Description |
boolean | Whether the includeProtocol field is set.
|
hasIncludeQueryString()
public 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;
Returns |
---|
Type | Description |
boolean | Whether the includeQueryString field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CacheKeyPolicy.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CacheKeyPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public CacheKeyPolicy.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides