xref: /aosp_15_r20/external/tink/go/proto/kms_envelope_go_proto/kms_envelope.pb.go (revision e7b1675dde1b92d52ec075b0a92829627f2c52a5)
1// Copyright 2017 Google Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15////////////////////////////////////////////////////////////////////////////////
16
17// Code generated by protoc-gen-go. DO NOT EDIT.
18// versions:
19// 	protoc-gen-go v1.28.1
20// 	protoc        v3.21.12
21// source: third_party/tink/proto/kms_envelope.proto
22
23package kms_envelope_go_proto
24
25import (
26	tink_go_proto "github.com/google/tink/go/proto/tink_go_proto"
27	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29	reflect "reflect"
30	sync "sync"
31)
32
33const (
34	// Verify that this generated code is sufficiently up-to-date.
35	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36	// Verify that runtime/protoimpl is sufficiently up-to-date.
37	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38)
39
40type KmsEnvelopeAeadKeyFormat struct {
41	state         protoimpl.MessageState
42	sizeCache     protoimpl.SizeCache
43	unknownFields protoimpl.UnknownFields
44
45	// Required.
46	// The location of the KEK in a remote KMS.
47	// With Google Cloud KMS, valid values have this format:
48	// gcp-kms://projects/*/locations/*/keyRings/*/cryptoKeys/*.
49	// With AWS KMS, valid values have this format:
50	// aws-kms://arn:aws:kms:<region>:<account-id>:key/<key-id>
51	KekUri string `protobuf:"bytes,1,opt,name=kek_uri,json=kekUri,proto3" json:"kek_uri,omitempty"`
52	// Key template of the Data Encryption Key, e.g., AesCtrHmacAeadKeyFormat.
53	// Required.
54	DekTemplate *tink_go_proto.KeyTemplate `protobuf:"bytes,2,opt,name=dek_template,json=dekTemplate,proto3" json:"dek_template,omitempty"`
55}
56
57func (x *KmsEnvelopeAeadKeyFormat) Reset() {
58	*x = KmsEnvelopeAeadKeyFormat{}
59	if protoimpl.UnsafeEnabled {
60		mi := &file_third_party_tink_proto_kms_envelope_proto_msgTypes[0]
61		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
62		ms.StoreMessageInfo(mi)
63	}
64}
65
66func (x *KmsEnvelopeAeadKeyFormat) String() string {
67	return protoimpl.X.MessageStringOf(x)
68}
69
70func (*KmsEnvelopeAeadKeyFormat) ProtoMessage() {}
71
72func (x *KmsEnvelopeAeadKeyFormat) ProtoReflect() protoreflect.Message {
73	mi := &file_third_party_tink_proto_kms_envelope_proto_msgTypes[0]
74	if protoimpl.UnsafeEnabled && x != nil {
75		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
76		if ms.LoadMessageInfo() == nil {
77			ms.StoreMessageInfo(mi)
78		}
79		return ms
80	}
81	return mi.MessageOf(x)
82}
83
84// Deprecated: Use KmsEnvelopeAeadKeyFormat.ProtoReflect.Descriptor instead.
85func (*KmsEnvelopeAeadKeyFormat) Descriptor() ([]byte, []int) {
86	return file_third_party_tink_proto_kms_envelope_proto_rawDescGZIP(), []int{0}
87}
88
89func (x *KmsEnvelopeAeadKeyFormat) GetKekUri() string {
90	if x != nil {
91		return x.KekUri
92	}
93	return ""
94}
95
96func (x *KmsEnvelopeAeadKeyFormat) GetDekTemplate() *tink_go_proto.KeyTemplate {
97	if x != nil {
98		return x.DekTemplate
99	}
100	return nil
101}
102
103// There is no actual key material in the key.
104type KmsEnvelopeAeadKey struct {
105	state         protoimpl.MessageState
106	sizeCache     protoimpl.SizeCache
107	unknownFields protoimpl.UnknownFields
108
109	Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
110	// The key format also contains the params.
111	Params *KmsEnvelopeAeadKeyFormat `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
112}
113
114func (x *KmsEnvelopeAeadKey) Reset() {
115	*x = KmsEnvelopeAeadKey{}
116	if protoimpl.UnsafeEnabled {
117		mi := &file_third_party_tink_proto_kms_envelope_proto_msgTypes[1]
118		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
119		ms.StoreMessageInfo(mi)
120	}
121}
122
123func (x *KmsEnvelopeAeadKey) String() string {
124	return protoimpl.X.MessageStringOf(x)
125}
126
127func (*KmsEnvelopeAeadKey) ProtoMessage() {}
128
129func (x *KmsEnvelopeAeadKey) ProtoReflect() protoreflect.Message {
130	mi := &file_third_party_tink_proto_kms_envelope_proto_msgTypes[1]
131	if protoimpl.UnsafeEnabled && x != nil {
132		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
133		if ms.LoadMessageInfo() == nil {
134			ms.StoreMessageInfo(mi)
135		}
136		return ms
137	}
138	return mi.MessageOf(x)
139}
140
141// Deprecated: Use KmsEnvelopeAeadKey.ProtoReflect.Descriptor instead.
142func (*KmsEnvelopeAeadKey) Descriptor() ([]byte, []int) {
143	return file_third_party_tink_proto_kms_envelope_proto_rawDescGZIP(), []int{1}
144}
145
146func (x *KmsEnvelopeAeadKey) GetVersion() uint32 {
147	if x != nil {
148		return x.Version
149	}
150	return 0
151}
152
153func (x *KmsEnvelopeAeadKey) GetParams() *KmsEnvelopeAeadKeyFormat {
154	if x != nil {
155		return x.Params
156	}
157	return nil
158}
159
160var File_third_party_tink_proto_kms_envelope_proto protoreflect.FileDescriptor
161
162var file_third_party_tink_proto_kms_envelope_proto_rawDesc = []byte{
163	0x0a, 0x29, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x74, 0x69,
164	0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6b, 0x6d, 0x73, 0x5f, 0x65, 0x6e, 0x76,
165	0x65, 0x6c, 0x6f, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f,
166	0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x1a,
167	0x21, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x74, 0x69, 0x6e,
168	0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f,
169	0x74, 0x6f, 0x22, 0x77, 0x0a, 0x18, 0x4b, 0x6d, 0x73, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70,
170	0x65, 0x41, 0x65, 0x61, 0x64, 0x4b, 0x65, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x17,
171	0x0a, 0x07, 0x6b, 0x65, 0x6b, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
172	0x06, 0x6b, 0x65, 0x6b, 0x55, 0x72, 0x69, 0x12, 0x42, 0x0a, 0x0c, 0x64, 0x65, 0x6b, 0x5f, 0x74,
173	0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
174	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69,
175	0x6e, 0x6b, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x0b,
176	0x64, 0x65, 0x6b, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x22, 0x74, 0x0a, 0x12, 0x4b,
177	0x6d, 0x73, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x41, 0x65, 0x61, 0x64, 0x4b, 0x65,
178	0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01,
179	0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x44, 0x0a, 0x06, 0x70,
180	0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f,
181	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b,
182	0x2e, 0x4b, 0x6d, 0x73, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x41, 0x65, 0x61, 0x64,
183	0x4b, 0x65, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d,
184	0x73, 0x42, 0x57, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
185	0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74,
186	0x6f, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
187	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x2f, 0x67, 0x6f, 0x2f, 0x70,
188	0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6b, 0x6d, 0x73, 0x5f, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70,
189	0x65, 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
190	0x6f, 0x33,
191}
192
193var (
194	file_third_party_tink_proto_kms_envelope_proto_rawDescOnce sync.Once
195	file_third_party_tink_proto_kms_envelope_proto_rawDescData = file_third_party_tink_proto_kms_envelope_proto_rawDesc
196)
197
198func file_third_party_tink_proto_kms_envelope_proto_rawDescGZIP() []byte {
199	file_third_party_tink_proto_kms_envelope_proto_rawDescOnce.Do(func() {
200		file_third_party_tink_proto_kms_envelope_proto_rawDescData = protoimpl.X.CompressGZIP(file_third_party_tink_proto_kms_envelope_proto_rawDescData)
201	})
202	return file_third_party_tink_proto_kms_envelope_proto_rawDescData
203}
204
205var file_third_party_tink_proto_kms_envelope_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
206var file_third_party_tink_proto_kms_envelope_proto_goTypes = []interface{}{
207	(*KmsEnvelopeAeadKeyFormat)(nil),  // 0: google.crypto.tink.KmsEnvelopeAeadKeyFormat
208	(*KmsEnvelopeAeadKey)(nil),        // 1: google.crypto.tink.KmsEnvelopeAeadKey
209	(*tink_go_proto.KeyTemplate)(nil), // 2: google.crypto.tink.KeyTemplate
210}
211var file_third_party_tink_proto_kms_envelope_proto_depIdxs = []int32{
212	2, // 0: google.crypto.tink.KmsEnvelopeAeadKeyFormat.dek_template:type_name -> google.crypto.tink.KeyTemplate
213	0, // 1: google.crypto.tink.KmsEnvelopeAeadKey.params:type_name -> google.crypto.tink.KmsEnvelopeAeadKeyFormat
214	2, // [2:2] is the sub-list for method output_type
215	2, // [2:2] is the sub-list for method input_type
216	2, // [2:2] is the sub-list for extension type_name
217	2, // [2:2] is the sub-list for extension extendee
218	0, // [0:2] is the sub-list for field type_name
219}
220
221func init() { file_third_party_tink_proto_kms_envelope_proto_init() }
222func file_third_party_tink_proto_kms_envelope_proto_init() {
223	if File_third_party_tink_proto_kms_envelope_proto != nil {
224		return
225	}
226	if !protoimpl.UnsafeEnabled {
227		file_third_party_tink_proto_kms_envelope_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
228			switch v := v.(*KmsEnvelopeAeadKeyFormat); i {
229			case 0:
230				return &v.state
231			case 1:
232				return &v.sizeCache
233			case 2:
234				return &v.unknownFields
235			default:
236				return nil
237			}
238		}
239		file_third_party_tink_proto_kms_envelope_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
240			switch v := v.(*KmsEnvelopeAeadKey); i {
241			case 0:
242				return &v.state
243			case 1:
244				return &v.sizeCache
245			case 2:
246				return &v.unknownFields
247			default:
248				return nil
249			}
250		}
251	}
252	type x struct{}
253	out := protoimpl.TypeBuilder{
254		File: protoimpl.DescBuilder{
255			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
256			RawDescriptor: file_third_party_tink_proto_kms_envelope_proto_rawDesc,
257			NumEnums:      0,
258			NumMessages:   2,
259			NumExtensions: 0,
260			NumServices:   0,
261		},
262		GoTypes:           file_third_party_tink_proto_kms_envelope_proto_goTypes,
263		DependencyIndexes: file_third_party_tink_proto_kms_envelope_proto_depIdxs,
264		MessageInfos:      file_third_party_tink_proto_kms_envelope_proto_msgTypes,
265	}.Build()
266	File_third_party_tink_proto_kms_envelope_proto = out.File
267	file_third_party_tink_proto_kms_envelope_proto_rawDesc = nil
268	file_third_party_tink_proto_kms_envelope_proto_goTypes = nil
269	file_third_party_tink_proto_kms_envelope_proto_depIdxs = nil
270}
271