Skip to content

Commit 510169a

Browse files
algolia-botsbellonemillotp
committed
feat(specs): add useImagesObjects property in commercetools source input (generated)
algolia/api-clients-automation#5586 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Sylvain Bellone <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 3620534 commit 510169a

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

algoliasearch/src/main/java/com/algolia/model/ingestion/SourceCommercetools.java

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ public class SourceCommercetools implements SourceInput {
3131
@JsonProperty("productQueryPredicate")
3232
private String productQueryPredicate;
3333

34+
@JsonProperty("useImagesObjects")
35+
private Boolean useImagesObjects;
36+
3437
@JsonProperty("customFields")
3538
private CommercetoolsCustomFields customFields;
3639

@@ -122,6 +125,20 @@ public String getProductQueryPredicate() {
122125
return productQueryPredicate;
123126
}
124127

128+
public SourceCommercetools setUseImagesObjects(Boolean useImagesObjects) {
129+
this.useImagesObjects = useImagesObjects;
130+
return this;
131+
}
132+
133+
/**
134+
* When set to true, the connector indexes objects with all images attributes instead of only the
135+
* URLs.
136+
*/
137+
@javax.annotation.Nullable
138+
public Boolean getUseImagesObjects() {
139+
return useImagesObjects;
140+
}
141+
125142
public SourceCommercetools setCustomFields(CommercetoolsCustomFields customFields) {
126143
this.customFields = customFields;
127144
return this;
@@ -149,13 +166,14 @@ public boolean equals(Object o) {
149166
Objects.equals(this.projectKey, sourceCommercetools.projectKey) &&
150167
Objects.equals(this.fallbackIsInStockValue, sourceCommercetools.fallbackIsInStockValue) &&
151168
Objects.equals(this.productQueryPredicate, sourceCommercetools.productQueryPredicate) &&
169+
Objects.equals(this.useImagesObjects, sourceCommercetools.useImagesObjects) &&
152170
Objects.equals(this.customFields, sourceCommercetools.customFields)
153171
);
154172
}
155173

156174
@Override
157175
public int hashCode() {
158-
return Objects.hash(storeKeys, locales, url, projectKey, fallbackIsInStockValue, productQueryPredicate, customFields);
176+
return Objects.hash(storeKeys, locales, url, projectKey, fallbackIsInStockValue, productQueryPredicate, useImagesObjects, customFields);
159177
}
160178

161179
@Override
@@ -168,6 +186,7 @@ public String toString() {
168186
sb.append(" projectKey: ").append(toIndentedString(projectKey)).append("\n");
169187
sb.append(" fallbackIsInStockValue: ").append(toIndentedString(fallbackIsInStockValue)).append("\n");
170188
sb.append(" productQueryPredicate: ").append(toIndentedString(productQueryPredicate)).append("\n");
189+
sb.append(" useImagesObjects: ").append(toIndentedString(useImagesObjects)).append("\n");
171190
sb.append(" customFields: ").append(toIndentedString(customFields)).append("\n");
172191
sb.append("}");
173192
return sb.toString();

algoliasearch/src/main/java/com/algolia/model/ingestion/SourceUpdateCommercetools.java

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public class SourceUpdateCommercetools implements SourceUpdateInput {
2828
@JsonProperty("productQueryPredicate")
2929
private String productQueryPredicate;
3030

31+
@JsonProperty("useImagesObjects")
32+
private Boolean useImagesObjects;
33+
3134
@JsonProperty("customFields")
3235
private CommercetoolsCustomFields customFields;
3336

@@ -108,6 +111,20 @@ public String getProductQueryPredicate() {
108111
return productQueryPredicate;
109112
}
110113

114+
public SourceUpdateCommercetools setUseImagesObjects(Boolean useImagesObjects) {
115+
this.useImagesObjects = useImagesObjects;
116+
return this;
117+
}
118+
119+
/**
120+
* When set to true, the connector indexes objects with all images attributes instead of only the
121+
* URLs.
122+
*/
123+
@javax.annotation.Nullable
124+
public Boolean getUseImagesObjects() {
125+
return useImagesObjects;
126+
}
127+
111128
public SourceUpdateCommercetools setCustomFields(CommercetoolsCustomFields customFields) {
112129
this.customFields = customFields;
113130
return this;
@@ -134,13 +151,14 @@ public boolean equals(Object o) {
134151
Objects.equals(this.url, sourceUpdateCommercetools.url) &&
135152
Objects.equals(this.fallbackIsInStockValue, sourceUpdateCommercetools.fallbackIsInStockValue) &&
136153
Objects.equals(this.productQueryPredicate, sourceUpdateCommercetools.productQueryPredicate) &&
154+
Objects.equals(this.useImagesObjects, sourceUpdateCommercetools.useImagesObjects) &&
137155
Objects.equals(this.customFields, sourceUpdateCommercetools.customFields)
138156
);
139157
}
140158

141159
@Override
142160
public int hashCode() {
143-
return Objects.hash(storeKeys, locales, url, fallbackIsInStockValue, productQueryPredicate, customFields);
161+
return Objects.hash(storeKeys, locales, url, fallbackIsInStockValue, productQueryPredicate, useImagesObjects, customFields);
144162
}
145163

146164
@Override
@@ -152,6 +170,7 @@ public String toString() {
152170
sb.append(" url: ").append(toIndentedString(url)).append("\n");
153171
sb.append(" fallbackIsInStockValue: ").append(toIndentedString(fallbackIsInStockValue)).append("\n");
154172
sb.append(" productQueryPredicate: ").append(toIndentedString(productQueryPredicate)).append("\n");
173+
sb.append(" useImagesObjects: ").append(toIndentedString(useImagesObjects)).append("\n");
155174
sb.append(" customFields: ").append(toIndentedString(customFields)).append("\n");
156175
sb.append("}");
157176
return sb.toString();

0 commit comments

Comments
 (0)