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
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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>
|
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];
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];
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];
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];
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];
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
|
public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet build()
public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet buildPartial()
public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder clear()
Overrides
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];
public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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
|
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
|
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];
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 |
|
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];
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
|
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> |
|
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder mergeFrom(AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet other)
public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
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
|
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];
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];