Class AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder (0.63.0)

publicstaticfinalclass AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuilderextendsGeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>implementsAuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder

Specification of HTTP header match attributes.

Protobuf type google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder
Overrides

build()

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatchbuild()
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch

buildPartial()

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatchbuildPartial()
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch

clear()

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builderclear()
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder
Overrides

clearHeaderName()

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuilderclearHeaderName()

Required. The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method".

string header_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder
Overrides

clearRegexMatch()

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuilderclearRegexMatch()

Required. The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to Host and a regular expression that satisfies the RFC2616 Host header's port specifier.

string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder

This builder for chaining.

clearType()

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuilderclearType()
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder

clone()

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builderclone()
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder
Overrides

getDefaultInstanceForType()

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatchgetDefaultInstanceForType()
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHeaderName()

publicStringgetHeaderName()

Required. The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method".

string header_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The headerName.

getHeaderNameBytes()

publicByteStringgetHeaderNameBytes()

Required. The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method".

string header_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for headerName.

getRegexMatch()

publicStringgetRegexMatch()

Required. The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to Host and a regular expression that satisfies the RFC2616 Host header's port specifier.

string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The regexMatch.

getRegexMatchBytes()

publicByteStringgetRegexMatchBytes()

Required. The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to Host and a regular expression that satisfies the RFC2616 Host header's port specifier.

string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for regexMatch.

getTypeCase()

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.TypeCasegetTypeCase()
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.TypeCase

hasRegexMatch()

publicbooleanhasRegexMatch()

Required. The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to Host and a regular expression that satisfies the RFC2616 Host header's port specifier.

string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the regexMatch field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AuthorizationPolicy.Rule.Destination.HttpHeaderMatch other)

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuildermergeFrom(AuthorizationPolicy.Rule.Destination.HttpHeaderMatchother)
Parameter
Name Description
other AuthorizationPolicy.Rule.Destination.HttpHeaderMatch
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder
Overrides

setHeaderName(String value)

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuildersetHeaderName(Stringvalue)

Required. The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method".

string header_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The headerName to set.

Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder

This builder for chaining.

setHeaderNameBytes(ByteString value)

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuildersetHeaderNameBytes(ByteStringvalue)

Required. The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method".

string header_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for headerName to set.

Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder

This builder for chaining.

setRegexMatch(String value)

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuildersetRegexMatch(Stringvalue)

Required. The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to Host and a regular expression that satisfies the RFC2616 Host header's port specifier.

string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The regexMatch to set.

Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder

This builder for chaining.

setRegexMatchBytes(ByteString value)

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuildersetRegexMatchBytes(ByteStringvalue)

Required. The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to Host and a regular expression that satisfies the RFC2616 Host header's port specifier.

string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for regexMatch to set.

Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder

This builder for chaining.

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

publicAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalAuthorizationPolicy.Rule.Destination.HttpHeaderMatch.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.