Package com.google.cloud.compute.v1
Interface CacheInvalidationRuleOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CacheInvalidationRule,CacheInvalidationRule.Builder
@Generated
public interface CacheInvalidationRuleOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetCacheTags(int index) A list of cache tags used to identify cached objectscom.google.protobuf.ByteStringgetCacheTagsBytes(int index) A list of cache tags used to identify cached objectsintA list of cache tags used to identify cached objectsA list of cache tags used to identify cached objectsgetHost()If set, this invalidation rule will only apply to requests with a Host header matching host.com.google.protobuf.ByteStringIf set, this invalidation rule will only apply to requests with a Host header matching host.getPath()optional string path = 3433509;com.google.protobuf.ByteStringoptional string path = 3433509;booleanhasHost()If set, this invalidation rule will only apply to requests with a Host header matching host.booleanhasPath()optional string path = 3433509;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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:
- A list containing the cacheTags.
-
getCacheTagsCount
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:
- The count of cacheTags.
-
getCacheTags
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;- Parameters:
index- The index of the element to return.- Returns:
- The cacheTags at the given index.
-
getCacheTagsBytes
com.google.protobuf.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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the cacheTags at the given index.
-
hasHost
boolean hasHost()If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;- Returns:
- Whether the host field is set.
-
getHost
String getHost()If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;- Returns:
- The host.
-
getHostBytes
com.google.protobuf.ByteString getHostBytes()If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;- Returns:
- The bytes for host.
-
hasPath
boolean hasPath()optional string path = 3433509;- Returns:
- Whether the path field is set.
-
getPath
String getPath()optional string path = 3433509;- Returns:
- The path.
-
getPathBytes
com.google.protobuf.ByteString getPathBytes()optional string path = 3433509;- Returns:
- The bytes for path.
-