github.com/cloudwan/edgelq-sdk@v1.15.4/secrets/resources/v1alpha2/secret/secret.pb.go (about) 1 // Code generated by protoc-gen-goten-go 2 // File: edgelq/secrets/proto/v1alpha2/secret.proto 3 // DO NOT EDIT!!! 4 5 package secret 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 project "github.com/cloudwan/edgelq-sdk/secrets/resources/v1alpha2/project" 21 meta "github.com/cloudwan/goten-sdk/types/meta" 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 _ = &project.Project{} 39 _ = &meta.Meta{} 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 // Secret Resource 50 type Secret struct { 51 state protoimpl.MessageState 52 sizeCache protoimpl.SizeCache 53 unknownFields protoimpl.UnknownFields 54 // Name of Secret 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 // masked by read_checks. Database only. 60 EncData []byte `protobuf:"bytes,2,opt,name=enc_data,json=encData,proto3" json:"enc_data,omitempty"` 61 // Data to store as secret. Must be base64 encoded. 62 Data map[string]string `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 63 // Metadata 64 Metadata *meta.Meta `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` 65 } 66 67 func (m *Secret) Reset() { 68 *m = Secret{} 69 if protoimpl.UnsafeEnabled { 70 mi := &edgelq_secrets_proto_v1alpha2_secret_proto_msgTypes[0] 71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 72 ms.StoreMessageInfo(mi) 73 } 74 } 75 76 func (m *Secret) String() string { 77 return protoimpl.X.MessageStringOf(m) 78 } 79 80 func (*Secret) ProtoMessage() {} 81 82 func (m *Secret) ProtoReflect() preflect.Message { 83 mi := &edgelq_secrets_proto_v1alpha2_secret_proto_msgTypes[0] 84 if protoimpl.UnsafeEnabled && m != nil { 85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 86 if ms.LoadMessageInfo() == nil { 87 ms.StoreMessageInfo(mi) 88 } 89 return ms 90 } 91 return mi.MessageOf(m) 92 } 93 94 func (*Secret) GotenMessage() {} 95 96 // Deprecated, Use Secret.ProtoReflect.Descriptor instead. 97 func (*Secret) Descriptor() ([]byte, []int) { 98 return edgelq_secrets_proto_v1alpha2_secret_proto_rawDescGZIP(), []int{0} 99 } 100 101 func (m *Secret) Unmarshal(b []byte) error { 102 return proto.Unmarshal(b, m) 103 } 104 105 func (m *Secret) Marshal() ([]byte, error) { 106 return proto.Marshal(m) 107 } 108 109 func (m *Secret) MarshalJSON() ([]byte, error) { 110 return protojson.MarshalOptions{}.Marshal(m) 111 } 112 113 func (m *Secret) UnmarshalJSON(data []byte) error { 114 return protojson.Unmarshal(data, m) 115 } 116 117 func (m *Secret) GetName() *Name { 118 if m != nil { 119 return m.Name 120 } 121 return nil 122 } 123 124 func (m *Secret) GetEncData() []byte { 125 if m != nil { 126 return m.EncData 127 } 128 return nil 129 } 130 131 func (m *Secret) GetData() map[string]string { 132 if m != nil { 133 return m.Data 134 } 135 return nil 136 } 137 138 func (m *Secret) GetMetadata() *meta.Meta { 139 if m != nil { 140 return m.Metadata 141 } 142 return nil 143 } 144 145 func (m *Secret) SetName(fv *Name) { 146 if m == nil { 147 panic(fmt.Errorf("can't set %s on nil %s", "Name", "Secret")) 148 } 149 m.Name = fv 150 } 151 152 func (m *Secret) SetEncData(fv []byte) { 153 if m == nil { 154 panic(fmt.Errorf("can't set %s on nil %s", "EncData", "Secret")) 155 } 156 m.EncData = fv 157 } 158 159 func (m *Secret) SetData(fv map[string]string) { 160 if m == nil { 161 panic(fmt.Errorf("can't set %s on nil %s", "Data", "Secret")) 162 } 163 m.Data = fv 164 } 165 166 func (m *Secret) SetMetadata(fv *meta.Meta) { 167 if m == nil { 168 panic(fmt.Errorf("can't set %s on nil %s", "Metadata", "Secret")) 169 } 170 m.Metadata = fv 171 } 172 173 var edgelq_secrets_proto_v1alpha2_secret_proto preflect.FileDescriptor 174 175 var edgelq_secrets_proto_v1alpha2_secret_proto_rawDesc = []byte{ 176 0x0a, 0x2a, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 177 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 178 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x6e, 0x74, 179 0x74, 0x2e, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 180 0x61, 0x32, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 181 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 182 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 183 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 184 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 185 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 186 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 187 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 188 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 189 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 190 0x1f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 191 0x6e, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 192 0x1a, 0x20, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x6e, 0x6e, 193 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 194 0x74, 0x6f, 0x1a, 0x24, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 195 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x75, 0x64, 196 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 197 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 198 0x22, 0xc6, 0x03, 0x0a, 0x06, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x22, 0x0a, 0x04, 0x6e, 199 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e, 0xb2, 0xda, 0x21, 0x0a, 0x0a, 200 0x08, 0x0a, 0x06, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 201 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x63, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 202 0x0c, 0x52, 0x07, 0x65, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61, 0x12, 0x3a, 0x0a, 0x04, 0x64, 0x61, 203 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x73, 204 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 205 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 206 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 207 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x74, 0x65, 0x6e, 208 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 209 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 210 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 211 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 212 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0xd8, 213 0x01, 0xea, 0x41, 0x40, 0x0a, 0x19, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x65, 0x64, 214 0x67, 0x65, 0x6c, 0x71, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 215 0x23, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 216 0x63, 0x74, 0x7d, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x73, 0x65, 0x63, 217 0x72, 0x65, 0x74, 0x7d, 0x92, 0xd9, 0x21, 0x1d, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 218 0x73, 0x12, 0x07, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x1a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 219 0x65, 0x63, 0x74, 0x38, 0x05, 0xda, 0x94, 0x23, 0x08, 0x12, 0x06, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 220 0x65, 0xca, 0xa3, 0x22, 0x40, 0x0a, 0x1f, 0x0a, 0x13, 0x6d, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x6e, 221 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x12, 0x08, 0x65, 0x6e, 222 0x63, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x0a, 0x1d, 0x0a, 0x15, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 223 0x73, 0x2e, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 224 0x04, 0x64, 0x61, 0x74, 0x61, 0xc2, 0x85, 0x2c, 0x20, 0x1a, 0x08, 0x65, 0x6e, 0x63, 0x5f, 0x64, 225 0x61, 0x74, 0x61, 0x1a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 226 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x91, 0x02, 0xe8, 0xde, 0x21, 0x01, 227 0xd2, 0xff, 0xd0, 0x02, 0x48, 0x0a, 0x0c, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x73, 0x74, 228 0x6f, 0x72, 0x65, 0x12, 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 229 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 230 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 231 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0xa2, 0x80, 0xd1, 232 0x02, 0x4a, 0x0a, 0x0d, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 233 0x73, 0x12, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 234 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x73, 0x65, 235 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x2f, 0x76, 0x31, 0x61, 236 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x0a, 0x1b, 0x63, 0x6f, 237 0x6d, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x70, 0x62, 238 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x42, 0x0b, 0x53, 0x65, 0x63, 0x72, 0x65, 239 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 240 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 241 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x72, 0x65, 0x73, 242 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 243 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x3b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x62, 0x06, 0x70, 244 0x72, 0x6f, 0x74, 0x6f, 0x33, 245 } 246 247 var ( 248 edgelq_secrets_proto_v1alpha2_secret_proto_rawDescOnce sync.Once 249 edgelq_secrets_proto_v1alpha2_secret_proto_rawDescData = edgelq_secrets_proto_v1alpha2_secret_proto_rawDesc 250 ) 251 252 func edgelq_secrets_proto_v1alpha2_secret_proto_rawDescGZIP() []byte { 253 edgelq_secrets_proto_v1alpha2_secret_proto_rawDescOnce.Do(func() { 254 edgelq_secrets_proto_v1alpha2_secret_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_secrets_proto_v1alpha2_secret_proto_rawDescData) 255 }) 256 return edgelq_secrets_proto_v1alpha2_secret_proto_rawDescData 257 } 258 259 var edgelq_secrets_proto_v1alpha2_secret_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 260 var edgelq_secrets_proto_v1alpha2_secret_proto_goTypes = []interface{}{ 261 (*Secret)(nil), // 0: ntt.secrets.v1alpha2.Secret 262 nil, // 1: ntt.secrets.v1alpha2.Secret.DataEntry 263 (*meta.Meta)(nil), // 2: goten.types.Meta 264 } 265 var edgelq_secrets_proto_v1alpha2_secret_proto_depIdxs = []int32{ 266 1, // 0: ntt.secrets.v1alpha2.Secret.data:type_name -> ntt.secrets.v1alpha2.Secret.DataEntry 267 2, // 1: ntt.secrets.v1alpha2.Secret.metadata:type_name -> goten.types.Meta 268 2, // [2:2] is the sub-list for method output_type 269 2, // [2:2] is the sub-list for method input_type 270 2, // [2:2] is the sub-list for extension type_name 271 2, // [2:2] is the sub-list for extension extendee 272 0, // [0:2] is the sub-list for field type_name 273 } 274 275 func init() { edgelq_secrets_proto_v1alpha2_secret_proto_init() } 276 func edgelq_secrets_proto_v1alpha2_secret_proto_init() { 277 if edgelq_secrets_proto_v1alpha2_secret_proto != nil { 278 return 279 } 280 if !protoimpl.UnsafeEnabled { 281 282 edgelq_secrets_proto_v1alpha2_secret_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 283 switch v := v.(*Secret); i { 284 case 0: 285 return &v.state 286 case 1: 287 return &v.sizeCache 288 case 2: 289 return &v.unknownFields 290 default: 291 return nil 292 } 293 } 294 } 295 296 type x struct{} 297 out := protoimpl.TypeBuilder{ 298 File: protoimpl.DescBuilder{ 299 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 300 RawDescriptor: edgelq_secrets_proto_v1alpha2_secret_proto_rawDesc, 301 NumEnums: 0, 302 NumMessages: 2, 303 NumExtensions: 0, 304 NumServices: 0, 305 }, 306 GoTypes: edgelq_secrets_proto_v1alpha2_secret_proto_goTypes, 307 DependencyIndexes: edgelq_secrets_proto_v1alpha2_secret_proto_depIdxs, 308 MessageInfos: edgelq_secrets_proto_v1alpha2_secret_proto_msgTypes, 309 }.Build() 310 edgelq_secrets_proto_v1alpha2_secret_proto = out.File 311 edgelq_secrets_proto_v1alpha2_secret_proto_rawDesc = nil 312 edgelq_secrets_proto_v1alpha2_secret_proto_goTypes = nil 313 edgelq_secrets_proto_v1alpha2_secret_proto_depIdxs = nil 314 }