forked from googleapis/go-genproto
/
common.pb.go
213 lines (189 loc) · 9.55 KB
/
common.pb.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/recommendationengine/v1beta1/common.proto
package recommendationengine
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// FeatureMap represents extra features that customers want to include in the
// recommendation model for catalogs/user events as categorical/numerical
// features.
type FeatureMap struct {
// 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]*FeatureMap_StringList `protobuf:"bytes,1,rep,name=categorical_features,json=categoricalFeatures,proto3" json:"categorical_features,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// 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]*FeatureMap_FloatList `protobuf:"bytes,2,rep,name=numerical_features,json=numericalFeatures,proto3" json:"numerical_features,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FeatureMap) Reset() { *m = FeatureMap{} }
func (m *FeatureMap) String() string { return proto.CompactTextString(m) }
func (*FeatureMap) ProtoMessage() {}
func (*FeatureMap) Descriptor() ([]byte, []int) {
return fileDescriptor_9a5832e177c44eb7, []int{0}
}
func (m *FeatureMap) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FeatureMap.Unmarshal(m, b)
}
func (m *FeatureMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FeatureMap.Marshal(b, m, deterministic)
}
func (m *FeatureMap) XXX_Merge(src proto.Message) {
xxx_messageInfo_FeatureMap.Merge(m, src)
}
func (m *FeatureMap) XXX_Size() int {
return xxx_messageInfo_FeatureMap.Size(m)
}
func (m *FeatureMap) XXX_DiscardUnknown() {
xxx_messageInfo_FeatureMap.DiscardUnknown(m)
}
var xxx_messageInfo_FeatureMap proto.InternalMessageInfo
func (m *FeatureMap) GetCategoricalFeatures() map[string]*FeatureMap_StringList {
if m != nil {
return m.CategoricalFeatures
}
return nil
}
func (m *FeatureMap) GetNumericalFeatures() map[string]*FeatureMap_FloatList {
if m != nil {
return m.NumericalFeatures
}
return nil
}
// A list of string features.
type FeatureMap_StringList struct {
// String feature value with a length limit of 128 bytes.
Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FeatureMap_StringList) Reset() { *m = FeatureMap_StringList{} }
func (m *FeatureMap_StringList) String() string { return proto.CompactTextString(m) }
func (*FeatureMap_StringList) ProtoMessage() {}
func (*FeatureMap_StringList) Descriptor() ([]byte, []int) {
return fileDescriptor_9a5832e177c44eb7, []int{0, 0}
}
func (m *FeatureMap_StringList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FeatureMap_StringList.Unmarshal(m, b)
}
func (m *FeatureMap_StringList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FeatureMap_StringList.Marshal(b, m, deterministic)
}
func (m *FeatureMap_StringList) XXX_Merge(src proto.Message) {
xxx_messageInfo_FeatureMap_StringList.Merge(m, src)
}
func (m *FeatureMap_StringList) XXX_Size() int {
return xxx_messageInfo_FeatureMap_StringList.Size(m)
}
func (m *FeatureMap_StringList) XXX_DiscardUnknown() {
xxx_messageInfo_FeatureMap_StringList.DiscardUnknown(m)
}
var xxx_messageInfo_FeatureMap_StringList proto.InternalMessageInfo
func (m *FeatureMap_StringList) GetValue() []string {
if m != nil {
return m.Value
}
return nil
}
// A list of float features.
type FeatureMap_FloatList struct {
// Float feature value.
Value []float32 `protobuf:"fixed32,1,rep,packed,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FeatureMap_FloatList) Reset() { *m = FeatureMap_FloatList{} }
func (m *FeatureMap_FloatList) String() string { return proto.CompactTextString(m) }
func (*FeatureMap_FloatList) ProtoMessage() {}
func (*FeatureMap_FloatList) Descriptor() ([]byte, []int) {
return fileDescriptor_9a5832e177c44eb7, []int{0, 1}
}
func (m *FeatureMap_FloatList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FeatureMap_FloatList.Unmarshal(m, b)
}
func (m *FeatureMap_FloatList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FeatureMap_FloatList.Marshal(b, m, deterministic)
}
func (m *FeatureMap_FloatList) XXX_Merge(src proto.Message) {
xxx_messageInfo_FeatureMap_FloatList.Merge(m, src)
}
func (m *FeatureMap_FloatList) XXX_Size() int {
return xxx_messageInfo_FeatureMap_FloatList.Size(m)
}
func (m *FeatureMap_FloatList) XXX_DiscardUnknown() {
xxx_messageInfo_FeatureMap_FloatList.DiscardUnknown(m)
}
var xxx_messageInfo_FeatureMap_FloatList proto.InternalMessageInfo
func (m *FeatureMap_FloatList) GetValue() []float32 {
if m != nil {
return m.Value
}
return nil
}
func init() {
proto.RegisterType((*FeatureMap)(nil), "google.cloud.recommendationengine.v1beta1.FeatureMap")
proto.RegisterMapType((map[string]*FeatureMap_StringList)(nil), "google.cloud.recommendationengine.v1beta1.FeatureMap.CategoricalFeaturesEntry")
proto.RegisterMapType((map[string]*FeatureMap_FloatList)(nil), "google.cloud.recommendationengine.v1beta1.FeatureMap.NumericalFeaturesEntry")
proto.RegisterType((*FeatureMap_StringList)(nil), "google.cloud.recommendationengine.v1beta1.FeatureMap.StringList")
proto.RegisterType((*FeatureMap_FloatList)(nil), "google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList")
}
func init() {
proto.RegisterFile("google/cloud/recommendationengine/v1beta1/common.proto", fileDescriptor_9a5832e177c44eb7)
}
var fileDescriptor_9a5832e177c44eb7 = []byte{
// 419 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xc1, 0x6a, 0xe2, 0x40,
0x18, 0xc7, 0x99, 0x71, 0x5d, 0x70, 0xbc, 0xec, 0x66, 0x65, 0x91, 0xb0, 0x07, 0xd7, 0x93, 0xc2,
0xee, 0x04, 0x5d, 0x58, 0x96, 0xec, 0x61, 0xb7,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