public static final class AuthzPolicy.AuthzRule.HeaderMatch.Builder extends GeneratedMessage.Builder<AuthzPolicy.AuthzRule.HeaderMatch.Builder> implements AuthzPolicy.AuthzRule.HeaderMatchOrBuilderDetermines how a HTTP header should be matched.
Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.HeaderMatch
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AuthzPolicy.AuthzRule.HeaderMatch.BuilderImplements
AuthzPolicy.AuthzRule.HeaderMatchOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AuthzPolicy.AuthzRule.HeaderMatch build()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.HeaderMatch |
|
buildPartial()
public AuthzPolicy.AuthzRule.HeaderMatch buildPartial()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.HeaderMatch |
|
clear()
public AuthzPolicy.AuthzRule.HeaderMatch.Builder clear()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.HeaderMatch.Builder |
|
clearName()
public AuthzPolicy.AuthzRule.HeaderMatch.Builder clearName()Optional. Specifies the name of the header in the request.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.HeaderMatch.Builder |
This builder for chaining. |
clearValue()
public AuthzPolicy.AuthzRule.HeaderMatch.Builder clearValue()Optional. Specifies how the header match will be performed.
.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.HeaderMatch.Builder |
|
getDefaultInstanceForType()
public AuthzPolicy.AuthzRule.HeaderMatch getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.HeaderMatch |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Optional. Specifies the name of the header in the request.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Optional. Specifies the name of the header in the request.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getValue()
public AuthzPolicy.AuthzRule.StringMatch getValue()Optional. Specifies how the header match will be performed.
.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch |
The value. |
getValueBuilder()
public AuthzPolicy.AuthzRule.StringMatch.Builder getValueBuilder()Optional. Specifies how the header match will be performed.
.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch.Builder |
|
getValueOrBuilder()
public AuthzPolicy.AuthzRule.StringMatchOrBuilder getValueOrBuilder()Optional. Specifies how the header match will be performed.
.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatchOrBuilder |
|
hasValue()
public boolean hasValue()Optional. Specifies how the header match will be performed.
.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the value field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AuthzPolicy.AuthzRule.HeaderMatch other)
public AuthzPolicy.AuthzRule.HeaderMatch.Builder mergeFrom(AuthzPolicy.AuthzRule.HeaderMatch other)| Parameter | |
|---|---|
| Name | Description |
other |
AuthzPolicy.AuthzRule.HeaderMatch |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.HeaderMatch.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AuthzPolicy.AuthzRule.HeaderMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.HeaderMatch.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AuthzPolicy.AuthzRule.HeaderMatch.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.HeaderMatch.Builder |
|
mergeValue(AuthzPolicy.AuthzRule.StringMatch value)
public AuthzPolicy.AuthzRule.HeaderMatch.Builder mergeValue(AuthzPolicy.AuthzRule.StringMatch value)Optional. Specifies how the header match will be performed.
.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AuthzPolicy.AuthzRule.StringMatch |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.HeaderMatch.Builder |
|
setName(String value)
public AuthzPolicy.AuthzRule.HeaderMatch.Builder setName(String value)Optional. Specifies the name of the header in the request.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.HeaderMatch.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public AuthzPolicy.AuthzRule.HeaderMatch.Builder setNameBytes(ByteString value)Optional. Specifies the name of the header in the request.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.HeaderMatch.Builder |
This builder for chaining. |
setValue(AuthzPolicy.AuthzRule.StringMatch value)
public AuthzPolicy.AuthzRule.HeaderMatch.Builder setValue(AuthzPolicy.AuthzRule.StringMatch value)Optional. Specifies how the header match will be performed.
.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AuthzPolicy.AuthzRule.StringMatch |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.HeaderMatch.Builder |
|
setValue(AuthzPolicy.AuthzRule.StringMatch.Builder builderForValue)
public AuthzPolicy.AuthzRule.HeaderMatch.Builder setValue(AuthzPolicy.AuthzRule.StringMatch.Builder builderForValue)Optional. Specifies how the header match will be performed.
.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AuthzPolicy.AuthzRule.StringMatch.Builder |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.HeaderMatch.Builder |
|