Class: Google::Apis::AgentregistryV1alpha::Protocol

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Protocol

Returns a new instance of Protocol.



1196
1197
1198
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1196

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#interfacesArray<Google::Apis::AgentregistryV1alpha::Interface>

Output only. The connection details for the Agent. Corresponds to the JSON property interfaces



1183
1184
1185
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1183

def interfaces
  @interfaces
end

#protocol_versionString

Output only. The version of the protocol, for example, the A2A Agent Card version. Corresponds to the JSON property protocolVersion

Returns:

  • (String)


1189
1190
1191
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1189

def protocol_version
  @protocol_version
end

#typeString

Output only. The type of the protocol. Corresponds to the JSON property type

Returns:

  • (String)


1194
1195
1196
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1194

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1201
1202
1203
1204
1205
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1201

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