-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_webscrape_request.go
692 lines (596 loc) · 22.6 KB
/
model_webscrape_request.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
/*
Carbon
Connect external data to LLMs, no matter the source.
API version: 1.0.0
*/
// Code generated by Konfig (https://konfigthis.com); DO NOT EDIT.
package carbon
import (
"encoding/json"
)
// WebscrapeRequest struct for WebscrapeRequest
type WebscrapeRequest struct {
Tags map[string]Tags1 `json:"tags,omitempty"`
Url string `json:"url"`
RecursionDepth NullableInt32 `json:"recursion_depth,omitempty"`
MaxPagesToScrape NullableInt32 `json:"max_pages_to_scrape,omitempty"`
ChunkSize NullableInt32 `json:"chunk_size,omitempty"`
ChunkOverlap NullableInt32 `json:"chunk_overlap,omitempty"`
SkipEmbeddingGeneration NullableBool `json:"skip_embedding_generation,omitempty"`
EnableAutoSync NullableBool `json:"enable_auto_sync,omitempty"`
GenerateSparseVectors NullableBool `json:"generate_sparse_vectors,omitempty"`
PrependFilenameToChunks NullableBool `json:"prepend_filename_to_chunks,omitempty"`
HtmlTagsToSkip []string `json:"html_tags_to_skip,omitempty"`
CssClassesToSkip []string `json:"css_classes_to_skip,omitempty"`
CssSelectorsToSkip []string `json:"css_selectors_to_skip,omitempty"`
EmbeddingModel *EmbeddingGenerators `json:"embedding_model,omitempty"`
}
// NewWebscrapeRequest instantiates a new WebscrapeRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewWebscrapeRequest(url string) *WebscrapeRequest {
this := WebscrapeRequest{}
this.Url = url
var recursionDepth int32 = 3
this.RecursionDepth = *NewNullableInt32(&recursionDepth)
var maxPagesToScrape int32 = 100
this.MaxPagesToScrape = *NewNullableInt32(&maxPagesToScrape)
var chunkSize int32 = 1500
this.ChunkSize = *NewNullableInt32(&chunkSize)
var chunkOverlap int32 = 20
this.ChunkOverlap = *NewNullableInt32(&chunkOverlap)
var skipEmbeddingGeneration bool = false
this.SkipEmbeddingGeneration = *NewNullableBool(&skipEmbeddingGeneration)
var enableAutoSync bool = false
this.EnableAutoSync = *NewNullableBool(&enableAutoSync)
var generateSparseVectors bool = false
this.GenerateSparseVectors = *NewNullableBool(&generateSparseVectors)
var prependFilenameToChunks bool = false
this.PrependFilenameToChunks = *NewNullableBool(&prependFilenameToChunks)
return &this
}
// NewWebscrapeRequestWithDefaults instantiates a new WebscrapeRequest object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewWebscrapeRequestWithDefaults() *WebscrapeRequest {
this := WebscrapeRequest{}
var recursionDepth int32 = 3
this.RecursionDepth = *NewNullableInt32(&recursionDepth)
var maxPagesToScrape int32 = 100
this.MaxPagesToScrape = *NewNullableInt32(&maxPagesToScrape)
var chunkSize int32 = 1500
this.ChunkSize = *NewNullableInt32(&chunkSize)
var chunkOverlap int32 = 20
this.ChunkOverlap = *NewNullableInt32(&chunkOverlap)
var skipEmbeddingGeneration bool = false
this.SkipEmbeddingGeneration = *NewNullableBool(&skipEmbeddingGeneration)
var enableAutoSync bool = false
this.EnableAutoSync = *NewNullableBool(&enableAutoSync)
var generateSparseVectors bool = false
this.GenerateSparseVectors = *NewNullableBool(&generateSparseVectors)
var prependFilenameToChunks bool = false
this.PrependFilenameToChunks = *NewNullableBool(&prependFilenameToChunks)
return &this
}
// GetTags returns the Tags field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WebscrapeRequest) GetTags() map[string]Tags1 {
if o == nil {
var ret map[string]Tags1
return ret
}
return o.Tags
}
// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *WebscrapeRequest) GetTagsOk() (*map[string]Tags1, bool) {
if o == nil || isNil(o.Tags) {
return nil, false
}
return &o.Tags, true
}
// HasTags returns a boolean if a field has been set.
func (o *WebscrapeRequest) HasTags() bool {
if o != nil && isNil(o.Tags) {
return true
}
return false
}
// SetTags gets a reference to the given map[string]Tags1 and assigns it to the Tags field.
func (o *WebscrapeRequest) SetTags(v map[string]Tags1) {
o.Tags = v
}
// GetUrl returns the Url field value
func (o *WebscrapeRequest) GetUrl() string {
if o == nil {
var ret string
return ret
}
return o.Url
}
// GetUrlOk returns a tuple with the Url field value
// and a boolean to check if the value has been set.
func (o *WebscrapeRequest) GetUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Url, true
}
// SetUrl sets field value
func (o *WebscrapeRequest) SetUrl(v string) {
o.Url = v
}
// GetRecursionDepth returns the RecursionDepth field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WebscrapeRequest) GetRecursionDepth() int32 {
if o == nil || isNil(o.RecursionDepth.Get()) {
var ret int32
return ret
}
return *o.RecursionDepth.Get()
}
// GetRecursionDepthOk returns a tuple with the RecursionDepth field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *WebscrapeRequest) GetRecursionDepthOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.RecursionDepth.Get(), o.RecursionDepth.IsSet()
}
// HasRecursionDepth returns a boolean if a field has been set.
func (o *WebscrapeRequest) HasRecursionDepth() bool {
if o != nil && o.RecursionDepth.IsSet() {
return true
}
return false
}
// SetRecursionDepth gets a reference to the given NullableInt32 and assigns it to the RecursionDepth field.
func (o *WebscrapeRequest) SetRecursionDepth(v int32) {
o.RecursionDepth.Set(&v)
}
// SetRecursionDepthNil sets the value for RecursionDepth to be an explicit nil
func (o *WebscrapeRequest) SetRecursionDepthNil() {
o.RecursionDepth.Set(nil)
}
// UnsetRecursionDepth ensures that no value is present for RecursionDepth, not even an explicit nil
func (o *WebscrapeRequest) UnsetRecursionDepth() {
o.RecursionDepth.Unset()
}
// GetMaxPagesToScrape returns the MaxPagesToScrape field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WebscrapeRequest) GetMaxPagesToScrape() int32 {
if o == nil || isNil(o.MaxPagesToScrape.Get()) {
var ret int32
return ret
}
return *o.MaxPagesToScrape.Get()
}
// GetMaxPagesToScrapeOk returns a tuple with the MaxPagesToScrape field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *WebscrapeRequest) GetMaxPagesToScrapeOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.MaxPagesToScrape.Get(), o.MaxPagesToScrape.IsSet()
}
// HasMaxPagesToScrape returns a boolean if a field has been set.
func (o *WebscrapeRequest) HasMaxPagesToScrape() bool {
if o != nil && o.MaxPagesToScrape.IsSet() {
return true
}
return false
}
// SetMaxPagesToScrape gets a reference to the given NullableInt32 and assigns it to the MaxPagesToScrape field.
func (o *WebscrapeRequest) SetMaxPagesToScrape(v int32) {
o.MaxPagesToScrape.Set(&v)
}
// SetMaxPagesToScrapeNil sets the value for MaxPagesToScrape to be an explicit nil
func (o *WebscrapeRequest) SetMaxPagesToScrapeNil() {
o.MaxPagesToScrape.Set(nil)
}
// UnsetMaxPagesToScrape ensures that no value is present for MaxPagesToScrape, not even an explicit nil
func (o *WebscrapeRequest) UnsetMaxPagesToScrape() {
o.MaxPagesToScrape.Unset()
}
// GetChunkSize returns the ChunkSize field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WebscrapeRequest) GetChunkSize() int32 {
if o == nil || isNil(o.ChunkSize.Get()) {
var ret int32
return ret
}
return *o.ChunkSize.Get()
}
// GetChunkSizeOk returns a tuple with the ChunkSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *WebscrapeRequest) GetChunkSizeOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.ChunkSize.Get(), o.ChunkSize.IsSet()
}
// HasChunkSize returns a boolean if a field has been set.
func (o *WebscrapeRequest) HasChunkSize() bool {
if o != nil && o.ChunkSize.IsSet() {
return true
}
return false
}
// SetChunkSize gets a reference to the given NullableInt32 and assigns it to the ChunkSize field.
func (o *WebscrapeRequest) SetChunkSize(v int32) {
o.ChunkSize.Set(&v)
}
// SetChunkSizeNil sets the value for ChunkSize to be an explicit nil
func (o *WebscrapeRequest) SetChunkSizeNil() {
o.ChunkSize.Set(nil)
}
// UnsetChunkSize ensures that no value is present for ChunkSize, not even an explicit nil
func (o *WebscrapeRequest) UnsetChunkSize() {
o.ChunkSize.Unset()
}
// GetChunkOverlap returns the ChunkOverlap field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WebscrapeRequest) GetChunkOverlap() int32 {
if o == nil || isNil(o.ChunkOverlap.Get()) {
var ret int32
return ret
}
return *o.ChunkOverlap.Get()
}
// GetChunkOverlapOk returns a tuple with the ChunkOverlap field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *WebscrapeRequest) GetChunkOverlapOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.ChunkOverlap.Get(), o.ChunkOverlap.IsSet()
}
// HasChunkOverlap returns a boolean if a field has been set.
func (o *WebscrapeRequest) HasChunkOverlap() bool {
if o != nil && o.ChunkOverlap.IsSet() {
return true
}
return false
}
// SetChunkOverlap gets a reference to the given NullableInt32 and assigns it to the ChunkOverlap field.
func (o *WebscrapeRequest) SetChunkOverlap(v int32) {
o.ChunkOverlap.Set(&v)
}
// SetChunkOverlapNil sets the value for ChunkOverlap to be an explicit nil
func (o *WebscrapeRequest) SetChunkOverlapNil() {
o.ChunkOverlap.Set(nil)
}
// UnsetChunkOverlap ensures that no value is present for ChunkOverlap, not even an explicit nil
func (o *WebscrapeRequest) UnsetChunkOverlap() {
o.ChunkOverlap.Unset()
}
// GetSkipEmbeddingGeneration returns the SkipEmbeddingGeneration field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WebscrapeRequest) GetSkipEmbeddingGeneration() bool {
if o == nil || isNil(o.SkipEmbeddingGeneration.Get()) {
var ret bool
return ret
}
return *o.SkipEmbeddingGeneration.Get()
}
// GetSkipEmbeddingGenerationOk returns a tuple with the SkipEmbeddingGeneration field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *WebscrapeRequest) GetSkipEmbeddingGenerationOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.SkipEmbeddingGeneration.Get(), o.SkipEmbeddingGeneration.IsSet()
}
// HasSkipEmbeddingGeneration returns a boolean if a field has been set.
func (o *WebscrapeRequest) HasSkipEmbeddingGeneration() bool {
if o != nil && o.SkipEmbeddingGeneration.IsSet() {
return true
}
return false
}
// SetSkipEmbeddingGeneration gets a reference to the given NullableBool and assigns it to the SkipEmbeddingGeneration field.
func (o *WebscrapeRequest) SetSkipEmbeddingGeneration(v bool) {
o.SkipEmbeddingGeneration.Set(&v)
}
// SetSkipEmbeddingGenerationNil sets the value for SkipEmbeddingGeneration to be an explicit nil
func (o *WebscrapeRequest) SetSkipEmbeddingGenerationNil() {
o.SkipEmbeddingGeneration.Set(nil)
}
// UnsetSkipEmbeddingGeneration ensures that no value is present for SkipEmbeddingGeneration, not even an explicit nil
func (o *WebscrapeRequest) UnsetSkipEmbeddingGeneration() {
o.SkipEmbeddingGeneration.Unset()
}
// GetEnableAutoSync returns the EnableAutoSync field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WebscrapeRequest) GetEnableAutoSync() bool {
if o == nil || isNil(o.EnableAutoSync.Get()) {
var ret bool
return ret
}
return *o.EnableAutoSync.Get()
}
// GetEnableAutoSyncOk returns a tuple with the EnableAutoSync field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *WebscrapeRequest) GetEnableAutoSyncOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.EnableAutoSync.Get(), o.EnableAutoSync.IsSet()
}
// HasEnableAutoSync returns a boolean if a field has been set.
func (o *WebscrapeRequest) HasEnableAutoSync() bool {
if o != nil && o.EnableAutoSync.IsSet() {
return true
}
return false
}
// SetEnableAutoSync gets a reference to the given NullableBool and assigns it to the EnableAutoSync field.
func (o *WebscrapeRequest) SetEnableAutoSync(v bool) {
o.EnableAutoSync.Set(&v)
}
// SetEnableAutoSyncNil sets the value for EnableAutoSync to be an explicit nil
func (o *WebscrapeRequest) SetEnableAutoSyncNil() {
o.EnableAutoSync.Set(nil)
}
// UnsetEnableAutoSync ensures that no value is present for EnableAutoSync, not even an explicit nil
func (o *WebscrapeRequest) UnsetEnableAutoSync() {
o.EnableAutoSync.Unset()
}
// GetGenerateSparseVectors returns the GenerateSparseVectors field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WebscrapeRequest) GetGenerateSparseVectors() bool {
if o == nil || isNil(o.GenerateSparseVectors.Get()) {
var ret bool
return ret
}
return *o.GenerateSparseVectors.Get()
}
// GetGenerateSparseVectorsOk returns a tuple with the GenerateSparseVectors field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *WebscrapeRequest) GetGenerateSparseVectorsOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.GenerateSparseVectors.Get(), o.GenerateSparseVectors.IsSet()
}
// HasGenerateSparseVectors returns a boolean if a field has been set.
func (o *WebscrapeRequest) HasGenerateSparseVectors() bool {
if o != nil && o.GenerateSparseVectors.IsSet() {
return true
}
return false
}
// SetGenerateSparseVectors gets a reference to the given NullableBool and assigns it to the GenerateSparseVectors field.
func (o *WebscrapeRequest) SetGenerateSparseVectors(v bool) {
o.GenerateSparseVectors.Set(&v)
}
// SetGenerateSparseVectorsNil sets the value for GenerateSparseVectors to be an explicit nil
func (o *WebscrapeRequest) SetGenerateSparseVectorsNil() {
o.GenerateSparseVectors.Set(nil)
}
// UnsetGenerateSparseVectors ensures that no value is present for GenerateSparseVectors, not even an explicit nil
func (o *WebscrapeRequest) UnsetGenerateSparseVectors() {
o.GenerateSparseVectors.Unset()
}
// GetPrependFilenameToChunks returns the PrependFilenameToChunks field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WebscrapeRequest) GetPrependFilenameToChunks() bool {
if o == nil || isNil(o.PrependFilenameToChunks.Get()) {
var ret bool
return ret
}
return *o.PrependFilenameToChunks.Get()
}
// GetPrependFilenameToChunksOk returns a tuple with the PrependFilenameToChunks field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *WebscrapeRequest) GetPrependFilenameToChunksOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.PrependFilenameToChunks.Get(), o.PrependFilenameToChunks.IsSet()
}
// HasPrependFilenameToChunks returns a boolean if a field has been set.
func (o *WebscrapeRequest) HasPrependFilenameToChunks() bool {
if o != nil && o.PrependFilenameToChunks.IsSet() {
return true
}
return false
}
// SetPrependFilenameToChunks gets a reference to the given NullableBool and assigns it to the PrependFilenameToChunks field.
func (o *WebscrapeRequest) SetPrependFilenameToChunks(v bool) {
o.PrependFilenameToChunks.Set(&v)
}
// SetPrependFilenameToChunksNil sets the value for PrependFilenameToChunks to be an explicit nil
func (o *WebscrapeRequest) SetPrependFilenameToChunksNil() {
o.PrependFilenameToChunks.Set(nil)
}
// UnsetPrependFilenameToChunks ensures that no value is present for PrependFilenameToChunks, not even an explicit nil
func (o *WebscrapeRequest) UnsetPrependFilenameToChunks() {
o.PrependFilenameToChunks.Unset()
}
// GetHtmlTagsToSkip returns the HtmlTagsToSkip field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WebscrapeRequest) GetHtmlTagsToSkip() []string {
if o == nil {
var ret []string
return ret
}
return o.HtmlTagsToSkip
}
// GetHtmlTagsToSkipOk returns a tuple with the HtmlTagsToSkip field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *WebscrapeRequest) GetHtmlTagsToSkipOk() ([]string, bool) {
if o == nil || isNil(o.HtmlTagsToSkip) {
return nil, false
}
return o.HtmlTagsToSkip, true
}
// HasHtmlTagsToSkip returns a boolean if a field has been set.
func (o *WebscrapeRequest) HasHtmlTagsToSkip() bool {
if o != nil && isNil(o.HtmlTagsToSkip) {
return true
}
return false
}
// SetHtmlTagsToSkip gets a reference to the given []string and assigns it to the HtmlTagsToSkip field.
func (o *WebscrapeRequest) SetHtmlTagsToSkip(v []string) {
o.HtmlTagsToSkip = v
}
// GetCssClassesToSkip returns the CssClassesToSkip field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WebscrapeRequest) GetCssClassesToSkip() []string {
if o == nil {
var ret []string
return ret
}
return o.CssClassesToSkip
}
// GetCssClassesToSkipOk returns a tuple with the CssClassesToSkip field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *WebscrapeRequest) GetCssClassesToSkipOk() ([]string, bool) {
if o == nil || isNil(o.CssClassesToSkip) {
return nil, false
}
return o.CssClassesToSkip, true
}
// HasCssClassesToSkip returns a boolean if a field has been set.
func (o *WebscrapeRequest) HasCssClassesToSkip() bool {
if o != nil && isNil(o.CssClassesToSkip) {
return true
}
return false
}
// SetCssClassesToSkip gets a reference to the given []string and assigns it to the CssClassesToSkip field.
func (o *WebscrapeRequest) SetCssClassesToSkip(v []string) {
o.CssClassesToSkip = v
}
// GetCssSelectorsToSkip returns the CssSelectorsToSkip field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *WebscrapeRequest) GetCssSelectorsToSkip() []string {
if o == nil {
var ret []string
return ret
}
return o.CssSelectorsToSkip
}
// GetCssSelectorsToSkipOk returns a tuple with the CssSelectorsToSkip field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *WebscrapeRequest) GetCssSelectorsToSkipOk() ([]string, bool) {
if o == nil || isNil(o.CssSelectorsToSkip) {
return nil, false
}
return o.CssSelectorsToSkip, true
}
// HasCssSelectorsToSkip returns a boolean if a field has been set.
func (o *WebscrapeRequest) HasCssSelectorsToSkip() bool {
if o != nil && isNil(o.CssSelectorsToSkip) {
return true
}
return false
}
// SetCssSelectorsToSkip gets a reference to the given []string and assigns it to the CssSelectorsToSkip field.
func (o *WebscrapeRequest) SetCssSelectorsToSkip(v []string) {
o.CssSelectorsToSkip = v
}
// GetEmbeddingModel returns the EmbeddingModel field value if set, zero value otherwise.
func (o *WebscrapeRequest) GetEmbeddingModel() EmbeddingGenerators {
if o == nil || isNil(o.EmbeddingModel) {
var ret EmbeddingGenerators
return ret
}
return *o.EmbeddingModel
}
// GetEmbeddingModelOk returns a tuple with the EmbeddingModel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *WebscrapeRequest) GetEmbeddingModelOk() (*EmbeddingGenerators, bool) {
if o == nil || isNil(o.EmbeddingModel) {
return nil, false
}
return o.EmbeddingModel, true
}
// HasEmbeddingModel returns a boolean if a field has been set.
func (o *WebscrapeRequest) HasEmbeddingModel() bool {
if o != nil && !isNil(o.EmbeddingModel) {
return true
}
return false
}
// SetEmbeddingModel gets a reference to the given EmbeddingGenerators and assigns it to the EmbeddingModel field.
func (o *WebscrapeRequest) SetEmbeddingModel(v EmbeddingGenerators) {
o.EmbeddingModel = &v
}
func (o WebscrapeRequest) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Tags != nil {
toSerialize["tags"] = o.Tags
}
if true {
toSerialize["url"] = o.Url
}
if o.RecursionDepth.IsSet() {
toSerialize["recursion_depth"] = o.RecursionDepth.Get()
}
if o.MaxPagesToScrape.IsSet() {
toSerialize["max_pages_to_scrape"] = o.MaxPagesToScrape.Get()
}
if o.ChunkSize.IsSet() {
toSerialize["chunk_size"] = o.ChunkSize.Get()
}
if o.ChunkOverlap.IsSet() {
toSerialize["chunk_overlap"] = o.ChunkOverlap.Get()
}
if o.SkipEmbeddingGeneration.IsSet() {
toSerialize["skip_embedding_generation"] = o.SkipEmbeddingGeneration.Get()
}
if o.EnableAutoSync.IsSet() {
toSerialize["enable_auto_sync"] = o.EnableAutoSync.Get()
}
if o.GenerateSparseVectors.IsSet() {
toSerialize["generate_sparse_vectors"] = o.GenerateSparseVectors.Get()
}
if o.PrependFilenameToChunks.IsSet() {
toSerialize["prepend_filename_to_chunks"] = o.PrependFilenameToChunks.Get()
}
if o.HtmlTagsToSkip != nil {
toSerialize["html_tags_to_skip"] = o.HtmlTagsToSkip
}
if o.CssClassesToSkip != nil {
toSerialize["css_classes_to_skip"] = o.CssClassesToSkip
}
if o.CssSelectorsToSkip != nil {
toSerialize["css_selectors_to_skip"] = o.CssSelectorsToSkip
}
if !isNil(o.EmbeddingModel) {
toSerialize["embedding_model"] = o.EmbeddingModel
}
return json.Marshal(toSerialize)
}
type NullableWebscrapeRequest struct {
value *WebscrapeRequest
isSet bool
}
func (v NullableWebscrapeRequest) Get() *WebscrapeRequest {
return v.value
}
func (v *NullableWebscrapeRequest) Set(val *WebscrapeRequest) {
v.value = val
v.isSet = true
}
func (v NullableWebscrapeRequest) IsSet() bool {
return v.isSet
}
func (v *NullableWebscrapeRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableWebscrapeRequest(val *WebscrapeRequest) *NullableWebscrapeRequest {
return &NullableWebscrapeRequest{value: val, isSet: true}
}
func (v NullableWebscrapeRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableWebscrapeRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}