| 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/css/v1/quota.proto |
| 20 |
|
| 21 |
package csspb |
| 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 |
reflect "reflect" |
| 32 |
sync "sync" |
| 33 |
) |
| 34 |
|
| 35 |
const ( |
| 36 |
// Verify that this generated code is sufficiently up-to-date. |
| 37 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 38 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 39 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 40 |
) |
| 41 |
|
| 42 |
// The group information for methods in the CSS API. The quota is shared |
| 43 |
// between all methods in the group. Even if none of the methods within the |
| 44 |
// group have usage the information for the group is returned. |
| 45 |
type QuotaGroup struct { |
| 46 |
state protoimpl.MessageState |
| 47 |
sizeCache protoimpl.SizeCache |
| 48 |
unknownFields protoimpl.UnknownFields |
| 49 |
|
| 50 |
// Identifier. The resource name of the quota group. |
| 51 |
// Format: accounts/{account}/quotas/{group} |
| 52 |
// Example: `accounts/12345678/quotas/css-products-insert` |
| 53 |
// Note: The {group} part is not guaranteed to follow a specific pattern. |
| 54 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 55 |
// Output only. The current quota usage, meaning the number of calls already |
| 56 |
// made on a given day to the methods in the group. The daily quota limits |
| 57 |
// reset at at 12:00 PM midday UTC. |
| 58 |
QuotaUsage int64 `protobuf:"varint,2,opt,name=quota_usage,json=quotaUsage,proto3" json:"quota_usage,omitempty"` |
| 59 |
// Output only. The maximum number of calls allowed per day for the group. |
| 60 |
QuotaLimit int64 `protobuf:"varint,3,opt,name=quota_limit,json=quotaLimit,proto3" json:"quota_limit,omitempty"` |
| 61 |
// Output only. The maximum number of calls allowed per minute for the group. |
| 62 |
QuotaMinuteLimit int64 `protobuf:"varint,5,opt,name=quota_minute_limit,json=quotaMinuteLimit,proto3" json:"quota_minute_limit,omitempty"` |
| 63 |
// Output only. List of all methods group quota applies to. |
| 64 |
MethodDetails []*MethodDetails `protobuf:"bytes,4,rep,name=method_details,json=methodDetails,proto3" json:"method_details,omitempty"` |
| 65 |
} |
| 66 |
|
| 67 |
func (x *QuotaGroup) Reset() { |
| 68 |
*x = QuotaGroup{} |
| 69 |
mi := &file_google_shopping_css_v1_quota_proto_msgTypes[0] |
| 70 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 71 |
ms.StoreMessageInfo(mi) |
| 72 |
} |
| 73 |
|
| 74 |
func (x *QuotaGroup) String() string { |
| 75 |
return protoimpl.X.MessageStringOf(x) |
| 76 |
} |
| 77 |
|
| 78 |
func (*QuotaGroup) ProtoMessage() {} |
| 79 |
|
| 80 |
func (x *QuotaGroup) ProtoReflect() protoreflect.Message { |
| 81 |
mi := &file_google_shopping_css_v1_quota_proto_msgTypes[0] |
| 82 |
if x != nil { |
| 83 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 84 |
if ms.LoadMessageInfo() == nil { |
| 85 |
ms.StoreMessageInfo(mi) |
| 86 |
} |
| 87 |
return ms |
| 88 |
} |
| 89 |
return mi.MessageOf(x) |
| 90 |
} |
| 91 |
|
| 92 |
// Deprecated: Use QuotaGroup.ProtoReflect.Descriptor instead. |
| 93 |
func (*QuotaGroup) Descriptor() ([]byte, []int) { |
| 94 |
return file_google_shopping_css_v1_quota_proto_rawDescGZIP(), []int{0} |
| 95 |
} |
| 96 |
|
| 97 |
func (x *QuotaGroup) GetName() string { |
| 98 |
if x != nil { |
| 99 |
return x.Name |
| 100 |
} |
| 101 |
return "" |
| 102 |
} |
| 103 |
|
| 104 |
func (x *QuotaGroup) GetQuotaUsage() int64 { |
| 105 |
if x != nil { |
| 106 |
return x.QuotaUsage |
| 107 |
} |
| 108 |
return 0 |
| 109 |
} |
| 110 |
|
| 111 |
func (x *QuotaGroup) GetQuotaLimit() int64 { |
| 112 |
if x != nil { |
| 113 |
return x.QuotaLimit |
| 114 |
} |
| 115 |
return 0 |
| 116 |
} |
| 117 |
|
| 118 |
func (x *QuotaGroup) GetQuotaMinuteLimit() int64 { |
| 119 |
if x != nil { |
| 120 |
return x.QuotaMinuteLimit |
| 121 |
} |
| 122 |
return 0 |
| 123 |
} |
| 124 |
|
| 125 |
func (x *QuotaGroup) GetMethodDetails() []*MethodDetails { |
| 126 |
if x != nil { |
| 127 |
return x.MethodDetails |
| 128 |
} |
| 129 |
return nil |
| 130 |
} |
| 131 |
|
| 132 |
// The method details per method in the CSS API. |
| 133 |
type MethodDetails struct { |
| 134 |
state protoimpl.MessageState |
| 135 |
sizeCache protoimpl.SizeCache |
| 136 |
unknownFields protoimpl.UnknownFields |
| 137 |
|
| 138 |
// Output only. The name of the method for example |
| 139 |
// `cssproductsservice.listcssproducts`. |
| 140 |
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` |
| 141 |
// Output only. The API version that the method belongs to. |
| 142 |
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` |
| 143 |
// Output only. The sub-API that the method belongs to. In the CSS API, this |
| 144 |
// is always `css`. |
| 145 |
Subapi string `protobuf:"bytes,3,opt,name=subapi,proto3" json:"subapi,omitempty"` |
| 146 |
// Output only. The path for the method such as |
| 147 |
// `v1/cssproductsservice.listcssproducts`. |
| 148 |
Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` |
| 149 |
} |
| 150 |
|
| 151 |
func (x *MethodDetails) Reset() { |
| 152 |
*x = MethodDetails{} |
| 153 |
mi := &file_google_shopping_css_v1_quota_proto_msgTypes[1] |
| 154 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 155 |
ms.StoreMessageInfo(mi) |
| 156 |
} |
| 157 |
|
| 158 |
func (x *MethodDetails) String() string { |
| 159 |
return protoimpl.X.MessageStringOf(x) |
| 160 |
} |
| 161 |
|
| 162 |
func (*MethodDetails) ProtoMessage() {} |
| 163 |
|
| 164 |
func (x *MethodDetails) ProtoReflect() protoreflect.Message { |
| 165 |
mi := &file_google_shopping_css_v1_quota_proto_msgTypes[1] |
| 166 |
if x != nil { |
| 167 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 168 |
if ms.LoadMessageInfo() == nil { |
| 169 |
ms.StoreMessageInfo(mi) |
| 170 |
} |
| 171 |
return ms |
| 172 |
} |
| 173 |
return mi.MessageOf(x) |
| 174 |
} |
| 175 |
|
| 176 |
// Deprecated: Use MethodDetails.ProtoReflect.Descriptor instead. |
| 177 |
func (*MethodDetails) Descriptor() ([]byte, []int) { |
| 178 |
return file_google_shopping_css_v1_quota_proto_rawDescGZIP(), []int{1} |
| 179 |
} |
| 180 |
|
| 181 |
func (x *MethodDetails) GetMethod() string { |
| 182 |
if x != nil { |
| 183 |
return x.Method |
| 184 |
} |
| 185 |
return "" |
| 186 |
} |
| 187 |
|
| 188 |
func (x *MethodDetails) GetVersion() string { |
| 189 |
if x != nil { |
| 190 |
return x.Version |
| 191 |
} |
| 192 |
return "" |
| 193 |
} |
| 194 |
|
| 195 |
func (x *MethodDetails) GetSubapi() string { |
| 196 |
if x != nil { |
| 197 |
return x.Subapi |
| 198 |
} |
| 199 |
return "" |
| 200 |
} |
| 201 |
|
| 202 |
func (x *MethodDetails) GetPath() string { |
| 203 |
if x != nil { |
| 204 |
return x.Path |
| 205 |
} |
| 206 |
return "" |
| 207 |
} |
| 208 |
|
| 209 |
// Request message for the ListQuotaGroups method. |
| 210 |
type ListQuotaGroupsRequest struct { |
| 211 |
state protoimpl.MessageState |
| 212 |
sizeCache protoimpl.SizeCache |
| 213 |
unknownFields protoimpl.UnknownFields |
| 214 |
|
| 215 |
// Required. The CSS account that owns the collection of method quotas and |
| 216 |
// resources. In most cases, this is the CSS domain. Format: |
| 217 |
// accounts/{account} |
| 218 |
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| 219 |
// Optional. The maximum number of quotas to return in the response, used |
| 220 |
// for paging. Defaults to 500; values above 1000 will be coerced to 1000. |
| 221 |
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` |
| 222 |
// Optional. Token (if provided) to retrieve the subsequent page. All other |
| 223 |
// parameters must match the original call that provided the page token. |
| 224 |
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` |
| 225 |
} |
| 226 |
|
| 227 |
func (x *ListQuotaGroupsRequest) Reset() { |
| 228 |
*x = ListQuotaGroupsRequest{} |
| 229 |
mi := &file_google_shopping_css_v1_quota_proto_msgTypes[2] |
| 230 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 231 |
ms.StoreMessageInfo(mi) |
| 232 |
} |
| 233 |
|
| 234 |
func (x *ListQuotaGroupsRequest) String() string { |
| 235 |
return protoimpl.X.MessageStringOf(x) |
| 236 |
} |
| 237 |
|
| 238 |
func (*ListQuotaGroupsRequest) ProtoMessage() {} |
| 239 |
|
| 240 |
func (x *ListQuotaGroupsRequest) ProtoReflect() protoreflect.Message { |
| 241 |
mi := &file_google_shopping_css_v1_quota_proto_msgTypes[2] |
| 242 |
if x != nil { |
| 243 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 244 |
if ms.LoadMessageInfo() == nil { |
| 245 |
ms.StoreMessageInfo(mi) |
| 246 |
} |
| 247 |
return ms |
| 248 |
} |
| 249 |
return mi.MessageOf(x) |
| 250 |
} |
| 251 |
|
| 252 |
// Deprecated: Use ListQuotaGroupsRequest.ProtoReflect.Descriptor instead. |
| 253 |
func (*ListQuotaGroupsRequest) Descriptor() ([]byte, []int) { |
| 254 |
return file_google_shopping_css_v1_quota_proto_rawDescGZIP(), []int{2} |
| 255 |
} |
| 256 |
|
| 257 |
func (x *ListQuotaGroupsRequest) GetParent() string { |
| 258 |
if x != nil { |
| 259 |
return x.Parent |
| 260 |
} |
| 261 |
return "" |
| 262 |
} |
| 263 |
|
| 264 |
func (x *ListQuotaGroupsRequest) GetPageSize() int32 { |
| 265 |
if x != nil { |
| 266 |
return x.PageSize |
| 267 |
} |
| 268 |
return 0 |
| 269 |
} |
| 270 |
|
| 271 |
func (x *ListQuotaGroupsRequest) GetPageToken() string { |
| 272 |
if x != nil { |
| 273 |
return x.PageToken |
| 274 |
} |
| 275 |
return "" |
| 276 |
} |
| 277 |
|
| 278 |
// Response message for the ListMethodGroups method. |
| 279 |
type ListQuotaGroupsResponse struct { |
| 280 |
state protoimpl.MessageState |
| 281 |
sizeCache protoimpl.SizeCache |
| 282 |
unknownFields protoimpl.UnknownFields |
| 283 |
|
| 284 |
// The methods, current quota usage and limits per each group. The quota is |
| 285 |
// shared between all methods in the group. The groups are sorted in |
| 286 |
// descending order based on |
| 287 |
// [quota_usage][google.shopping.css.v1.QuotaGroup.quota_usage]. |
| 288 |
QuotaGroups []*QuotaGroup `protobuf:"bytes,1,rep,name=quota_groups,json=quotaGroups,proto3" json:"quota_groups,omitempty"` |
| 289 |
// A token, which can be sent as `page_token` to retrieve the next page. |
| 290 |
// If this field is omitted, there are no subsequent pages. |
| 291 |
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` |
| 292 |
} |
| 293 |
|
| 294 |
func (x *ListQuotaGroupsResponse) Reset() { |
| 295 |
*x = ListQuotaGroupsResponse{} |
| 296 |
mi := &file_google_shopping_css_v1_quota_proto_msgTypes[3] |
| 297 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 298 |
ms.StoreMessageInfo(mi) |
| 299 |
} |
| 300 |
|
| 301 |
func (x *ListQuotaGroupsResponse) String() string { |
| 302 |
return protoimpl.X.MessageStringOf(x) |
| 303 |
} |
| 304 |
|
| 305 |
func (*ListQuotaGroupsResponse) ProtoMessage() {} |
| 306 |
|
| 307 |
func (x *ListQuotaGroupsResponse) ProtoReflect() protoreflect.Message { |
| 308 |
mi := &file_google_shopping_css_v1_quota_proto_msgTypes[3] |
| 309 |
if x != nil { |
| 310 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 311 |
if ms.LoadMessageInfo() == nil { |
| 312 |
ms.StoreMessageInfo(mi) |
| 313 |
} |
| 314 |
return ms |
| 315 |
} |
| 316 |
return mi.MessageOf(x) |
| 317 |
} |
| 318 |
|
| 319 |
// Deprecated: Use ListQuotaGroupsResponse.ProtoReflect.Descriptor instead. |
| 320 |
func (*ListQuotaGroupsResponse) Descriptor() ([]byte, []int) { |
| 321 |
return file_google_shopping_css_v1_quota_proto_rawDescGZIP(), []int{3} |
| 322 |
} |
| 323 |
|
| 324 |
func (x *ListQuotaGroupsResponse) GetQuotaGroups() []*QuotaGroup { |
| 325 |
if x != nil { |
| 326 |
return x.QuotaGroups |
| 327 |
} |
| 328 |
return nil |
| 329 |
} |
| 330 |
|
| 331 |
func (x *ListQuotaGroupsResponse) GetNextPageToken() string { |
| 332 |
if x != nil { |
| 333 |
return x.NextPageToken |
| 334 |
} |
| 335 |
return "" |
| 336 |
} |
| 337 |
|
| 338 |
var File_google_shopping_css_v1_quota_proto protoreflect.FileDescriptor |
| 339 |
|
| 340 |
var file_google_shopping_css_v1_quota_proto_rawDesc = []byte{ |
| 341 |
0x0a, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, |
| 342 |
0x67, 0x2f, 0x63, 0x73, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x2e, 0x70, |
| 343 |
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, |
| 344 |
0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, |
| 345 |
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, |
| 346 |
0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, |
| 347 |
0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, |
| 348 |
0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, |
| 349 |
0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, |
| 350 |
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, |
| 351 |
0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, |
| 352 |
0xe2, 0x02, 0x0a, 0x0a, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x17, |
| 353 |
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, |
| 354 |
0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0b, 0x71, 0x75, 0x6f, 0x74, 0x61, |
| 355 |
0x5f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, |
| 356 |
0x03, 0x52, 0x0a, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x55, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, |
| 357 |
0x0b, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, |
| 358 |
0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x4c, 0x69, |
| 359 |
0x6d, 0x69, 0x74, 0x12, 0x31, 0x0a, 0x12, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x5f, 0x6d, 0x69, 0x6e, |
| 360 |
0x75, 0x74, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x42, |
| 361 |
0x03, 0xe0, 0x41, 0x03, 0x52, 0x10, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x4d, 0x69, 0x6e, 0x75, 0x74, |
| 362 |
0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x51, 0x0a, 0x0e, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, |
| 363 |
0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, |
| 364 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, |
| 365 |
0x2e, 0x63, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x44, 0x65, |
| 366 |
0x74, 0x61, 0x69, 0x6c, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x6d, 0x65, 0x74, 0x68, |
| 367 |
0x6f, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x3a, 0x69, 0xea, 0x41, 0x66, 0x0a, 0x1d, |
| 368 |
0x63, 0x73, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, |
| 369 |
0x6f, 0x6d, 0x2f, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2c, 0x61, |
| 370 |
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, |
| 371 |
0x7d, 0x2f, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x7b, 0x71, |
| 372 |
0x75, 0x6f, 0x74, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x7d, 0x2a, 0x0b, 0x71, 0x75, 0x6f, |
| 373 |
0x74, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x32, 0x0a, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x47, |
| 374 |
0x72, 0x6f, 0x75, 0x70, 0x22, 0x81, 0x01, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x44, |
| 375 |
0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1b, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, |
| 376 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x6d, 0x65, 0x74, |
| 377 |
0x68, 0x6f, 0x64, 0x12, 0x1d, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, |
| 378 |
0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, |
| 379 |
0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x73, 0x75, 0x62, 0x61, 0x70, 0x69, 0x18, 0x03, 0x20, 0x01, |
| 380 |
0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x73, 0x75, 0x62, 0x61, 0x70, 0x69, 0x12, |
| 381 |
0x17, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, |
| 382 |
0x41, 0x03, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x9d, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, |
| 383 |
0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, |
| 384 |
0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, |
| 385 |
0x01, 0x28, 0x09, 0x42, 0x25, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1f, 0x12, 0x1d, 0x63, 0x73, 0x73, |
| 386 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, |
| 387 |
0x51, 0x75, 0x6f, 0x74, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, |
| 388 |
0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, |
| 389 |
0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, |
| 390 |
0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, |
| 391 |
0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, |
| 392 |
0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x88, 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x73, |
| 393 |
0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, |
| 394 |
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x5f, 0x67, 0x72, |
| 395 |
0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, |
| 396 |
0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x73, 0x73, |
| 397 |
0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0b, |
| 398 |
0x71, 0x75, 0x6f, 0x74, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, |
| 399 |
0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, |
| 400 |
0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, |
| 401 |
0x6b, 0x65, 0x6e, 0x32, 0xf5, 0x01, 0x0a, 0x0c, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x53, 0x65, 0x72, |
| 402 |
0x76, 0x69, 0x63, 0x65, 0x12, 0xa3, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x51, 0x75, 0x6f, |
| 403 |
0x74, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 404 |
0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x73, 0x73, 0x2e, 0x76, |
| 405 |
0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, |
| 406 |
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 407 |
0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x73, 0x73, 0x2e, 0x76, |
| 408 |
0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, |
| 409 |
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0xda, 0x41, 0x06, 0x70, 0x61, |
| 410 |
0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x76, 0x31, 0x2f, |
| 411 |
0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, |
| 412 |
0x2f, 0x2a, 0x7d, 0x2f, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x73, 0x1a, 0x3f, 0xca, 0x41, 0x12, 0x63, |
| 413 |
0x73, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, |
| 414 |
0x6d, 0xd2, 0x41, 0x27, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, |
| 415 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, |
| 416 |
0x75, 0x74, 0x68, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0xac, 0x01, 0x0a, 0x1a, |
| 417 |
0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, |
| 418 |
0x69, 0x6e, 0x67, 0x2e, 0x63, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x6f, 0x74, |
| 419 |
0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 420 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x68, |
| 421 |
0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x73, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, |
| 422 |
0x2f, 0x63, 0x73, 0x73, 0x70, 0x62, 0x3b, 0x63, 0x73, 0x73, 0x70, 0x62, 0xaa, 0x02, 0x16, 0x47, |
| 423 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x43, |
| 424 |
0x73, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x53, |
| 425 |
0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5c, 0x43, 0x73, 0x73, 0x5c, 0x56, 0x31, 0xea, 0x02, |
| 426 |
0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, |
| 427 |
0x67, 0x3a, 0x3a, 0x43, 0x73, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, |
| 428 |
0x6f, 0x33, |
| 429 |
} |
| 430 |
|
| 431 |
var ( |
| 432 |
file_google_shopping_css_v1_quota_proto_rawDescOnce sync.Once |
| 433 |
file_google_shopping_css_v1_quota_proto_rawDescData = file_google_shopping_css_v1_quota_proto_rawDesc |
| 434 |
) |
| 435 |
|
| 436 |
func file_google_shopping_css_v1_quota_proto_rawDescGZIP() []byte { |
| 437 |
file_google_shopping_css_v1_quota_proto_rawDescOnce.Do(func() { |
| 438 |
file_google_shopping_css_v1_quota_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_css_v1_quota_proto_rawDescData) |
| 439 |
}) |
| 440 |
return file_google_shopping_css_v1_quota_proto_rawDescData |
| 441 |
} |
| 442 |
|
| 443 |
var file_google_shopping_css_v1_quota_proto_msgTypes = make([]protoimpl.MessageInfo, 4) |
| 444 |
var file_google_shopping_css_v1_quota_proto_goTypes = []any{ |
| 445 |
(*QuotaGroup)(nil), // 0: google.shopping.css.v1.QuotaGroup |
| 446 |
(*MethodDetails)(nil), // 1: google.shopping.css.v1.MethodDetails |
| 447 |
(*ListQuotaGroupsRequest)(nil), // 2: google.shopping.css.v1.ListQuotaGroupsRequest |
| 448 |
(*ListQuotaGroupsResponse)(nil), // 3: google.shopping.css.v1.ListQuotaGroupsResponse |
| 449 |
} |
| 450 |
var file_google_shopping_css_v1_quota_proto_depIdxs = []int32{ |
| 451 |
1, // 0: google.shopping.css.v1.QuotaGroup.method_details:type_name -> google.shopping.css.v1.MethodDetails |
| 452 |
0, // 1: google.shopping.css.v1.ListQuotaGroupsResponse.quota_groups:type_name -> google.shopping.css.v1.QuotaGroup |
| 453 |
2, // 2: google.shopping.css.v1.QuotaService.ListQuotaGroups:input_type -> google.shopping.css.v1.ListQuotaGroupsRequest |
| 454 |
3, // 3: google.shopping.css.v1.QuotaService.ListQuotaGroups:output_type -> google.shopping.css.v1.ListQuotaGroupsResponse |
| 455 |
3, // [3:4] is the sub-list for method output_type |
| 456 |
2, // [2:3] is the sub-list for method input_type |
| 457 |
2, // [2:2] is the sub-list for extension type_name |
| 458 |
2, // [2:2] is the sub-list for extension extendee |
| 459 |
0, // [0:2] is the sub-list for field type_name |
| 460 |
} |
| 461 |
|
| 462 |
func init() { file_google_shopping_css_v1_quota_proto_init() } |
| 463 |
func file_google_shopping_css_v1_quota_proto_init() { |
| 464 |
if File_google_shopping_css_v1_quota_proto != nil { |
| 465 |
return |
| 466 |
} |
| 467 |
type x struct{} |
| 468 |
out := protoimpl.TypeBuilder{ |
| 469 |
File: protoimpl.DescBuilder{ |
| 470 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 471 |
RawDescriptor: file_google_shopping_css_v1_quota_proto_rawDesc, |
| 472 |
NumEnums: 0, |
| 473 |
NumMessages: 4, |
| 474 |
NumExtensions: 0, |
| 475 |
NumServices: 1, |
| 476 |
}, |
| 477 |
GoTypes: file_google_shopping_css_v1_quota_proto_goTypes, |
| 478 |
DependencyIndexes: file_google_shopping_css_v1_quota_proto_depIdxs, |
| 479 |
MessageInfos: file_google_shopping_css_v1_quota_proto_msgTypes, |
| 480 |
}.Build() |
| 481 |
File_google_shopping_css_v1_quota_proto = out.File |
| 482 |
file_google_shopping_css_v1_quota_proto_rawDesc = nil |
| 483 |
file_google_shopping_css_v1_quota_proto_goTypes = nil |
| 484 |
file_google_shopping_css_v1_quota_proto_depIdxs = nil |
| 485 |
} |
| 486 |
|
| 487 |
// Reference imports to suppress errors if they are not otherwise used. |
| 488 |
var _ context.Context |
| 489 |
var _ grpc.ClientConnInterface |
| 490 |
|
| 491 |
// This is a compile-time assertion to ensure that this generated file |
| 492 |
// is compatible with the grpc package it is being compiled against. |
| 493 |
const _ = grpc.SupportPackageIsVersion6 |
| 494 |
|
| 495 |
// QuotaServiceClient is the client API for QuotaService service. |
| 496 |
// |
| 497 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 498 |
type QuotaServiceClient interface { |
| 499 |
// Lists the daily call quota and usage per group for your CSS Center account. |
| 500 |
ListQuotaGroups(ctx context.Context, in *ListQuotaGroupsRequest, opts ...grpc.CallOption) (*ListQuotaGroupsResponse, error) |
| 501 |
} |
| 502 |
|
| 503 |
type quotaServiceClient struct { |
| 504 |
cc grpc.ClientConnInterface |
| 505 |
} |
| 506 |
|
| 507 |
func NewQuotaServiceClient(cc grpc.ClientConnInterface) QuotaServiceClient { |
| 508 |
return "aServiceClient{cc} |
| 509 |
} |
| 510 |
|
| 511 |
func (c *quotaServiceClient) ListQuotaGroups(ctx context.Context, in *ListQuotaGroupsRequest, opts ...grpc.CallOption) (*ListQuotaGroupsResponse, error) { |
| 512 |
out := new(ListQuotaGroupsResponse) |
| 513 |
err := c.cc.Invoke(ctx, "/google.shopping.css.v1.QuotaService/ListQuotaGroups", in, out, opts...) |
| 514 |
if err != nil { |
| 515 |
return nil, err |
| 516 |
} |
| 517 |
return out, nil |
| 518 |
} |
| 519 |
|
| 520 |
// QuotaServiceServer is the server API for QuotaService service. |
| 521 |
type QuotaServiceServer interface { |
| 522 |
// Lists the daily call quota and usage per group for your CSS Center account. |
| 523 |
ListQuotaGroups(context.Context, *ListQuotaGroupsRequest) (*ListQuotaGroupsResponse, error) |
| 524 |
} |
| 525 |
|
| 526 |
// UnimplementedQuotaServiceServer can be embedded to have forward compatible implementations. |
| 527 |
type UnimplementedQuotaServiceServer struct { |
| 528 |
} |
| 529 |
|
| 530 |
func (*UnimplementedQuotaServiceServer) ListQuotaGroups(context.Context, *ListQuotaGroupsRequest) (*ListQuotaGroupsResponse, error) { |
| 531 |
return nil, status.Errorf(codes.Unimplemented, "method ListQuotaGroups not implemented") |
| 532 |
} |
| 533 |
|
| 534 |
func RegisterQuotaServiceServer(s *grpc.Server, srv QuotaServiceServer) { |
| 535 |
s.RegisterService(&_QuotaService_serviceDesc, srv) |
| 536 |
} |
| 537 |
|
| 538 |
func _QuotaService_ListQuotaGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 539 |
in := new(ListQuotaGroupsRequest) |
| 540 |
if err := dec(in); err != nil { |
| 541 |
return nil, err |
| 542 |
} |
| 543 |
if interceptor == nil { |
| 544 |
return srv.(QuotaServiceServer).ListQuotaGroups(ctx, in) |
| 545 |
} |
| 546 |
info := &grpc.UnaryServerInfo{ |
| 547 |
Server: srv, |
| 548 |
FullMethod: "/google.shopping.css.v1.QuotaService/ListQuotaGroups", |
| 549 |
} |
| 550 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 551 |
return srv.(QuotaServiceServer).ListQuotaGroups(ctx, req.(*ListQuotaGroupsRequest)) |
| 552 |
} |
| 553 |
return interceptor(ctx, in, info, handler) |
| 554 |
} |
| 555 |
|
| 556 |
var _QuotaService_serviceDesc = grpc.ServiceDesc{ |
| 557 |
ServiceName: "google.shopping.css.v1.QuotaService", |
| 558 |
HandlerType: (*QuotaServiceServer)(nil), |
| 559 |
Methods: []grpc.MethodDesc{ |
| 560 |
{ |
| 561 |
MethodName: "ListQuotaGroups", |
| 562 |
Handler: _QuotaService_ListQuotaGroups_Handler, |
| 563 |
}, |
| 564 |
}, |
| 565 |
Streams: []grpc.StreamDesc{}, |
| 566 |
Metadata: "google/shopping/css/v1/quota.proto", |
| 567 |
} |