github.com/cloudwan/edgelq-sdk@v1.15.4/secrets/resources/v1/crypto_key/crypto_key.pb.go (about)

     1  // Code generated by protoc-gen-goten-go
     2  // File: edgelq/secrets/proto/v1/crypto_key.proto
     3  // DO NOT EDIT!!!
     4  
     5  package crypto_key
     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/v1/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  // CryptoKey Resource
    50  type CryptoKey struct {
    51  	state         protoimpl.MessageState
    52  	sizeCache     protoimpl.SizeCache
    53  	unknownFields protoimpl.UnknownFields
    54  	// Name of CryptoKey
    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  	Key      string     `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
    66  }
    67  
    68  func (m *CryptoKey) Reset() {
    69  	*m = CryptoKey{}
    70  	if protoimpl.UnsafeEnabled {
    71  		mi := &edgelq_secrets_proto_v1_crypto_key_proto_msgTypes[0]
    72  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
    73  		ms.StoreMessageInfo(mi)
    74  	}
    75  }
    76  
    77  func (m *CryptoKey) String() string {
    78  	return protoimpl.X.MessageStringOf(m)
    79  }
    80  
    81  func (*CryptoKey) ProtoMessage() {}
    82  
    83  func (m *CryptoKey) ProtoReflect() preflect.Message {
    84  	mi := &edgelq_secrets_proto_v1_crypto_key_proto_msgTypes[0]
    85  	if protoimpl.UnsafeEnabled && m != nil {
    86  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
    87  		if ms.LoadMessageInfo() == nil {
    88  			ms.StoreMessageInfo(mi)
    89  		}
    90  		return ms
    91  	}
    92  	return mi.MessageOf(m)
    93  }
    94  
    95  func (*CryptoKey) GotenMessage() {}
    96  
    97  // Deprecated, Use CryptoKey.ProtoReflect.Descriptor instead.
    98  func (*CryptoKey) Descriptor() ([]byte, []int) {
    99  	return edgelq_secrets_proto_v1_crypto_key_proto_rawDescGZIP(), []int{0}
   100  }
   101  
   102  func (m *CryptoKey) Unmarshal(b []byte) error {
   103  	return proto.Unmarshal(b, m)
   104  }
   105  
   106  func (m *CryptoKey) Marshal() ([]byte, error) {
   107  	return proto.Marshal(m)
   108  }
   109  
   110  func (m *CryptoKey) MarshalJSON() ([]byte, error) {
   111  	return protojson.MarshalOptions{}.Marshal(m)
   112  }
   113  
   114  func (m *CryptoKey) UnmarshalJSON(data []byte) error {
   115  	return protojson.Unmarshal(data, m)
   116  }
   117  
   118  func (m *CryptoKey) GetName() *Name {
   119  	if m != nil {
   120  		return m.Name
   121  	}
   122  	return nil
   123  }
   124  
   125  func (m *CryptoKey) GetMetadata() *meta.Meta {
   126  	if m != nil {
   127  		return m.Metadata
   128  	}
   129  	return nil
   130  }
   131  
   132  func (m *CryptoKey) GetKey() string {
   133  	if m != nil {
   134  		return m.Key
   135  	}
   136  	return ""
   137  }
   138  
   139  func (m *CryptoKey) SetName(fv *Name) {
   140  	if m == nil {
   141  		panic(fmt.Errorf("can't set %s on nil %s", "Name", "CryptoKey"))
   142  	}
   143  	m.Name = fv
   144  }
   145  
   146  func (m *CryptoKey) SetMetadata(fv *meta.Meta) {
   147  	if m == nil {
   148  		panic(fmt.Errorf("can't set %s on nil %s", "Metadata", "CryptoKey"))
   149  	}
   150  	m.Metadata = fv
   151  }
   152  
   153  func (m *CryptoKey) SetKey(fv string) {
   154  	if m == nil {
   155  		panic(fmt.Errorf("can't set %s on nil %s", "Key", "CryptoKey"))
   156  	}
   157  	m.Key = fv
   158  }
   159  
   160  var edgelq_secrets_proto_v1_crypto_key_proto preflect.FileDescriptor
   161  
   162  var edgelq_secrets_proto_v1_crypto_key_proto_rawDesc = []byte{
   163  	0x0a, 0x28, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73,
   164  	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f,
   165  	0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6e, 0x74, 0x74, 0x2e,
   166  	0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67,
   167  	0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e,
   168  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e,
   169  	0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
   170  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61,
   171  	0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 0x6e,
   172  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e,
   173  	0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
   174  	0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f,
   175  	0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72,
   176  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61,
   177  	0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
   178  	0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f,
   179  	0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x75, 0x6c, 0x74,
   180  	0x69, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16,
   181  	0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x61,
   182  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xad, 0x02, 0x0a, 0x09, 0x43, 0x72, 0x79, 0x70, 0x74,
   183  	0x6f, 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
   184  	0x28, 0x09, 0x42, 0x11, 0xb2, 0xda, 0x21, 0x0d, 0x0a, 0x0b, 0x0a, 0x09, 0x43, 0x72, 0x79, 0x70,
   185  	0x74, 0x6f, 0x4b, 0x65, 0x79, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x6d,
   186  	0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e,
   187  	0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61,
   188  	0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x03, 0x6b, 0x65,
   189  	0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xf0, 0xd9, 0x21, 0x01, 0x52, 0x03, 0x6b,
   190  	0x65, 0x79, 0x3a, 0xb1, 0x01, 0xea, 0x41, 0x5b, 0x0a, 0x1c, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74,
   191  	0x73, 0x2e, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x72, 0x79,
   192  	0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x12, 0x3b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
   193  	0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f,
   194  	0x6e, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x63, 0x72, 0x79, 0x70,
   195  	0x74, 0x6f, 0x4b, 0x65, 0x79, 0x73, 0x2f, 0x7b, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x6b,
   196  	0x65, 0x79, 0x7d, 0x92, 0xd9, 0x21, 0x3d, 0x0a, 0x0a, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b,
   197  	0x65, 0x79, 0x73, 0x12, 0x0a, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x73, 0x1a,
   198  	0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x18, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e,
   199  	0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x52, 0x65, 0x67, 0x69,
   200  	0x6f, 0x6e, 0x38, 0x05, 0xda, 0x94, 0x23, 0x08, 0x12, 0x06, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
   201  	0xe2, 0xde, 0x21, 0x02, 0x08, 0x02, 0x42, 0x94, 0x02, 0xe8, 0xde, 0x21, 0x01, 0xd2, 0xff, 0xd0,
   202  	0x02, 0x4a, 0x0a, 0x10, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73,
   203  	0x74, 0x6f, 0x72, 0x65, 0x12, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
   204  	0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71,
   205  	0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76,
   206  	0x31, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x6b, 0x65, 0x79, 0xa2, 0x80, 0xd1, 0x02,
   207  	0x4c, 0x0a, 0x11, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x61, 0x63,
   208  	0x63, 0x65, 0x73, 0x73, 0x12, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
   209  	0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71,
   210  	0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x2f,
   211  	0x76, 0x31, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x6b, 0x65, 0x79, 0x0a, 0x15, 0x63,
   212  	0x6f, 0x6d, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e, 0x70,
   213  	0x62, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x50,
   214  	0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
   215  	0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65,
   216  	0x6c, 0x71, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75,
   217  	0x72, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x6b,
   218  	0x65, 0x79, 0x3b, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x6b, 0x65, 0x79, 0x62, 0x06, 0x70,
   219  	0x72, 0x6f, 0x74, 0x6f, 0x33,
   220  }
   221  
   222  var (
   223  	edgelq_secrets_proto_v1_crypto_key_proto_rawDescOnce sync.Once
   224  	edgelq_secrets_proto_v1_crypto_key_proto_rawDescData = edgelq_secrets_proto_v1_crypto_key_proto_rawDesc
   225  )
   226  
   227  func edgelq_secrets_proto_v1_crypto_key_proto_rawDescGZIP() []byte {
   228  	edgelq_secrets_proto_v1_crypto_key_proto_rawDescOnce.Do(func() {
   229  		edgelq_secrets_proto_v1_crypto_key_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_secrets_proto_v1_crypto_key_proto_rawDescData)
   230  	})
   231  	return edgelq_secrets_proto_v1_crypto_key_proto_rawDescData
   232  }
   233  
   234  var edgelq_secrets_proto_v1_crypto_key_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   235  var edgelq_secrets_proto_v1_crypto_key_proto_goTypes = []interface{}{
   236  	(*CryptoKey)(nil), // 0: ntt.secrets.v1.CryptoKey
   237  	(*meta.Meta)(nil), // 1: goten.types.Meta
   238  }
   239  var edgelq_secrets_proto_v1_crypto_key_proto_depIdxs = []int32{
   240  	1, // 0: ntt.secrets.v1.CryptoKey.metadata:type_name -> goten.types.Meta
   241  	1, // [1:1] is the sub-list for method output_type
   242  	1, // [1:1] is the sub-list for method input_type
   243  	1, // [1:1] is the sub-list for extension type_name
   244  	1, // [1:1] is the sub-list for extension extendee
   245  	0, // [0:1] is the sub-list for field type_name
   246  }
   247  
   248  func init() { edgelq_secrets_proto_v1_crypto_key_proto_init() }
   249  func edgelq_secrets_proto_v1_crypto_key_proto_init() {
   250  	if edgelq_secrets_proto_v1_crypto_key_proto != nil {
   251  		return
   252  	}
   253  	if !protoimpl.UnsafeEnabled {
   254  
   255  		edgelq_secrets_proto_v1_crypto_key_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   256  			switch v := v.(*CryptoKey); i {
   257  			case 0:
   258  				return &v.state
   259  			case 1:
   260  				return &v.sizeCache
   261  			case 2:
   262  				return &v.unknownFields
   263  			default:
   264  				return nil
   265  			}
   266  		}
   267  	}
   268  
   269  	type x struct{}
   270  	out := protoimpl.TypeBuilder{
   271  		File: protoimpl.DescBuilder{
   272  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   273  			RawDescriptor: edgelq_secrets_proto_v1_crypto_key_proto_rawDesc,
   274  			NumEnums:      0,
   275  			NumMessages:   1,
   276  			NumExtensions: 0,
   277  			NumServices:   0,
   278  		},
   279  		GoTypes:           edgelq_secrets_proto_v1_crypto_key_proto_goTypes,
   280  		DependencyIndexes: edgelq_secrets_proto_v1_crypto_key_proto_depIdxs,
   281  		MessageInfos:      edgelq_secrets_proto_v1_crypto_key_proto_msgTypes,
   282  	}.Build()
   283  	edgelq_secrets_proto_v1_crypto_key_proto = out.File
   284  	edgelq_secrets_proto_v1_crypto_key_proto_rawDesc = nil
   285  	edgelq_secrets_proto_v1_crypto_key_proto_goTypes = nil
   286  	edgelq_secrets_proto_v1_crypto_key_proto_depIdxs = nil
   287  }