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

public static final class AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder extends GeneratedMessageV3.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder> implements AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder

Specification of HTTP header match attributes.

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

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Overrides

build()

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch build()

buildPartial()

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch buildPartial()

clear()

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clear()
Overrides

clearField(Descriptors.FieldDescriptor field)

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Overrides

clearHeaderName()

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clearHeaderName()

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
TypeDescription
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Overrides

clearRegexMatch()

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clearRegexMatch()

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
TypeDescription
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder

This builder for chaining.

clearType()

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clearType()

clone()

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder clone()
Overrides

getDefaultInstanceForType()

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch getDefaultInstanceForType()

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHeaderName()

public String getHeaderName()

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
TypeDescription
String

The headerName.

getHeaderNameBytes()

public ByteString getHeaderNameBytes()

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
TypeDescription
ByteString

The bytes for headerName.

getRegexMatch()

public String getRegexMatch()

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
TypeDescription
String

The regexMatch.

getRegexMatchBytes()

public ByteString getRegexMatchBytes()

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
TypeDescription
ByteString

The bytes for regexMatch.

getTypeCase()

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.TypeCase getTypeCase()

hasRegexMatch()

public boolean hasRegexMatch()

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
TypeDescription
boolean

Whether the regexMatch field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AuthorizationPolicy.Rule.Destination.HttpHeaderMatch other)

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder mergeFrom(AuthorizationPolicy.Rule.Destination.HttpHeaderMatch other)

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Overrides

setHeaderName(String value)

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setHeaderName(String value)

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
NameDescription
valueString

The headerName to set.

Returns
TypeDescription
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder

This builder for chaining.

setHeaderNameBytes(ByteString value)

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setHeaderNameBytes(ByteString value)

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

The bytes for headerName to set.

Returns
TypeDescription
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder

This builder for chaining.

setRegexMatch(String value)

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setRegexMatch(String value)

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
NameDescription
valueString

The regexMatch to set.

Returns
TypeDescription
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder

This builder for chaining.

setRegexMatchBytes(ByteString value)

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setRegexMatchBytes(ByteString value)

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

The bytes for regexMatch to set.

Returns
TypeDescription
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder

This builder for chaining.

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

public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Overrides