-
Notifications
You must be signed in to change notification settings - Fork 1
/
common.pb.fieldpathbuilder.go
259 lines (198 loc) · 10.9 KB
/
common.pb.fieldpathbuilder.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
// Code generated by protoc-gen-goten-object
// File: edgelq/iam/proto/v1/common.proto
// DO NOT EDIT!!!
package iam_common
// proto imports
import (
meta_service "github.com/cloudwan/goten-sdk/meta-service/resources/v1/service"
meta "github.com/cloudwan/goten-sdk/types/meta"
multi_region_policy "github.com/cloudwan/goten-sdk/types/multi_region_policy"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
// make sure we're using proto imports
var (
_ = ×tamppb.Timestamp{}
_ = &meta_service.Service{}
_ = &meta.Meta{}
_ = &multi_region_policy.MultiRegionPolicy{}
)
type PCRFieldPathBuilder struct{}
func NewPCRFieldPathBuilder() PCRFieldPathBuilder {
return PCRFieldPathBuilder{}
}
func (PCRFieldPathBuilder) Index() PCRPathSelectorIndex {
return PCRPathSelectorIndex{}
}
func (PCRFieldPathBuilder) DigestHex() PCRPathSelectorDigestHex {
return PCRPathSelectorDigestHex{}
}
func (PCRFieldPathBuilder) DigestAlg() PCRPathSelectorDigestAlg {
return PCRPathSelectorDigestAlg{}
}
func (PCRFieldPathBuilder) Comment() PCRPathSelectorComment {
return PCRPathSelectorComment{}
}
type PCRPathSelectorIndex struct{}
func (PCRPathSelectorIndex) FieldPath() *PCR_FieldTerminalPath {
return &PCR_FieldTerminalPath{selector: PCR_FieldPathSelectorIndex}
}
func (s PCRPathSelectorIndex) WithValue(value uint32) *PCR_FieldTerminalPathValue {
return s.FieldPath().WithIValue(value).(*PCR_FieldTerminalPathValue)
}
func (s PCRPathSelectorIndex) WithArrayOfValues(values []uint32) *PCR_FieldTerminalPathArrayOfValues {
return s.FieldPath().WithIArrayOfValues(values).(*PCR_FieldTerminalPathArrayOfValues)
}
type PCRPathSelectorDigestHex struct{}
func (PCRPathSelectorDigestHex) FieldPath() *PCR_FieldTerminalPath {
return &PCR_FieldTerminalPath{selector: PCR_FieldPathSelectorDigestHex}
}
func (s PCRPathSelectorDigestHex) WithValue(value string) *PCR_FieldTerminalPathValue {
return s.FieldPath().WithIValue(value).(*PCR_FieldTerminalPathValue)
}
func (s PCRPathSelectorDigestHex) WithArrayOfValues(values []string) *PCR_FieldTerminalPathArrayOfValues {
return s.FieldPath().WithIArrayOfValues(values).(*PCR_FieldTerminalPathArrayOfValues)
}
type PCRPathSelectorDigestAlg struct{}
func (PCRPathSelectorDigestAlg) FieldPath() *PCR_FieldTerminalPath {
return &PCR_FieldTerminalPath{selector: PCR_FieldPathSelectorDigestAlg}
}
func (s PCRPathSelectorDigestAlg) WithValue(value DigestAlg) *PCR_FieldTerminalPathValue {
return s.FieldPath().WithIValue(value).(*PCR_FieldTerminalPathValue)
}
func (s PCRPathSelectorDigestAlg) WithArrayOfValues(values []DigestAlg) *PCR_FieldTerminalPathArrayOfValues {
return s.FieldPath().WithIArrayOfValues(values).(*PCR_FieldTerminalPathArrayOfValues)
}
type PCRPathSelectorComment struct{}
func (PCRPathSelectorComment) FieldPath() *PCR_FieldTerminalPath {
return &PCR_FieldTerminalPath{selector: PCR_FieldPathSelectorComment}
}
func (s PCRPathSelectorComment) WithValue(value string) *PCR_FieldTerminalPathValue {
return s.FieldPath().WithIValue(value).(*PCR_FieldTerminalPathValue)
}
func (s PCRPathSelectorComment) WithArrayOfValues(values []string) *PCR_FieldTerminalPathArrayOfValues {
return s.FieldPath().WithIArrayOfValues(values).(*PCR_FieldTerminalPathArrayOfValues)
}
type ServiceBusinessTierFieldPathBuilder struct{}
func NewServiceBusinessTierFieldPathBuilder() ServiceBusinessTierFieldPathBuilder {
return ServiceBusinessTierFieldPathBuilder{}
}
func (ServiceBusinessTierFieldPathBuilder) Service() ServiceBusinessTierPathSelectorService {
return ServiceBusinessTierPathSelectorService{}
}
func (ServiceBusinessTierFieldPathBuilder) BusinessTier() ServiceBusinessTierPathSelectorBusinessTier {
return ServiceBusinessTierPathSelectorBusinessTier{}
}
type ServiceBusinessTierPathSelectorService struct{}
func (ServiceBusinessTierPathSelectorService) FieldPath() *ServiceBusinessTier_FieldTerminalPath {
return &ServiceBusinessTier_FieldTerminalPath{selector: ServiceBusinessTier_FieldPathSelectorService}
}
func (s ServiceBusinessTierPathSelectorService) WithValue(value *meta_service.Name) *ServiceBusinessTier_FieldTerminalPathValue {
return s.FieldPath().WithIValue(value).(*ServiceBusinessTier_FieldTerminalPathValue)
}
func (s ServiceBusinessTierPathSelectorService) WithArrayOfValues(values []*meta_service.Name) *ServiceBusinessTier_FieldTerminalPathArrayOfValues {
return s.FieldPath().WithIArrayOfValues(values).(*ServiceBusinessTier_FieldTerminalPathArrayOfValues)
}
type ServiceBusinessTierPathSelectorBusinessTier struct{}
func (ServiceBusinessTierPathSelectorBusinessTier) FieldPath() *ServiceBusinessTier_FieldTerminalPath {
return &ServiceBusinessTier_FieldTerminalPath{selector: ServiceBusinessTier_FieldPathSelectorBusinessTier}
}
func (s ServiceBusinessTierPathSelectorBusinessTier) WithValue(value BusinessTier) *ServiceBusinessTier_FieldTerminalPathValue {
return s.FieldPath().WithIValue(value).(*ServiceBusinessTier_FieldTerminalPathValue)
}
func (s ServiceBusinessTierPathSelectorBusinessTier) WithArrayOfValues(values []BusinessTier) *ServiceBusinessTier_FieldTerminalPathArrayOfValues {
return s.FieldPath().WithIArrayOfValues(values).(*ServiceBusinessTier_FieldTerminalPathArrayOfValues)
}
type ServiceErrorsFieldPathBuilder struct{}
func NewServiceErrorsFieldPathBuilder() ServiceErrorsFieldPathBuilder {
return ServiceErrorsFieldPathBuilder{}
}
func (ServiceErrorsFieldPathBuilder) Errors() ServiceErrorsPathSelectorErrors {
return ServiceErrorsPathSelectorErrors{}
}
type ServiceErrorsPathSelectorErrors struct{}
func (ServiceErrorsPathSelectorErrors) FieldPath() *ServiceErrors_FieldTerminalPath {
return &ServiceErrors_FieldTerminalPath{selector: ServiceErrors_FieldPathSelectorErrors}
}
func (s ServiceErrorsPathSelectorErrors) WithValue(value []*ServiceErrors_Error) *ServiceErrors_FieldTerminalPathValue {
return s.FieldPath().WithIValue(value).(*ServiceErrors_FieldTerminalPathValue)
}
func (s ServiceErrorsPathSelectorErrors) WithArrayOfValues(values [][]*ServiceErrors_Error) *ServiceErrors_FieldTerminalPathArrayOfValues {
return s.FieldPath().WithIArrayOfValues(values).(*ServiceErrors_FieldTerminalPathArrayOfValues)
}
func (s ServiceErrorsPathSelectorErrors) WithItemValue(value *ServiceErrors_Error) *ServiceErrors_FieldTerminalPathArrayItemValue {
return s.FieldPath().WithIArrayItemValue(value).(*ServiceErrors_FieldTerminalPathArrayItemValue)
}
func (ServiceErrorsPathSelectorErrors) WithSubPath(subPath ServiceErrorsError_FieldPath) *ServiceErrors_FieldSubPath {
return &ServiceErrors_FieldSubPath{selector: ServiceErrors_FieldPathSelectorErrors, subPath: subPath}
}
func (s ServiceErrorsPathSelectorErrors) WithSubValue(subPathValue ServiceErrorsError_FieldPathValue) *ServiceErrors_FieldSubPathValue {
return &ServiceErrors_FieldSubPathValue{ServiceErrors_FieldPath: s.WithSubPath(subPathValue), subPathValue: subPathValue}
}
func (s ServiceErrorsPathSelectorErrors) WithSubArrayOfValues(subPathArrayOfValues ServiceErrorsError_FieldPathArrayOfValues) *ServiceErrors_FieldSubPathArrayOfValues {
return &ServiceErrors_FieldSubPathArrayOfValues{ServiceErrors_FieldPath: s.WithSubPath(subPathArrayOfValues), subPathArrayOfValues: subPathArrayOfValues}
}
func (s ServiceErrorsPathSelectorErrors) WithSubArrayItemValue(subPathArrayItemValue ServiceErrorsError_FieldPathArrayItemValue) *ServiceErrors_FieldSubPathArrayItemValue {
return &ServiceErrors_FieldSubPathArrayItemValue{ServiceErrors_FieldPath: s.WithSubPath(subPathArrayItemValue), subPathItemValue: subPathArrayItemValue}
}
func (ServiceErrorsPathSelectorErrors) Service() ServiceErrorsPathSelectorErrorsService {
return ServiceErrorsPathSelectorErrorsService{}
}
func (ServiceErrorsPathSelectorErrors) Message() ServiceErrorsPathSelectorErrorsMessage {
return ServiceErrorsPathSelectorErrorsMessage{}
}
type ServiceErrorsPathSelectorErrorsService struct{}
func (ServiceErrorsPathSelectorErrorsService) FieldPath() *ServiceErrors_FieldSubPath {
return &ServiceErrors_FieldSubPath{
selector: ServiceErrors_FieldPathSelectorErrors,
subPath: NewServiceErrorsErrorFieldPathBuilder().Service().FieldPath(),
}
}
func (s ServiceErrorsPathSelectorErrorsService) WithValue(value *meta_service.Name) *ServiceErrors_FieldSubPathValue {
return s.FieldPath().WithIValue(value).(*ServiceErrors_FieldSubPathValue)
}
func (s ServiceErrorsPathSelectorErrorsService) WithArrayOfValues(values []*meta_service.Name) *ServiceErrors_FieldSubPathArrayOfValues {
return s.FieldPath().WithIArrayOfValues(values).(*ServiceErrors_FieldSubPathArrayOfValues)
}
type ServiceErrorsPathSelectorErrorsMessage struct{}
func (ServiceErrorsPathSelectorErrorsMessage) FieldPath() *ServiceErrors_FieldSubPath {
return &ServiceErrors_FieldSubPath{
selector: ServiceErrors_FieldPathSelectorErrors,
subPath: NewServiceErrorsErrorFieldPathBuilder().Message().FieldPath(),
}
}
func (s ServiceErrorsPathSelectorErrorsMessage) WithValue(value string) *ServiceErrors_FieldSubPathValue {
return s.FieldPath().WithIValue(value).(*ServiceErrors_FieldSubPathValue)
}
func (s ServiceErrorsPathSelectorErrorsMessage) WithArrayOfValues(values []string) *ServiceErrors_FieldSubPathArrayOfValues {
return s.FieldPath().WithIArrayOfValues(values).(*ServiceErrors_FieldSubPathArrayOfValues)
}
type ServiceErrorsErrorFieldPathBuilder struct{}
func NewServiceErrorsErrorFieldPathBuilder() ServiceErrorsErrorFieldPathBuilder {
return ServiceErrorsErrorFieldPathBuilder{}
}
func (ServiceErrorsErrorFieldPathBuilder) Service() ServiceErrors_ErrorPathSelectorService {
return ServiceErrors_ErrorPathSelectorService{}
}
func (ServiceErrorsErrorFieldPathBuilder) Message() ServiceErrors_ErrorPathSelectorMessage {
return ServiceErrors_ErrorPathSelectorMessage{}
}
type ServiceErrors_ErrorPathSelectorService struct{}
func (ServiceErrors_ErrorPathSelectorService) FieldPath() *ServiceErrorsError_FieldTerminalPath {
return &ServiceErrorsError_FieldTerminalPath{selector: ServiceErrorsError_FieldPathSelectorService}
}
func (s ServiceErrors_ErrorPathSelectorService) WithValue(value *meta_service.Name) *ServiceErrorsError_FieldTerminalPathValue {
return s.FieldPath().WithIValue(value).(*ServiceErrorsError_FieldTerminalPathValue)
}
func (s ServiceErrors_ErrorPathSelectorService) WithArrayOfValues(values []*meta_service.Name) *ServiceErrorsError_FieldTerminalPathArrayOfValues {
return s.FieldPath().WithIArrayOfValues(values).(*ServiceErrorsError_FieldTerminalPathArrayOfValues)
}
type ServiceErrors_ErrorPathSelectorMessage struct{}
func (ServiceErrors_ErrorPathSelectorMessage) FieldPath() *ServiceErrorsError_FieldTerminalPath {
return &ServiceErrorsError_FieldTerminalPath{selector: ServiceErrorsError_FieldPathSelectorMessage}
}
func (s ServiceErrors_ErrorPathSelectorMessage) WithValue(value string) *ServiceErrorsError_FieldTerminalPathValue {
return s.FieldPath().WithIValue(value).(*ServiceErrorsError_FieldTerminalPathValue)
}
func (s ServiceErrors_ErrorPathSelectorMessage) WithArrayOfValues(values []string) *ServiceErrorsError_FieldTerminalPathArrayOfValues {
return s.FieldPath().WithIArrayOfValues(values).(*ServiceErrorsError_FieldTerminalPathArrayOfValues)
}