Package com.google.cloud.compute.v1
Class CacheInvalidationRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CacheInvalidationRule.Builder>
com.google.cloud.compute.v1.CacheInvalidationRule.Builder
- All Implemented Interfaces:
CacheInvalidationRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CacheInvalidationRule
public static final class CacheInvalidationRule.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CacheInvalidationRule.Builder>
implements CacheInvalidationRuleOrBuilder
Protobuf type
google.cloud.compute.v1.CacheInvalidationRule-
Method Summary
Modifier and TypeMethodDescriptionaddAllCacheTags(Iterable<String> values) A list of cache tags used to identify cached objectsaddCacheTags(String value) A list of cache tags used to identify cached objectsaddCacheTagsBytes(com.google.protobuf.ByteString value) A list of cache tags used to identify cached objectsbuild()clear()A list of cache tags used to identify cached objectsIf set, this invalidation rule will only apply to requests with a Host header matching host.optional string path = 3433509;getCacheTags(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 objectscom.google.protobuf.ProtocolStringListA list of cache tags used to identify cached objectsstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetHost()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;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CacheInvalidationRule other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCacheTags(int index, String value) A list of cache tags used to identify cached objectsIf set, this invalidation rule will only apply to requests with a Host header matching host.setHostBytes(com.google.protobuf.ByteString value) If set, this invalidation rule will only apply to requests with a Host header matching host.optional string path = 3433509;setPathBytes(com.google.protobuf.ByteString value) optional string path = 3433509;Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CacheInvalidationRule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CacheInvalidationRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CacheInvalidationRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CacheInvalidationRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CacheInvalidationRule.Builder>
-
mergeFrom
public CacheInvalidationRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CacheInvalidationRule.Builder>- Throws:
IOException
-
getCacheTagsList
public 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;- Specified by:
getCacheTagsListin interfaceCacheInvalidationRuleOrBuilder- Returns:
- A list containing the cacheTags.
-
getCacheTagsCount
public 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;- Specified by:
getCacheTagsCountin interfaceCacheInvalidationRuleOrBuilder- 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;- Specified by:
getCacheTagsin interfaceCacheInvalidationRuleOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The cacheTags at the given index.
-
getCacheTagsBytes
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;- Specified by:
getCacheTagsBytesin interfaceCacheInvalidationRuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the cacheTags at the given index.
-
setCacheTags
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 to set the value at.value- The cacheTags to set.- Returns:
- This builder for chaining.
-
addCacheTags
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:
value- The cacheTags to add.- Returns:
- This builder for chaining.
-
addAllCacheTags
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:
values- The cacheTags to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
addCacheTagsBytes
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:
value- The bytes of the cacheTags to add.- Returns:
- This builder for chaining.
-
hasHost
public boolean hasHost()If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;- Specified by:
hasHostin interfaceCacheInvalidationRuleOrBuilder- Returns:
- Whether the host field is set.
-
getHost
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;- Specified by:
getHostin interfaceCacheInvalidationRuleOrBuilder- Returns:
- The host.
-
getHostBytes
public 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;- Specified by:
getHostBytesin interfaceCacheInvalidationRuleOrBuilder- Returns:
- The bytes for host.
-
setHost
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;- Parameters:
value- The host to set.- Returns:
- This builder for chaining.
-
clearHost
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;- Returns:
- This builder for chaining.
-
setHostBytes
If set, this invalidation rule will only apply to requests with a Host header matching host.
optional string host = 3208616;- Parameters:
value- The bytes for host to set.- Returns:
- This builder for chaining.
-
hasPath
public boolean hasPath()optional string path = 3433509;- Specified by:
hasPathin interfaceCacheInvalidationRuleOrBuilder- Returns:
- Whether the path field is set.
-
getPath
optional string path = 3433509;- Specified by:
getPathin interfaceCacheInvalidationRuleOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()optional string path = 3433509;- Specified by:
getPathBytesin interfaceCacheInvalidationRuleOrBuilder- Returns:
- The bytes for path.
-
setPath
optional string path = 3433509;- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
optional string path = 3433509;- Returns:
- This builder for chaining.
-
setPathBytes
optional string path = 3433509;- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-