public static final class GrpcRoute.HeaderMatch extends GeneratedMessage implements GrpcRoute.HeaderMatchOrBuilderA match against a collection of headers.
Protobuf type google.cloud.networkservices.v1.GrpcRoute.HeaderMatch
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > GrpcRoute.HeaderMatchImplements
GrpcRoute.HeaderMatchOrBuilderStatic Fields
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static GrpcRoute.HeaderMatch getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static GrpcRoute.HeaderMatch.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch.Builder |
|
newBuilder(GrpcRoute.HeaderMatch prototype)
public static GrpcRoute.HeaderMatch.Builder newBuilder(GrpcRoute.HeaderMatch prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
GrpcRoute.HeaderMatch |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch.Builder |
|
parseDelimitedFrom(InputStream input)
public static GrpcRoute.HeaderMatch parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.HeaderMatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static GrpcRoute.HeaderMatch parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.HeaderMatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static GrpcRoute.HeaderMatch parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.HeaderMatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static GrpcRoute.HeaderMatch parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.HeaderMatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static GrpcRoute.HeaderMatch parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.HeaderMatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static GrpcRoute.HeaderMatch parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.HeaderMatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<GrpcRoute.HeaderMatch> parser()| Returns | |
|---|---|
| Type | Description |
Parser<HeaderMatch> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public GrpcRoute.HeaderMatch getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch |
|
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. |
getParserForType()
public Parser<GrpcRoute.HeaderMatch> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<HeaderMatch> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public GrpcRoute.HeaderMatch.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected GrpcRoute.HeaderMatch.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch.Builder |
|
toBuilder()
public GrpcRoute.HeaderMatch.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
GrpcRoute.HeaderMatch.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|