Class BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder (1.25.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BackendServiceCdnPolicyBypassCacheOnRequestHeader build()
Returns
TypeDescription
BackendServiceCdnPolicyBypassCacheOnRequestHeader

buildPartial()

public BackendServiceCdnPolicyBypassCacheOnRequestHeader buildPartial()
Returns
TypeDescription
BackendServiceCdnPolicyBypassCacheOnRequestHeader

clear()

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

clearField(Descriptors.FieldDescriptor field)

public BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public BackendServiceCdnPolicyBypassCacheOnRequestHeader getDefaultInstanceForType()
Returns
TypeDescription
BackendServiceCdnPolicyBypassCacheOnRequestHeader

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(BackendServiceCdnPolicyBypassCacheOnRequestHeader other)

public BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder mergeFrom(BackendServiceCdnPolicyBypassCacheOnRequestHeader other)
Parameter
NameDescription
otherBackendServiceCdnPolicyBypassCacheOnRequestHeader
Returns
TypeDescription
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The headerName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for headerName to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BackendServiceCdnPolicyBypassCacheOnRequestHeader.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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