Record Class CatalogSearchPagination
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.CatalogSearchPagination
@Generated("copilot-sdk-codegen")
public record CatalogSearchPagination(String token, Long currentPage, Long pageSize, Long totalCount, CatalogSearchTotalCountRelation totalCountRelation, Long pageCount, Long maxPage, Boolean hasNextPage)
extends Record
Authority-reported navigation metadata, returned only to callers requiring catalog-search-pagination and only when a supported token is present. Tokenless first-page and continuation responses omit this object; no counts are inferred from candidates. The opaque token may be retained for previous or numbered navigation even when hasNextPage is false.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCatalogSearchPagination(String token, Long currentPage, Long pageSize, Long totalCount, CatalogSearchTotalCountRelation totalCountRelation, Long pageCount, Long maxPage, Boolean hasNextPage) Creates an instance of aCatalogSearchPaginationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentPagerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehasNextPagerecord component.maxPage()Returns the value of themaxPagerecord component.Returns the value of thepageCountrecord component.pageSize()Returns the value of thepageSizerecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalCountrecord component.Returns the value of thetotalCountRelationrecord component.
-
Constructor Details
-
CatalogSearchPagination
public CatalogSearchPagination(String token, Long currentPage, Long pageSize, Long totalCount, CatalogSearchTotalCountRelation totalCountRelation, Long pageCount, Long maxPage, Boolean hasNextPage) Creates an instance of aCatalogSearchPaginationrecord class.- Parameters:
token- the value for thetokenrecord componentcurrentPage- the value for thecurrentPagerecord componentpageSize- the value for thepageSizerecord componenttotalCount- the value for thetotalCountrecord componenttotalCountRelation- the value for thetotalCountRelationrecord componentpageCount- the value for thepageCountrecord componentmaxPage- the value for themaxPagerecord componenthasNextPage- the value for thehasNextPagerecord 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). -
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
currentPage
Returns the value of thecurrentPagerecord component.- Returns:
- the value of the
currentPagerecord component
-
pageSize
Returns the value of thepageSizerecord component.- Returns:
- the value of the
pageSizerecord component
-
totalCount
Returns the value of thetotalCountrecord component.- Returns:
- the value of the
totalCountrecord component
-
totalCountRelation
Returns the value of thetotalCountRelationrecord component.- Returns:
- the value of the
totalCountRelationrecord component
-
pageCount
Returns the value of thepageCountrecord component.- Returns:
- the value of the
pageCountrecord component
-
maxPage
Returns the value of themaxPagerecord component.- Returns:
- the value of the
maxPagerecord component
-
hasNextPage
Returns the value of thehasNextPagerecord component.- Returns:
- the value of the
hasNextPagerecord component
-