@@ -3381,7 +3381,8 @@ public String retrieveFacetConfigurationsV2(
33813381 HttpUrl .Builder urlBuilder = this .makeUrl (Arrays .asList ("v2" , "facets" )).newBuilder ();
33823382
33833383 urlBuilder .addQueryParameter (
3384- "section" , (section != null && !section .trim ().isEmpty ()) ? section : DEFAULT_SECTION );
3384+ "section" ,
3385+ (section != null && !section .trim ().isEmpty ()) ? section : DEFAULT_SECTION );
33853386
33863387 if (page != null && page > 0 ) {
33873388 urlBuilder .addQueryParameter ("page" , page .toString ());
@@ -3413,8 +3414,8 @@ public String retrieveFacetConfigurationsV2(
34133414 * @return returns the facet configurations as JSON string
34143415 * @throws ConstructorException if the request is invalid
34153416 */
3416- public String retrieveFacetConfigurationsV2 (String section , Integer page , Integer numResultsPerPage )
3417- throws ConstructorException {
3417+ public String retrieveFacetConfigurationsV2 (
3418+ String section , Integer page , Integer numResultsPerPage ) throws ConstructorException {
34183419 return retrieveFacetConfigurationsV2 (section , page , numResultsPerPage , null );
34193420 }
34203421
@@ -3447,7 +3448,8 @@ public String retrieveFacetConfigurationV2(String facetName, String section)
34473448 HttpUrl url =
34483449 this .makeUrl (Arrays .asList ("v2" , "facets" , facetName ))
34493450 .newBuilder ()
3450- .addQueryParameter ("section" , section != null ? section : DEFAULT_SECTION )
3451+ .addQueryParameter (
3452+ "section" , section != null ? section : DEFAULT_SECTION )
34513453 .build ();
34523454
34533455 Request request = this .makeAuthorizedRequestBuilder ().url (url ).get ().build ();
@@ -3480,8 +3482,8 @@ public String retrieveFacetConfigurationV2(String facetName) throws ConstructorE
34803482 * @throws IllegalArgumentException if request is null
34813483 * @throws ConstructorException if the request fails
34823484 */
3483- public String createFacetConfigurationV2 (FacetConfigurationV2Request facetConfigurationV2Request )
3484- throws ConstructorException {
3485+ public String createFacetConfigurationV2 (
3486+ FacetConfigurationV2Request facetConfigurationV2Request ) throws ConstructorException {
34853487 if (facetConfigurationV2Request == null ) {
34863488 throw new IllegalArgumentException ("facetConfigurationV2Request is required" );
34873489 }
@@ -3514,8 +3516,8 @@ public String createFacetConfigurationV2(FacetConfigurationV2Request facetConfig
35143516 * @throws IllegalArgumentException if request is null or facetName is missing
35153517 * @throws ConstructorException if the request fails
35163518 */
3517- public String replaceFacetConfigurationV2 (FacetConfigurationV2Request facetConfigurationV2Request )
3518- throws ConstructorException {
3519+ public String replaceFacetConfigurationV2 (
3520+ FacetConfigurationV2Request facetConfigurationV2Request ) throws ConstructorException {
35193521 if (facetConfigurationV2Request == null ) {
35203522 throw new IllegalArgumentException ("facetConfigurationV2Request is required" );
35213523 }
@@ -3553,8 +3555,8 @@ public String replaceFacetConfigurationV2(FacetConfigurationV2Request facetConfi
35533555 * @throws IllegalArgumentException if request is null or facetName is missing
35543556 * @throws ConstructorException if the request fails
35553557 */
3556- public String updateFacetConfigurationV2 (FacetConfigurationV2Request facetConfigurationV2Request )
3557- throws ConstructorException {
3558+ public String updateFacetConfigurationV2 (
3559+ FacetConfigurationV2Request facetConfigurationV2Request ) throws ConstructorException {
35583560 if (facetConfigurationV2Request == null ) {
35593561 throw new IllegalArgumentException ("facetConfigurationV2Request is required" );
35603562 }
@@ -3592,8 +3594,8 @@ public String updateFacetConfigurationV2(FacetConfigurationV2Request facetConfig
35923594 * @throws IllegalArgumentException if request is null
35933595 * @throws ConstructorException if the request fails
35943596 */
3595- public String updateFacetConfigurationsV2 (FacetConfigurationsV2Request facetConfigurationsV2Request )
3596- throws ConstructorException {
3597+ public String updateFacetConfigurationsV2 (
3598+ FacetConfigurationsV2Request facetConfigurationsV2Request ) throws ConstructorException {
35973599 if (facetConfigurationsV2Request == null ) {
35983600 throw new IllegalArgumentException ("facetConfigurationsV2Request is required" );
35993601 }
@@ -3628,8 +3630,8 @@ public String updateFacetConfigurationsV2(FacetConfigurationsV2Request facetConf
36283630 * @throws IllegalArgumentException if request is null
36293631 * @throws ConstructorException if the request fails
36303632 */
3631- public String replaceFacetConfigurationsV2 (FacetConfigurationsV2Request facetConfigurationsV2Request )
3632- throws ConstructorException {
3633+ public String replaceFacetConfigurationsV2 (
3634+ FacetConfigurationsV2Request facetConfigurationsV2Request ) throws ConstructorException {
36333635 if (facetConfigurationsV2Request == null ) {
36343636 throw new IllegalArgumentException ("facetConfigurationsV2Request is required" );
36353637 }
@@ -3675,7 +3677,8 @@ public String deleteFacetConfigurationV2(String facetName, String section)
36753677 HttpUrl url =
36763678 this .makeUrl (Arrays .asList ("v2" , "facets" , facetName ))
36773679 .newBuilder ()
3678- .addQueryParameter ("section" , section != null ? section : DEFAULT_SECTION )
3680+ .addQueryParameter (
3681+ "section" , section != null ? section : DEFAULT_SECTION )
36793682 .build ();
36803683
36813684 Request request = this .makeAuthorizedRequestBuilder ().url (url ).delete ().build ();
@@ -3708,8 +3711,8 @@ public String deleteFacetConfigurationV2(String facetName) throws ConstructorExc
37083711 * @throws IllegalArgumentException if request is null
37093712 * @throws ConstructorException if the request fails
37103713 */
3711- public String deleteFacetConfigurationV2 (FacetConfigurationV2Request facetConfigurationV2Request )
3712- throws ConstructorException {
3714+ public String deleteFacetConfigurationV2 (
3715+ FacetConfigurationV2Request facetConfigurationV2Request ) throws ConstructorException {
37133716 if (facetConfigurationV2Request == null ) {
37143717 throw new IllegalArgumentException ("facetConfigurationV2Request is required" );
37153718 }
@@ -3736,7 +3739,8 @@ public String retrieveSearchabilitiesV2(SearchabilitiesV2GetRequest request)
37363739 }
37373740
37383741 try {
3739- HttpUrl .Builder urlBuilder = this .makeUrl (Arrays .asList ("v2" , "searchabilities" )).newBuilder ();
3742+ HttpUrl .Builder urlBuilder =
3743+ this .makeUrl (Arrays .asList ("v2" , "searchabilities" )).newBuilder ();
37403744
37413745 urlBuilder .addQueryParameter ("section" , request .getSection ());
37423746
@@ -3747,17 +3751,21 @@ public String retrieveSearchabilitiesV2(SearchabilitiesV2GetRequest request)
37473751 urlBuilder .addQueryParameter (
37483752 "num_results_per_page" , request .getNumResultsPerPage ().toString ());
37493753 }
3750- if (request .getOffset () != null && request .getOffset () > 0 && request .getPage () == null ) {
3754+ if (request .getOffset () != null
3755+ && request .getOffset () > 0
3756+ && request .getPage () == null ) {
37513757 urlBuilder .addQueryParameter ("offset" , request .getOffset ().toString ());
37523758 }
37533759 if (request .getName () != null && !request .getName ().trim ().isEmpty ()) {
37543760 urlBuilder .addQueryParameter ("name" , request .getName ());
37553761 }
37563762 if (request .getFuzzySearchable () != null ) {
3757- urlBuilder .addQueryParameter ("fuzzy_searchable" , request .getFuzzySearchable ().toString ());
3763+ urlBuilder .addQueryParameter (
3764+ "fuzzy_searchable" , request .getFuzzySearchable ().toString ());
37583765 }
37593766 if (request .getExactSearchable () != null ) {
3760- urlBuilder .addQueryParameter ("exact_searchable" , request .getExactSearchable ().toString ());
3767+ urlBuilder .addQueryParameter (
3768+ "exact_searchable" , request .getExactSearchable ().toString ());
37613769 }
37623770 if (request .getDisplayable () != null ) {
37633771 urlBuilder .addQueryParameter ("displayable" , request .getDisplayable ().toString ());
@@ -3810,7 +3818,10 @@ public String retrieveSearchabilityV2(SearchabilityV2Request searchabilityV2Requ
38103818 try {
38113819 HttpUrl url =
38123820 this .makeUrl (
3813- Arrays .asList ("v2" , "searchabilities" , searchabilityV2Request .getName ()))
3821+ Arrays .asList (
3822+ "v2" ,
3823+ "searchabilities" ,
3824+ searchabilityV2Request .getName ()))
38143825 .newBuilder ()
38153826 .addQueryParameter ("section" , searchabilityV2Request .getSection ())
38163827 .build ();
@@ -3867,7 +3878,10 @@ public String createOrUpdateSearchabilityV2(SearchabilityV2Request searchability
38673878 try {
38683879 HttpUrl .Builder urlBuilder =
38693880 this .makeUrl (
3870- Arrays .asList ("v2" , "searchabilities" , searchabilityV2Request .getName ()))
3881+ Arrays .asList (
3882+ "v2" ,
3883+ "searchabilities" ,
3884+ searchabilityV2Request .getName ()))
38713885 .newBuilder ()
38723886 .addQueryParameter ("section" , searchabilityV2Request .getSection ());
38733887
@@ -3950,7 +3964,10 @@ public String deleteSearchabilityV2(SearchabilityV2Request searchabilityV2Reques
39503964 try {
39513965 HttpUrl .Builder urlBuilder =
39523966 this .makeUrl (
3953- Arrays .asList ("v2" , "searchabilities" , searchabilityV2Request .getName ()))
3967+ Arrays .asList (
3968+ "v2" ,
3969+ "searchabilities" ,
3970+ searchabilityV2Request .getName ()))
39543971 .newBuilder ()
39553972 .addQueryParameter ("section" , searchabilityV2Request .getSection ());
39563973
@@ -4033,7 +4050,8 @@ public String deleteSearchabilitiesV2(SearchabilitiesV2DeleteRequest request)
40334050 String params = new Gson ().toJson (bodyMap );
40344051 RequestBody httpBody =
40354052 RequestBody .create (params , MediaType .parse ("application/json; charset=utf-8" ));
4036- Request httpRequest = this .makeAuthorizedRequestBuilder ().url (url ).delete (httpBody ).build ();
4053+ Request httpRequest =
4054+ this .makeAuthorizedRequestBuilder ().url (url ).delete (httpBody ).build ();
40374055
40384056 Response response = client .newCall (httpRequest ).execute ();
40394057
0 commit comments