Record Class A2aAgentCard.Interface
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.a2a.A2aAgentCard.Interface
- Record Components:
url- where the client sends requestsprotocolBinding-JSONRPC,GRPCorHTTP+JSONprotocolVersion- the A2A version spoken there,Major.Minortenant- the tenant a client sets on every request; may be null
- Enclosing class:
A2aAgentCard
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprotocolBindingrecord component.Returns the value of theprotocolVersionrecord component.tenant()Returns the value of thetenantrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.version()The version this module speaks there, or empty when it speaks none.
-
Constructor Details
-
Interface
Creates an instance of aInterfacerecord class.- Parameters:
url- the value for theurlrecord componentprotocolBinding- the value for theprotocolBindingrecord componentprotocolVersion- the value for theprotocolVersionrecord componenttenant- the value for thetenantrecord component
-
Interface
-
-
Method Details
-
version
The version this module speaks there, or empty when it speaks none. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
url
-
protocolBinding
Returns the value of theprotocolBindingrecord component.- Returns:
- the value of the
protocolBindingrecord component
-
protocolVersion
Returns the value of theprotocolVersionrecord component.- Returns:
- the value of the
protocolVersionrecord component
-
tenant
-