Debian Codegraph @

shopping/merchant/accounts/apiv1/accountspb/accessright.pb.go

raw
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/v1/accessright.proto
20
21 package accountspb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // The access right.
38 type AccessRight int32
39
40 const (
41 // Default value. This value is unused.
42 AccessRight_ACCESS_RIGHT_UNSPECIFIED AccessRight = 0
43 // Standard access rights.
44 AccessRight_STANDARD AccessRight = 1
45 // Has access to the same read-only methods as STANDARD, but no access to
46 // any mutating methods.
47 AccessRight_READ_ONLY AccessRight = 4
48 // Admin access rights.
49 AccessRight_ADMIN AccessRight = 2
50 // Users with this right have access to performance and insights.
51 AccessRight_PERFORMANCE_REPORTING AccessRight = 3
52 // Users with this right have access to Merchant API and its notifications.
53 // This role is only accessible to accounts that has a developer registration.
54 AccessRight_API_DEVELOPER AccessRight = 5
55 )
56
57 // Enum value maps for AccessRight.
58 var (
59 AccessRight_name = map[int32]string{
60 0: "ACCESS_RIGHT_UNSPECIFIED",
61 1: "STANDARD",
62 4: "READ_ONLY",
63 2: "ADMIN",
64 3: "PERFORMANCE_REPORTING",
65 5: "API_DEVELOPER",
66 }
67 AccessRight_value = map[string]int32{
68 "ACCESS_RIGHT_UNSPECIFIED": 0,
69 "STANDARD": 1,
70 "READ_ONLY": 4,
71 "ADMIN": 2,
72 "PERFORMANCE_REPORTING": 3,
73 "API_DEVELOPER": 5,
74 }
75 )
76
77 func (x AccessRight) Enum() *AccessRight {
78 p := new(AccessRight)
79 *p = x
80 return p
81 }
82
83 func (x AccessRight) String() string {
84 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
85 }
86
87 func (AccessRight) Descriptor() protoreflect.EnumDescriptor {
88 return file_google_shopping_merchant_accounts_v1_accessright_proto_enumTypes[0].Descriptor()
89 }
90
91 func (AccessRight) Type() protoreflect.EnumType {
92 return &file_google_shopping_merchant_accounts_v1_accessright_proto_enumTypes[0]
93 }
94
95 func (x AccessRight) Number() protoreflect.EnumNumber {
96 return protoreflect.EnumNumber(x)
97 }
98
99 // Deprecated: Use AccessRight.Descriptor instead.
100 func (AccessRight) EnumDescriptor() ([]byte, []int) {
101 return file_google_shopping_merchant_accounts_v1_accessright_proto_rawDescGZIP(), []int{0}
102 }
103
104 var File_google_shopping_merchant_accounts_v1_accessright_proto protoreflect.FileDescriptor
105
106 var file_google_shopping_merchant_accounts_v1_accessright_proto_rawDesc = []byte{
107 0x0a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
108 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75,
109 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x72, 0x69, 0x67,
110 0x68, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
111 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61,
112 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2a, 0x81,
113 0x01, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1c,
114 0x0a, 0x18, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x52, 0x49, 0x47, 0x48, 0x54, 0x5f, 0x55,
115 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08,
116 0x53, 0x54, 0x41, 0x4e, 0x44, 0x41, 0x52, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x45,
117 0x41, 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x4d,
118 0x49, 0x4e, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x45, 0x52, 0x46, 0x4f, 0x52, 0x4d, 0x41,
119 0x4e, 0x43, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x52, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12,
120 0x11, 0x0a, 0x0d, 0x41, 0x50, 0x49, 0x5f, 0x44, 0x45, 0x56, 0x45, 0x4c, 0x4f, 0x50, 0x45, 0x52,
121 0x10, 0x05, 0x42, 0x83, 0x02, 0x0a, 0x28, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
122 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68,
123 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x42,
124 0x10, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x69, 0x67, 0x68, 0x74, 0x50, 0x72, 0x6f, 0x74,
125 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
126 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
127 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75,
128 0x6e, 0x74, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
129 0x74, 0x73, 0x70, 0x62, 0x3b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x70, 0x62, 0xaa,
130 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
131 0x67, 0x2e, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75,
132 0x6e, 0x74, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
133 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5c, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e,
134 0x74, 0x5c, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x28,
135 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
136 0x3a, 0x3a, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x3a, 0x3a, 0x41, 0x63, 0x63, 0x6f,
137 0x75, 0x6e, 0x74, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
138 }
139
140 var (
141 file_google_shopping_merchant_accounts_v1_accessright_proto_rawDescOnce sync.Once
142 file_google_shopping_merchant_accounts_v1_accessright_proto_rawDescData = file_google_shopping_merchant_accounts_v1_accessright_proto_rawDesc
143 )
144
145 func file_google_shopping_merchant_accounts_v1_accessright_proto_rawDescGZIP() []byte {
146 file_google_shopping_merchant_accounts_v1_accessright_proto_rawDescOnce.Do(func() {
147 file_google_shopping_merchant_accounts_v1_accessright_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_merchant_accounts_v1_accessright_proto_rawDescData)
148 })
149 return file_google_shopping_merchant_accounts_v1_accessright_proto_rawDescData
150 }
151
152 var file_google_shopping_merchant_accounts_v1_accessright_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
153 var file_google_shopping_merchant_accounts_v1_accessright_proto_goTypes = []any{
154 (AccessRight)(0), // 0: google.shopping.merchant.accounts.v1.AccessRight
155 }
156 var file_google_shopping_merchant_accounts_v1_accessright_proto_depIdxs = []int32{
157 0, // [0:0] is the sub-list for method output_type
158 0, // [0:0] is the sub-list for method input_type
159 0, // [0:0] is the sub-list for extension type_name
160 0, // [0:0] is the sub-list for extension extendee
161 0, // [0:0] is the sub-list for field type_name
162 }
163
164 func init() { file_google_shopping_merchant_accounts_v1_accessright_proto_init() }
165 func file_google_shopping_merchant_accounts_v1_accessright_proto_init() {
166 if File_google_shopping_merchant_accounts_v1_accessright_proto != nil {
167 return
168 }
169 type x struct{}
170 out := protoimpl.TypeBuilder{
171 File: protoimpl.DescBuilder{
172 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
173 RawDescriptor: file_google_shopping_merchant_accounts_v1_accessright_proto_rawDesc,
174 NumEnums: 1,
175 NumMessages: 0,
176 NumExtensions: 0,
177 NumServices: 0,
178 },
179 GoTypes: file_google_shopping_merchant_accounts_v1_accessright_proto_goTypes,
180 DependencyIndexes: file_google_shopping_merchant_accounts_v1_accessright_proto_depIdxs,
181 EnumInfos: file_google_shopping_merchant_accounts_v1_accessright_proto_enumTypes,
182 }.Build()
183 File_google_shopping_merchant_accounts_v1_accessright_proto = out.File
184 file_google_shopping_merchant_accounts_v1_accessright_proto_rawDesc = nil
185 file_google_shopping_merchant_accounts_v1_accessright_proto_goTypes = nil
186 file_google_shopping_merchant_accounts_v1_accessright_proto_depIdxs = nil
187 }