Class AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder (0.94.0)

public static final class AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder extends GeneratedMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder> implements AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSetOrBuilder

Describes a set of HTTP headers to match against.

Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet

Static Methods

getDescriptor()

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

Methods

addAllHeaders(Iterable<? extends AuthzPolicy.AuthzRule.HeaderMatch> values)

public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder addAllHeaders(Iterable<? extends AuthzPolicy.AuthzRule.HeaderMatch> values)

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch>
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder

addHeaders(AuthzPolicy.AuthzRule.HeaderMatch value)

public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder addHeaders(AuthzPolicy.AuthzRule.HeaderMatch value)

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AuthzPolicy.AuthzRule.HeaderMatch
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder

addHeaders(AuthzPolicy.AuthzRule.HeaderMatch.Builder builderForValue)

public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder addHeaders(AuthzPolicy.AuthzRule.HeaderMatch.Builder builderForValue)

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AuthzPolicy.AuthzRule.HeaderMatch.Builder
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder

addHeaders(int index, AuthzPolicy.AuthzRule.HeaderMatch value)

public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder addHeaders(int index, AuthzPolicy.AuthzRule.HeaderMatch value)

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value AuthzPolicy.AuthzRule.HeaderMatch
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder

addHeaders(int index, AuthzPolicy.AuthzRule.HeaderMatch.Builder builderForValue)

public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder addHeaders(int index, AuthzPolicy.AuthzRule.HeaderMatch.Builder builderForValue)

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue AuthzPolicy.AuthzRule.HeaderMatch.Builder
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder

addHeadersBuilder()

public AuthzPolicy.AuthzRule.HeaderMatch.Builder addHeadersBuilder()

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuthzPolicy.AuthzRule.HeaderMatch.Builder

addHeadersBuilder(int index)

public AuthzPolicy.AuthzRule.HeaderMatch.Builder addHeadersBuilder(int index)

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.HeaderMatch.Builder

build()

public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet build()
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet

buildPartial()

public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet buildPartial()
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet

clear()

public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder clear()
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder
Overrides

clearHeaders()

public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder clearHeaders()

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder

getDefaultInstanceForType()

public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet getDefaultInstanceForType()
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHeaders(int index)

public AuthzPolicy.AuthzRule.HeaderMatch getHeaders(int index)

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.HeaderMatch

getHeadersBuilder(int index)

public AuthzPolicy.AuthzRule.HeaderMatch.Builder getHeadersBuilder(int index)

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.HeaderMatch.Builder

getHeadersBuilderList()

public List<AuthzPolicy.AuthzRule.HeaderMatch.Builder> getHeadersBuilderList()

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getHeadersCount()

public int getHeadersCount()

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getHeadersList()

public List<AuthzPolicy.AuthzRule.HeaderMatch> getHeadersList()

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<HeaderMatch>

getHeadersOrBuilder(int index)

public AuthzPolicy.AuthzRule.HeaderMatchOrBuilder getHeadersOrBuilder(int index)

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.HeaderMatchOrBuilder

getHeadersOrBuilderList()

public List<? extends AuthzPolicy.AuthzRule.HeaderMatchOrBuilder> getHeadersOrBuilderList()

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatchOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet other)

public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder mergeFrom(AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet other)
Parameter
Name Description
other AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder
Overrides

removeHeaders(int index)

public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder removeHeaders(int index)

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder

setHeaders(int index, AuthzPolicy.AuthzRule.HeaderMatch value)

public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder setHeaders(int index, AuthzPolicy.AuthzRule.HeaderMatch value)

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value AuthzPolicy.AuthzRule.HeaderMatch
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder

setHeaders(int index, AuthzPolicy.AuthzRule.HeaderMatch.Builder builderForValue)

public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder setHeaders(int index, AuthzPolicy.AuthzRule.HeaderMatch.Builder builderForValue)

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch headers = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue AuthzPolicy.AuthzRule.HeaderMatch.Builder
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder