xref: /aosp_15_r20/external/tink/go/proto/kms_aead_go_proto/kms_aead.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_aead.proto
22
23package kms_aead_go_proto
24
25import (
26	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
27	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
28	reflect "reflect"
29	sync "sync"
30)
31
32const (
33	// Verify that this generated code is sufficiently up-to-date.
34	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35	// Verify that runtime/protoimpl is sufficiently up-to-date.
36	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37)
38
39type KmsAeadKeyFormat struct {
40	state         protoimpl.MessageState
41	sizeCache     protoimpl.SizeCache
42	unknownFields protoimpl.UnknownFields
43
44	// Required.
45	// The location of a KMS key.
46	// With Google Cloud KMS, valid values have this format:
47	// gcp-kms://projects/*/locations/*/keyRings/*/cryptoKeys/*.
48	// With AWS KMS, valid values have this format:
49	// aws-kms://arn:aws:kms:<region>:<account-id>:key/<key-id>
50	KeyUri string `protobuf:"bytes,1,opt,name=key_uri,json=keyUri,proto3" json:"key_uri,omitempty"`
51}
52
53func (x *KmsAeadKeyFormat) Reset() {
54	*x = KmsAeadKeyFormat{}
55	if protoimpl.UnsafeEnabled {
56		mi := &file_third_party_tink_proto_kms_aead_proto_msgTypes[0]
57		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58		ms.StoreMessageInfo(mi)
59	}
60}
61
62func (x *KmsAeadKeyFormat) String() string {
63	return protoimpl.X.MessageStringOf(x)
64}
65
66func (*KmsAeadKeyFormat) ProtoMessage() {}
67
68func (x *KmsAeadKeyFormat) ProtoReflect() protoreflect.Message {
69	mi := &file_third_party_tink_proto_kms_aead_proto_msgTypes[0]
70	if protoimpl.UnsafeEnabled && x != nil {
71		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72		if ms.LoadMessageInfo() == nil {
73			ms.StoreMessageInfo(mi)
74		}
75		return ms
76	}
77	return mi.MessageOf(x)
78}
79
80// Deprecated: Use KmsAeadKeyFormat.ProtoReflect.Descriptor instead.
81func (*KmsAeadKeyFormat) Descriptor() ([]byte, []int) {
82	return file_third_party_tink_proto_kms_aead_proto_rawDescGZIP(), []int{0}
83}
84
85func (x *KmsAeadKeyFormat) GetKeyUri() string {
86	if x != nil {
87		return x.KeyUri
88	}
89	return ""
90}
91
92// There is no actual key material in the key.
93type KmsAeadKey struct {
94	state         protoimpl.MessageState
95	sizeCache     protoimpl.SizeCache
96	unknownFields protoimpl.UnknownFields
97
98	Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
99	// The key format also contains the params.
100	Params *KmsAeadKeyFormat `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
101}
102
103func (x *KmsAeadKey) Reset() {
104	*x = KmsAeadKey{}
105	if protoimpl.UnsafeEnabled {
106		mi := &file_third_party_tink_proto_kms_aead_proto_msgTypes[1]
107		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
108		ms.StoreMessageInfo(mi)
109	}
110}
111
112func (x *KmsAeadKey) String() string {
113	return protoimpl.X.MessageStringOf(x)
114}
115
116func (*KmsAeadKey) ProtoMessage() {}
117
118func (x *KmsAeadKey) ProtoReflect() protoreflect.Message {
119	mi := &file_third_party_tink_proto_kms_aead_proto_msgTypes[1]
120	if protoimpl.UnsafeEnabled && x != nil {
121		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
122		if ms.LoadMessageInfo() == nil {
123			ms.StoreMessageInfo(mi)
124		}
125		return ms
126	}
127	return mi.MessageOf(x)
128}
129
130// Deprecated: Use KmsAeadKey.ProtoReflect.Descriptor instead.
131func (*KmsAeadKey) Descriptor() ([]byte, []int) {
132	return file_third_party_tink_proto_kms_aead_proto_rawDescGZIP(), []int{1}
133}
134
135func (x *KmsAeadKey) GetVersion() uint32 {
136	if x != nil {
137		return x.Version
138	}
139	return 0
140}
141
142func (x *KmsAeadKey) GetParams() *KmsAeadKeyFormat {
143	if x != nil {
144		return x.Params
145	}
146	return nil
147}
148
149var File_third_party_tink_proto_kms_aead_proto protoreflect.FileDescriptor
150
151var file_third_party_tink_proto_kms_aead_proto_rawDesc = []byte{
152	0x0a, 0x25, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x74, 0x69,
153	0x6e, 0x6b, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6b, 0x6d, 0x73, 0x5f, 0x61, 0x65, 0x61,
154	0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
155	0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x22, 0x2b, 0x0a, 0x10, 0x4b,
156	0x6d, 0x73, 0x41, 0x65, 0x61, 0x64, 0x4b, 0x65, 0x79, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12,
157	0x17, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
158	0x52, 0x06, 0x6b, 0x65, 0x79, 0x55, 0x72, 0x69, 0x22, 0x64, 0x0a, 0x0a, 0x4b, 0x6d, 0x73, 0x41,
159	0x65, 0x61, 0x64, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
160	0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
161	0x12, 0x3c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
162	0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f,
163	0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x4b, 0x6d, 0x73, 0x41, 0x65, 0x61, 0x64, 0x4b, 0x65, 0x79,
164	0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x53,
165	0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x72, 0x79,
166	0x70, 0x74, 0x6f, 0x2e, 0x74, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
167	0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f,
168	0x67, 0x6c, 0x65, 0x2f, 0x74, 0x69, 0x6e, 0x6b, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74,
169	0x6f, 0x2f, 0x6b, 0x6d, 0x73, 0x5f, 0x61, 0x65, 0x61, 0x64, 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72,
170	0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
171}
172
173var (
174	file_third_party_tink_proto_kms_aead_proto_rawDescOnce sync.Once
175	file_third_party_tink_proto_kms_aead_proto_rawDescData = file_third_party_tink_proto_kms_aead_proto_rawDesc
176)
177
178func file_third_party_tink_proto_kms_aead_proto_rawDescGZIP() []byte {
179	file_third_party_tink_proto_kms_aead_proto_rawDescOnce.Do(func() {
180		file_third_party_tink_proto_kms_aead_proto_rawDescData = protoimpl.X.CompressGZIP(file_third_party_tink_proto_kms_aead_proto_rawDescData)
181	})
182	return file_third_party_tink_proto_kms_aead_proto_rawDescData
183}
184
185var file_third_party_tink_proto_kms_aead_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
186var file_third_party_tink_proto_kms_aead_proto_goTypes = []interface{}{
187	(*KmsAeadKeyFormat)(nil), // 0: google.crypto.tink.KmsAeadKeyFormat
188	(*KmsAeadKey)(nil),       // 1: google.crypto.tink.KmsAeadKey
189}
190var file_third_party_tink_proto_kms_aead_proto_depIdxs = []int32{
191	0, // 0: google.crypto.tink.KmsAeadKey.params:type_name -> google.crypto.tink.KmsAeadKeyFormat
192	1, // [1:1] is the sub-list for method output_type
193	1, // [1:1] is the sub-list for method input_type
194	1, // [1:1] is the sub-list for extension type_name
195	1, // [1:1] is the sub-list for extension extendee
196	0, // [0:1] is the sub-list for field type_name
197}
198
199func init() { file_third_party_tink_proto_kms_aead_proto_init() }
200func file_third_party_tink_proto_kms_aead_proto_init() {
201	if File_third_party_tink_proto_kms_aead_proto != nil {
202		return
203	}
204	if !protoimpl.UnsafeEnabled {
205		file_third_party_tink_proto_kms_aead_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
206			switch v := v.(*KmsAeadKeyFormat); i {
207			case 0:
208				return &v.state
209			case 1:
210				return &v.sizeCache
211			case 2:
212				return &v.unknownFields
213			default:
214				return nil
215			}
216		}
217		file_third_party_tink_proto_kms_aead_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
218			switch v := v.(*KmsAeadKey); i {
219			case 0:
220				return &v.state
221			case 1:
222				return &v.sizeCache
223			case 2:
224				return &v.unknownFields
225			default:
226				return nil
227			}
228		}
229	}
230	type x struct{}
231	out := protoimpl.TypeBuilder{
232		File: protoimpl.DescBuilder{
233			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
234			RawDescriptor: file_third_party_tink_proto_kms_aead_proto_rawDesc,
235			NumEnums:      0,
236			NumMessages:   2,
237			NumExtensions: 0,
238			NumServices:   0,
239		},
240		GoTypes:           file_third_party_tink_proto_kms_aead_proto_goTypes,
241		DependencyIndexes: file_third_party_tink_proto_kms_aead_proto_depIdxs,
242		MessageInfos:      file_third_party_tink_proto_kms_aead_proto_msgTypes,
243	}.Build()
244	File_third_party_tink_proto_kms_aead_proto = out.File
245	file_third_party_tink_proto_kms_aead_proto_rawDesc = nil
246	file_third_party_tink_proto_kms_aead_proto_goTypes = nil
247	file_third_party_tink_proto_kms_aead_proto_depIdxs = nil
248}
249