| 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/accounts/v1beta/termsofservice.proto |
| 20 |
|
| 21 |
package accountspb |
| 22 |
|
| 23 |
import ( |
| 24 |
context "context" |
| 25 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 26 |
grpc "google.golang.org/grpc" |
| 27 |
codes "google.golang.org/grpc/codes" |
| 28 |
status "google.golang.org/grpc/status" |
| 29 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 30 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 31 |
emptypb "google.golang.org/protobuf/types/known/emptypb" |
| 32 |
reflect "reflect" |
| 33 |
sync "sync" |
| 34 |
) |
| 35 |
|
| 36 |
const ( |
| 37 |
// Verify that this generated code is sufficiently up-to-date. |
| 38 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 39 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 40 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 41 |
) |
| 42 |
|
| 43 |
// A `TermsOfService`. |
| 44 |
type TermsOfService struct { |
| 45 |
state protoimpl.MessageState |
| 46 |
sizeCache protoimpl.SizeCache |
| 47 |
unknownFields protoimpl.UnknownFields |
| 48 |
|
| 49 |
// Identifier. The resource name of the terms of service version. |
| 50 |
// Format: `termsOfService/{version}` |
| 51 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 52 |
// Region code as defined by [CLDR](https://cldr.unicode.org/). This is either |
| 53 |
// a country where the ToS applies specifically to that country or `001` when |
| 54 |
// the same `TermsOfService` can be signed in any country. However note that |
| 55 |
// when signing a ToS that applies globally we still expect that a specific |
| 56 |
// country is provided (this should be merchant business country or program |
| 57 |
// country of participation). |
| 58 |
RegionCode string `protobuf:"bytes,2,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"` |
| 59 |
// The Kind this terms of service version applies to. |
| 60 |
Kind TermsOfServiceKind `protobuf:"varint,3,opt,name=kind,proto3,enum=google.shopping.merchant.accounts.v1beta.TermsOfServiceKind" json:"kind,omitempty"` |
| 61 |
// URI for terms of service file that needs to be displayed to signing users. |
| 62 |
FileUri *string `protobuf:"bytes,4,opt,name=file_uri,json=fileUri,proto3,oneof" json:"file_uri,omitempty"` |
| 63 |
// Whether this terms of service version is external. External terms of |
| 64 |
// service versions can only be agreed through external processes and not |
| 65 |
// directly by the merchant through UI or API. |
| 66 |
External bool `protobuf:"varint,5,opt,name=external,proto3" json:"external,omitempty"` |
| 67 |
} |
| 68 |
|
| 69 |
func (x *TermsOfService) Reset() { |
| 70 |
*x = TermsOfService{} |
| 71 |
mi := &file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_msgTypes[0] |
| 72 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 73 |
ms.StoreMessageInfo(mi) |
| 74 |
} |
| 75 |
|
| 76 |
func (x *TermsOfService) String() string { |
| 77 |
return protoimpl.X.MessageStringOf(x) |
| 78 |
} |
| 79 |
|
| 80 |
func (*TermsOfService) ProtoMessage() {} |
| 81 |
|
| 82 |
func (x *TermsOfService) ProtoReflect() protoreflect.Message { |
| 83 |
mi := &file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_msgTypes[0] |
| 84 |
if x != nil { |
| 85 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 86 |
if ms.LoadMessageInfo() == nil { |
| 87 |
ms.StoreMessageInfo(mi) |
| 88 |
} |
| 89 |
return ms |
| 90 |
} |
| 91 |
return mi.MessageOf(x) |
| 92 |
} |
| 93 |
|
| 94 |
// Deprecated: Use TermsOfService.ProtoReflect.Descriptor instead. |
| 95 |
func (*TermsOfService) Descriptor() ([]byte, []int) { |
| 96 |
return file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_rawDescGZIP(), []int{0} |
| 97 |
} |
| 98 |
|
| 99 |
func (x *TermsOfService) GetName() string { |
| 100 |
if x != nil { |
| 101 |
return x.Name |
| 102 |
} |
| 103 |
return "" |
| 104 |
} |
| 105 |
|
| 106 |
func (x *TermsOfService) GetRegionCode() string { |
| 107 |
if x != nil { |
| 108 |
return x.RegionCode |
| 109 |
} |
| 110 |
return "" |
| 111 |
} |
| 112 |
|
| 113 |
func (x *TermsOfService) GetKind() TermsOfServiceKind { |
| 114 |
if x != nil { |
| 115 |
return x.Kind |
| 116 |
} |
| 117 |
return TermsOfServiceKind_TERMS_OF_SERVICE_KIND_UNSPECIFIED |
| 118 |
} |
| 119 |
|
| 120 |
func (x *TermsOfService) GetFileUri() string { |
| 121 |
if x != nil && x.FileUri != nil { |
| 122 |
return *x.FileUri |
| 123 |
} |
| 124 |
return "" |
| 125 |
} |
| 126 |
|
| 127 |
func (x *TermsOfService) GetExternal() bool { |
| 128 |
if x != nil { |
| 129 |
return x.External |
| 130 |
} |
| 131 |
return false |
| 132 |
} |
| 133 |
|
| 134 |
// Request message for the `GetTermsOfService` method. |
| 135 |
type GetTermsOfServiceRequest struct { |
| 136 |
state protoimpl.MessageState |
| 137 |
sizeCache protoimpl.SizeCache |
| 138 |
unknownFields protoimpl.UnknownFields |
| 139 |
|
| 140 |
// Required. The resource name of the terms of service version. |
| 141 |
// Format: `termsOfService/{version}` |
| 142 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 143 |
} |
| 144 |
|
| 145 |
func (x *GetTermsOfServiceRequest) Reset() { |
| 146 |
*x = GetTermsOfServiceRequest{} |
| 147 |
mi := &file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_msgTypes[1] |
| 148 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 149 |
ms.StoreMessageInfo(mi) |
| 150 |
} |
| 151 |
|
| 152 |
func (x *GetTermsOfServiceRequest) String() string { |
| 153 |
return protoimpl.X.MessageStringOf(x) |
| 154 |
} |
| 155 |
|
| 156 |
func (*GetTermsOfServiceRequest) ProtoMessage() {} |
| 157 |
|
| 158 |
func (x *GetTermsOfServiceRequest) ProtoReflect() protoreflect.Message { |
| 159 |
mi := &file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_msgTypes[1] |
| 160 |
if x != nil { |
| 161 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 162 |
if ms.LoadMessageInfo() == nil { |
| 163 |
ms.StoreMessageInfo(mi) |
| 164 |
} |
| 165 |
return ms |
| 166 |
} |
| 167 |
return mi.MessageOf(x) |
| 168 |
} |
| 169 |
|
| 170 |
// Deprecated: Use GetTermsOfServiceRequest.ProtoReflect.Descriptor instead. |
| 171 |
func (*GetTermsOfServiceRequest) Descriptor() ([]byte, []int) { |
| 172 |
return file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_rawDescGZIP(), []int{1} |
| 173 |
} |
| 174 |
|
| 175 |
func (x *GetTermsOfServiceRequest) GetName() string { |
| 176 |
if x != nil { |
| 177 |
return x.Name |
| 178 |
} |
| 179 |
return "" |
| 180 |
} |
| 181 |
|
| 182 |
// Request message for the `RetrieveLatestTermsOfService` method. |
| 183 |
type RetrieveLatestTermsOfServiceRequest struct { |
| 184 |
state protoimpl.MessageState |
| 185 |
sizeCache protoimpl.SizeCache |
| 186 |
unknownFields protoimpl.UnknownFields |
| 187 |
|
| 188 |
// Required. Region code as defined by [CLDR](https://cldr.unicode.org/). This |
| 189 |
// is either a country when the ToS applies specifically to that country or |
| 190 |
// 001 when it applies globally. |
| 191 |
RegionCode string `protobuf:"bytes,1,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"` |
| 192 |
// Required. The Kind this terms of service version applies to. |
| 193 |
Kind TermsOfServiceKind `protobuf:"varint,2,opt,name=kind,proto3,enum=google.shopping.merchant.accounts.v1beta.TermsOfServiceKind" json:"kind,omitempty"` |
| 194 |
} |
| 195 |
|
| 196 |
func (x *RetrieveLatestTermsOfServiceRequest) Reset() { |
| 197 |
*x = RetrieveLatestTermsOfServiceRequest{} |
| 198 |
mi := &file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_msgTypes[2] |
| 199 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 200 |
ms.StoreMessageInfo(mi) |
| 201 |
} |
| 202 |
|
| 203 |
func (x *RetrieveLatestTermsOfServiceRequest) String() string { |
| 204 |
return protoimpl.X.MessageStringOf(x) |
| 205 |
} |
| 206 |
|
| 207 |
func (*RetrieveLatestTermsOfServiceRequest) ProtoMessage() {} |
| 208 |
|
| 209 |
func (x *RetrieveLatestTermsOfServiceRequest) ProtoReflect() protoreflect.Message { |
| 210 |
mi := &file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_msgTypes[2] |
| 211 |
if x != nil { |
| 212 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 213 |
if ms.LoadMessageInfo() == nil { |
| 214 |
ms.StoreMessageInfo(mi) |
| 215 |
} |
| 216 |
return ms |
| 217 |
} |
| 218 |
return mi.MessageOf(x) |
| 219 |
} |
| 220 |
|
| 221 |
// Deprecated: Use RetrieveLatestTermsOfServiceRequest.ProtoReflect.Descriptor instead. |
| 222 |
func (*RetrieveLatestTermsOfServiceRequest) Descriptor() ([]byte, []int) { |
| 223 |
return file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_rawDescGZIP(), []int{2} |
| 224 |
} |
| 225 |
|
| 226 |
func (x *RetrieveLatestTermsOfServiceRequest) GetRegionCode() string { |
| 227 |
if x != nil { |
| 228 |
return x.RegionCode |
| 229 |
} |
| 230 |
return "" |
| 231 |
} |
| 232 |
|
| 233 |
func (x *RetrieveLatestTermsOfServiceRequest) GetKind() TermsOfServiceKind { |
| 234 |
if x != nil { |
| 235 |
return x.Kind |
| 236 |
} |
| 237 |
return TermsOfServiceKind_TERMS_OF_SERVICE_KIND_UNSPECIFIED |
| 238 |
} |
| 239 |
|
| 240 |
// Request message for the `AcceptTermsOfService` method. |
| 241 |
type AcceptTermsOfServiceRequest struct { |
| 242 |
state protoimpl.MessageState |
| 243 |
sizeCache protoimpl.SizeCache |
| 244 |
unknownFields protoimpl.UnknownFields |
| 245 |
|
| 246 |
// Required. The resource name of the terms of service version. |
| 247 |
// Format: `termsOfService/{version}` |
| 248 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 249 |
// Required. The account for which to accept the ToS. |
| 250 |
Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` |
| 251 |
// Required. Region code as defined by [CLDR](https://cldr.unicode.org/). This |
| 252 |
// is either a country when the ToS applies specifically to that country or |
| 253 |
// 001 when it applies globally. |
| 254 |
RegionCode string `protobuf:"bytes,3,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"` |
| 255 |
} |
| 256 |
|
| 257 |
func (x *AcceptTermsOfServiceRequest) Reset() { |
| 258 |
*x = AcceptTermsOfServiceRequest{} |
| 259 |
mi := &file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_msgTypes[3] |
| 260 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 261 |
ms.StoreMessageInfo(mi) |
| 262 |
} |
| 263 |
|
| 264 |
func (x *AcceptTermsOfServiceRequest) String() string { |
| 265 |
return protoimpl.X.MessageStringOf(x) |
| 266 |
} |
| 267 |
|
| 268 |
func (*AcceptTermsOfServiceRequest) ProtoMessage() {} |
| 269 |
|
| 270 |
func (x *AcceptTermsOfServiceRequest) ProtoReflect() protoreflect.Message { |
| 271 |
mi := &file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_msgTypes[3] |
| 272 |
if x != nil { |
| 273 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 274 |
if ms.LoadMessageInfo() == nil { |
| 275 |
ms.StoreMessageInfo(mi) |
| 276 |
} |
| 277 |
return ms |
| 278 |
} |
| 279 |
return mi.MessageOf(x) |
| 280 |
} |
| 281 |
|
| 282 |
// Deprecated: Use AcceptTermsOfServiceRequest.ProtoReflect.Descriptor instead. |
| 283 |
func (*AcceptTermsOfServiceRequest) Descriptor() ([]byte, []int) { |
| 284 |
return file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_rawDescGZIP(), []int{3} |
| 285 |
} |
| 286 |
|
| 287 |
func (x *AcceptTermsOfServiceRequest) GetName() string { |
| 288 |
if x != nil { |
| 289 |
return x.Name |
| 290 |
} |
| 291 |
return "" |
| 292 |
} |
| 293 |
|
| 294 |
func (x *AcceptTermsOfServiceRequest) GetAccount() string { |
| 295 |
if x != nil { |
| 296 |
return x.Account |
| 297 |
} |
| 298 |
return "" |
| 299 |
} |
| 300 |
|
| 301 |
func (x *AcceptTermsOfServiceRequest) GetRegionCode() string { |
| 302 |
if x != nil { |
| 303 |
return x.RegionCode |
| 304 |
} |
| 305 |
return "" |
| 306 |
} |
| 307 |
|
| 308 |
var File_google_shopping_merchant_accounts_v1beta_termsofservice_proto protoreflect.FileDescriptor |
| 309 |
|
| 310 |
var file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_rawDesc = []byte{ |
| 311 |
0x0a, 0x3d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, |
| 312 |
0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, |
| 313 |
0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x74, 0x65, 0x72, 0x6d, 0x73, |
| 314 |
0x6f, 0x66, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, |
| 315 |
0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, |
| 316 |
0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, |
| 317 |
0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 318 |
0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 319 |
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
| 320 |
0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 321 |
0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, |
| 322 |
0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 323 |
0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, |
| 324 |
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, |
| 325 |
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, |
| 326 |
0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 327 |
0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, |
| 328 |
0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, |
| 329 |
0x65, 0x74, 0x61, 0x2f, 0x74, 0x65, 0x72, 0x6d, 0x73, 0x6f, 0x66, 0x73, 0x65, 0x72, 0x76, 0x69, |
| 330 |
0x63, 0x65, 0x6b, 0x69, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdd, 0x02, 0x0a, |
| 331 |
0x0e, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, |
| 332 |
0x45, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xe0, |
| 333 |
0x41, 0x08, 0xfa, 0x41, 0x2b, 0x0a, 0x29, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, |
| 334 |
0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, |
| 335 |
0x6d, 0x2f, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, |
| 336 |
0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, |
| 337 |
0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x67, |
| 338 |
0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x50, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, |
| 339 |
0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, |
| 340 |
0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, |
| 341 |
0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, |
| 342 |
0x2e, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4b, |
| 343 |
0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x66, 0x69, 0x6c, |
| 344 |
0x65, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x66, |
| 345 |
0x69, 0x6c, 0x65, 0x55, 0x72, 0x69, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x74, |
| 346 |
0x65, 0x72, 0x6e, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x65, 0x78, 0x74, |
| 347 |
0x65, 0x72, 0x6e, 0x61, 0x6c, 0x3a, 0x48, 0xea, 0x41, 0x45, 0x0a, 0x29, 0x6d, 0x65, 0x72, 0x63, |
| 348 |
0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, |
| 349 |
0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, |
| 350 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x18, 0x74, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, |
| 351 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x7b, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x42, |
| 352 |
0x0b, 0x0a, 0x09, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x75, 0x72, 0x69, 0x22, 0x61, 0x0a, 0x18, |
| 353 |
0x47, 0x65, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, |
| 354 |
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, |
| 355 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2b, 0x0a, 0x29, |
| 356 |
0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 357 |
0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x72, 0x6d, 0x73, |
| 358 |
0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, |
| 359 |
0xa2, 0x01, 0x0a, 0x23, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x4c, 0x61, 0x74, 0x65, |
| 360 |
0x73, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, |
| 361 |
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, |
| 362 |
0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, |
| 363 |
0x02, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x55, 0x0a, |
| 364 |
0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x67, 0x6f, |
| 365 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, |
| 366 |
0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, |
| 367 |
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, |
| 368 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, |
| 369 |
0x6b, 0x69, 0x6e, 0x64, 0x22, 0xd0, 0x01, 0x0a, 0x1b, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x54, |
| 370 |
0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, |
| 371 |
0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, |
| 372 |
0x28, 0x09, 0x42, 0x31, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2b, 0x0a, 0x29, 0x6d, 0x65, 0x72, 0x63, |
| 373 |
0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, |
| 374 |
0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, |
| 375 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x44, 0x0a, 0x07, 0x61, |
| 376 |
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, |
| 377 |
0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, |
| 378 |
0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, |
| 379 |
0x2f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, |
| 380 |
0x74, 0x12, 0x24, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, |
| 381 |
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x72, 0x65, 0x67, |
| 382 |
0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x32, 0xc7, 0x05, 0x0a, 0x15, 0x54, 0x65, 0x72, 0x6d, |
| 383 |
0x73, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, |
| 384 |
0x65, 0x12, 0xca, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, |
| 385 |
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 386 |
0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, |
| 387 |
0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, |
| 388 |
0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, 0x72, |
| 389 |
0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x67, 0x6f, |
| 390 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, |
| 391 |
0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, |
| 392 |
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, |
| 393 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x37, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, |
| 394 |
0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, |
| 395 |
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x74, 0x65, 0x72, |
| 396 |
0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x2a, 0x7d, 0x12, 0xdf, |
| 397 |
0x01, 0x0a, 0x1c, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, |
| 398 |
0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, |
| 399 |
0x4d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, |
| 400 |
0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, |
| 401 |
0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x69, |
| 402 |
0x65, 0x76, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, |
| 403 |
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, |
| 404 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, |
| 405 |
0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, |
| 406 |
0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, |
| 407 |
0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, |
| 408 |
0x12, 0x2e, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, |
| 409 |
0x74, 0x61, 0x2f, 0x74, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, |
| 410 |
0x65, 0x3a, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, |
| 411 |
0x12, 0xb5, 0x01, 0x0a, 0x14, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, |
| 412 |
0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 413 |
0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, |
| 414 |
0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, |
| 415 |
0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, |
| 416 |
0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
| 417 |
0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, |
| 418 |
0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x3e, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, |
| 419 |
0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, |
| 420 |
0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, |
| 421 |
0x74, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x2a, |
| 422 |
0x7d, 0x3a, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x1a, 0x47, 0xca, 0x41, 0x1a, 0x6d, 0x65, 0x72, |
| 423 |
0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, |
| 424 |
0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x27, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, |
| 425 |
0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, |
| 426 |
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, |
| 427 |
0x74, 0x42, 0x95, 0x01, 0x0a, 0x2c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 428 |
0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, |
| 429 |
0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, |
| 430 |
0x74, 0x61, 0x42, 0x13, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, |
| 431 |
0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 432 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, |
| 433 |
0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, |
| 434 |
0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, |
| 435 |
0x65, 0x74, 0x61, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x70, 0x62, 0x3b, 0x61, |
| 436 |
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 437 |
0x33, |
| 438 |
} |
| 439 |
|
| 440 |
var ( |
| 441 |
file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_rawDescOnce sync.Once |
| 442 |
file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_rawDescData = file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_rawDesc |
| 443 |
) |
| 444 |
|
| 445 |
func file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_rawDescGZIP() []byte { |
| 446 |
file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_rawDescOnce.Do(func() { |
| 447 |
file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_rawDescData) |
| 448 |
}) |
| 449 |
return file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_rawDescData |
| 450 |
} |
| 451 |
|
| 452 |
var file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_msgTypes = make([]protoimpl.MessageInfo, 4) |
| 453 |
var file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_goTypes = []any{ |
| 454 |
(*TermsOfService)(nil), // 0: google.shopping.merchant.accounts.v1beta.TermsOfService |
| 455 |
(*GetTermsOfServiceRequest)(nil), // 1: google.shopping.merchant.accounts.v1beta.GetTermsOfServiceRequest |
| 456 |
(*RetrieveLatestTermsOfServiceRequest)(nil), // 2: google.shopping.merchant.accounts.v1beta.RetrieveLatestTermsOfServiceRequest |
| 457 |
(*AcceptTermsOfServiceRequest)(nil), // 3: google.shopping.merchant.accounts.v1beta.AcceptTermsOfServiceRequest |
| 458 |
(TermsOfServiceKind)(0), // 4: google.shopping.merchant.accounts.v1beta.TermsOfServiceKind |
| 459 |
(*emptypb.Empty)(nil), // 5: google.protobuf.Empty |
| 460 |
} |
| 461 |
var file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_depIdxs = []int32{ |
| 462 |
4, // 0: google.shopping.merchant.accounts.v1beta.TermsOfService.kind:type_name -> google.shopping.merchant.accounts.v1beta.TermsOfServiceKind |
| 463 |
4, // 1: google.shopping.merchant.accounts.v1beta.RetrieveLatestTermsOfServiceRequest.kind:type_name -> google.shopping.merchant.accounts.v1beta.TermsOfServiceKind |
| 464 |
1, // 2: google.shopping.merchant.accounts.v1beta.TermsOfServiceService.GetTermsOfService:input_type -> google.shopping.merchant.accounts.v1beta.GetTermsOfServiceRequest |
| 465 |
2, // 3: google.shopping.merchant.accounts.v1beta.TermsOfServiceService.RetrieveLatestTermsOfService:input_type -> google.shopping.merchant.accounts.v1beta.RetrieveLatestTermsOfServiceRequest |
| 466 |
3, // 4: google.shopping.merchant.accounts.v1beta.TermsOfServiceService.AcceptTermsOfService:input_type -> google.shopping.merchant.accounts.v1beta.AcceptTermsOfServiceRequest |
| 467 |
0, // 5: google.shopping.merchant.accounts.v1beta.TermsOfServiceService.GetTermsOfService:output_type -> google.shopping.merchant.accounts.v1beta.TermsOfService |
| 468 |
0, // 6: google.shopping.merchant.accounts.v1beta.TermsOfServiceService.RetrieveLatestTermsOfService:output_type -> google.shopping.merchant.accounts.v1beta.TermsOfService |
| 469 |
5, // 7: google.shopping.merchant.accounts.v1beta.TermsOfServiceService.AcceptTermsOfService:output_type -> google.protobuf.Empty |
| 470 |
5, // [5:8] is the sub-list for method output_type |
| 471 |
2, // [2:5] is the sub-list for method input_type |
| 472 |
2, // [2:2] is the sub-list for extension type_name |
| 473 |
2, // [2:2] is the sub-list for extension extendee |
| 474 |
0, // [0:2] is the sub-list for field type_name |
| 475 |
} |
| 476 |
|
| 477 |
func init() { file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_init() } |
| 478 |
func file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_init() { |
| 479 |
if File_google_shopping_merchant_accounts_v1beta_termsofservice_proto != nil { |
| 480 |
return |
| 481 |
} |
| 482 |
file_google_shopping_merchant_accounts_v1beta_termsofservicekind_proto_init() |
| 483 |
file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_msgTypes[0].OneofWrappers = []any{} |
| 484 |
type x struct{} |
| 485 |
out := protoimpl.TypeBuilder{ |
| 486 |
File: protoimpl.DescBuilder{ |
| 487 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 488 |
RawDescriptor: file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_rawDesc, |
| 489 |
NumEnums: 0, |
| 490 |
NumMessages: 4, |
| 491 |
NumExtensions: 0, |
| 492 |
NumServices: 1, |
| 493 |
}, |
| 494 |
GoTypes: file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_goTypes, |
| 495 |
DependencyIndexes: file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_depIdxs, |
| 496 |
MessageInfos: file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_msgTypes, |
| 497 |
}.Build() |
| 498 |
File_google_shopping_merchant_accounts_v1beta_termsofservice_proto = out.File |
| 499 |
file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_rawDesc = nil |
| 500 |
file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_goTypes = nil |
| 501 |
file_google_shopping_merchant_accounts_v1beta_termsofservice_proto_depIdxs = nil |
| 502 |
} |
| 503 |
|
| 504 |
// Reference imports to suppress errors if they are not otherwise used. |
| 505 |
var _ context.Context |
| 506 |
var _ grpc.ClientConnInterface |
| 507 |
|
| 508 |
// This is a compile-time assertion to ensure that this generated file |
| 509 |
// is compatible with the grpc package it is being compiled against. |
| 510 |
const _ = grpc.SupportPackageIsVersion6 |
| 511 |
|
| 512 |
// TermsOfServiceServiceClient is the client API for TermsOfServiceService service. |
| 513 |
// |
| 514 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 515 |
type TermsOfServiceServiceClient interface { |
| 516 |
// Retrieves the `TermsOfService` associated with the provided version. |
| 517 |
GetTermsOfService(ctx context.Context, in *GetTermsOfServiceRequest, opts ...grpc.CallOption) (*TermsOfService, error) |
| 518 |
// Retrieves the latest version of the `TermsOfService` for a given `kind` and |
| 519 |
// `region_code`. |
| 520 |
RetrieveLatestTermsOfService(ctx context.Context, in *RetrieveLatestTermsOfServiceRequest, opts ...grpc.CallOption) (*TermsOfService, error) |
| 521 |
// Accepts a `TermsOfService`. Executing this method requires admin access. |
| 522 |
AcceptTermsOfService(ctx context.Context, in *AcceptTermsOfServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) |
| 523 |
} |
| 524 |
|
| 525 |
type termsOfServiceServiceClient struct { |
| 526 |
cc grpc.ClientConnInterface |
| 527 |
} |
| 528 |
|
| 529 |
func NewTermsOfServiceServiceClient(cc grpc.ClientConnInterface) TermsOfServiceServiceClient { |
| 530 |
return &termsOfServiceServiceClient{cc} |
| 531 |
} |
| 532 |
|
| 533 |
func (c *termsOfServiceServiceClient) GetTermsOfService(ctx context.Context, in *GetTermsOfServiceRequest, opts ...grpc.CallOption) (*TermsOfService, error) { |
| 534 |
out := new(TermsOfService) |
| 535 |
err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1beta.TermsOfServiceService/GetTermsOfService", in, out, opts...) |
| 536 |
if err != nil { |
| 537 |
return nil, err |
| 538 |
} |
| 539 |
return out, nil |
| 540 |
} |
| 541 |
|
| 542 |
func (c *termsOfServiceServiceClient) RetrieveLatestTermsOfService(ctx context.Context, in *RetrieveLatestTermsOfServiceRequest, opts ...grpc.CallOption) (*TermsOfService, error) { |
| 543 |
out := new(TermsOfService) |
| 544 |
err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1beta.TermsOfServiceService/RetrieveLatestTermsOfService", in, out, opts...) |
| 545 |
if err != nil { |
| 546 |
return nil, err |
| 547 |
} |
| 548 |
return out, nil |
| 549 |
} |
| 550 |
|
| 551 |
func (c *termsOfServiceServiceClient) AcceptTermsOfService(ctx context.Context, in *AcceptTermsOfServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { |
| 552 |
out := new(emptypb.Empty) |
| 553 |
err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1beta.TermsOfServiceService/AcceptTermsOfService", in, out, opts...) |
| 554 |
if err != nil { |
| 555 |
return nil, err |
| 556 |
} |
| 557 |
return out, nil |
| 558 |
} |
| 559 |
|
| 560 |
// TermsOfServiceServiceServer is the server API for TermsOfServiceService service. |
| 561 |
type TermsOfServiceServiceServer interface { |
| 562 |
// Retrieves the `TermsOfService` associated with the provided version. |
| 563 |
GetTermsOfService(context.Context, *GetTermsOfServiceRequest) (*TermsOfService, error) |
| 564 |
// Retrieves the latest version of the `TermsOfService` for a given `kind` and |
| 565 |
// `region_code`. |
| 566 |
RetrieveLatestTermsOfService(context.Context, *RetrieveLatestTermsOfServiceRequest) (*TermsOfService, error) |
| 567 |
// Accepts a `TermsOfService`. Executing this method requires admin access. |
| 568 |
AcceptTermsOfService(context.Context, *AcceptTermsOfServiceRequest) (*emptypb.Empty, error) |
| 569 |
} |
| 570 |
|
| 571 |
// UnimplementedTermsOfServiceServiceServer can be embedded to have forward compatible implementations. |
| 572 |
type UnimplementedTermsOfServiceServiceServer struct { |
| 573 |
} |
| 574 |
|
| 575 |
func (*UnimplementedTermsOfServiceServiceServer) GetTermsOfService(context.Context, *GetTermsOfServiceRequest) (*TermsOfService, error) { |
| 576 |
return nil, status.Errorf(codes.Unimplemented, "method GetTermsOfService not implemented") |
| 577 |
} |
| 578 |
func (*UnimplementedTermsOfServiceServiceServer) RetrieveLatestTermsOfService(context.Context, *RetrieveLatestTermsOfServiceRequest) (*TermsOfService, error) { |
| 579 |
return nil, status.Errorf(codes.Unimplemented, "method RetrieveLatestTermsOfService not implemented") |
| 580 |
} |
| 581 |
func (*UnimplementedTermsOfServiceServiceServer) AcceptTermsOfService(context.Context, *AcceptTermsOfServiceRequest) (*emptypb.Empty, error) { |
| 582 |
return nil, status.Errorf(codes.Unimplemented, "method AcceptTermsOfService not implemented") |
| 583 |
} |
| 584 |
|
| 585 |
func RegisterTermsOfServiceServiceServer(s *grpc.Server, srv TermsOfServiceServiceServer) { |
| 586 |
s.RegisterService(&_TermsOfServiceService_serviceDesc, srv) |
| 587 |
} |
| 588 |
|
| 589 |
func _TermsOfServiceService_GetTermsOfService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 590 |
in := new(GetTermsOfServiceRequest) |
| 591 |
if err := dec(in); err != nil { |
| 592 |
return nil, err |
| 593 |
} |
| 594 |
if interceptor == nil { |
| 595 |
return srv.(TermsOfServiceServiceServer).GetTermsOfService(ctx, in) |
| 596 |
} |
| 597 |
info := &grpc.UnaryServerInfo{ |
| 598 |
Server: srv, |
| 599 |
FullMethod: "/google.shopping.merchant.accounts.v1beta.TermsOfServiceService/GetTermsOfService", |
| 600 |
} |
| 601 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 602 |
return srv.(TermsOfServiceServiceServer).GetTermsOfService(ctx, req.(*GetTermsOfServiceRequest)) |
| 603 |
} |
| 604 |
return interceptor(ctx, in, info, handler) |
| 605 |
} |
| 606 |
|
| 607 |
func _TermsOfServiceService_RetrieveLatestTermsOfService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 608 |
in := new(RetrieveLatestTermsOfServiceRequest) |
| 609 |
if err := dec(in); err != nil { |
| 610 |
return nil, err |
| 611 |
} |
| 612 |
if interceptor == nil { |
| 613 |
return srv.(TermsOfServiceServiceServer).RetrieveLatestTermsOfService(ctx, in) |
| 614 |
} |
| 615 |
info := &grpc.UnaryServerInfo{ |
| 616 |
Server: srv, |
| 617 |
FullMethod: "/google.shopping.merchant.accounts.v1beta.TermsOfServiceService/RetrieveLatestTermsOfService", |
| 618 |
} |
| 619 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 620 |
return srv.(TermsOfServiceServiceServer).RetrieveLatestTermsOfService(ctx, req.(*RetrieveLatestTermsOfServiceRequest)) |
| 621 |
} |
| 622 |
return interceptor(ctx, in, info, handler) |
| 623 |
} |
| 624 |
|
| 625 |
func _TermsOfServiceService_AcceptTermsOfService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 626 |
in := new(AcceptTermsOfServiceRequest) |
| 627 |
if err := dec(in); err != nil { |
| 628 |
return nil, err |
| 629 |
} |
| 630 |
if interceptor == nil { |
| 631 |
return srv.(TermsOfServiceServiceServer).AcceptTermsOfService(ctx, in) |
| 632 |
} |
| 633 |
info := &grpc.UnaryServerInfo{ |
| 634 |
Server: srv, |
| 635 |
FullMethod: "/google.shopping.merchant.accounts.v1beta.TermsOfServiceService/AcceptTermsOfService", |
| 636 |
} |
| 637 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 638 |
return srv.(TermsOfServiceServiceServer).AcceptTermsOfService(ctx, req.(*AcceptTermsOfServiceRequest)) |
| 639 |
} |
| 640 |
return interceptor(ctx, in, info, handler) |
| 641 |
} |
| 642 |
|
| 643 |
var _TermsOfServiceService_serviceDesc = grpc.ServiceDesc{ |
| 644 |
ServiceName: "google.shopping.merchant.accounts.v1beta.TermsOfServiceService", |
| 645 |
HandlerType: (*TermsOfServiceServiceServer)(nil), |
| 646 |
Methods: []grpc.MethodDesc{ |
| 647 |
{ |
| 648 |
MethodName: "GetTermsOfService", |
| 649 |
Handler: _TermsOfServiceService_GetTermsOfService_Handler, |
| 650 |
}, |
| 651 |
{ |
| 652 |
MethodName: "RetrieveLatestTermsOfService", |
| 653 |
Handler: _TermsOfServiceService_RetrieveLatestTermsOfService_Handler, |
| 654 |
}, |
| 655 |
{ |
| 656 |
MethodName: "AcceptTermsOfService", |
| 657 |
Handler: _TermsOfServiceService_AcceptTermsOfService_Handler, |
| 658 |
}, |
| 659 |
}, |
| 660 |
Streams: []grpc.StreamDesc{}, |
| 661 |
Metadata: "google/shopping/merchant/accounts/v1beta/termsofservice.proto", |
| 662 |
} |