@@ -29,8 +29,8 @@ public class AddDocumentOptions extends GenericModel {
2929 private String collectionId ;
3030 private InputStream file ;
3131 private String filename ;
32- private String metadata ;
3332 private String fileContentType ;
33+ private String metadata ;
3434
3535 /**
3636 * Builder.
@@ -40,16 +40,16 @@ public static class Builder {
4040 private String collectionId ;
4141 private InputStream file ;
4242 private String filename ;
43- private String metadata ;
4443 private String fileContentType ;
44+ private String metadata ;
4545
4646 private Builder (AddDocumentOptions addDocumentOptions ) {
47- environmentId = addDocumentOptions .environmentId ;
48- collectionId = addDocumentOptions .collectionId ;
49- file = addDocumentOptions .file ;
50- filename = addDocumentOptions .filename ;
51- metadata = addDocumentOptions .metadata ;
52- fileContentType = addDocumentOptions .fileContentType ;
47+ this . environmentId = addDocumentOptions .environmentId ;
48+ this . collectionId = addDocumentOptions .collectionId ;
49+ this . file = addDocumentOptions .file ;
50+ this . filename = addDocumentOptions .filename ;
51+ this . fileContentType = addDocumentOptions .fileContentType ;
52+ this . metadata = addDocumentOptions .metadata ;
5353 }
5454
5555 /**
@@ -123,24 +123,24 @@ public Builder filename(String filename) {
123123 }
124124
125125 /**
126- * Set the metadata .
126+ * Set the fileContentType .
127127 *
128- * @param metadata the metadata
128+ * @param fileContentType the fileContentType
129129 * @return the AddDocumentOptions builder
130130 */
131- public Builder metadata (String metadata ) {
132- this .metadata = metadata ;
131+ public Builder fileContentType (String fileContentType ) {
132+ this .fileContentType = fileContentType ;
133133 return this ;
134134 }
135135
136136 /**
137- * Set the fileContentType .
137+ * Set the metadata .
138138 *
139- * @param fileContentType the fileContentType
139+ * @param metadata the metadata
140140 * @return the AddDocumentOptions builder
141141 */
142- public Builder fileContentType (String fileContentType ) {
143- this .fileContentType = fileContentType ;
142+ public Builder metadata (String metadata ) {
143+ this .metadata = metadata ;
144144 return this ;
145145 }
146146
@@ -168,8 +168,8 @@ private AddDocumentOptions(Builder builder) {
168168 collectionId = builder .collectionId ;
169169 file = builder .file ;
170170 filename = builder .filename ;
171- metadata = builder .metadata ;
172171 fileContentType = builder .fileContentType ;
172+ metadata = builder .metadata ;
173173 }
174174
175175 /**
@@ -206,8 +206,9 @@ public String collectionId() {
206206 /**
207207 * Gets the file.
208208 *
209- * The content of the document to ingest. The maximum supported file size is 50 megabytes. Files larger than 50
210- * megabytes is rejected.
209+ * The content of the document to ingest. The maximum supported file size when adding a file to a collection is 50
210+ * megabytes, the maximum supported file size when testing a confiruration is 1 megabyte. Files larger than the
211+ * supported size are rejected.
211212 *
212213 * @return the file
213214 */
@@ -226,6 +227,17 @@ public String filename() {
226227 return filename ;
227228 }
228229
230+ /**
231+ * Gets the fileContentType.
232+ *
233+ * The content type of file. Values for this parameter can be obtained from the HttpMediaType class.
234+ *
235+ * @return the fileContentType
236+ */
237+ public String fileContentType () {
238+ return fileContentType ;
239+ }
240+
229241 /**
230242 * Gets the metadata.
231243 *
@@ -242,15 +254,4 @@ public String filename() {
242254 public String metadata () {
243255 return metadata ;
244256 }
245-
246- /**
247- * Gets the fileContentType.
248- *
249- * The content type of file. Values for this parameter can be obtained from the HttpMediaType class.
250- *
251- * @return the fileContentType
252- */
253- public String fileContentType () {
254- return fileContentType ;
255- }
256257}
0 commit comments