Class: Google::Apis::AgentregistryV1alpha::Protocol
- Inherits:
-
Object
- Object
- Google::Apis::AgentregistryV1alpha::Protocol
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/agentregistry_v1alpha/classes.rb,
lib/google/apis/agentregistry_v1alpha/representations.rb,
lib/google/apis/agentregistry_v1alpha/representations.rb
Overview
Represents the protocol of an Agent.
Instance Attribute Summary collapse
-
#interfaces ⇒ Array<Google::Apis::AgentregistryV1alpha::Interface>
Output only.
-
#protocol_version ⇒ String
Output only.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Protocol
constructor
A new instance of Protocol.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Protocol
Returns a new instance of Protocol.
980 981 982 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 980 def initialize(**args) update!(**args) end |
Instance Attribute Details
#interfaces ⇒ Array<Google::Apis::AgentregistryV1alpha::Interface>
Output only. The connection details for the Agent.
Corresponds to the JSON property interfaces
967 968 969 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 967 def interfaces @interfaces end |
#protocol_version ⇒ String
Output only. The version of the protocol, for example, the A2A Agent Card
version.
Corresponds to the JSON property protocolVersion
973 974 975 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 973 def protocol_version @protocol_version end |
#type ⇒ String
Output only. The type of the protocol.
Corresponds to the JSON property type
978 979 980 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 978 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
985 986 987 988 989 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 985 def update!(**args) @interfaces = args[:interfaces] if args.key?(:interfaces) @protocol_version = args[:protocol_version] if args.key?(:protocol_version) @type = args[:type] if args.key?(:type) end |