# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::AgentGateway (v2.10.1)

2.10.1 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.2.0 0.1.0 Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::AgentGateway.

AgentGateway represents the agent gateway resource.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #agent_gateway_card

    def agent_gateway_card() -> ::Google::Cloud::NetworkServices::V1::AgentGateway::AgentGatewayOutputCard

**Returns**

- ([::Google::Cloud::NetworkServices::V1::AgentGateway::AgentGatewayOutputCard](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-AgentGatewayOutputCard)) --- Output only. Field for populated AgentGateway card.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The timestamp when the resource was created.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. A free-text description of the resource. Max length 1024 characters.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A free-text description of the resource. Max length 1024 characters.
**Returns**

- (::String) --- Optional. A free-text description of the resource. Max length 1024 characters.

### #etag

    def etag() -> ::String

**Returns**

- (::String) --- Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.

### #etag=

    def etag=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
**Returns**

- (::String) --- Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.

### #google_managed

    def google_managed() -> ::Google::Cloud::NetworkServices::V1::AgentGateway::GoogleManaged

**Returns**

- ([::Google::Cloud::NetworkServices::V1::AgentGateway::GoogleManaged](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-GoogleManaged)) --- Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant project.


  Note: The following fields are mutually exclusive: `google_managed`, `self_managed`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #google_managed=

    def google_managed=(value) -> ::Google::Cloud::NetworkServices::V1::AgentGateway::GoogleManaged

**Parameter**

- **value** ([::Google::Cloud::NetworkServices::V1::AgentGateway::GoogleManaged](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-GoogleManaged)) --- Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant project.


  Note: The following fields are mutually exclusive: `google_managed`, `self_managed`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::NetworkServices::V1::AgentGateway::GoogleManaged](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-GoogleManaged)) --- Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant project.


  Note: The following fields are mutually exclusive: `google_managed`, `self_managed`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Set of label tags associated with the AgentGateway resource.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Set of label tags associated with the AgentGateway resource.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Set of label tags associated with the AgentGateway resource.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. Name of the AgentGateway resource. It matches pattern `projects/*/locations/*/agentGateways/<agent_gateway>`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. Name of the AgentGateway resource. It matches pattern `projects/*/locations/*/agentGateways/<agent_gateway>`.
**Returns**

- (::String) --- Identifier. Name of the AgentGateway resource. It matches pattern `projects/*/locations/*/agentGateways/<agent_gateway>`.

### #network_config

    def network_config() -> ::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig

**Returns**

- ([::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-NetworkConfig)) --- Optional. Network configuration for the AgentGateway.

### #network_config=

    def network_config=(value) -> ::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig

**Parameter**

- **value** ([::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-NetworkConfig)) --- Optional. Network configuration for the AgentGateway.
**Returns**

- ([::Google::Cloud::NetworkServices::V1::AgentGateway::NetworkConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-NetworkConfig)) --- Optional. Network configuration for the AgentGateway.

### #protocols

    def protocols() -> ::Array<::Google::Cloud::NetworkServices::V1::AgentGateway::Protocol>

**Returns**

- (::Array\<[::Google::Cloud::NetworkServices::V1::AgentGateway::Protocol](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-Protocol)\>) --- Optional. Deprecated.

### #protocols=

    def protocols=(value) -> ::Array<::Google::Cloud::NetworkServices::V1::AgentGateway::Protocol>

**Parameter**

- **value** (::Array\<[::Google::Cloud::NetworkServices::V1::AgentGateway::Protocol](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-Protocol)\>) --- Optional. Deprecated.
**Returns**

- (::Array\<[::Google::Cloud::NetworkServices::V1::AgentGateway::Protocol](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-Protocol)\>) --- Optional. Deprecated.

### #registries

    def registries() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format `//agentregistry.googleapis.com/projects/{project}/locations/{location}/`

### #registries=

    def registries=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format `//agentregistry.googleapis.com/projects/{project}/locations/{location}/`
**Returns**

- (::Array\<::String\>) --- Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format `//agentregistry.googleapis.com/projects/{project}/locations/{location}/`

### #self_managed

    def self_managed() -> ::Google::Cloud::NetworkServices::V1::AgentGateway::SelfManaged

**Returns**

- ([::Google::Cloud::NetworkServices::V1::AgentGateway::SelfManaged](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-SelfManaged)) --- Optional. Attach to existing Application Load Balancers or Secure Web Proxies.


  Note: The following fields are mutually exclusive: `self_managed`, `google_managed`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #self_managed=

    def self_managed=(value) -> ::Google::Cloud::NetworkServices::V1::AgentGateway::SelfManaged

**Parameter**

- **value** ([::Google::Cloud::NetworkServices::V1::AgentGateway::SelfManaged](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-SelfManaged)) --- Optional. Attach to existing Application Load Balancers or Secure Web Proxies.


  Note: The following fields are mutually exclusive: `self_managed`, `google_managed`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::NetworkServices::V1::AgentGateway::SelfManaged](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-AgentGateway-SelfManaged)) --- Optional. Attach to existing Application Load Balancers or Secure Web Proxies.


  Note: The following fields are mutually exclusive: `self_managed`, `google_managed`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The timestamp when the resource was updated.