Interface GrpcRoute.RouteMatchOrBuilder (0.4.0)

public static interface GrpcRoute.RouteMatchOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHeaders(int index)

public abstract GrpcRoute.HeaderMatch getHeaders(int index)

Optional. Specifies a collection of headers to match.

repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GrpcRoute.HeaderMatch

getHeadersCount()

public abstract int getHeadersCount()

Optional. Specifies a collection of headers to match.

repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getHeadersList()

public abstract List<GrpcRoute.HeaderMatch> getHeadersList()

Optional. Specifies a collection of headers to match.

repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<HeaderMatch>

getHeadersOrBuilder(int index)

public abstract GrpcRoute.HeaderMatchOrBuilder getHeadersOrBuilder(int index)

Optional. Specifies a collection of headers to match.

repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GrpcRoute.HeaderMatchOrBuilder

getHeadersOrBuilderList()

public abstract List<? extends GrpcRoute.HeaderMatchOrBuilder> getHeadersOrBuilderList()

Optional. Specifies a collection of headers to match.

repeated .google.cloud.networkservices.v1.GrpcRoute.HeaderMatch headers = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.networkservices.v1.GrpcRoute.HeaderMatchOrBuilder>

getMethod()

public abstract GrpcRoute.MethodMatch getMethod()

Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.

optional .google.cloud.networkservices.v1.GrpcRoute.MethodMatch method = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GrpcRoute.MethodMatch

The method.

getMethodOrBuilder()

public abstract GrpcRoute.MethodMatchOrBuilder getMethodOrBuilder()

Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.

optional .google.cloud.networkservices.v1.GrpcRoute.MethodMatch method = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GrpcRoute.MethodMatchOrBuilder

hasMethod()

public abstract boolean hasMethod()

Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.

optional .google.cloud.networkservices.v1.GrpcRoute.MethodMatch method = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the method field is set.