Class GrpcRoute.HeaderMatch.Builder (0.15.0)

public static final class GrpcRoute.HeaderMatch.Builder extends GeneratedMessageV3.Builder<GrpcRoute.HeaderMatch.Builder> implements GrpcRoute.HeaderMatchOrBuilder

A match against a collection of headers.

Protobuf type google.events.cloud.networkservices.v1.GrpcRoute.HeaderMatch

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GrpcRoute.HeaderMatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GrpcRoute.HeaderMatch.Builder
Overrides

build()

public GrpcRoute.HeaderMatch build()
Returns
Type Description
GrpcRoute.HeaderMatch

buildPartial()

public GrpcRoute.HeaderMatch buildPartial()
Returns
Type Description
GrpcRoute.HeaderMatch

clear()

public GrpcRoute.HeaderMatch.Builder clear()
Returns
Type Description
GrpcRoute.HeaderMatch.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GrpcRoute.HeaderMatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GrpcRoute.HeaderMatch.Builder
Overrides

clearKey()

public GrpcRoute.HeaderMatch.Builder clearKey()

Required. The key of the header.

string key = 2;

Returns
Type Description
GrpcRoute.HeaderMatch.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GrpcRoute.HeaderMatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GrpcRoute.HeaderMatch.Builder
Overrides

clearType()

public GrpcRoute.HeaderMatch.Builder clearType()

Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.

.google.events.cloud.networkservices.v1.GrpcRoute.HeaderMatch.Type type = 1;

Returns
Type Description
GrpcRoute.HeaderMatch.Builder

This builder for chaining.

clearValue()

public GrpcRoute.HeaderMatch.Builder clearValue()

Required. The value of the header.

string value = 3;

Returns
Type Description
GrpcRoute.HeaderMatch.Builder

This builder for chaining.

clone()

public GrpcRoute.HeaderMatch.Builder clone()
Returns
Type Description
GrpcRoute.HeaderMatch.Builder
Overrides

getDefaultInstanceForType()

public GrpcRoute.HeaderMatch getDefaultInstanceForType()
Returns
Type Description
GrpcRoute.HeaderMatch

getDescriptorForType()

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

getKey()

public String getKey()

Required. The key of the header.

string key = 2;

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Required. The key of the header.

string key = 2;

Returns
Type Description
ByteString

The bytes for key.

getType()

public GrpcRoute.HeaderMatch.Type getType()

Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.

.google.events.cloud.networkservices.v1.GrpcRoute.HeaderMatch.Type type = 1;

Returns
Type Description
GrpcRoute.HeaderMatch.Type

The type.

getTypeValue()

public int getTypeValue()

Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.

.google.events.cloud.networkservices.v1.GrpcRoute.HeaderMatch.Type type = 1;

Returns
Type Description
int

The enum numeric value on the wire for type.

getValue()

public String getValue()

Required. The value of the header.

string value = 3;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Required. The value of the header.

string value = 3;

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GrpcRoute.HeaderMatch other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GrpcRoute.HeaderMatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GrpcRoute.HeaderMatch.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GrpcRoute.HeaderMatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GrpcRoute.HeaderMatch.Builder
Overrides

setKey(String value)

public GrpcRoute.HeaderMatch.Builder setKey(String value)

Required. The key of the header.

string key = 2;

Parameter
Name Description
value String

The key to set.

Returns
Type Description
GrpcRoute.HeaderMatch.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public GrpcRoute.HeaderMatch.Builder setKeyBytes(ByteString value)

Required. The key of the header.

string key = 2;

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
GrpcRoute.HeaderMatch.Builder

This builder for chaining.

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

public GrpcRoute.HeaderMatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GrpcRoute.HeaderMatch.Builder
Overrides

setType(GrpcRoute.HeaderMatch.Type value)

public GrpcRoute.HeaderMatch.Builder setType(GrpcRoute.HeaderMatch.Type value)

Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.

.google.events.cloud.networkservices.v1.GrpcRoute.HeaderMatch.Type type = 1;

Parameter
Name Description
value GrpcRoute.HeaderMatch.Type

The type to set.

Returns
Type Description
GrpcRoute.HeaderMatch.Builder

This builder for chaining.

setTypeValue(int value)

public GrpcRoute.HeaderMatch.Builder setTypeValue(int value)

Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.

.google.events.cloud.networkservices.v1.GrpcRoute.HeaderMatch.Type type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
GrpcRoute.HeaderMatch.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final GrpcRoute.HeaderMatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GrpcRoute.HeaderMatch.Builder
Overrides

setValue(String value)

public GrpcRoute.HeaderMatch.Builder setValue(String value)

Required. The value of the header.

string value = 3;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
GrpcRoute.HeaderMatch.Builder

This builder for chaining.

setValueBytes(ByteString value)

public GrpcRoute.HeaderMatch.Builder setValueBytes(ByteString value)

Required. The value of the header.

string value = 3;

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
GrpcRoute.HeaderMatch.Builder

This builder for chaining.