| // 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{ |
| // 388 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xc1, 0x4a, 0xeb, 0x40, |
| 0x18, 0x85, 0x99, 0xf4, 0xf6, 0x42, 0xa7, 0x9b, 0x7b, 0x63, 0x91, 0x12, 0x5c, 0xd4, 0xae, 0xda, |
| 0x85, 0x13, 0x5a, 0x41, 0x44, 0x17, 0x6a, 0x4b, 0x2b, 0x42, 0x2d, 0x12, 0xb1, 0x0b, 0x41, 0x64, |
| 0x9a, 0x8e, 0x43, 0x30, 0x99, 0x3f, 0x24, 0x93, 0x42, 0x71, 0xe5, 0x42, 0xf0, 0x39, 0x5c, 0xfa, |
| 0x1c, 0xbe, 0x8b, 0xaf, 0x21, 0x9d, 0x49, 0xad, 0x6d, 0x23, 0x94, 0xee, 0x92, 0x39, 0xe7, 0x3f, |
| 0xe7, 0xfb, 0x43, 0x06, 0x1f, 0x70, 0x00, 0xee, 0x33, 0xdb, 0xf5, 0x21, 0x19, 0xd9, 0x11, 0x73, |
| 0x21, 0x08, 0x98, 0x18, 0x51, 0xe9, 0x81, 0x60, 0x82, 0x7b, 0x82, 0xd9, 0xe3, 0xc6, 0x90, 0x49, |
| 0xda, 0xb0, 0xa7, 0x12, 0x08, 0x12, 0x46, 0x20, 0xc1, 0xac, 0xeb, 0x39, 0xa2, 0xe6, 0x48, 0xd6, |
| 0x1c, 0x49, 0xe7, 0xac, 0x9d, 0xb4, 0x82, 0x86, 0x9e, 0x4d, 0x85, 0x00, 0xa9, 0x4c, 0xb1, 0x0e, |
| 0xaa, 0x7e, 0xfe, 0xc1, 0xb8, 0xcb, 0xa8, 0x4c, 0x22, 0x76, 0x49, 0x43, 0xf3, 0x19, 0xe1, 0x92, |
| 0x4b, 0x25, 0xe3, 0x10, 0x79, 0x2e, 0xf5, 0xef, 0x1f, 0xb4, 0x14, 0x97, 0x51, 0x25, 0x57, 0x2b, |
| 0x36, 0xfb, 0x64, 0xed, 0x5e, 0x32, 0x4f, 0x25, 0xed, 0x79, 0x62, 0x7a, 0x1a, 0x77, 0x84, 0x8c, |
| 0x26, 0xce, 0x96, 0xbb, 0xaa, 0x98, 0x4f, 0xd8, 0x14, 0x49, 0xc0, 0x96, 0x00, 0x0c, 0x05, 0xd0, |
| 0xdb, 0x0c, 0xa0, 0x3f, 0xcb, 0x5b, 0xac, 0xff, 0x2f, 0x96, 0xcf, 0xad, 0x2a, 0xc6, 0xd7, 0x32, |
| 0xf2, 0x04, 0xef, 0x79, 0xb1, 0x34, 0x4b, 0x38, 0x3f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