public static final class CacheInvalidationRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder> implements CacheInvalidationRuleOrBuilder
Protobuf type
google.cloud.compute.v1.CacheInvalidationRule| Modifier and Type | Method and Description |
|---|---|
CacheInvalidationRule.Builder |
addAllCacheTags(Iterable<String> values)
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.
|
CacheInvalidationRule.Builder |
addCacheTags(String value)
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.
|
CacheInvalidationRule.Builder |
addCacheTagsBytes(com.google.protobuf.ByteString value)
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.
|
CacheInvalidationRule.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CacheInvalidationRule |
build() |
CacheInvalidationRule |
buildPartial() |
CacheInvalidationRule.Builder |
clear() |
CacheInvalidationRule.Builder |
clearCacheTags()
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.
|
CacheInvalidationRule.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CacheInvalidationRule.Builder |
clearHost()
If set, this invalidation rule will only apply to requests with a Host header matching host.
|
CacheInvalidationRule.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CacheInvalidationRule.Builder |
clearPath()
optional string path = 3433509; |
CacheInvalidationRule.Builder |
clone() |
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.
|
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.
|
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.
|
com.google.protobuf.ProtocolStringList |
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.
|
CacheInvalidationRule |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getHost()
If set, this invalidation rule will only apply to requests with a Host header matching host.
|
com.google.protobuf.ByteString |
getHostBytes()
If set, this invalidation rule will only apply to requests with a Host header matching host.
|
String |
getPath()
optional string path = 3433509; |
com.google.protobuf.ByteString |
getPathBytes()
optional string path = 3433509; |
boolean |
hasHost()
If set, this invalidation rule will only apply to requests with a Host header matching host.
|
boolean |
hasPath()
optional string path = 3433509; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CacheInvalidationRule.Builder |
mergeFrom(CacheInvalidationRule other) |
CacheInvalidationRule.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CacheInvalidationRule.Builder |
mergeFrom(com.google.protobuf.Message other) |
CacheInvalidationRule.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CacheInvalidationRule.Builder |
setCacheTags(int index,
String value)
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.
|
CacheInvalidationRule.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CacheInvalidationRule.Builder |
setHost(String value)
If set, this invalidation rule will only apply to requests with a Host header matching host.
|
CacheInvalidationRule.Builder |
setHostBytes(com.google.protobuf.ByteString value)
If set, this invalidation rule will only apply to requests with a Host header matching host.
|
CacheInvalidationRule.Builder |
setPath(String value)
optional string path = 3433509; |
CacheInvalidationRule.Builder |
setPathBytes(com.google.protobuf.ByteString value)
optional string path = 3433509; |
CacheInvalidationRule.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CacheInvalidationRule.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>public CacheInvalidationRule.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>public CacheInvalidationRule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CacheInvalidationRule build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CacheInvalidationRule buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CacheInvalidationRule.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>public CacheInvalidationRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>public CacheInvalidationRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>public CacheInvalidationRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>public CacheInvalidationRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>public CacheInvalidationRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>public CacheInvalidationRule.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CacheInvalidationRule.Builder>public CacheInvalidationRule.Builder mergeFrom(CacheInvalidationRule other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>public CacheInvalidationRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CacheInvalidationRule.Builder>IOExceptionpublic com.google.protobuf.ProtocolStringList 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;getCacheTagsList in interface CacheInvalidationRuleOrBuilderpublic 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;getCacheTagsCount in interface CacheInvalidationRuleOrBuilderpublic 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;getCacheTags in interface CacheInvalidationRuleOrBuilderindex - The index of the element to return.public 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;getCacheTagsBytes in interface CacheInvalidationRuleOrBuilderindex - The index of the value to return.public CacheInvalidationRule.Builder setCacheTags(int index, String value)
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;index - The index to set the value at.value - The cacheTags to set.public CacheInvalidationRule.Builder addCacheTags(String value)
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;value - The cacheTags to add.public CacheInvalidationRule.Builder addAllCacheTags(Iterable<String> values)
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;values - The cacheTags to add.public CacheInvalidationRule.Builder clearCacheTags()
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;public CacheInvalidationRule.Builder addCacheTagsBytes(com.google.protobuf.ByteString value)
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;value - The bytes of the cacheTags to add.public boolean hasHost()
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;hasHost in interface CacheInvalidationRuleOrBuilderpublic String getHost()
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;getHost in interface CacheInvalidationRuleOrBuilderpublic 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;getHostBytes in interface CacheInvalidationRuleOrBuilderpublic CacheInvalidationRule.Builder setHost(String value)
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;value - The host to set.public CacheInvalidationRule.Builder clearHost()
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;public CacheInvalidationRule.Builder setHostBytes(com.google.protobuf.ByteString value)
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;value - The bytes for host to set.public boolean hasPath()
optional string path = 3433509;hasPath in interface CacheInvalidationRuleOrBuilderpublic String getPath()
optional string path = 3433509;getPath in interface CacheInvalidationRuleOrBuilderpublic com.google.protobuf.ByteString getPathBytes()
optional string path = 3433509;getPathBytes in interface CacheInvalidationRuleOrBuilderpublic CacheInvalidationRule.Builder setPath(String value)
optional string path = 3433509;value - The path to set.public CacheInvalidationRule.Builder clearPath()
optional string path = 3433509;public CacheInvalidationRule.Builder setPathBytes(com.google.protobuf.ByteString value)
optional string path = 3433509;value - The bytes for path to set.public final CacheInvalidationRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>public final CacheInvalidationRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CacheInvalidationRule.Builder>Copyright © 2025 Google LLC. All rights reserved.