Reference documentation and code samples for the Google Cloud Agent Registry V1 Client class PBInterface.
Represents the connection details for an Agent or MCP Server.
Generated from protobuf message google.cloud.agentregistry.v1.Interface
Namespace
Google \ Cloud \ AgentRegistry \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ url |
string
Required. The destination URL. |
↳ protocol_binding |
int
Required. The protocol binding of the interface. |
getUrl
Required. The destination URL.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUrl
Required. The destination URL.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getProtocolBinding
Required. The protocol binding of the interface.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type ProtocolBinding. |
setProtocolBinding
Required. The protocol binding of the interface.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ProtocolBinding. |
| Returns | |
|---|---|
| Type | Description |
$this |
|