-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
117 changed files
with
780 additions
and
110 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...arch-client-java-2/algoliasearch-core/com/algolia/model/BatchDictionaryEntriesParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...iasearch-client-java-2/algoliasearch-core/com/algolia/model/DictionarySettingsParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rch-client-java-2/algoliasearch-core/com/algolia/model/SearchDictionaryEntriesParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...search-core/com/algolia/model/Action.java → ...core/com/algolia/model/search/Action.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../com/algolia/model/AddApiKeyResponse.java → ...golia/model/search/AddApiKeyResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rch-core/com/algolia/model/Anchoring.java → ...e/com/algolia/model/search/Anchoring.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...search-core/com/algolia/model/ApiKey.java → ...core/com/algolia/model/search/ApiKey.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...com/algolia/model/AssignUserIdParams.java → ...olia/model/search/AssignUserIdParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...m/algolia/model/AutomaticFacetFilter.java → ...ia/model/search/AutomaticFacetFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...com/algolia/model/BaseBrowseResponse.java → ...olia/model/search/BaseBrowseResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../com/algolia/model/BaseIndexSettings.java → ...golia/model/search/BaseIndexSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e/com/algolia/model/BaseSearchParams.java → ...lgolia/model/search/BaseSearchParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...com/algolia/model/BaseSearchResponse.java → ...olia/model/search/BaseSearchResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../model/BaseSearchResponseFacetsStats.java → ...search/BaseSearchResponseFacetsStats.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...golia/model/BatchAssignUserIdsParams.java → ...odel/search/BatchAssignUserIdsParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 113 additions & 0 deletions
113
...rch-client-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntries.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
package com.algolia.model.search; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
/** The `batchDictionaryEntries` parameters. */ | ||
public class BatchDictionaryEntriesParams { | ||
|
||
@SerializedName("clearExistingDictionaryEntries") | ||
private Boolean clearExistingDictionaryEntries = false; | ||
|
||
@SerializedName("requests") | ||
private List<BatchDictionaryEntriesRequest> requests = new ArrayList<>(); | ||
|
||
public BatchDictionaryEntriesParams clearExistingDictionaryEntries( | ||
Boolean clearExistingDictionaryEntries | ||
) { | ||
this.clearExistingDictionaryEntries = clearExistingDictionaryEntries; | ||
return this; | ||
} | ||
|
||
/** | ||
* When `true`, start the batch by removing all the custom entries from the dictionary. | ||
* | ||
* @return clearExistingDictionaryEntries | ||
*/ | ||
@javax.annotation.Nullable | ||
public Boolean getClearExistingDictionaryEntries() { | ||
return clearExistingDictionaryEntries; | ||
} | ||
|
||
public void setClearExistingDictionaryEntries( | ||
Boolean clearExistingDictionaryEntries | ||
) { | ||
this.clearExistingDictionaryEntries = clearExistingDictionaryEntries; | ||
} | ||
|
||
public BatchDictionaryEntriesParams requests( | ||
List<BatchDictionaryEntriesRequest> requests | ||
) { | ||
this.requests = requests; | ||
return this; | ||
} | ||
|
||
public BatchDictionaryEntriesParams addRequestsItem( | ||
BatchDictionaryEntriesRequest requestsItem | ||
) { | ||
this.requests.add(requestsItem); | ||
return this; | ||
} | ||
|
||
/** | ||
* List of operations to batch. Each operation is described by an `action` and a `body`. | ||
* | ||
* @return requests | ||
*/ | ||
@javax.annotation.Nonnull | ||
public List<BatchDictionaryEntriesRequest> getRequests() { | ||
return requests; | ||
} | ||
|
||
public void setRequests(List<BatchDictionaryEntriesRequest> requests) { | ||
this.requests = requests; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
BatchDictionaryEntriesParams batchDictionaryEntriesParams = (BatchDictionaryEntriesParams) o; | ||
return ( | ||
Objects.equals( | ||
this.clearExistingDictionaryEntries, | ||
batchDictionaryEntriesParams.clearExistingDictionaryEntries | ||
) && | ||
Objects.equals(this.requests, batchDictionaryEntriesParams.requests) | ||
); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(clearExistingDictionaryEntries, requests); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class BatchDictionaryEntriesParams {\n"); | ||
sb | ||
.append(" clearExistingDictionaryEntries: ") | ||
.append(toIndentedString(clearExistingDictionaryEntries)) | ||
.append("\n"); | ||
sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces (except the first line). | ||
*/ | ||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |
113 changes: 113 additions & 0 deletions
113
...ient-java-2/algoliasearch-core/com/algolia/model/search/BatchDictionaryEntriesParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
package com.algolia.model.search; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
/** The `batchDictionaryEntries` parameters. */ | ||
public class BatchDictionaryEntriesParams { | ||
|
||
@SerializedName("clearExistingDictionaryEntries") | ||
private Boolean clearExistingDictionaryEntries = false; | ||
|
||
@SerializedName("requests") | ||
private List<BatchDictionaryEntriesRequest> requests = new ArrayList<>(); | ||
|
||
public BatchDictionaryEntriesParams clearExistingDictionaryEntries( | ||
Boolean clearExistingDictionaryEntries | ||
) { | ||
this.clearExistingDictionaryEntries = clearExistingDictionaryEntries; | ||
return this; | ||
} | ||
|
||
/** | ||
* When `true`, start the batch by removing all the custom entries from the dictionary. | ||
* | ||
* @return clearExistingDictionaryEntries | ||
*/ | ||
@javax.annotation.Nullable | ||
public Boolean getClearExistingDictionaryEntries() { | ||
return clearExistingDictionaryEntries; | ||
} | ||
|
||
public void setClearExistingDictionaryEntries( | ||
Boolean clearExistingDictionaryEntries | ||
) { | ||
this.clearExistingDictionaryEntries = clearExistingDictionaryEntries; | ||
} | ||
|
||
public BatchDictionaryEntriesParams requests( | ||
List<BatchDictionaryEntriesRequest> requests | ||
) { | ||
this.requests = requests; | ||
return this; | ||
} | ||
|
||
public BatchDictionaryEntriesParams addRequestsItem( | ||
BatchDictionaryEntriesRequest requestsItem | ||
) { | ||
this.requests.add(requestsItem); | ||
return this; | ||
} | ||
|
||
/** | ||
* List of operations to batch. Each operation is described by an `action` and a `body`. | ||
* | ||
* @return requests | ||
*/ | ||
@javax.annotation.Nonnull | ||
public List<BatchDictionaryEntriesRequest> getRequests() { | ||
return requests; | ||
} | ||
|
||
public void setRequests(List<BatchDictionaryEntriesRequest> requests) { | ||
this.requests = requests; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
BatchDictionaryEntriesParams batchDictionaryEntriesParams = (BatchDictionaryEntriesParams) o; | ||
return ( | ||
Objects.equals( | ||
this.clearExistingDictionaryEntries, | ||
batchDictionaryEntriesParams.clearExistingDictionaryEntries | ||
) && | ||
Objects.equals(this.requests, batchDictionaryEntriesParams.requests) | ||
); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(clearExistingDictionaryEntries, requests); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class BatchDictionaryEntriesParams {\n"); | ||
sb | ||
.append(" clearExistingDictionaryEntries: ") | ||
.append(toIndentedString(clearExistingDictionaryEntries)) | ||
.append("\n"); | ||
sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces (except the first line). | ||
*/ | ||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
.../model/BatchDictionaryEntriesRequest.java → ...search/BatchDictionaryEntriesRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...h-core/com/algolia/model/BatchParams.java → ...com/algolia/model/search/BatchParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...core/com/algolia/model/BatchResponse.java → ...m/algolia/model/search/BatchResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e/com/algolia/model/BatchWriteParams.java → ...lgolia/model/search/BatchWriteParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...core/com/algolia/model/BrowseRequest.java → ...m/algolia/model/search/BrowseRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ore/com/algolia/model/BrowseResponse.java → .../algolia/model/search/BrowseResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e/com/algolia/model/BuiltInOperation.java → ...lgolia/model/search/BuiltInOperation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rch-core/com/algolia/model/Condition.java → ...e/com/algolia/model/search/Condition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...h-core/com/algolia/model/Consequence.java → ...com/algolia/model/search/Consequence.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...re/com/algolia/model/ConsequenceHide.java → ...algolia/model/search/ConsequenceHide.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../com/algolia/model/ConsequenceParams.java → ...golia/model/search/ConsequenceParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...re/com/algolia/model/CreatedAtObject.java → ...algolia/model/search/CreatedAtObject.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../com/algolia/model/CreatedAtResponse.java → ...golia/model/search/CreatedAtResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.