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.



1023
1024
1025
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1023

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



1010
1011
1012
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1010

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)


1016
1017
1018
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1016

def protocol_version
  @protocol_version
end

#typeString

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

Returns:

  • (String)


1021
1022
1023
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1021

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1028
1029
1030
1031
1032
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 1028

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