-
Notifications
You must be signed in to change notification settings - Fork 5
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
nick
committed
Mar 7, 2024
1 parent
6787fd9
commit 5e05c60
Showing
6 changed files
with
215 additions
and
3 deletions.
There are no files selected for viewing
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
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
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,16 @@ | ||
|
||
|
||
# ReplaceDocumentRequest | ||
|
||
Object with document data. | ||
|
||
## Properties | ||
|
||
| Name | Type | Description | Notes | | ||
|------------ | ------------- | ------------- | -------------| | ||
|**doc** | **Map<String, Object>** | Object with document data | | | ||
|
||
|
||
|
||
|
||
|
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
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
122 changes: 122 additions & 0 deletions
122
src/main/java/com/manticoresearch/client/model/ReplaceDocumentRequest.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,122 @@ | ||
/* | ||
* Manticore Search Client | ||
* Сlient for Manticore Search. | ||
* | ||
* The version of the OpenAPI document: 3.3.1 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
|
||
package com.manticoresearch.client.model; | ||
|
||
import java.util.Objects; | ||
import java.util.Map; | ||
import java.util.HashMap; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonTypeName; | ||
import com.fasterxml.jackson.annotation.JsonValue; | ||
import java.util.Arrays; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.manticoresearch.client.JSON; | ||
|
||
|
||
/** | ||
* Object with document data. | ||
*/ | ||
@JsonPropertyOrder({ | ||
ReplaceDocumentRequest.JSON_PROPERTY_DOC | ||
}) | ||
@JsonTypeName("replaceDocumentRequest") | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-07T07:34:08.520168146Z[Etc/UTC]") | ||
public class ReplaceDocumentRequest { | ||
public static final String JSON_PROPERTY_DOC = "doc"; | ||
private Map<String, Object> doc = new HashMap<>(); | ||
|
||
public ReplaceDocumentRequest() { | ||
} | ||
|
||
public ReplaceDocumentRequest doc(Map<String, Object> doc) { | ||
this.doc = doc; | ||
return this; | ||
} | ||
|
||
public ReplaceDocumentRequest putDocItem(String key, Object docItem) { | ||
if (this.doc == null) { | ||
this.doc = new HashMap<>(); | ||
} | ||
this.doc.put(key, docItem); | ||
return this; | ||
} | ||
|
||
/** | ||
* Object with document data | ||
* @return doc | ||
**/ | ||
@jakarta.annotation.Nonnull | ||
@JsonProperty(JSON_PROPERTY_DOC) | ||
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) | ||
|
||
public Map<String, Object> getDoc() { | ||
return doc; | ||
} | ||
|
||
|
||
@JsonProperty(JSON_PROPERTY_DOC) | ||
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) | ||
public void setDoc(Map<String, Object> doc) { | ||
this.doc = doc; | ||
} | ||
|
||
|
||
/** | ||
* Return true if this replaceDocumentRequest object is equal to o. | ||
*/ | ||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
ReplaceDocumentRequest replaceDocumentRequest = (ReplaceDocumentRequest) o; | ||
return Objects.equals(this.doc, replaceDocumentRequest.doc); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(doc); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class ReplaceDocumentRequest {\n"); | ||
sb.append(" doc: ").append(toIndentedString(doc)).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 "); | ||
} | ||
|
||
} | ||
|