| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.35.2 |
| 18 |
// protoc v4.25.7 |
| 19 |
// source: google/shopping/merchant/lfp/v1/lfpsale.proto |
| 20 |
|
| 21 |
package lfppb |
| 22 |
|
| 23 |
import ( |
| 24 |
typepb "cloud.google.com/go/shopping/type/typepb" |
| 25 |
context "context" |
| 26 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
codes "google.golang.org/grpc/codes" |
| 29 |
status "google.golang.org/grpc/status" |
| 30 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 31 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 32 |
timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 33 |
reflect "reflect" |
| 34 |
sync "sync" |
| 35 |
) |
| 36 |
|
| 37 |
const ( |
| 38 |
// Verify that this generated code is sufficiently up-to-date. |
| 39 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 40 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 41 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 42 |
) |
| 43 |
|
| 44 |
// A sale for the merchant. |
| 45 |
type LfpSale struct { |
| 46 |
state protoimpl.MessageState |
| 47 |
sizeCache protoimpl.SizeCache |
| 48 |
unknownFields protoimpl.UnknownFields |
| 49 |
|
| 50 |
// Output only. Identifier. The name of the `LfpSale` resource. |
| 51 |
// Format: |
| 52 |
// `accounts/{account}/lfpSales/{sale}` |
| 53 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 54 |
// Required. The Merchant Center ID of the merchant to submit the sale for. |
| 55 |
TargetAccount int64 `protobuf:"varint,2,opt,name=target_account,json=targetAccount,proto3" json:"target_account,omitempty"` |
| 56 |
// Required. The identifier of the merchant's store. Either a `storeCode` |
| 57 |
// inserted through the API or the code of the store in the Business Profile. |
| 58 |
StoreCode string `protobuf:"bytes,3,opt,name=store_code,json=storeCode,proto3" json:"store_code,omitempty"` |
| 59 |
// Required. A unique identifier for the product. If both inventories and |
| 60 |
// sales are submitted for a merchant, this id should match for the same |
| 61 |
// product. |
| 62 |
// |
| 63 |
// **Note**: if the merchant sells the same product new and used, they should |
| 64 |
// have different IDs. |
| 65 |
OfferId string `protobuf:"bytes,4,opt,name=offer_id,json=offerId,proto3" json:"offer_id,omitempty"` |
| 66 |
// Required. The [CLDR territory |
| 67 |
// code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml) |
| 68 |
// for the country where the product is sold. |
| 69 |
RegionCode string `protobuf:"bytes,5,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"` |
| 70 |
// Required. The two-letter ISO 639-1 language code for the item. |
| 71 |
ContentLanguage string `protobuf:"bytes,6,opt,name=content_language,json=contentLanguage,proto3" json:"content_language,omitempty"` |
| 72 |
// Required. The Global Trade Item Number of the sold product. |
| 73 |
Gtin string `protobuf:"bytes,7,opt,name=gtin,proto3" json:"gtin,omitempty"` |
| 74 |
// Required. The unit price of the product. |
| 75 |
Price *typepb.Price `protobuf:"bytes,8,opt,name=price,proto3" json:"price,omitempty"` |
| 76 |
// Required. The relative change of the available quantity. Negative for items |
| 77 |
// returned. |
| 78 |
Quantity int64 `protobuf:"varint,9,opt,name=quantity,proto3" json:"quantity,omitempty"` |
| 79 |
// Required. The timestamp for the sale. |
| 80 |
SaleTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=sale_time,json=saleTime,proto3" json:"sale_time,omitempty"` |
| 81 |
// Output only. System generated globally unique ID for the `LfpSale`. |
| 82 |
Uid *string `protobuf:"bytes,11,opt,name=uid,proto3,oneof" json:"uid,omitempty"` |
| 83 |
// Optional. The [feed |
| 84 |
// label](https://developers.google.com/shopping-content/guides/products/feed-labels) |
| 85 |
// for the product. If this is not set, it will default to `regionCode`. |
| 86 |
FeedLabel *string `protobuf:"bytes,12,opt,name=feed_label,json=feedLabel,proto3,oneof" json:"feed_label,omitempty"` |
| 87 |
} |
| 88 |
|
| 89 |
func (x *LfpSale) Reset() { |
| 90 |
*x = LfpSale{} |
| 91 |
mi := &file_google_shopping_merchant_lfp_v1_lfpsale_proto_msgTypes[0] |
| 92 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 93 |
ms.StoreMessageInfo(mi) |
| 94 |
} |
| 95 |
|
| 96 |
func (x *LfpSale) String() string { |
| 97 |
return protoimpl.X.MessageStringOf(x) |
| 98 |
} |
| 99 |
|
| 100 |
func (*LfpSale) ProtoMessage() {} |
| 101 |
|
| 102 |
func (x *LfpSale) ProtoReflect() protoreflect.Message { |
| 103 |
mi := &file_google_shopping_merchant_lfp_v1_lfpsale_proto_msgTypes[0] |
| 104 |
if x != nil { |
| 105 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 106 |
if ms.LoadMessageInfo() == nil { |
| 107 |
ms.StoreMessageInfo(mi) |
| 108 |
} |
| 109 |
return ms |
| 110 |
} |
| 111 |
return mi.MessageOf(x) |
| 112 |
} |
| 113 |
|
| 114 |
// Deprecated: Use LfpSale.ProtoReflect.Descriptor instead. |
| 115 |
func (*LfpSale) Descriptor() ([]byte, []int) { |
| 116 |
return file_google_shopping_merchant_lfp_v1_lfpsale_proto_rawDescGZIP(), []int{0} |
| 117 |
} |
| 118 |
|
| 119 |
func (x *LfpSale) GetName() string { |
| 120 |
if x != nil { |
| 121 |
return x.Name |
| 122 |
} |
| 123 |
return "" |
| 124 |
} |
| 125 |
|
| 126 |
func (x *LfpSale) GetTargetAccount() int64 { |
| 127 |
if x != nil { |
| 128 |
return x.TargetAccount |
| 129 |
} |
| 130 |
return 0 |
| 131 |
} |
| 132 |
|
| 133 |
func (x *LfpSale) GetStoreCode() string { |
| 134 |
if x != nil { |
| 135 |
return x.StoreCode |
| 136 |
} |
| 137 |
return "" |
| 138 |
} |
| 139 |
|
| 140 |
func (x *LfpSale) GetOfferId() string { |
| 141 |
if x != nil { |
| 142 |
return x.OfferId |
| 143 |
} |
| 144 |
return "" |
| 145 |
} |
| 146 |
|
| 147 |
func (x *LfpSale) GetRegionCode() string { |
| 148 |
if x != nil { |
| 149 |
return x.RegionCode |
| 150 |
} |
| 151 |
return "" |
| 152 |
} |
| 153 |
|
| 154 |
func (x *LfpSale) GetContentLanguage() string { |
| 155 |
if x != nil { |
| 156 |
return x.ContentLanguage |
| 157 |
} |
| 158 |
return "" |
| 159 |
} |
| 160 |
|
| 161 |
func (x *LfpSale) GetGtin() string { |
| 162 |
if x != nil { |
| 163 |
return x.Gtin |
| 164 |
} |
| 165 |
return "" |
| 166 |
} |
| 167 |
|
| 168 |
func (x *LfpSale) GetPrice() *typepb.Price { |
| 169 |
if x != nil { |
| 170 |
return x.Price |
| 171 |
} |
| 172 |
return nil |
| 173 |
} |
| 174 |
|
| 175 |
func (x *LfpSale) GetQuantity() int64 { |
| 176 |
if x != nil { |
| 177 |
return x.Quantity |
| 178 |
} |
| 179 |
return 0 |
| 180 |
} |
| 181 |
|
| 182 |
func (x *LfpSale) GetSaleTime() *timestamppb.Timestamp { |
| 183 |
if x != nil { |
| 184 |
return x.SaleTime |
| 185 |
} |
| 186 |
return nil |
| 187 |
} |
| 188 |
|
| 189 |
func (x *LfpSale) GetUid() string { |
| 190 |
if x != nil && x.Uid != nil { |
| 191 |
return *x.Uid |
| 192 |
} |
| 193 |
return "" |
| 194 |
} |
| 195 |
|
| 196 |
func (x *LfpSale) GetFeedLabel() string { |
| 197 |
if x != nil && x.FeedLabel != nil { |
| 198 |
return *x.FeedLabel |
| 199 |
} |
| 200 |
return "" |
| 201 |
} |
| 202 |
|
| 203 |
// Request message for the InsertLfpSale method. |
| 204 |
type InsertLfpSaleRequest struct { |
| 205 |
state protoimpl.MessageState |
| 206 |
sizeCache protoimpl.SizeCache |
| 207 |
unknownFields protoimpl.UnknownFields |
| 208 |
|
| 209 |
// Required. The LFP provider account. |
| 210 |
// Format: `accounts/{lfp_partner}` |
| 211 |
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| 212 |
// Required. The sale to insert. |
| 213 |
LfpSale *LfpSale `protobuf:"bytes,2,opt,name=lfp_sale,json=lfpSale,proto3" json:"lfp_sale,omitempty"` |
| 214 |
} |
| 215 |
|
| 216 |
func (x *InsertLfpSaleRequest) Reset() { |
| 217 |
*x = InsertLfpSaleRequest{} |
| 218 |
mi := &file_google_shopping_merchant_lfp_v1_lfpsale_proto_msgTypes[1] |
| 219 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 220 |
ms.StoreMessageInfo(mi) |
| 221 |
} |
| 222 |
|
| 223 |
func (x *InsertLfpSaleRequest) String() string { |
| 224 |
return protoimpl.X.MessageStringOf(x) |
| 225 |
} |
| 226 |
|
| 227 |
func (*InsertLfpSaleRequest) ProtoMessage() {} |
| 228 |
|
| 229 |
func (x *InsertLfpSaleRequest) ProtoReflect() protoreflect.Message { |
| 230 |
mi := &file_google_shopping_merchant_lfp_v1_lfpsale_proto_msgTypes[1] |
| 231 |
if x != nil { |
| 232 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 233 |
if ms.LoadMessageInfo() == nil { |
| 234 |
ms.StoreMessageInfo(mi) |
| 235 |
} |
| 236 |
return ms |
| 237 |
} |
| 238 |
return mi.MessageOf(x) |
| 239 |
} |
| 240 |
|
| 241 |
// Deprecated: Use InsertLfpSaleRequest.ProtoReflect.Descriptor instead. |
| 242 |
func (*InsertLfpSaleRequest) Descriptor() ([]byte, []int) { |
| 243 |
return file_google_shopping_merchant_lfp_v1_lfpsale_proto_rawDescGZIP(), []int{1} |
| 244 |
} |
| 245 |
|
| 246 |
func (x *InsertLfpSaleRequest) GetParent() string { |
| 247 |
if x != nil { |
| 248 |
return x.Parent |
| 249 |
} |
| 250 |
return "" |
| 251 |
} |
| 252 |
|
| 253 |
func (x *InsertLfpSaleRequest) GetLfpSale() *LfpSale { |
| 254 |
if x != nil { |
| 255 |
return x.LfpSale |
| 256 |
} |
| 257 |
return nil |
| 258 |
} |
| 259 |
|
| 260 |
var File_google_shopping_merchant_lfp_v1_lfpsale_proto protoreflect.FileDescriptor |
| 261 |
|
| 262 |
var file_google_shopping_merchant_lfp_v1_lfpsale_proto_rawDesc = []byte{ |
| 263 |
0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, |
| 264 |
0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x6c, 0x66, 0x70, 0x2f, 0x76, |
| 265 |
0x31, 0x2f, 0x6c, 0x66, 0x70, 0x73, 0x61, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, |
| 266 |
0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, |
| 267 |
0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x6c, 0x66, 0x70, 0x2e, 0x76, 0x31, |
| 268 |
0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, |
| 269 |
0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, |
| 270 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, |
| 271 |
0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
| 272 |
0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, |
| 273 |
0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 274 |
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x2e, |
| 275 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, |
| 276 |
0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 277 |
0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, |
| 278 |
0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 279 |
0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, |
| 280 |
0x6e, 0x67, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, |
| 281 |
0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x04, 0x0a, 0x07, 0x4c, 0x66, 0x70, 0x53, 0x61, 0x6c, 0x65, 0x12, |
| 282 |
0x1a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, |
| 283 |
0x41, 0x03, 0xe0, 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x0e, 0x74, |
| 284 |
0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, |
| 285 |
0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, |
| 286 |
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0a, 0x73, 0x74, 0x6f, 0x72, 0x65, |
| 287 |
0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, |
| 288 |
0x52, 0x09, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x08, 0x6f, |
| 289 |
0x66, 0x66, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, |
| 290 |
0x41, 0x02, 0x52, 0x07, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0b, 0x72, |
| 291 |
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, |
| 292 |
0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, |
| 293 |
0x65, 0x12, 0x2e, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x61, 0x6e, |
| 294 |
0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, |
| 295 |
0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, |
| 296 |
0x65, 0x12, 0x17, 0x0a, 0x04, 0x67, 0x74, 0x69, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, |
| 297 |
0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x67, 0x74, 0x69, 0x6e, 0x12, 0x36, 0x0a, 0x05, 0x70, 0x72, |
| 298 |
0x69, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 299 |
0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x74, 0x79, 0x70, 0x65, |
| 300 |
0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x70, 0x72, 0x69, |
| 301 |
0x63, 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x09, |
| 302 |
0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, |
| 303 |
0x69, 0x74, 0x79, 0x12, 0x3c, 0x0a, 0x09, 0x73, 0x61, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, |
| 304 |
0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 305 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, |
| 306 |
0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x73, 0x61, 0x6c, 0x65, 0x54, 0x69, 0x6d, |
| 307 |
0x65, 0x12, 0x22, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, |
| 308 |
0xe0, 0x41, 0x03, 0xe2, 0x8c, 0xcf, 0xd7, 0x08, 0x02, 0x08, 0x01, 0x48, 0x00, 0x52, 0x03, 0x75, |
| 309 |
0x69, 0x64, 0x88, 0x01, 0x01, 0x12, 0x27, 0x0a, 0x0a, 0x66, 0x65, 0x65, 0x64, 0x5f, 0x6c, 0x61, |
| 310 |
0x62, 0x65, 0x6c, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x48, 0x01, |
| 311 |
0x52, 0x09, 0x66, 0x65, 0x65, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x88, 0x01, 0x01, 0x3a, 0x5e, |
| 312 |
0xea, 0x41, 0x5b, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, |
| 313 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, |
| 314 |
0x4c, 0x66, 0x70, 0x53, 0x61, 0x6c, 0x65, 0x12, 0x22, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, |
| 315 |
0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x2f, 0x6c, 0x66, 0x70, 0x53, |
| 316 |
0x61, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x61, 0x6c, 0x65, 0x7d, 0x2a, 0x08, 0x6c, 0x66, 0x70, |
| 317 |
0x53, 0x61, 0x6c, 0x65, 0x73, 0x32, 0x07, 0x6c, 0x66, 0x70, 0x53, 0x61, 0x6c, 0x65, 0x42, 0x06, |
| 318 |
0x0a, 0x04, 0x5f, 0x75, 0x69, 0x64, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x66, 0x65, 0x65, 0x64, 0x5f, |
| 319 |
0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22, 0x7d, 0x0a, 0x14, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x4c, |
| 320 |
0x66, 0x70, 0x53, 0x61, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, |
| 321 |
0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, |
| 322 |
0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x48, 0x0a, 0x08, 0x6c, 0x66, |
| 323 |
0x70, 0x5f, 0x73, 0x61, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, |
| 324 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, |
| 325 |
0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x6c, 0x66, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4c, |
| 326 |
0x66, 0x70, 0x53, 0x61, 0x6c, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x6c, 0x66, 0x70, |
| 327 |
0x53, 0x61, 0x6c, 0x65, 0x32, 0x8b, 0x02, 0x0a, 0x0e, 0x4c, 0x66, 0x70, 0x53, 0x61, 0x6c, 0x65, |
| 328 |
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xaf, 0x01, 0x0a, 0x0d, 0x49, 0x6e, 0x73, 0x65, |
| 329 |
0x72, 0x74, 0x4c, 0x66, 0x70, 0x53, 0x61, 0x6c, 0x65, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 330 |
0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, |
| 331 |
0x68, 0x61, 0x6e, 0x74, 0x2e, 0x6c, 0x66, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x65, |
| 332 |
0x72, 0x74, 0x4c, 0x66, 0x70, 0x53, 0x61, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
| 333 |
0x1a, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, |
| 334 |
0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x6c, 0x66, 0x70, 0x2e, |
| 335 |
0x76, 0x31, 0x2e, 0x4c, 0x66, 0x70, 0x53, 0x61, 0x6c, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, |
| 336 |
0x02, 0x37, 0x3a, 0x08, 0x6c, 0x66, 0x70, 0x5f, 0x73, 0x61, 0x6c, 0x65, 0x22, 0x2b, 0x2f, 0x6c, |
| 337 |
0x66, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x61, 0x63, |
| 338 |
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6c, 0x66, 0x70, 0x53, 0x61, 0x6c, |
| 339 |
0x65, 0x73, 0x3a, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x1a, 0x47, 0xca, 0x41, 0x1a, 0x6d, 0x65, |
| 340 |
0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 341 |
0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x27, 0x68, 0x74, 0x74, 0x70, 0x73, |
| 342 |
0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, |
| 343 |
0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, |
| 344 |
0x6e, 0x74, 0x42, 0xdc, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 345 |
0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, |
| 346 |
0x61, 0x6e, 0x74, 0x2e, 0x6c, 0x66, 0x70, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x4c, 0x66, 0x70, 0x53, |
| 347 |
0x61, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, 0x75, |
| 348 |
0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, |
| 349 |
0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, |
| 350 |
0x74, 0x2f, 0x6c, 0x66, 0x70, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x6c, 0x66, 0x70, 0x70, |
| 351 |
0x62, 0x3b, 0x6c, 0x66, 0x70, 0x70, 0x62, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 352 |
0x2e, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, |
| 353 |
0x6e, 0x74, 0x2e, 0x4c, 0x66, 0x70, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, |
| 354 |
0x6c, 0x65, 0x5c, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5c, 0x4d, 0x65, 0x72, 0x63, |
| 355 |
0x68, 0x61, 0x6e, 0x74, 0x5c, 0x4c, 0x66, 0x70, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x23, 0x47, 0x6f, |
| 356 |
0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x3a, 0x3a, |
| 357 |
0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x3a, 0x3a, 0x4c, 0x66, 0x70, 0x3a, 0x3a, 0x56, |
| 358 |
0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 359 |
} |
| 360 |
|
| 361 |
var ( |
| 362 |
file_google_shopping_merchant_lfp_v1_lfpsale_proto_rawDescOnce sync.Once |
| 363 |
file_google_shopping_merchant_lfp_v1_lfpsale_proto_rawDescData = file_google_shopping_merchant_lfp_v1_lfpsale_proto_rawDesc |
| 364 |
) |
| 365 |
|
| 366 |
func file_google_shopping_merchant_lfp_v1_lfpsale_proto_rawDescGZIP() []byte { |
| 367 |
file_google_shopping_merchant_lfp_v1_lfpsale_proto_rawDescOnce.Do(func() { |
| 368 |
file_google_shopping_merchant_lfp_v1_lfpsale_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_merchant_lfp_v1_lfpsale_proto_rawDescData) |
| 369 |
}) |
| 370 |
return file_google_shopping_merchant_lfp_v1_lfpsale_proto_rawDescData |
| 371 |
} |
| 372 |
|
| 373 |
var file_google_shopping_merchant_lfp_v1_lfpsale_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 374 |
var file_google_shopping_merchant_lfp_v1_lfpsale_proto_goTypes = []any{ |
| 375 |
(*LfpSale)(nil), // 0: google.shopping.merchant.lfp.v1.LfpSale |
| 376 |
(*InsertLfpSaleRequest)(nil), // 1: google.shopping.merchant.lfp.v1.InsertLfpSaleRequest |
| 377 |
(*typepb.Price)(nil), // 2: google.shopping.type.Price |
| 378 |
(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp |
| 379 |
} |
| 380 |
var file_google_shopping_merchant_lfp_v1_lfpsale_proto_depIdxs = []int32{ |
| 381 |
2, // 0: google.shopping.merchant.lfp.v1.LfpSale.price:type_name -> google.shopping.type.Price |
| 382 |
3, // 1: google.shopping.merchant.lfp.v1.LfpSale.sale_time:type_name -> google.protobuf.Timestamp |
| 383 |
0, // 2: google.shopping.merchant.lfp.v1.InsertLfpSaleRequest.lfp_sale:type_name -> google.shopping.merchant.lfp.v1.LfpSale |
| 384 |
1, // 3: google.shopping.merchant.lfp.v1.LfpSaleService.InsertLfpSale:input_type -> google.shopping.merchant.lfp.v1.InsertLfpSaleRequest |
| 385 |
0, // 4: google.shopping.merchant.lfp.v1.LfpSaleService.InsertLfpSale:output_type -> google.shopping.merchant.lfp.v1.LfpSale |
| 386 |
4, // [4:5] is the sub-list for method output_type |
| 387 |
3, // [3:4] is the sub-list for method input_type |
| 388 |
3, // [3:3] is the sub-list for extension type_name |
| 389 |
3, // [3:3] is the sub-list for extension extendee |
| 390 |
0, // [0:3] is the sub-list for field type_name |
| 391 |
} |
| 392 |
|
| 393 |
func init() { file_google_shopping_merchant_lfp_v1_lfpsale_proto_init() } |
| 394 |
func file_google_shopping_merchant_lfp_v1_lfpsale_proto_init() { |
| 395 |
if File_google_shopping_merchant_lfp_v1_lfpsale_proto != nil { |
| 396 |
return |
| 397 |
} |
| 398 |
file_google_shopping_merchant_lfp_v1_lfpsale_proto_msgTypes[0].OneofWrappers = []any{} |
| 399 |
type x struct{} |
| 400 |
out := protoimpl.TypeBuilder{ |
| 401 |
File: protoimpl.DescBuilder{ |
| 402 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 403 |
RawDescriptor: file_google_shopping_merchant_lfp_v1_lfpsale_proto_rawDesc, |
| 404 |
NumEnums: 0, |
| 405 |
NumMessages: 2, |
| 406 |
NumExtensions: 0, |
| 407 |
NumServices: 1, |
| 408 |
}, |
| 409 |
GoTypes: file_google_shopping_merchant_lfp_v1_lfpsale_proto_goTypes, |
| 410 |
DependencyIndexes: file_google_shopping_merchant_lfp_v1_lfpsale_proto_depIdxs, |
| 411 |
MessageInfos: file_google_shopping_merchant_lfp_v1_lfpsale_proto_msgTypes, |
| 412 |
}.Build() |
| 413 |
File_google_shopping_merchant_lfp_v1_lfpsale_proto = out.File |
| 414 |
file_google_shopping_merchant_lfp_v1_lfpsale_proto_rawDesc = nil |
| 415 |
file_google_shopping_merchant_lfp_v1_lfpsale_proto_goTypes = nil |
| 416 |
file_google_shopping_merchant_lfp_v1_lfpsale_proto_depIdxs = nil |
| 417 |
} |
| 418 |
|
| 419 |
// Reference imports to suppress errors if they are not otherwise used. |
| 420 |
var _ context.Context |
| 421 |
var _ grpc.ClientConnInterface |
| 422 |
|
| 423 |
// This is a compile-time assertion to ensure that this generated file |
| 424 |
// is compatible with the grpc package it is being compiled against. |
| 425 |
const _ = grpc.SupportPackageIsVersion6 |
| 426 |
|
| 427 |
// LfpSaleServiceClient is the client API for LfpSaleService service. |
| 428 |
// |
| 429 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 430 |
type LfpSaleServiceClient interface { |
| 431 |
// Inserts a `LfpSale` for the given merchant. |
| 432 |
InsertLfpSale(ctx context.Context, in *InsertLfpSaleRequest, opts ...grpc.CallOption) (*LfpSale, error) |
| 433 |
} |
| 434 |
|
| 435 |
type lfpSaleServiceClient struct { |
| 436 |
cc grpc.ClientConnInterface |
| 437 |
} |
| 438 |
|
| 439 |
func NewLfpSaleServiceClient(cc grpc.ClientConnInterface) LfpSaleServiceClient { |
| 440 |
return &lfpSaleServiceClient{cc} |
| 441 |
} |
| 442 |
|
| 443 |
func (c *lfpSaleServiceClient) InsertLfpSale(ctx context.Context, in *InsertLfpSaleRequest, opts ...grpc.CallOption) (*LfpSale, error) { |
| 444 |
out := new(LfpSale) |
| 445 |
err := c.cc.Invoke(ctx, "/google.shopping.merchant.lfp.v1.LfpSaleService/InsertLfpSale", in, out, opts...) |
| 446 |
if err != nil { |
| 447 |
return nil, err |
| 448 |
} |
| 449 |
return out, nil |
| 450 |
} |
| 451 |
|
| 452 |
// LfpSaleServiceServer is the server API for LfpSaleService service. |
| 453 |
type LfpSaleServiceServer interface { |
| 454 |
// Inserts a `LfpSale` for the given merchant. |
| 455 |
InsertLfpSale(context.Context, *InsertLfpSaleRequest) (*LfpSale, error) |
| 456 |
} |
| 457 |
|
| 458 |
// UnimplementedLfpSaleServiceServer can be embedded to have forward compatible implementations. |
| 459 |
type UnimplementedLfpSaleServiceServer struct { |
| 460 |
} |
| 461 |
|
| 462 |
func (*UnimplementedLfpSaleServiceServer) InsertLfpSale(context.Context, *InsertLfpSaleRequest) (*LfpSale, error) { |
| 463 |
return nil, status.Errorf(codes.Unimplemented, "method InsertLfpSale not implemented") |
| 464 |
} |
| 465 |
|
| 466 |
func RegisterLfpSaleServiceServer(s *grpc.Server, srv LfpSaleServiceServer) { |
| 467 |
s.RegisterService(&_LfpSaleService_serviceDesc, srv) |
| 468 |
} |
| 469 |
|
| 470 |
func _LfpSaleService_InsertLfpSale_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 471 |
in := new(InsertLfpSaleRequest) |
| 472 |
if err := dec(in); err != nil { |
| 473 |
return nil, err |
| 474 |
} |
| 475 |
if interceptor == nil { |
| 476 |
return srv.(LfpSaleServiceServer).InsertLfpSale(ctx, in) |
| 477 |
} |
| 478 |
info := &grpc.UnaryServerInfo{ |
| 479 |
Server: srv, |
| 480 |
FullMethod: "/google.shopping.merchant.lfp.v1.LfpSaleService/InsertLfpSale", |
| 481 |
} |
| 482 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 483 |
return srv.(LfpSaleServiceServer).InsertLfpSale(ctx, req.(*InsertLfpSaleRequest)) |
| 484 |
} |
| 485 |
return interceptor(ctx, in, info, handler) |
| 486 |
} |
| 487 |
|
| 488 |
var _LfpSaleService_serviceDesc = grpc.ServiceDesc{ |
| 489 |
ServiceName: "google.shopping.merchant.lfp.v1.LfpSaleService", |
| 490 |
HandlerType: (*LfpSaleServiceServer)(nil), |
| 491 |
Methods: []grpc.MethodDesc{ |
| 492 |
{ |
| 493 |
MethodName: "InsertLfpSale", |
| 494 |
Handler: _LfpSaleService_InsertLfpSale_Handler, |
| 495 |
}, |
| 496 |
}, |
| 497 |
Streams: []grpc.StreamDesc{}, |
| 498 |
Metadata: "google/shopping/merchant/lfp/v1/lfpsale.proto", |
| 499 |
} |