Reference documentation and code samples for the Google Cloud Network Services V1beta1 Client class Destination.
Describes properties of a single destination.
Generated from protobuf message google.cloud.networkservices.v1beta1.ExtensionBinding.MatchCondition.To.Destination
Namespace
Google \ Cloud \ NetworkServices \ V1beta1 \ ExtensionBinding \ MatchCondition \ ToMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ header_set |
Destination\HeaderSet
Optional. A set of HTTP headers to match against. If not specified, requests with any headers are matched. |
↳ resources |
array<Google\Cloud\NetworkServices\V1beta1\ExtensionBinding\MatchCondition\StringMatch>
Optional. A list of non-empty strings whose value is matched against the resource to which a request is sent (e.g., an Agent in AiApplication). If not specified, any resource is allowed. If specified, a match occurs if any of the resources matches the resource value in the request. Limited to 5 resources. When matching against resources in the AgentRegistry, use the URNs of the registry resources. |
↳ hosts |
array<Google\Cloud\NetworkServices\V1beta1\ExtensionBinding\MatchCondition\StringMatch>
Optional. A list of HTTP Hosts to match against. Limited to 10 hosts. If not specified, any host is allowed. If specified, a match occurs if any of the hosts matches the host value in the request. |
↳ paths |
array<Google\Cloud\NetworkServices\V1beta1\ExtensionBinding\MatchCondition\StringMatch>
Optional. A list of paths to match against. Limited to 10 paths. If not specified, any path is allowed. Note that this path match includes the query parameters. For gRPC services, this should be a fully-qualified name of the form /package.service/method. |
getHeaderSet
Optional. A set of HTTP headers to match against. If not specified, requests with any headers are matched.
| Returns | |
|---|---|
| Type | Description |
Destination\HeaderSet|null |
|
hasHeaderSet
clearHeaderSet
setHeaderSet
Optional. A set of HTTP headers to match against. If not specified, requests with any headers are matched.
| Parameter | |
|---|---|
| Name | Description |
var |
Destination\HeaderSet
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getResources
Optional. A list of non-empty strings whose value is matched against the resource to which a request is sent (e.g., an Agent in AiApplication). If not specified, any resource is allowed.
If specified, a match occurs if any of the resources matches the resource value in the request. Limited to 5 resources. When matching against resources in the AgentRegistry, use the URNs of the registry resources.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<Google\Cloud\NetworkServices\V1beta1\ExtensionBinding\MatchCondition\StringMatch> |
|
setResources
Optional. A list of non-empty strings whose value is matched against the resource to which a request is sent (e.g., an Agent in AiApplication). If not specified, any resource is allowed.
If specified, a match occurs if any of the resources matches the resource value in the request. Limited to 5 resources. When matching against resources in the AgentRegistry, use the URNs of the registry resources.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Cloud\NetworkServices\V1beta1\ExtensionBinding\MatchCondition\StringMatch>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getHosts
Optional. A list of HTTP Hosts to match against. Limited to 10 hosts.
If not specified, any host is allowed. If specified, a match occurs if any of the hosts matches the host value in the request.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<Google\Cloud\NetworkServices\V1beta1\ExtensionBinding\MatchCondition\StringMatch> |
|
setHosts
Optional. A list of HTTP Hosts to match against. Limited to 10 hosts.
If not specified, any host is allowed. If specified, a match occurs if any of the hosts matches the host value in the request.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Cloud\NetworkServices\V1beta1\ExtensionBinding\MatchCondition\StringMatch>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPaths
Optional. A list of paths to match against. Limited to 10 paths. If not specified, any path is allowed.
Note that this path match includes the query parameters. For gRPC services, this should be a fully-qualified name of the form /package.service/method.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<Google\Cloud\NetworkServices\V1beta1\ExtensionBinding\MatchCondition\StringMatch> |
|
setPaths
Optional. A list of paths to match against. Limited to 10 paths. If not specified, any path is allowed.
Note that this path match includes the query parameters. For gRPC services, this should be a fully-qualified name of the form /package.service/method.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Cloud\NetworkServices\V1beta1\ExtensionBinding\MatchCondition\StringMatch>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|