Record Class CatalogNegotiatedContract
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.CatalogNegotiatedContract
@Generated("copilot-sdk-codegen")
public record CatalogNegotiatedContract(Long runtimeProtocolVersion, List<CatalogCapability> grantedCapabilities)
extends Record
The protocol version and capability set the runtime actually honoured for a successful catalog operation.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCatalogNegotiatedContract(Long runtimeProtocolVersion, List<CatalogCapability> grantedCapabilities) Creates an instance of aCatalogNegotiatedContractrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegrantedCapabilitiesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theruntimeProtocolVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CatalogNegotiatedContract
public CatalogNegotiatedContract(Long runtimeProtocolVersion, List<CatalogCapability> grantedCapabilities) Creates an instance of aCatalogNegotiatedContractrecord class.- Parameters:
runtimeProtocolVersion- the value for theruntimeProtocolVersionrecord componentgrantedCapabilities- the value for thegrantedCapabilitiesrecord component
-
-
Method Details
-
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). -
runtimeProtocolVersion
Returns the value of theruntimeProtocolVersionrecord component.- Returns:
- the value of the
runtimeProtocolVersionrecord component
-
grantedCapabilities
Returns the value of thegrantedCapabilitiesrecord component.- Returns:
- the value of the
grantedCapabilitiesrecord component
-