Record Class CatalogSearchParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.CatalogSearchParams
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record CatalogSearchParams(CatalogClientContract contract, String query, Long limit, List<CatalogCandidateKind> kinds, CatalogSearchPage page)
extends Record
A bounded catalog search. Both the query length and the result count are capped by the schema so a caller cannot request an unbounded scan.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCatalogSearchParams(CatalogClientContract contract, String query, Long limit, List<CatalogCandidateKind> kinds, CatalogSearchPage page) Creates an instance of aCatalogSearchParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontract()Returns the value of thecontractrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kinds()Returns the value of thekindsrecord component.limit()Returns the value of thelimitrecord component.page()Returns the value of thepagerecord component.query()Returns the value of thequeryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CatalogSearchParams
public CatalogSearchParams(CatalogClientContract contract, String query, Long limit, List<CatalogCandidateKind> kinds, CatalogSearchPage page) Creates an instance of aCatalogSearchParamsrecord class.- Parameters:
contract- the value for thecontractrecord componentquery- the value for thequeryrecord componentlimit- the value for thelimitrecord componentkinds- the value for thekindsrecord componentpage- the value for thepagerecord 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). -
contract
Returns the value of thecontractrecord component.- Returns:
- the value of the
contractrecord component
-
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
kinds
Returns the value of thekindsrecord component.- Returns:
- the value of the
kindsrecord component
-
page
Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-