Class ExtensionBinding.MatchCondition.HeaderMatch.Builder (0.55.0)

public static final class ExtensionBinding.MatchCondition.HeaderMatch.Builder extends GeneratedMessage.Builder<ExtensionBinding.MatchCondition.HeaderMatch.Builder> implements ExtensionBinding.MatchCondition.HeaderMatchOrBuilder

Determines how an HTTP header should be matched.

Protobuf type google.cloud.networkservices.v1beta1.ExtensionBinding.MatchCondition.HeaderMatch

Static Methods

getDescriptor()

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

Methods

build()

public ExtensionBinding.MatchCondition.HeaderMatch build()
Returns
Type Description
ExtensionBinding.MatchCondition.HeaderMatch

buildPartial()

public ExtensionBinding.MatchCondition.HeaderMatch buildPartial()
Returns
Type Description
ExtensionBinding.MatchCondition.HeaderMatch

clear()

public ExtensionBinding.MatchCondition.HeaderMatch.Builder clear()
Returns
Type Description
ExtensionBinding.MatchCondition.HeaderMatch.Builder
Overrides

clearName()

public ExtensionBinding.MatchCondition.HeaderMatch.Builder clearName()

Required. Specifies the name of the header in the request.

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

Returns
Type Description
ExtensionBinding.MatchCondition.HeaderMatch.Builder

This builder for chaining.

clearValue()

public ExtensionBinding.MatchCondition.HeaderMatch.Builder clearValue()

Optional. Specifies how the header match will be performed.

.google.cloud.networkservices.v1beta1.ExtensionBinding.MatchCondition.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExtensionBinding.MatchCondition.HeaderMatch.Builder

getDefaultInstanceForType()

public ExtensionBinding.MatchCondition.HeaderMatch getDefaultInstanceForType()
Returns
Type Description
ExtensionBinding.MatchCondition.HeaderMatch

getDescriptorForType()

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

getName()

public String getName()

Required. Specifies the name of the header in the request.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Specifies the name of the header in the request.

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

Returns
Type Description
ByteString

The bytes for name.

getValue()

public ExtensionBinding.MatchCondition.StringMatch getValue()

Optional. Specifies how the header match will be performed.

.google.cloud.networkservices.v1beta1.ExtensionBinding.MatchCondition.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExtensionBinding.MatchCondition.StringMatch

The value.

getValueBuilder()

public ExtensionBinding.MatchCondition.StringMatch.Builder getValueBuilder()

Optional. Specifies how the header match will be performed.

.google.cloud.networkservices.v1beta1.ExtensionBinding.MatchCondition.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExtensionBinding.MatchCondition.StringMatch.Builder

getValueOrBuilder()

public ExtensionBinding.MatchCondition.StringMatchOrBuilder getValueOrBuilder()

Optional. Specifies how the header match will be performed.

.google.cloud.networkservices.v1beta1.ExtensionBinding.MatchCondition.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExtensionBinding.MatchCondition.StringMatchOrBuilder

hasValue()

public boolean hasValue()

Optional. Specifies how the header match will be performed.

.google.cloud.networkservices.v1beta1.ExtensionBinding.MatchCondition.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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExtensionBinding.MatchCondition.HeaderMatch other)

public ExtensionBinding.MatchCondition.HeaderMatch.Builder mergeFrom(ExtensionBinding.MatchCondition.HeaderMatch other)
Parameter
Name Description
other ExtensionBinding.MatchCondition.HeaderMatch
Returns
Type Description
ExtensionBinding.MatchCondition.HeaderMatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExtensionBinding.MatchCondition.HeaderMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExtensionBinding.MatchCondition.HeaderMatch.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExtensionBinding.MatchCondition.HeaderMatch.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ExtensionBinding.MatchCondition.HeaderMatch.Builder
Overrides

mergeValue(ExtensionBinding.MatchCondition.StringMatch value)

public ExtensionBinding.MatchCondition.HeaderMatch.Builder mergeValue(ExtensionBinding.MatchCondition.StringMatch value)

Optional. Specifies how the header match will be performed.

.google.cloud.networkservices.v1beta1.ExtensionBinding.MatchCondition.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ExtensionBinding.MatchCondition.StringMatch
Returns
Type Description
ExtensionBinding.MatchCondition.HeaderMatch.Builder

setName(String value)

public ExtensionBinding.MatchCondition.HeaderMatch.Builder setName(String value)

Required. Specifies the name of the header in the request.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ExtensionBinding.MatchCondition.HeaderMatch.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ExtensionBinding.MatchCondition.HeaderMatch.Builder setNameBytes(ByteString value)

Required. Specifies the name of the header in the request.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ExtensionBinding.MatchCondition.HeaderMatch.Builder

This builder for chaining.

setValue(ExtensionBinding.MatchCondition.StringMatch value)

public ExtensionBinding.MatchCondition.HeaderMatch.Builder setValue(ExtensionBinding.MatchCondition.StringMatch value)

Optional. Specifies how the header match will be performed.

.google.cloud.networkservices.v1beta1.ExtensionBinding.MatchCondition.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ExtensionBinding.MatchCondition.StringMatch
Returns
Type Description
ExtensionBinding.MatchCondition.HeaderMatch.Builder

setValue(ExtensionBinding.MatchCondition.StringMatch.Builder builderForValue)

public ExtensionBinding.MatchCondition.HeaderMatch.Builder setValue(ExtensionBinding.MatchCondition.StringMatch.Builder builderForValue)

Optional. Specifies how the header match will be performed.

.google.cloud.networkservices.v1beta1.ExtensionBinding.MatchCondition.StringMatch value = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ExtensionBinding.MatchCondition.StringMatch.Builder
Returns
Type Description
ExtensionBinding.MatchCondition.HeaderMatch.Builder