Class BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder (1.58.0)

public static final class BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder extends GeneratedMessageV3.Builder<BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder> implements BackendServiceCdnPolicyBypassCacheOnRequestHeaderOrBuilder

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.BackendServiceCdnPolicyBypassCacheOnRequestHeader

Inheritance

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

build()

public BackendServiceCdnPolicyBypassCacheOnRequestHeader build()
Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader

buildPartial()

public BackendServiceCdnPolicyBypassCacheOnRequestHeader buildPartial()
Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader

clear()

public BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder clear()
Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

clearHeaderName()

public BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder clearHeaderName()

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

optional string header_name = 110223613;

Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

clone()

public BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder clone()
Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

getDefaultInstanceForType()

public BackendServiceCdnPolicyBypassCacheOnRequestHeader getDefaultInstanceForType()
Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the headerName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackendServiceCdnPolicyBypassCacheOnRequestHeader other)

public BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder mergeFrom(BackendServiceCdnPolicyBypassCacheOnRequestHeader other)
Parameter
Name Description
other BackendServiceCdnPolicyBypassCacheOnRequestHeader
Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

setHeaderName(String value)

public BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder setHeaderName(String value)

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

optional string header_name = 110223613;

Parameter
Name Description
value String

The headerName to set.

Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder

This builder for chaining.

setHeaderNameBytes(ByteString value)

public BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder setHeaderNameBytes(ByteString value)

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

optional string header_name = 110223613;

Parameter
Name Description
value ByteString

The bytes for headerName to set.

Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder

This builder for chaining.

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

public BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides