Class BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder (1.40.0)

public static final class BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder extends GeneratedMessageV3.Builder<BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder> implements BackendBucketCdnPolicyBypassCacheOnRequestHeaderOrBuilder

Bypass the cache when the specified request headers are present, e.g. Pragma or Authorization headers. Values are case insensitive. The presence of such a header overrides the cache_mode setting.

Protobuf type google.cloud.compute.v1.BackendBucketCdnPolicyBypassCacheOnRequestHeader

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

build()

public BackendBucketCdnPolicyBypassCacheOnRequestHeader build()
Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader

buildPartial()

public BackendBucketCdnPolicyBypassCacheOnRequestHeader buildPartial()
Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader

clear()

public BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder clear()
Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

clearHeaderName()

public BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder clearHeaderName()

The header field name to match on when bypassing cache. Values are case-insensitive.

optional string header_name = 110223613;

Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

clone()

public BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder clone()
Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

getDefaultInstanceForType()

public BackendBucketCdnPolicyBypassCacheOnRequestHeader getDefaultInstanceForType()
Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHeaderName()

public String getHeaderName()

The header field name to match on when bypassing cache. Values are case-insensitive.

optional string header_name = 110223613;

Returns
TypeDescription
String

The headerName.

getHeaderNameBytes()

public ByteString getHeaderNameBytes()

The header field name to match on when bypassing cache. Values are case-insensitive.

optional string header_name = 110223613;

Returns
TypeDescription
ByteString

The bytes for headerName.

hasHeaderName()

public boolean hasHeaderName()

The header field name to match on when bypassing cache. Values are case-insensitive.

optional string header_name = 110223613;

Returns
TypeDescription
boolean

Whether the headerName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BackendBucketCdnPolicyBypassCacheOnRequestHeader other)

public BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder mergeFrom(BackendBucketCdnPolicyBypassCacheOnRequestHeader other)
Parameter
NameDescription
otherBackendBucketCdnPolicyBypassCacheOnRequestHeader
Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

setHeaderName(String value)

public BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder setHeaderName(String value)

The header field name to match on when bypassing cache. Values are case-insensitive.

optional string header_name = 110223613;

Parameter
NameDescription
valueString

The headerName to set.

Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder

This builder for chaining.

setHeaderNameBytes(ByteString value)

public BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder setHeaderNameBytes(ByteString value)

The header field name to match on when bypassing cache. Values are case-insensitive.

optional string header_name = 110223613;

Parameter
NameDescription
valueByteString

The bytes for headerName to set.

Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BackendBucketCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides