public static final class GrpcRoute.HeaderMatch.Builder extends GeneratedMessage.Builder<GrpcRoute.HeaderMatch.Builder> implements GrpcRoute.HeaderMatchOrBuilderA match against a collection of headers.
Protobuf type google.cloud.networkservices.v1.GrpcRoute.HeaderMatch
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GrpcRoute.HeaderMatch.BuilderImplements
GrpcRoute.HeaderMatchOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
clearKey()
public GrpcRoute.HeaderMatch.Builder clearKey()Required. The key of the header.
string key = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch.Builder |
This builder for chaining. |
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.cloud.networkservices.v1.GrpcRoute.HeaderMatch.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];
| 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 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GrpcRoute.HeaderMatch getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getKey()
public String getKey()Required. The key of the header.
string key = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The key. |
getKeyBytes()
public ByteString getKeyBytes()Required. The key of the header.
string key = 2 [(.google.api.field_behavior) = REQUIRED];
| 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.cloud.networkservices.v1.GrpcRoute.HeaderMatch.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];
| 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.cloud.networkservices.v1.GrpcRoute.HeaderMatch.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];
| 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 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The value. |
getValueBytes()
public ByteString getValueBytes()Required. The value of the header.
string value = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for value. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
setKey(String value)
public GrpcRoute.HeaderMatch.Builder setKey(String value)Required. The key of the header.
string key = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for key to set. |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch.Builder |
This builder for chaining. |
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.cloud.networkservices.v1.GrpcRoute.HeaderMatch.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
GrpcRoute.HeaderMatch.TypeThe 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.cloud.networkservices.v1.GrpcRoute.HeaderMatch.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch.Builder |
This builder for chaining. |
setValue(String value)
public GrpcRoute.HeaderMatch.Builder setValue(String value)Required. The value of the header.
string value = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for value to set. |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch.Builder |
This builder for chaining. |