public interface CacheInvalidationRuleOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getCacheTags(int index)
public abstract String getCacheTags(int index)
A list of cache tags used to identify cached objects. - Cache tags are specified when the response is first cached, by setting the Cache-Tag
response header at the origin. - Multiple cache tags in the same invalidation request are treated as Boolean OR
- for example, tag1 OR tag2 OR tag3
. - If other fields are also specified, these are treated as Boolean AND
with any tags. Up to 10 tags can be specified in a single invalidation request.
repeated string cache_tags = 29073078;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The cacheTags at the given index. |
getCacheTagsBytes(int index)
public abstract ByteString getCacheTagsBytes(int index)
A list of cache tags used to identify cached objects. - Cache tags are specified when the response is first cached, by setting the Cache-Tag
response header at the origin. - Multiple cache tags in the same invalidation request are treated as Boolean OR
- for example, tag1 OR tag2 OR tag3
. - If other fields are also specified, these are treated as Boolean AND
with any tags. Up to 10 tags can be specified in a single invalidation request.
repeated string cache_tags = 29073078;
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the cacheTags at the given index. |
getCacheTagsCount()
public abstract int getCacheTagsCount()
A list of cache tags used to identify cached objects. - Cache tags are specified when the response is first cached, by setting the Cache-Tag
response header at the origin. - Multiple cache tags in the same invalidation request are treated as Boolean OR
- for example, tag1 OR tag2 OR tag3
. - If other fields are also specified, these are treated as Boolean AND
with any tags. Up to 10 tags can be specified in a single invalidation request.
repeated string cache_tags = 29073078;
Returns | |
---|---|
Type | Description |
int |
The count of cacheTags. |
getCacheTagsList()
public abstract List<String> getCacheTagsList()
A list of cache tags used to identify cached objects. - Cache tags are specified when the response is first cached, by setting the Cache-Tag
response header at the origin. - Multiple cache tags in the same invalidation request are treated as Boolean OR
- for example, tag1 OR tag2 OR tag3
. - If other fields are also specified, these are treated as Boolean AND
with any tags. Up to 10 tags can be specified in a single invalidation request.
repeated string cache_tags = 29073078;
Returns | |
---|---|
Type | Description |
List<String> |
A list containing the cacheTags. |
getHost()
public abstract String getHost()
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;
Returns | |
---|---|
Type | Description |
String |
The host. |
getHostBytes()
public abstract ByteString getHostBytes()
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for host. |
getPath()
public abstract String getPath()
optional string path = 3433509;
Returns | |
---|---|
Type | Description |
String |
The path. |
getPathBytes()
public abstract ByteString getPathBytes()
optional string path = 3433509;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for path. |
hasHost()
public abstract boolean hasHost()
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;
Returns | |
---|---|
Type | Description |
boolean |
Whether the host field is set. |
hasPath()
public abstract boolean hasPath()
optional string path = 3433509;
Returns | |
---|---|
Type | Description |
boolean |
Whether the path field is set. |