public static final class GrpcRoute.RouteMatch extends GeneratedMessageV3 implements GrpcRoute.RouteMatchOrBuilder
Criteria for matching traffic. A RouteMatch will be considered to match when all supplied fields match.
Protobuf type google.events.cloud.networkservices.v1.GrpcRoute.RouteMatch
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GrpcRoute.RouteMatchImplements
GrpcRoute.RouteMatchOrBuilderStatic Fields
HEADERS_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
METHOD_FIELD_NUMBER
public static final int METHOD_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static GrpcRoute.RouteMatch getDefaultInstance()
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static GrpcRoute.RouteMatch.Builder newBuilder()
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch.Builder |
newBuilder(GrpcRoute.RouteMatch prototype)
public static GrpcRoute.RouteMatch.Builder newBuilder(GrpcRoute.RouteMatch prototype)
Parameter | |
---|---|
Name | Description |
prototype |
GrpcRoute.RouteMatch |
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch.Builder |
parseDelimitedFrom(InputStream input)
public static GrpcRoute.RouteMatch parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.RouteMatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static GrpcRoute.RouteMatch parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.RouteMatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static GrpcRoute.RouteMatch parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.RouteMatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static GrpcRoute.RouteMatch parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.RouteMatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static GrpcRoute.RouteMatch parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.RouteMatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static GrpcRoute.RouteMatch parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GrpcRoute.RouteMatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<GrpcRoute.RouteMatch> parser()
Returns | |
---|---|
Type | Description |
Parser<RouteMatch> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public GrpcRoute.RouteMatch getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch |
getHeaders(int index)
public GrpcRoute.HeaderMatch getHeaders(int index)
Optional. Specifies a collection of headers to match.
repeated .google.events.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
GrpcRoute.HeaderMatch |
getHeadersCount()
public int getHeadersCount()
Optional. Specifies a collection of headers to match.
repeated .google.events.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2;
Returns | |
---|---|
Type | Description |
int |
getHeadersList()
public List<GrpcRoute.HeaderMatch> getHeadersList()
Optional. Specifies a collection of headers to match.
repeated .google.events.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2;
Returns | |
---|---|
Type | Description |
List<HeaderMatch> |
getHeadersOrBuilder(int index)
public GrpcRoute.HeaderMatchOrBuilder getHeadersOrBuilder(int index)
Optional. Specifies a collection of headers to match.
repeated .google.events.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
GrpcRoute.HeaderMatchOrBuilder |
getHeadersOrBuilderList()
public List<? extends GrpcRoute.HeaderMatchOrBuilder> getHeadersOrBuilderList()
Optional. Specifies a collection of headers to match.
repeated .google.events.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2;
Returns | |
---|---|
Type | Description |
List<? extends com.google.events.cloud.networkservices.v1.GrpcRoute.HeaderMatchOrBuilder> |
getMethod()
public GrpcRoute.MethodMatch getMethod()
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
optional .google.events.cloud.networkservices.v1.GrpcRoute.MethodMatch method = 1;
Returns | |
---|---|
Type | Description |
GrpcRoute.MethodMatch |
The method. |
getMethodOrBuilder()
public GrpcRoute.MethodMatchOrBuilder getMethodOrBuilder()
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
optional .google.events.cloud.networkservices.v1.GrpcRoute.MethodMatch method = 1;
Returns | |
---|---|
Type | Description |
GrpcRoute.MethodMatchOrBuilder |
getParserForType()
public Parser<GrpcRoute.RouteMatch> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<RouteMatch> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns | |
---|---|
Type | Description |
UnknownFieldSet |
hasMethod()
public boolean hasMethod()
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
optional .google.events.cloud.networkservices.v1.GrpcRoute.MethodMatch method = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the method field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public GrpcRoute.RouteMatch.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected GrpcRoute.RouteMatch.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public GrpcRoute.RouteMatch.Builder toBuilder()
Returns | |
---|---|
Type | Description |
GrpcRoute.RouteMatch.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |