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.



980
981
982
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 980

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



967
968
969
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 967

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)


973
974
975
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 973

def protocol_version
  @protocol_version
end

#typeString

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

Returns:

  • (String)


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