-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
recommendationengine-gen.go
4831 lines (4479 loc) · 213 KB
/
recommendationengine-gen.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
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2024 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// Package recommendationengine provides access to the Recommendations AI (Beta).
//
// For product documentation, see: https://cloud.google.com/recommendations-ai/docs
//
// # Library status
//
// These client libraries are officially supported by Google. However, this
// library is considered complete and is in maintenance mode. This means
// that we will address critical bugs and security issues but will not add
// any new features.
//
// When possible, we recommend using our newer
// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
// that are still actively being worked and iterated on.
//
// # Creating a client
//
// Usage example:
//
// import "google.golang.org/api/recommendationengine/v1beta1"
// ...
// ctx := context.Background()
// recommendationengineService, err := recommendationengine.NewService(ctx)
//
// In this example, Google Application Default Credentials are used for
// authentication. For information on how to create and obtain Application
// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
//
// # Other authentication options
//
// To use an API key for authentication (note: some APIs do not support API
// keys), use [google.golang.org/api/option.WithAPIKey]:
//
// recommendationengineService, err := recommendationengine.NewService(ctx, option.WithAPIKey("AIza..."))
//
// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
// flow, use [google.golang.org/api/option.WithTokenSource]:
//
// config := &oauth2.Config{...}
// // ...
// token, err := config.Exchange(ctx, ...)
// recommendationengineService, err := recommendationengine.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
//
// See [google.golang.org/api/option.ClientOption] for details on options.
package recommendationengine // import "google.golang.org/api/recommendationengine/v1beta1"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
googleapi "google.golang.org/api/googleapi"
internal "google.golang.org/api/internal"
gensupport "google.golang.org/api/internal/gensupport"
option "google.golang.org/api/option"
internaloption "google.golang.org/api/option/internaloption"
htransport "google.golang.org/api/transport/http"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
var _ = internaloption.WithDefaultEndpoint
var _ = internal.Version
const apiId = "recommendationengine:v1beta1"
const apiName = "recommendationengine"
const apiVersion = "v1beta1"
const basePath = "https://recommendationengine.googleapis.com/"
const basePathTemplate = "https://recommendationengine.UNIVERSE_DOMAIN/"
const mtlsBasePath = "https://recommendationengine.mtls.googleapis.com/"
// OAuth2 scopes used by this API.
const (
// See, edit, configure, and delete your Google Cloud data and see the email
// address for your Google Account.
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)
// NewService creates a new Service.
func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
scopesOption := internaloption.WithDefaultScopes(
"https://www.googleapis.com/auth/cloud-platform",
)
// NOTE: prepend, so we don't override user-specified scopes.
opts = append([]option.ClientOption{scopesOption}, opts...)
opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
opts = append(opts, internaloption.EnableNewAuthLibrary())
client, endpoint, err := htransport.NewClient(ctx, opts...)
if err != nil {
return nil, err
}
s, err := New(client)
if err != nil {
return nil, err
}
if endpoint != "" {
s.BasePath = endpoint
}
return s, nil
}
// New creates a new Service. It uses the provided http.Client for requests.
//
// Deprecated: please use NewService instead.
// To provide a custom HTTP client, use option.WithHTTPClient.
// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Projects = NewProjectsService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Projects *ProjectsService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewProjectsService(s *Service) *ProjectsService {
rs := &ProjectsService{s: s}
rs.Locations = NewProjectsLocationsService(s)
return rs
}
type ProjectsService struct {
s *Service
Locations *ProjectsLocationsService
}
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
rs := &ProjectsLocationsService{s: s}
rs.Catalogs = NewProjectsLocationsCatalogsService(s)
return rs
}
type ProjectsLocationsService struct {
s *Service
Catalogs *ProjectsLocationsCatalogsService
}
func NewProjectsLocationsCatalogsService(s *Service) *ProjectsLocationsCatalogsService {
rs := &ProjectsLocationsCatalogsService{s: s}
rs.CatalogItems = NewProjectsLocationsCatalogsCatalogItemsService(s)
rs.EventStores = NewProjectsLocationsCatalogsEventStoresService(s)
rs.Operations = NewProjectsLocationsCatalogsOperationsService(s)
return rs
}
type ProjectsLocationsCatalogsService struct {
s *Service
CatalogItems *ProjectsLocationsCatalogsCatalogItemsService
EventStores *ProjectsLocationsCatalogsEventStoresService
Operations *ProjectsLocationsCatalogsOperationsService
}
func NewProjectsLocationsCatalogsCatalogItemsService(s *Service) *ProjectsLocationsCatalogsCatalogItemsService {
rs := &ProjectsLocationsCatalogsCatalogItemsService{s: s}
return rs
}
type ProjectsLocationsCatalogsCatalogItemsService struct {
s *Service
}
func NewProjectsLocationsCatalogsEventStoresService(s *Service) *ProjectsLocationsCatalogsEventStoresService {
rs := &ProjectsLocationsCatalogsEventStoresService{s: s}
rs.Operations = NewProjectsLocationsCatalogsEventStoresOperationsService(s)
rs.Placements = NewProjectsLocationsCatalogsEventStoresPlacementsService(s)
rs.PredictionApiKeyRegistrations = NewProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrationsService(s)
rs.UserEvents = NewProjectsLocationsCatalogsEventStoresUserEventsService(s)
return rs
}
type ProjectsLocationsCatalogsEventStoresService struct {
s *Service
Operations *ProjectsLocationsCatalogsEventStoresOperationsService
Placements *ProjectsLocationsCatalogsEventStoresPlacementsService
PredictionApiKeyRegistrations *ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrationsService
UserEvents *ProjectsLocationsCatalogsEventStoresUserEventsService
}
func NewProjectsLocationsCatalogsEventStoresOperationsService(s *Service) *ProjectsLocationsCatalogsEventStoresOperationsService {
rs := &ProjectsLocationsCatalogsEventStoresOperationsService{s: s}
return rs
}
type ProjectsLocationsCatalogsEventStoresOperationsService struct {
s *Service
}
func NewProjectsLocationsCatalogsEventStoresPlacementsService(s *Service) *ProjectsLocationsCatalogsEventStoresPlacementsService {
rs := &ProjectsLocationsCatalogsEventStoresPlacementsService{s: s}
return rs
}
type ProjectsLocationsCatalogsEventStoresPlacementsService struct {
s *Service
}
func NewProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrationsService(s *Service) *ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrationsService {
rs := &ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrationsService{s: s}
return rs
}
type ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrationsService struct {
s *Service
}
func NewProjectsLocationsCatalogsEventStoresUserEventsService(s *Service) *ProjectsLocationsCatalogsEventStoresUserEventsService {
rs := &ProjectsLocationsCatalogsEventStoresUserEventsService{s: s}
return rs
}
type ProjectsLocationsCatalogsEventStoresUserEventsService struct {
s *Service
}
func NewProjectsLocationsCatalogsOperationsService(s *Service) *ProjectsLocationsCatalogsOperationsService {
rs := &ProjectsLocationsCatalogsOperationsService{s: s}
return rs
}
type ProjectsLocationsCatalogsOperationsService struct {
s *Service
}
// GoogleApiHttpBody: Message that represents an arbitrary HTTP body. It should
// only be used for payload formats that can't be represented as JSON, such as
// raw binary or an HTML page. This message can be used both in streaming and
// non-streaming API methods in the request as well as the response. It can be
// used as a top-level request field, which is convenient if one wants to
// extract parameters from either the URL or HTTP template into the request
// fields and also want access to the raw HTTP body. Example: message
// GetResourceRequest { // A unique request id. string request_id = 1; // The
// raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; }
// service ResourceService { rpc GetResource(GetResourceRequest) returns
// (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns
// (google.protobuf.Empty); } Example with streaming methods: service
// CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream
// google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns
// (stream google.api.HttpBody); } Use of this type only changes how the
// request and response bodies are handled, all other features will continue to
// work unchanged.
type GoogleApiHttpBody struct {
// ContentType: The HTTP Content-Type header value specifying the content type
// of the body.
ContentType string `json:"contentType,omitempty"`
// Data: The HTTP request/response body as raw binary.
Data string `json:"data,omitempty"`
// Extensions: Application specific response metadata. Must be set in the first
// response for streaming APIs.
Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ContentType") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ContentType") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleApiHttpBody) MarshalJSON() ([]byte, error) {
type NoMethod GoogleApiHttpBody
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1alphaRejoinCatalogMetadata: Metadata for
// TriggerCatalogRejoin method.
type GoogleCloudRecommendationengineV1alphaRejoinCatalogMetadata struct {
}
// GoogleCloudRecommendationengineV1alphaRejoinCatalogResponse: Response
// message for TriggerCatalogRejoin method.
type GoogleCloudRecommendationengineV1alphaRejoinCatalogResponse struct {
// RejoinedUserEventsCount: Number of user events that were joined with latest
// catalog items.
RejoinedUserEventsCount int64 `json:"rejoinedUserEventsCount,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "RejoinedUserEventsCount") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "RejoinedUserEventsCount") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1alphaRejoinCatalogResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1alphaRejoinCatalogResponse
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1alphaTuningMetadata: Metadata associated
// with a tune operation.
type GoogleCloudRecommendationengineV1alphaTuningMetadata struct {
// RecommendationModel: The resource name of the recommendation model that this
// tune applies to. Format:
// projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/event
// Stores/{event_store_id}/recommendationModels/{recommendation_model_id}
RecommendationModel string `json:"recommendationModel,omitempty"`
// ForceSendFields is a list of field names (e.g. "RecommendationModel") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "RecommendationModel") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1alphaTuningMetadata) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1alphaTuningMetadata
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1alphaTuningResponse: Response associated
// with a tune operation.
type GoogleCloudRecommendationengineV1alphaTuningResponse struct {
}
// GoogleCloudRecommendationengineV1beta1BigQuerySource: BigQuery source import
// data from.
type GoogleCloudRecommendationengineV1beta1BigQuerySource struct {
// DataSchema: Optional. The schema to use when parsing the data from the
// source. Supported values for catalog imports: 1:
// "catalog_recommendations_ai" using
// https://cloud.google.com/recommendations-ai/docs/upload-catalog#json
// (Default for catalogItems.import) 2: "catalog_merchant_center" using
// https://cloud.google.com/recommendations-ai/docs/upload-catalog#mc Supported
// values for user event imports: 1: "user_events_recommendations_ai" using
// https://cloud.google.com/recommendations-ai/docs/manage-user-events#import
// (Default for userEvents.import) 2. "user_events_ga360" using
// https://support.google.com/analytics/answer/3437719?hl=en
DataSchema string `json:"dataSchema,omitempty"`
// DatasetId: Required. The BigQuery data set to copy the data from.
DatasetId string `json:"datasetId,omitempty"`
// GcsStagingDir: Optional. Intermediate Cloud Storage directory used for the
// import. Can be specified if one wants to have the BigQuery export to a
// specific Cloud Storage directory.
GcsStagingDir string `json:"gcsStagingDir,omitempty"`
// ProjectId: Optional. The project id (can be project # or id) that the
// BigQuery source is in. If not specified, inherits the project id from the
// parent request.
ProjectId string `json:"projectId,omitempty"`
// TableId: Required. The BigQuery table to copy the data from.
TableId string `json:"tableId,omitempty"`
// ForceSendFields is a list of field names (e.g. "DataSchema") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DataSchema") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1BigQuerySource) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1BigQuerySource
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1beta1Catalog: The catalog configuration.
// Next ID: 5.
type GoogleCloudRecommendationengineV1beta1Catalog struct {
// CatalogItemLevelConfig: Required. The catalog item level configuration.
CatalogItemLevelConfig *GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig `json:"catalogItemLevelConfig,omitempty"`
// DefaultEventStoreId: Required. The ID of the default event store.
DefaultEventStoreId string `json:"defaultEventStoreId,omitempty"`
// DisplayName: Required. The catalog display name.
DisplayName string `json:"displayName,omitempty"`
// Name: The fully qualified resource name of the catalog.
Name string `json:"name,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CatalogItemLevelConfig") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CatalogItemLevelConfig") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1Catalog) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1Catalog
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1beta1CatalogInlineSource: The inline source
// for the input config for ImportCatalogItems method.
type GoogleCloudRecommendationengineV1beta1CatalogInlineSource struct {
// CatalogItems: Optional. A list of catalog items to update/create.
// Recommended max of 10k items.
CatalogItems []*GoogleCloudRecommendationengineV1beta1CatalogItem `json:"catalogItems,omitempty"`
// ForceSendFields is a list of field names (e.g. "CatalogItems") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CatalogItems") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1CatalogInlineSource) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1CatalogInlineSource
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1beta1CatalogItem: CatalogItem captures all
// metadata information of items to be recommended.
type GoogleCloudRecommendationengineV1beta1CatalogItem struct {
// CategoryHierarchies: Required. Catalog item categories. This field is
// repeated for supporting one catalog item belonging to several parallel
// category hierarchies. For example, if a shoes product belongs to both
// ["Shoes & Accessories" -> "Shoes"] and ["Sports & Fitness" -> "Athletic
// Clothing" -> "Shoes"], it could be represented as: "categoryHierarchies": [
// { "categories": ["Shoes & Accessories", "Shoes"]}, { "categories": ["Sports
// & Fitness", "Athletic Clothing", "Shoes"] } ]
CategoryHierarchies []*GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy `json:"categoryHierarchies,omitempty"`
// Description: Optional. Catalog item description. UTF-8 encoded string with a
// length limit of 5 KiB.
Description string `json:"description,omitempty"`
// Id: Required. Catalog item identifier. UTF-8 encoded string with a length
// limit of 128 bytes. This id must be unique among all catalog items within
// the same catalog. It should also be used when logging user events in order
// for the user events to be joined with the Catalog.
Id string `json:"id,omitempty"`
// ItemAttributes: Optional. Highly encouraged. Extra catalog item attributes
// to be included in the recommendation model. For example, for retail
// products, this could include the store name, vendor, style, color, etc.
// These are very strong signals for recommendation model, thus we highly
// recommend providing the item attributes here.
ItemAttributes *GoogleCloudRecommendationengineV1beta1FeatureMap `json:"itemAttributes,omitempty"`
// ItemGroupId: Optional. Variant group identifier for prediction results.
// UTF-8 encoded string with a length limit of 128 bytes. This field must be
// enabled before it can be used. Learn more
// (/recommendations-ai/docs/catalog#item-group-id).
ItemGroupId string `json:"itemGroupId,omitempty"`
// LanguageCode: Optional. Deprecated. The model automatically detects the text
// language. Your catalog can include text in different languages, but
// duplicating catalog items to provide text in multiple languages can result
// in degraded model performance.
LanguageCode string `json:"languageCode,omitempty"`
// ProductMetadata: Optional. Metadata specific to retail products.
ProductMetadata *GoogleCloudRecommendationengineV1beta1ProductCatalogItem `json:"productMetadata,omitempty"`
// Tags: Optional. Filtering tags associated with the catalog item. Each tag
// should be a UTF-8 encoded string with a length limit of 1 KiB. This tag can
// be used for filtering recommendation results by passing the tag as part of
// the predict request filter.
Tags []string `json:"tags,omitempty"`
// Title: Required. Catalog item title. UTF-8 encoded string with a length
// limit of 1 KiB.
Title string `json:"title,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CategoryHierarchies") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CategoryHierarchies") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1CatalogItem) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1CatalogItem
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy: Category
// represents catalog item category hierarchy.
type GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy struct {
// Categories: Required. Catalog item categories. Each category should be a
// UTF-8 encoded string with a length limit of 2 KiB. Note that the order in
// the list denotes the specificity (from least to most specific).
Categories []string `json:"categories,omitempty"`
// ForceSendFields is a list of field names (e.g. "Categories") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Categories") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig: Configures the
// catalog level that users send events to, and the level at which predictions
// are made.
type GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig struct {
// EventItemLevel: Optional. Level of the catalog at which events are uploaded.
// See https://cloud.google.com/recommendations-ai/docs/catalog#catalog-levels
// for more details.
//
// Possible values:
// "CATALOG_ITEM_LEVEL_UNSPECIFIED" - Unknown value - should never be used.
// "VARIANT" - Catalog items are at variant level.
// "MASTER" - Catalog items are at master level.
EventItemLevel string `json:"eventItemLevel,omitempty"`
// PredictItemLevel: Optional. Level of the catalog at which predictions are
// made. See
// https://cloud.google.com/recommendations-ai/docs/catalog#catalog-levels for
// more details.
//
// Possible values:
// "CATALOG_ITEM_LEVEL_UNSPECIFIED" - Unknown value - should never be used.
// "VARIANT" - Catalog items are at variant level.
// "MASTER" - Catalog items are at master level.
PredictItemLevel string `json:"predictItemLevel,omitempty"`
// ForceSendFields is a list of field names (e.g. "EventItemLevel") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EventItemLevel") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1CatalogItemLevelConfig
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationReque
// st: Request message for the `CreatePredictionApiKeyRegistration` method.
type GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest struct {
// PredictionApiKeyRegistration: Required. The prediction API key registration.
PredictionApiKeyRegistration *GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration `json:"predictionApiKeyRegistration,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "PredictionApiKeyRegistration") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
// for more details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "PredictionApiKeyRegistration") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1beta1EventDetail: User event details shared
// by all recommendation types.
type GoogleCloudRecommendationengineV1beta1EventDetail struct {
// EventAttributes: Optional. Extra user event features to include in the
// recommendation model. For product recommendation, an example of extra user
// information is traffic_channel, i.e. how user arrives at the site. Users can
// arrive at the site by coming to the site directly, or coming through Google
// search, and etc.
EventAttributes *GoogleCloudRecommendationengineV1beta1FeatureMap `json:"eventAttributes,omitempty"`
// ExperimentIds: Optional. A list of identifiers for the independent
// experiment groups this user event belongs to. This is used to distinguish
// between user events associated with different experiment setups (e.g. using
// Recommendation Engine system, using different recommendation models).
ExperimentIds []string `json:"experimentIds,omitempty"`
// PageViewId: Optional. A unique id of a web page view. This should be kept
// the same for all user events triggered from the same pageview. For example,
// an item detail page view could trigger multiple events as the user is
// browsing the page. The `pageViewId` property should be kept the same for all
// these events so that they can be grouped together properly. This
// `pageViewId` will be automatically generated if using the JavaScript pixel.
PageViewId string `json:"pageViewId,omitempty"`
// RecommendationToken: Optional. Recommendation token included in the
// recommendation prediction response. This field enables accurate attribution
// of recommendation model performance. This token enables us to accurately
// attribute page view or purchase back to the event and the particular predict
// response containing this clicked/purchased item. If user clicks on product K
// in the recommendation results, pass the
// `PredictResponse.recommendationToken` property as a url parameter to product
// K's page. When recording events on product K's page, log the
// PredictResponse.recommendation_token to this field. Optional, but highly
// encouraged for user events that are the result of a recommendation
// prediction query.
RecommendationToken string `json:"recommendationToken,omitempty"`
// ReferrerUri: Optional. The referrer url of the current page. When using the
// JavaScript pixel, this value is filled in automatically.
ReferrerUri string `json:"referrerUri,omitempty"`
// Uri: Optional. Complete url (window.location.href) of the user's current
// page. When using the JavaScript pixel, this value is filled in
// automatically. Maximum length 5KB.
Uri string `json:"uri,omitempty"`
// ForceSendFields is a list of field names (e.g. "EventAttributes") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EventAttributes") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1EventDetail) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1EventDetail
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1beta1FeatureMap: FeatureMap represents
// extra features that customers want to include in the recommendation model
// for catalogs/user events as categorical/numerical features.
type GoogleCloudRecommendationengineV1beta1FeatureMap struct {
// CategoricalFeatures: Categorical features that can take on one of a limited
// number of possible values. Some examples would be the brand/maker of a
// product, or country of a customer. Feature names and values must be UTF-8
// encoded strings. For example: `{ "colors": {"value": ["yellow", "green"]},
// "sizes": {"value":["S", "M"]}`
CategoricalFeatures map[string]GoogleCloudRecommendationengineV1beta1FeatureMapStringList `json:"categoricalFeatures,omitempty"`
// NumericalFeatures: Numerical features. Some examples would be the
// height/weight of a product, or age of a customer. Feature names must be
// UTF-8 encoded strings. For example: `{ "lengths_cm": {"value":[2.3, 15.4]},
// "heights_cm": {"value":[8.1, 6.4]} }`
NumericalFeatures map[string]GoogleCloudRecommendationengineV1beta1FeatureMapFloatList `json:"numericalFeatures,omitempty"`
// ForceSendFields is a list of field names (e.g. "CategoricalFeatures") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CategoricalFeatures") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1FeatureMap) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1FeatureMap
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1beta1FeatureMapFloatList: A list of float
// features.
type GoogleCloudRecommendationengineV1beta1FeatureMapFloatList struct {
// Value: Float feature value.
Value []float64 `json:"value,omitempty"`
// ForceSendFields is a list of field names (e.g. "Value") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Value") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1FeatureMapFloatList) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1FeatureMapFloatList
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
func (s *GoogleCloudRecommendationengineV1beta1FeatureMapFloatList) UnmarshalJSON(data []byte) error {
type NoMethod GoogleCloudRecommendationengineV1beta1FeatureMapFloatList
var s1 struct {
Value []gensupport.JSONFloat64 `json:"value"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Value = make([]float64, len(s1.Value))
for i := range s1.Value {
s.Value[i] = float64(s1.Value[i])
}
return nil
}
// GoogleCloudRecommendationengineV1beta1FeatureMapStringList: A list of string
// features.
type GoogleCloudRecommendationengineV1beta1FeatureMapStringList struct {
// Value: String feature value with a length limit of 128 bytes.
Value []string `json:"value,omitempty"`
// ForceSendFields is a list of field names (e.g. "Value") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Value") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1FeatureMapStringList) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1FeatureMapStringList
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1beta1GcsSource: Google Cloud Storage
// location for input content. format.
type GoogleCloudRecommendationengineV1beta1GcsSource struct {
// InputUris: Required. Google Cloud Storage URIs to input files. URI can be up
// to 2000 characters long. URIs can match the full object path (for example,
// `gs://bucket/directory/object.json`) or a pattern matching one or more
// files, such as `gs://bucket/directory/*.json`. A request can contain at most
// 100 files, and each file can be up to 2 GB. See Importing catalog
// information (/recommendations-ai/docs/upload-catalog) for the expected file
// format and setup instructions.
InputUris []string `json:"inputUris,omitempty"`
// JsonSchema: Optional. The schema to use when parsing the data from the
// source. Supported values for catalog imports: 1:
// "catalog_recommendations_ai" using
// https://cloud.google.com/recommendations-ai/docs/upload-catalog#json
// (Default for catalogItems.import) 2: "catalog_merchant_center" using
// https://cloud.google.com/recommendations-ai/docs/upload-catalog#mc Supported
// values for user events imports: 1: "user_events_recommendations_ai" using
// https://cloud.google.com/recommendations-ai/docs/manage-user-events#import
// (Default for userEvents.import) 2. "user_events_ga360" using
// https://support.google.com/analytics/answer/3437719?hl=en
JsonSchema string `json:"jsonSchema,omitempty"`
// ForceSendFields is a list of field names (e.g. "InputUris") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "InputUris") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1GcsSource) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1GcsSource
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1beta1Image: Catalog item thumbnail/detail
// image.
type GoogleCloudRecommendationengineV1beta1Image struct {
// Height: Optional. Height of the image in number of pixels.
Height int64 `json:"height,omitempty"`
// Uri: Required. URL of the image with a length limit of 5 KiB.
Uri string `json:"uri,omitempty"`
// Width: Optional. Width of the image in number of pixels.
Width int64 `json:"width,omitempty"`
// ForceSendFields is a list of field names (e.g. "Height") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Height") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1Image) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1Image
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest: Request
// message for Import methods.
type GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest struct {
// ErrorsConfig: Optional. The desired location of errors incurred during the
// Import.
ErrorsConfig *GoogleCloudRecommendationengineV1beta1ImportErrorsConfig `json:"errorsConfig,omitempty"`
// InputConfig: Required. The desired input location of the data.
InputConfig *GoogleCloudRecommendationengineV1beta1InputConfig `json:"inputConfig,omitempty"`
// RequestId: Optional. Unique identifier provided by client, within the
// ancestor dataset scope. Ensures idempotency and used for request
// deduplication. Server-generated if unspecified. Up to 128 characters long.
// This is returned as google.longrunning.Operation.name in the response.
RequestId string `json:"requestId,omitempty"`
// UpdateMask: Optional. Indicates which fields in the provided imported
// 'items' to update. If not set, will by default update all fields.
UpdateMask string `json:"updateMask,omitempty"`
// ForceSendFields is a list of field names (e.g. "ErrorsConfig") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ErrorsConfig") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1ImportCatalogItemsRequest
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse: Response
// of the ImportCatalogItemsRequest. If the long running operation is done,
// then this message is returned by the google.longrunning.Operations.response
// field if the operation was successful.
type GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse struct {
// ErrorSamples: A sample of errors encountered while processing the request.
ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
// ErrorsConfig: Echoes the destination for the complete errors in the request
// if set.
ErrorsConfig *GoogleCloudRecommendationengineV1beta1ImportErrorsConfig `json:"errorsConfig,omitempty"`
// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1ImportCatalogItemsResponse
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1beta1ImportErrorsConfig: Configuration of
// destination for Import related errors.
type GoogleCloudRecommendationengineV1beta1ImportErrorsConfig struct {
// GcsPrefix: Google Cloud Storage path for import errors. This must be an
// empty, existing Cloud Storage bucket. Import errors will be written to a
// file in this bucket, one per line, as a JSON-encoded `google.rpc.Status`
// message.
GcsPrefix string `json:"gcsPrefix,omitempty"`
// ForceSendFields is a list of field names (e.g. "GcsPrefix") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "GcsPrefix") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1ImportErrorsConfig) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1ImportErrorsConfig
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1beta1ImportMetadata: Metadata related to
// the progress of the Import operation. This will be returned by the
// google.longrunning.Operation.metadata field.
type GoogleCloudRecommendationengineV1beta1ImportMetadata struct {
// CreateTime: Operation create time.
CreateTime string `json:"createTime,omitempty"`
// FailureCount: Count of entries that encountered errors while processing.
FailureCount int64 `json:"failureCount,omitempty,string"`
// OperationName: Name of the operation.
OperationName string `json:"operationName,omitempty"`
// RequestId: Id of the request / operation. This is parroting back the
// requestId that was passed in the request.
RequestId string `json:"requestId,omitempty"`
// SuccessCount: Count of entries that were processed successfully.
SuccessCount int64 `json:"successCount,omitempty,string"`
// UpdateTime: Operation last update time. If the operation is done, this is
// also the finish time.
UpdateTime string `json:"updateTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "CreateTime") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreateTime") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s *GoogleCloudRecommendationengineV1beta1ImportMetadata) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudRecommendationengineV1beta1ImportMetadata
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest: Request
// message for the ImportUserEvents request.
type GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest struct {
// ErrorsConfig: Optional. The desired location of errors incurred during the
// Import.
ErrorsConfig *GoogleCloudRecommendationengineV1beta1ImportErrorsConfig `json:"errorsConfig,omitempty"`
// InputConfig: Required. The desired input location of the data.
InputConfig *GoogleCloudRecommendationengineV1beta1InputConfig `json:"inputConfig,omitempty"`
// RequestId: Optional. Unique identifier provided by client, within the
// ancestor dataset scope. Ensures idempotency for expensive long running
// operations. Server-generated if unspecified. Up to 128 characters long. This
// is returned as google.longrunning.Operation.name in the response. Note that
// this field must not be set if the desired input config is
// catalog_inline_source.
RequestId string `json:"requestId,omitempty"`
// ForceSendFields is a list of field names (e.g. "ErrorsConfig") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.