Google Cloud Network Services V1 Client - Class MethodMatch (0.1.0)

Reference documentation and code samples for the Google Cloud Network Services V1 Client class MethodMatch.

Specifies a match against a method.

Generated from protobuf message google.cloud.networkservices.v1.GrpcRoute.MethodMatch

Namespace

Google \ Cloud \ NetworkServices \ V1 \ GrpcRoute

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ type int

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

↳ grpc_service string

Required. Name of the service to match against. If unspecified, will match all services.

↳ grpc_method string

Required. Name of the method to match against. If unspecified, will match all methods.

↳ case_sensitive bool

Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.

getType

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

Returns
Type Description
int

setType

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

Parameter
Name Description
var int
Returns
Type Description
$this

getGrpcService

Required. Name of the service to match against. If unspecified, will match all services.

Returns
Type Description
string

setGrpcService

Required. Name of the service to match against. If unspecified, will match all services.

Parameter
Name Description
var string
Returns
Type Description
$this

getGrpcMethod

Required. Name of the method to match against. If unspecified, will match all methods.

Returns
Type Description
string

setGrpcMethod

Required. Name of the method to match against. If unspecified, will match all methods.

Parameter
Name Description
var string
Returns
Type Description
$this

getCaseSensitive

Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.

Returns
Type Description
bool

hasCaseSensitive

clearCaseSensitive

setCaseSensitive

Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.

Parameter
Name Description
var bool
Returns
Type Description
$this