class BackendRule extends Message

A backend rule provides configuration for an individual API element.

Generated from protobuf message google.api.BackendRule

Methods

__construct(array $data = NULL)

Constructor.

string
getSelector()

Selects the methods to which this rule applies.

$this
setSelector(string $var)

Selects the methods to which this rule applies.

string
getAddress()

The address of the API backend.

$this
setAddress(string $var)

The address of the API backend.

float
getDeadline()

The number of seconds to wait for a response from a request. The default deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.

$this
setDeadline(float $var)

The number of seconds to wait for a response from a request. The default deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.

float
getMinDeadline()

Minimum deadline in seconds needed for this method. Calls having deadline value lower than this will be rejected.

$this
setMinDeadline(float $var)

Minimum deadline in seconds needed for this method. Calls having deadline value lower than this will be rejected.

Details

at line 65
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type string $selector
      Selects the methods to which this rule applies.
      Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
@type string $address
      The address of the API backend.
@type float $deadline
      The number of seconds to wait for a response from a request.  The default
      deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
@type float $min_deadline
      Minimum deadline in seconds needed for this method. Calls having deadline
      value lower than this will be rejected.

}

at line 77
string getSelector()

Selects the methods to which this rule applies.

Refer to [selector][google.api.DocumentationRule.selector] for syntax details.

Generated from protobuf field string selector = 1;

Return Value

string

at line 90
$this setSelector(string $var)

Selects the methods to which this rule applies.

Refer to [selector][google.api.DocumentationRule.selector] for syntax details.

Generated from protobuf field string selector = 1;

Parameters

string $var

Return Value

$this

at line 104
string getAddress()

The address of the API backend.

Generated from protobuf field string address = 2;

Return Value

string

at line 116
$this setAddress(string $var)

The address of the API backend.

Generated from protobuf field string address = 2;

Parameters

string $var

Return Value

$this

at line 131
float getDeadline()

The number of seconds to wait for a response from a request. The default deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.

Generated from protobuf field double deadline = 3;

Return Value

float

at line 144
$this setDeadline(float $var)

The number of seconds to wait for a response from a request. The default deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.

Generated from protobuf field double deadline = 3;

Parameters

float $var

Return Value

$this

at line 159
float getMinDeadline()

Minimum deadline in seconds needed for this method. Calls having deadline value lower than this will be rejected.

Generated from protobuf field double min_deadline = 4;

Return Value

float

at line 172
$this setMinDeadline(float $var)

Minimum deadline in seconds needed for this method. Calls having deadline value lower than this will be rejected.

Generated from protobuf field double min_deadline = 4;

Parameters

float $var

Return Value

$this