github.com/cloudwan/edgelq-sdk@v1.15.4/devices/resources/v1/project/project.pb.go (about) 1 // Code generated by protoc-gen-goten-go 2 // File: edgelq/devices/proto/v1/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 is an object with information like create, update and delete time 60 // (for async deleted resources), has user labels/annotations, sharding 61 // information, multi-region syncing information and may have non-schema 62 // owners (useful for taking ownership of resources belonging to lower level 63 // services by higher ones). 64 Metadata *meta.Meta `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` 65 // Multi region policy defines in which region all kid resources (and their 66 // kids) will by default belong and cross-region syncing policies. 67 MultiRegionPolicy *multi_region_policy.MultiRegionPolicy `protobuf:"bytes,3,opt,name=multi_region_policy,json=multiRegionPolicy,proto3" json:"multi_region_policy,omitempty"` 68 } 69 70 func (m *Project) Reset() { 71 *m = Project{} 72 if protoimpl.UnsafeEnabled { 73 mi := &edgelq_devices_proto_v1_project_proto_msgTypes[0] 74 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 75 ms.StoreMessageInfo(mi) 76 } 77 } 78 79 func (m *Project) String() string { 80 return protoimpl.X.MessageStringOf(m) 81 } 82 83 func (*Project) ProtoMessage() {} 84 85 func (m *Project) ProtoReflect() preflect.Message { 86 mi := &edgelq_devices_proto_v1_project_proto_msgTypes[0] 87 if protoimpl.UnsafeEnabled && m != nil { 88 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 89 if ms.LoadMessageInfo() == nil { 90 ms.StoreMessageInfo(mi) 91 } 92 return ms 93 } 94 return mi.MessageOf(m) 95 } 96 97 func (*Project) GotenMessage() {} 98 99 // Deprecated, Use Project.ProtoReflect.Descriptor instead. 100 func (*Project) Descriptor() ([]byte, []int) { 101 return edgelq_devices_proto_v1_project_proto_rawDescGZIP(), []int{0} 102 } 103 104 func (m *Project) Unmarshal(b []byte) error { 105 return proto.Unmarshal(b, m) 106 } 107 108 func (m *Project) Marshal() ([]byte, error) { 109 return proto.Marshal(m) 110 } 111 112 func (m *Project) MarshalJSON() ([]byte, error) { 113 return protojson.MarshalOptions{}.Marshal(m) 114 } 115 116 func (m *Project) UnmarshalJSON(data []byte) error { 117 return protojson.Unmarshal(data, m) 118 } 119 120 func (m *Project) GetName() *Name { 121 if m != nil { 122 return m.Name 123 } 124 return nil 125 } 126 127 func (m *Project) GetMetadata() *meta.Meta { 128 if m != nil { 129 return m.Metadata 130 } 131 return nil 132 } 133 134 func (m *Project) GetMultiRegionPolicy() *multi_region_policy.MultiRegionPolicy { 135 if m != nil { 136 return m.MultiRegionPolicy 137 } 138 return nil 139 } 140 141 func (m *Project) SetName(fv *Name) { 142 if m == nil { 143 panic(fmt.Errorf("can't set %s on nil %s", "Name", "Project")) 144 } 145 m.Name = fv 146 } 147 148 func (m *Project) SetMetadata(fv *meta.Meta) { 149 if m == nil { 150 panic(fmt.Errorf("can't set %s on nil %s", "Metadata", "Project")) 151 } 152 m.Metadata = fv 153 } 154 155 func (m *Project) SetMultiRegionPolicy(fv *multi_region_policy.MultiRegionPolicy) { 156 if m == nil { 157 panic(fmt.Errorf("can't set %s on nil %s", "MultiRegionPolicy", "Project")) 158 } 159 m.MultiRegionPolicy = fv 160 } 161 162 var edgelq_devices_proto_v1_project_proto preflect.FileDescriptor 163 164 var edgelq_devices_proto_v1_project_proto_rawDesc = []byte{ 165 0x0a, 0x25, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 166 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 167 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 168 0x69, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 169 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 170 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 171 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 172 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 173 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x70, 0x72, 174 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 175 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 176 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 177 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 178 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 179 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 180 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 181 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x72, 182 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x65, 0x64, 0x67, 183 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 184 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 185 0x6f, 0x1a, 0x16, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6d, 186 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, 0x67, 0x6f, 0x74, 0x65, 0x6e, 187 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x72, 0x65, 0x67, 188 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 189 0x22, 0xbc, 0x02, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x23, 0x0a, 0x04, 190 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0f, 0xb2, 0xda, 0x21, 0x0b, 191 0x0a, 0x09, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 192 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 193 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 194 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 195 0x12, 0x58, 0x0a, 0x13, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 196 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 197 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 198 0x69, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x08, 0xca, 199 0xc6, 0x27, 0x04, 0x62, 0x02, 0x08, 0x01, 0x52, 0x11, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x52, 0x65, 200 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3a, 0x82, 0x01, 0xea, 0x41, 0x30, 201 0x0a, 0x1a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 202 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x70, 0x72, 203 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 204 0x92, 0xd9, 0x21, 0x16, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x08, 205 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x58, 0x01, 0xda, 0x94, 0x23, 0x08, 0x12, 0x06, 206 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xc2, 0x85, 0x2c, 0x25, 0x22, 0x04, 0x6e, 0x61, 0x6d, 0x65, 207 0x22, 0x13, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 208 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 209 0x80, 0x02, 0xe8, 0xde, 0x21, 0x01, 0xd2, 0xff, 0xd0, 0x02, 0x44, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 210 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x33, 0x67, 0x69, 0x74, 0x68, 211 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 212 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x73, 213 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0xa2, 214 0x80, 0xd1, 0x02, 0x46, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, 0x63, 215 0x63, 0x65, 0x73, 0x73, 0x12, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 216 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 217 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x2f, 218 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 219 0x6e, 0x74, 0x74, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x62, 0x2e, 0x76, 220 0x31, 0x42, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 221 0x01, 0x5a, 0x3f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 222 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x64, 0x65, 223 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 224 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 225 0x63, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 226 } 227 228 var ( 229 edgelq_devices_proto_v1_project_proto_rawDescOnce sync.Once 230 edgelq_devices_proto_v1_project_proto_rawDescData = edgelq_devices_proto_v1_project_proto_rawDesc 231 ) 232 233 func edgelq_devices_proto_v1_project_proto_rawDescGZIP() []byte { 234 edgelq_devices_proto_v1_project_proto_rawDescOnce.Do(func() { 235 edgelq_devices_proto_v1_project_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_devices_proto_v1_project_proto_rawDescData) 236 }) 237 return edgelq_devices_proto_v1_project_proto_rawDescData 238 } 239 240 var edgelq_devices_proto_v1_project_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 241 var edgelq_devices_proto_v1_project_proto_goTypes = []interface{}{ 242 (*Project)(nil), // 0: ntt.devices.v1.Project 243 (*meta.Meta)(nil), // 1: goten.types.Meta 244 (*multi_region_policy.MultiRegionPolicy)(nil), // 2: goten.types.MultiRegionPolicy 245 } 246 var edgelq_devices_proto_v1_project_proto_depIdxs = []int32{ 247 1, // 0: ntt.devices.v1.Project.metadata:type_name -> goten.types.Meta 248 2, // 1: ntt.devices.v1.Project.multi_region_policy:type_name -> goten.types.MultiRegionPolicy 249 2, // [2:2] is the sub-list for method output_type 250 2, // [2:2] is the sub-list for method input_type 251 2, // [2:2] is the sub-list for extension type_name 252 2, // [2:2] is the sub-list for extension extendee 253 0, // [0:2] is the sub-list for field type_name 254 } 255 256 func init() { edgelq_devices_proto_v1_project_proto_init() } 257 func edgelq_devices_proto_v1_project_proto_init() { 258 if edgelq_devices_proto_v1_project_proto != nil { 259 return 260 } 261 if !protoimpl.UnsafeEnabled { 262 263 edgelq_devices_proto_v1_project_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 264 switch v := v.(*Project); i { 265 case 0: 266 return &v.state 267 case 1: 268 return &v.sizeCache 269 case 2: 270 return &v.unknownFields 271 default: 272 return nil 273 } 274 } 275 } 276 277 type x struct{} 278 out := protoimpl.TypeBuilder{ 279 File: protoimpl.DescBuilder{ 280 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 281 RawDescriptor: edgelq_devices_proto_v1_project_proto_rawDesc, 282 NumEnums: 0, 283 NumMessages: 1, 284 NumExtensions: 0, 285 NumServices: 0, 286 }, 287 GoTypes: edgelq_devices_proto_v1_project_proto_goTypes, 288 DependencyIndexes: edgelq_devices_proto_v1_project_proto_depIdxs, 289 MessageInfos: edgelq_devices_proto_v1_project_proto_msgTypes, 290 }.Build() 291 edgelq_devices_proto_v1_project_proto = out.File 292 edgelq_devices_proto_v1_project_proto_rawDesc = nil 293 edgelq_devices_proto_v1_project_proto_goTypes = nil 294 edgelq_devices_proto_v1_project_proto_depIdxs = nil 295 }