github.com/cloudwan/edgelq-sdk@v1.15.4/devices/resources/v1alpha2/project/project.pb.go (about) 1 // Code generated by protoc-gen-goten-go 2 // File: edgelq/devices/proto/v1alpha2/project.proto 3 // DO NOT EDIT!!! 4 5 package project 6 7 import ( 8 "fmt" 9 "reflect" 10 "sync" 11 12 "google.golang.org/protobuf/encoding/protojson" 13 "google.golang.org/protobuf/proto" 14 preflect "google.golang.org/protobuf/reflect/protoreflect" 15 "google.golang.org/protobuf/runtime/protoimpl" 16 ) 17 18 // proto imports 19 import ( 20 meta "github.com/cloudwan/goten-sdk/types/meta" 21 multi_region_policy "github.com/cloudwan/goten-sdk/types/multi_region_policy" 22 ) 23 24 // Reference imports to suppress errors if they are not otherwise used. 25 var ( 26 _ = fmt.Errorf 27 _ = reflect.Method{} 28 _ = sync.Once{} 29 30 _ = protojson.MarshalOptions{} 31 _ = proto.MarshalOptions{} 32 _ = preflect.Value{} 33 _ = protoimpl.DescBuilder{} 34 ) 35 36 // make sure we're using proto imports 37 var ( 38 _ = &meta.Meta{} 39 _ = &multi_region_policy.MultiRegionPolicy{} 40 ) 41 42 const ( 43 // Verify that this generated code is sufficiently up-to-date. 44 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 45 // Verify that runtime/protoimpl is sufficiently up-to-date. 46 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 47 ) 48 49 // Project Resource 50 type Project struct { 51 state protoimpl.MessageState 52 sizeCache protoimpl.SizeCache 53 unknownFields protoimpl.UnknownFields 54 // Name of Project 55 // When creating a new instance, this field is optional and if not provided, 56 // it will be generated automatically. Last ID segment must conform to the 57 // following regex: [a-z][a-z0-9\-]{0,28}[a-z0-9] 58 Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty"` 59 // Metadata 60 Metadata *meta.Meta `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` 61 // Multi region policy 62 MultiRegionPolicy *multi_region_policy.MultiRegionPolicy `protobuf:"bytes,3,opt,name=multi_region_policy,json=multiRegionPolicy,proto3" json:"multi_region_policy,omitempty"` 63 } 64 65 func (m *Project) Reset() { 66 *m = Project{} 67 if protoimpl.UnsafeEnabled { 68 mi := &edgelq_devices_proto_v1alpha2_project_proto_msgTypes[0] 69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 70 ms.StoreMessageInfo(mi) 71 } 72 } 73 74 func (m *Project) String() string { 75 return protoimpl.X.MessageStringOf(m) 76 } 77 78 func (*Project) ProtoMessage() {} 79 80 func (m *Project) ProtoReflect() preflect.Message { 81 mi := &edgelq_devices_proto_v1alpha2_project_proto_msgTypes[0] 82 if protoimpl.UnsafeEnabled && m != nil { 83 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 84 if ms.LoadMessageInfo() == nil { 85 ms.StoreMessageInfo(mi) 86 } 87 return ms 88 } 89 return mi.MessageOf(m) 90 } 91 92 func (*Project) GotenMessage() {} 93 94 // Deprecated, Use Project.ProtoReflect.Descriptor instead. 95 func (*Project) Descriptor() ([]byte, []int) { 96 return edgelq_devices_proto_v1alpha2_project_proto_rawDescGZIP(), []int{0} 97 } 98 99 func (m *Project) Unmarshal(b []byte) error { 100 return proto.Unmarshal(b, m) 101 } 102 103 func (m *Project) Marshal() ([]byte, error) { 104 return proto.Marshal(m) 105 } 106 107 func (m *Project) MarshalJSON() ([]byte, error) { 108 return protojson.MarshalOptions{}.Marshal(m) 109 } 110 111 func (m *Project) UnmarshalJSON(data []byte) error { 112 return protojson.Unmarshal(data, m) 113 } 114 115 func (m *Project) GetName() *Name { 116 if m != nil { 117 return m.Name 118 } 119 return nil 120 } 121 122 func (m *Project) GetMetadata() *meta.Meta { 123 if m != nil { 124 return m.Metadata 125 } 126 return nil 127 } 128 129 func (m *Project) GetMultiRegionPolicy() *multi_region_policy.MultiRegionPolicy { 130 if m != nil { 131 return m.MultiRegionPolicy 132 } 133 return nil 134 } 135 136 func (m *Project) SetName(fv *Name) { 137 if m == nil { 138 panic(fmt.Errorf("can't set %s on nil %s", "Name", "Project")) 139 } 140 m.Name = fv 141 } 142 143 func (m *Project) SetMetadata(fv *meta.Meta) { 144 if m == nil { 145 panic(fmt.Errorf("can't set %s on nil %s", "Metadata", "Project")) 146 } 147 m.Metadata = fv 148 } 149 150 func (m *Project) SetMultiRegionPolicy(fv *multi_region_policy.MultiRegionPolicy) { 151 if m == nil { 152 panic(fmt.Errorf("can't set %s on nil %s", "MultiRegionPolicy", "Project")) 153 } 154 m.MultiRegionPolicy = fv 155 } 156 157 var edgelq_devices_proto_v1alpha2_project_proto preflect.FileDescriptor 158 159 var edgelq_devices_proto_v1alpha2_project_proto_rawDesc = []byte{ 160 0x0a, 0x2b, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 161 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 162 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x6e, 163 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 164 0x68, 0x61, 0x32, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 165 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 166 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 167 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 168 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 169 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 170 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 171 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 172 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 173 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 174 0x1a, 0x1f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 175 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 176 0x6f, 0x1a, 0x24, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 177 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x75, 0x64, 0x69, 178 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x74, 179 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 180 0x25, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6d, 0x75, 0x6c, 181 0x74, 0x69, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 182 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbc, 0x02, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 183 0x63, 0x74, 0x12, 0x23, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 184 0x42, 0x0f, 0xb2, 0xda, 0x21, 0x0b, 0x0a, 0x09, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 185 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 186 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x74, 0x65, 187 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 188 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x58, 0x0a, 0x13, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 189 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x03, 0x20, 190 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 191 0x73, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 192 0x69, 0x63, 0x79, 0x42, 0x08, 0xca, 0xc6, 0x27, 0x04, 0x62, 0x02, 0x08, 0x01, 0x52, 0x11, 0x6d, 193 0x75, 0x6c, 0x74, 0x69, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 194 0x3a, 0x82, 0x01, 0xea, 0x41, 0x30, 0x0a, 0x1a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 195 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 196 0x63, 0x74, 0x12, 0x12, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 197 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x92, 0xd9, 0x21, 0x16, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6a, 198 0x65, 0x63, 0x74, 0x73, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x58, 0x01, 199 0xda, 0x94, 0x23, 0x08, 0x12, 0x06, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xc2, 0x85, 0x2c, 0x25, 200 0x22, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x13, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x72, 0x65, 201 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x08, 0x6d, 0x65, 0x74, 202 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x98, 0x02, 0xe8, 0xde, 0x21, 0x01, 0xd2, 0xff, 0xd0, 0x02, 203 0x4a, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 204 0x12, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 205 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 206 0x69, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 207 0x68, 0x61, 0x32, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0xa2, 0x80, 0xd1, 0x02, 0x4c, 208 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 209 0x12, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 210 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 211 0x69, 0x63, 0x65, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x2f, 0x76, 0x31, 0x61, 0x6c, 212 0x70, 0x68, 0x61, 0x32, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x0a, 0x1b, 0x63, 0x6f, 213 0x6d, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x62, 214 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x42, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 215 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 216 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 217 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x72, 0x65, 218 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 219 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 220 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 221 } 222 223 var ( 224 edgelq_devices_proto_v1alpha2_project_proto_rawDescOnce sync.Once 225 edgelq_devices_proto_v1alpha2_project_proto_rawDescData = edgelq_devices_proto_v1alpha2_project_proto_rawDesc 226 ) 227 228 func edgelq_devices_proto_v1alpha2_project_proto_rawDescGZIP() []byte { 229 edgelq_devices_proto_v1alpha2_project_proto_rawDescOnce.Do(func() { 230 edgelq_devices_proto_v1alpha2_project_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_devices_proto_v1alpha2_project_proto_rawDescData) 231 }) 232 return edgelq_devices_proto_v1alpha2_project_proto_rawDescData 233 } 234 235 var edgelq_devices_proto_v1alpha2_project_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 236 var edgelq_devices_proto_v1alpha2_project_proto_goTypes = []interface{}{ 237 (*Project)(nil), // 0: ntt.devices.v1alpha2.Project 238 (*meta.Meta)(nil), // 1: goten.types.Meta 239 (*multi_region_policy.MultiRegionPolicy)(nil), // 2: goten.types.MultiRegionPolicy 240 } 241 var edgelq_devices_proto_v1alpha2_project_proto_depIdxs = []int32{ 242 1, // 0: ntt.devices.v1alpha2.Project.metadata:type_name -> goten.types.Meta 243 2, // 1: ntt.devices.v1alpha2.Project.multi_region_policy:type_name -> goten.types.MultiRegionPolicy 244 2, // [2:2] is the sub-list for method output_type 245 2, // [2:2] is the sub-list for method input_type 246 2, // [2:2] is the sub-list for extension type_name 247 2, // [2:2] is the sub-list for extension extendee 248 0, // [0:2] is the sub-list for field type_name 249 } 250 251 func init() { edgelq_devices_proto_v1alpha2_project_proto_init() } 252 func edgelq_devices_proto_v1alpha2_project_proto_init() { 253 if edgelq_devices_proto_v1alpha2_project_proto != nil { 254 return 255 } 256 if !protoimpl.UnsafeEnabled { 257 258 edgelq_devices_proto_v1alpha2_project_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 259 switch v := v.(*Project); i { 260 case 0: 261 return &v.state 262 case 1: 263 return &v.sizeCache 264 case 2: 265 return &v.unknownFields 266 default: 267 return nil 268 } 269 } 270 } 271 272 type x struct{} 273 out := protoimpl.TypeBuilder{ 274 File: protoimpl.DescBuilder{ 275 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 276 RawDescriptor: edgelq_devices_proto_v1alpha2_project_proto_rawDesc, 277 NumEnums: 0, 278 NumMessages: 1, 279 NumExtensions: 0, 280 NumServices: 0, 281 }, 282 GoTypes: edgelq_devices_proto_v1alpha2_project_proto_goTypes, 283 DependencyIndexes: edgelq_devices_proto_v1alpha2_project_proto_depIdxs, 284 MessageInfos: edgelq_devices_proto_v1alpha2_project_proto_msgTypes, 285 }.Build() 286 edgelq_devices_proto_v1alpha2_project_proto = out.File 287 edgelq_devices_proto_v1alpha2_project_proto_rawDesc = nil 288 edgelq_devices_proto_v1alpha2_project_proto_goTypes = nil 289 edgelq_devices_proto_v1alpha2_project_proto_depIdxs = nil 290 }