Class UCPService

java.lang.Object
io.deeplumen.ucp.models.discovery.UCPService

@Generated("jsonschema2pojo") public class UCPService extends Object
UCP Service

Schema for UCP service definitions. A service defines the API surface for a vertical (shopping, common, etc.) with transport bindings.

  • Constructor Details

    • UCPService

      public UCPService()
  • Method Details

    • getVersion

      public String getVersion()
      UCP protocol version in YYYY-MM-DD format. (Required)
    • setVersion

      public void setVersion(String version)
      UCP protocol version in YYYY-MM-DD format. (Required)
    • withVersion

      public UCPService withVersion(String version)
    • getSpec

      public URI getSpec()
      URL to service documentation. Origin MUST match namespace authority. (Required)
    • setSpec

      public void setSpec(URI spec)
      URL to service documentation. Origin MUST match namespace authority. (Required)
    • withSpec

      public UCPService withSpec(URI spec)
    • getRest

      public Rest getRest()
      REST transport binding
    • setRest

      public void setRest(Rest rest)
      REST transport binding
    • withRest

      public UCPService withRest(Rest rest)
    • getMcp

      public Mcp getMcp()
      MCP transport binding
    • setMcp

      public void setMcp(Mcp mcp)
      MCP transport binding
    • withMcp

      public UCPService withMcp(Mcp mcp)
    • getA2a

      public A2a getA2a()
      A2A transport binding
    • setA2a

      public void setA2a(A2a a2a)
      A2A transport binding
    • withA2a

      public UCPService withA2a(A2a a2a)
    • getEmbedded

      public Embedded getEmbedded()
      Embedded transport binding (JSON-RPC 2.0 over postMessage). Unlike REST/MCP, the endpoint is per-capability (i.e. per-checkout via continue_url), not per-service.
    • setEmbedded

      public void setEmbedded(Embedded embedded)
      Embedded transport binding (JSON-RPC 2.0 over postMessage). Unlike REST/MCP, the endpoint is per-capability (i.e. per-checkout via continue_url), not per-service.
    • withEmbedded

      public UCPService withEmbedded(Embedded embedded)
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • setAdditionalProperty

      public void setAdditionalProperty(String name, Object value)
    • withAdditionalProperty

      public UCPService withAdditionalProperty(String name, Object value)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object