public static final class CacheInvalidationRule.Builder extends GeneratedMessage.Builder<CacheInvalidationRule.Builder> implements CacheInvalidationRuleOrBuilder Protobuf type google.cloud.compute.v1.CacheInvalidationRule
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CacheInvalidationRule.BuilderImplements
CacheInvalidationRuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllCacheTags(Iterable<String> values)
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-Tagresponse 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
ANDwith any tags.
Up to 10 tags can be specified in a single invalidation request.
repeated string cache_tags = 29073078;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The cacheTags to add. |
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
addCacheTags(String value)
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-Tagresponse 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
ANDwith any tags.
Up to 10 tags can be specified in a single invalidation request.
repeated string cache_tags = 29073078;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cacheTags to add. |
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
addCacheTagsBytes(ByteString value)
public CacheInvalidationRule.Builder addCacheTagsBytes(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-Tagresponse 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
ANDwith any tags.
Up to 10 tags can be specified in a single invalidation request.
repeated string cache_tags = 29073078;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the cacheTags to add. |
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
build()
public CacheInvalidationRule build()| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule |
|
buildPartial()
public CacheInvalidationRule buildPartial()| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule |
|
clear()
public CacheInvalidationRule.Builder clear()| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
|
clearBackendService()
public CacheInvalidationRule.Builder clearBackendService() If set, this invalidation rule will only apply to requests routed to the
given backend service or backend bucket.
For example, for a backend bucket bb1 in the same scope as the URL map,
the path would be projects/my-project/global/backendBuckets/bb1; and
for a backend service bs1 in the same scope as the URL map, the path
would be projects/my-project/global/backendServices/bs1.
optional string backend_service = 306946058;
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
clearCacheTags()
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-Tagresponse 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
ANDwith any tags.
Up to 10 tags can be specified in a single invalidation request.
repeated string cache_tags = 29073078;
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
clearContentType()
public CacheInvalidationRule.Builder clearContentType()If set, this invalidation rule will only apply to responses with the given content-type. Parameters are not allowed and are ignored from the response when matching. Wildcards are not allowed.
optional string content_type = 294975296;
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
clearHost()
public CacheInvalidationRule.Builder clearHost()If set, this invalidation rule will only apply to requests with a Host header matching host. This field also accepts wildcards (*) to replace the leftmost (or first) label of a hostname. For example, *.example.com will match www.example.com, but not sub1.dev.example.com.
optional string host = 3208616;
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
clearHttpStatus()
public CacheInvalidationRule.Builder clearHttpStatus()If set, this invalidation rule will only apply to responses with the given HTTP status. Valid range is 200-599.
optional int32 http_status = 468949897;
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
clearPath()
public CacheInvalidationRule.Builder clearPath()optional string path = 3433509;
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
getBackendService()
public String getBackendService() If set, this invalidation rule will only apply to requests routed to the
given backend service or backend bucket.
For example, for a backend bucket bb1 in the same scope as the URL map,
the path would be projects/my-project/global/backendBuckets/bb1; and
for a backend service bs1 in the same scope as the URL map, the path
would be projects/my-project/global/backendServices/bs1.
optional string backend_service = 306946058;
| Returns | |
|---|---|
| Type | Description |
String |
The backendService. |
getBackendServiceBytes()
public ByteString getBackendServiceBytes() If set, this invalidation rule will only apply to requests routed to the
given backend service or backend bucket.
For example, for a backend bucket bb1 in the same scope as the URL map,
the path would be projects/my-project/global/backendBuckets/bb1; and
for a backend service bs1 in the same scope as the URL map, the path
would be projects/my-project/global/backendServices/bs1.
optional string backend_service = 306946058;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for backendService. |
getCacheTags(int index)
public 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-Tagresponse 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
ANDwith any tags.
Up to 10 tags can be specified in a single invalidation request.
repeated string cache_tags = 29073078;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The cacheTags at the given index. |
getCacheTagsBytes(int index)
public 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-Tagresponse 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
ANDwith any tags.
Up to 10 tags can be specified in a single invalidation request.
repeated string cache_tags = 29073078;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the cacheTags at the given index. |
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-Tagresponse 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
ANDwith 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 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-Tagresponse 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
ANDwith any tags.
Up to 10 tags can be specified in a single invalidation request.
repeated string cache_tags = 29073078;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the cacheTags. |
getContentType()
public String getContentType()If set, this invalidation rule will only apply to responses with the given content-type. Parameters are not allowed and are ignored from the response when matching. Wildcards are not allowed.
optional string content_type = 294975296;
| Returns | |
|---|---|
| Type | Description |
String |
The contentType. |
getContentTypeBytes()
public ByteString getContentTypeBytes()If set, this invalidation rule will only apply to responses with the given content-type. Parameters are not allowed and are ignored from the response when matching. Wildcards are not allowed.
optional string content_type = 294975296;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for contentType. |
getDefaultInstanceForType()
public CacheInvalidationRule getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHost()
public String getHost()If set, this invalidation rule will only apply to requests with a Host header matching host. This field also accepts wildcards (*) to replace the leftmost (or first) label of a hostname. For example, *.example.com will match www.example.com, but not sub1.dev.example.com.
optional string host = 3208616;
| Returns | |
|---|---|
| Type | Description |
String |
The host. |
getHostBytes()
public ByteString getHostBytes()If set, this invalidation rule will only apply to requests with a Host header matching host. This field also accepts wildcards (*) to replace the leftmost (or first) label of a hostname. For example, *.example.com will match www.example.com, but not sub1.dev.example.com.
optional string host = 3208616;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for host. |
getHttpStatus()
public int getHttpStatus()If set, this invalidation rule will only apply to responses with the given HTTP status. Valid range is 200-599.
optional int32 http_status = 468949897;
| Returns | |
|---|---|
| Type | Description |
int |
The httpStatus. |
getPath()
public String getPath()optional string path = 3433509;
| Returns | |
|---|---|
| Type | Description |
String |
The path. |
getPathBytes()
public ByteString getPathBytes()optional string path = 3433509;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for path. |
hasBackendService()
public boolean hasBackendService() If set, this invalidation rule will only apply to requests routed to the
given backend service or backend bucket.
For example, for a backend bucket bb1 in the same scope as the URL map,
the path would be projects/my-project/global/backendBuckets/bb1; and
for a backend service bs1 in the same scope as the URL map, the path
would be projects/my-project/global/backendServices/bs1.
optional string backend_service = 306946058;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the backendService field is set. |
hasContentType()
public boolean hasContentType()If set, this invalidation rule will only apply to responses with the given content-type. Parameters are not allowed and are ignored from the response when matching. Wildcards are not allowed.
optional string content_type = 294975296;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the contentType field is set. |
hasHost()
public boolean hasHost()If set, this invalidation rule will only apply to requests with a Host header matching host. This field also accepts wildcards (*) to replace the leftmost (or first) label of a hostname. For example, *.example.com will match www.example.com, but not sub1.dev.example.com.
optional string host = 3208616;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the host field is set. |
hasHttpStatus()
public boolean hasHttpStatus()If set, this invalidation rule will only apply to responses with the given HTTP status. Valid range is 200-599.
optional int32 http_status = 468949897;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the httpStatus field is set. |
hasPath()
public boolean hasPath()optional string path = 3433509;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the path field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CacheInvalidationRule other)
public CacheInvalidationRule.Builder mergeFrom(CacheInvalidationRule other)| Parameter | |
|---|---|
| Name | Description |
other |
CacheInvalidationRule |
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CacheInvalidationRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CacheInvalidationRule.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
|
setBackendService(String value)
public CacheInvalidationRule.Builder setBackendService(String value) If set, this invalidation rule will only apply to requests routed to the
given backend service or backend bucket.
For example, for a backend bucket bb1 in the same scope as the URL map,
the path would be projects/my-project/global/backendBuckets/bb1; and
for a backend service bs1 in the same scope as the URL map, the path
would be projects/my-project/global/backendServices/bs1.
optional string backend_service = 306946058;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe backendService to set. |
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
setBackendServiceBytes(ByteString value)
public CacheInvalidationRule.Builder setBackendServiceBytes(ByteString value) If set, this invalidation rule will only apply to requests routed to the
given backend service or backend bucket.
For example, for a backend bucket bb1 in the same scope as the URL map,
the path would be projects/my-project/global/backendBuckets/bb1; and
for a backend service bs1 in the same scope as the URL map, the path
would be projects/my-project/global/backendServices/bs1.
optional string backend_service = 306946058;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for backendService to set. |
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
setCacheTags(int index, String value)
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-Tagresponse 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
ANDwith any tags.
Up to 10 tags can be specified in a single invalidation request.
repeated string cache_tags = 29073078;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe cacheTags to set. |
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
setContentType(String value)
public CacheInvalidationRule.Builder setContentType(String value)If set, this invalidation rule will only apply to responses with the given content-type. Parameters are not allowed and are ignored from the response when matching. Wildcards are not allowed.
optional string content_type = 294975296;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe contentType to set. |
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
setContentTypeBytes(ByteString value)
public CacheInvalidationRule.Builder setContentTypeBytes(ByteString value)If set, this invalidation rule will only apply to responses with the given content-type. Parameters are not allowed and are ignored from the response when matching. Wildcards are not allowed.
optional string content_type = 294975296;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for contentType to set. |
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
setHost(String value)
public CacheInvalidationRule.Builder setHost(String value)If set, this invalidation rule will only apply to requests with a Host header matching host. This field also accepts wildcards (*) to replace the leftmost (or first) label of a hostname. For example, *.example.com will match www.example.com, but not sub1.dev.example.com.
optional string host = 3208616;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe host to set. |
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
setHostBytes(ByteString value)
public CacheInvalidationRule.Builder setHostBytes(ByteString value)If set, this invalidation rule will only apply to requests with a Host header matching host. This field also accepts wildcards (*) to replace the leftmost (or first) label of a hostname. For example, *.example.com will match www.example.com, but not sub1.dev.example.com.
optional string host = 3208616;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for host to set. |
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
setHttpStatus(int value)
public CacheInvalidationRule.Builder setHttpStatus(int value)If set, this invalidation rule will only apply to responses with the given HTTP status. Valid range is 200-599.
optional int32 http_status = 468949897;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe httpStatus to set. |
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
setPath(String value)
public CacheInvalidationRule.Builder setPath(String value)optional string path = 3433509;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe path to set. |
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |
setPathBytes(ByteString value)
public CacheInvalidationRule.Builder setPathBytes(ByteString value)optional string path = 3433509;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for path to set. |
| Returns | |
|---|---|
| Type | Description |
CacheInvalidationRule.Builder |
This builder for chaining. |