1// Copyright 2019 Istio Authors. All Rights Reserved.
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// Code generated by protoc-gen-go. DO NOT EDIT.
16// versions:
17// 	protoc-gen-go v1.25.0
18// 	protoc        v3.14.0
19// source: istio/google/security/meshca/v1/meshca.proto
20
21package google_security_meshca_v1
22
23import (
24	proto "github.com/golang/protobuf/proto"
25	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27	durationpb "google.golang.org/protobuf/types/known/durationpb"
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
39// This is a compile-time assertion that a sufficiently up-to-date version
40// of the legacy proto package is being used.
41const _ = proto.ProtoPackageIsVersion4
42
43// Certificate request message.
44type MeshCertificateRequest struct {
45	state         protoimpl.MessageState
46	sizeCache     protoimpl.SizeCache
47	unknownFields protoimpl.UnknownFields
48
49	// The request ID must be a valid UUID with the exception that zero UUID is
50	// not supported (00000000-0000-0000-0000-000000000000).
51	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
52	// PEM-encoded certificate request.
53	Csr string `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"`
54	// Optional: requested certificate validity period.
55	Validity *durationpb.Duration `protobuf:"bytes,3,opt,name=validity,proto3" json:"validity,omitempty"` // Reserved 4
56}
57
58func (x *MeshCertificateRequest) Reset() {
59	*x = MeshCertificateRequest{}
60	if protoimpl.UnsafeEnabled {
61		mi := &file_istio_google_security_meshca_v1_meshca_proto_msgTypes[0]
62		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
63		ms.StoreMessageInfo(mi)
64	}
65}
66
67func (x *MeshCertificateRequest) String() string {
68	return protoimpl.X.MessageStringOf(x)
69}
70
71func (*MeshCertificateRequest) ProtoMessage() {}
72
73func (x *MeshCertificateRequest) ProtoReflect() protoreflect.Message {
74	mi := &file_istio_google_security_meshca_v1_meshca_proto_msgTypes[0]
75	if protoimpl.UnsafeEnabled && x != nil {
76		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
77		if ms.LoadMessageInfo() == nil {
78			ms.StoreMessageInfo(mi)
79		}
80		return ms
81	}
82	return mi.MessageOf(x)
83}
84
85// Deprecated: Use MeshCertificateRequest.ProtoReflect.Descriptor instead.
86func (*MeshCertificateRequest) Descriptor() ([]byte, []int) {
87	return file_istio_google_security_meshca_v1_meshca_proto_rawDescGZIP(), []int{0}
88}
89
90func (x *MeshCertificateRequest) GetRequestId() string {
91	if x != nil {
92		return x.RequestId
93	}
94	return ""
95}
96
97func (x *MeshCertificateRequest) GetCsr() string {
98	if x != nil {
99		return x.Csr
100	}
101	return ""
102}
103
104func (x *MeshCertificateRequest) GetValidity() *durationpb.Duration {
105	if x != nil {
106		return x.Validity
107	}
108	return nil
109}
110
111// Certificate response message.
112type MeshCertificateResponse struct {
113	state         protoimpl.MessageState
114	sizeCache     protoimpl.SizeCache
115	unknownFields protoimpl.UnknownFields
116
117	// PEM-encoded certificate chain.
118	// Leaf cert is element '0'. Root cert is element 'n'.
119	CertChain []string `protobuf:"bytes,1,rep,name=cert_chain,json=certChain,proto3" json:"cert_chain,omitempty"`
120}
121
122func (x *MeshCertificateResponse) Reset() {
123	*x = MeshCertificateResponse{}
124	if protoimpl.UnsafeEnabled {
125		mi := &file_istio_google_security_meshca_v1_meshca_proto_msgTypes[1]
126		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
127		ms.StoreMessageInfo(mi)
128	}
129}
130
131func (x *MeshCertificateResponse) String() string {
132	return protoimpl.X.MessageStringOf(x)
133}
134
135func (*MeshCertificateResponse) ProtoMessage() {}
136
137func (x *MeshCertificateResponse) ProtoReflect() protoreflect.Message {
138	mi := &file_istio_google_security_meshca_v1_meshca_proto_msgTypes[1]
139	if protoimpl.UnsafeEnabled && x != nil {
140		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
141		if ms.LoadMessageInfo() == nil {
142			ms.StoreMessageInfo(mi)
143		}
144		return ms
145	}
146	return mi.MessageOf(x)
147}
148
149// Deprecated: Use MeshCertificateResponse.ProtoReflect.Descriptor instead.
150func (*MeshCertificateResponse) Descriptor() ([]byte, []int) {
151	return file_istio_google_security_meshca_v1_meshca_proto_rawDescGZIP(), []int{1}
152}
153
154func (x *MeshCertificateResponse) GetCertChain() []string {
155	if x != nil {
156		return x.CertChain
157	}
158	return nil
159}
160
161var File_istio_google_security_meshca_v1_meshca_proto protoreflect.FileDescriptor
162
163var file_istio_google_security_meshca_v1_meshca_proto_rawDesc = []byte{
164	0x0a, 0x2c, 0x69, 0x73, 0x74, 0x69, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73,
165	0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x6d, 0x65, 0x73, 0x68, 0x63, 0x61, 0x2f, 0x76,
166	0x31, 0x2f, 0x6d, 0x65, 0x73, 0x68, 0x63, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19,
167	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e,
168	0x6d, 0x65, 0x73, 0x68, 0x63, 0x61, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
169	0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74,
170	0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x80, 0x01, 0x0a, 0x16, 0x4d, 0x65,
171	0x73, 0x68, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71,
172	0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f,
173	0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
174	0x74, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x73, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
175	0x52, 0x03, 0x63, 0x73, 0x72, 0x12, 0x35, 0x0a, 0x08, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74,
176	0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
177	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69,
178	0x6f, 0x6e, 0x52, 0x08, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x22, 0x38, 0x0a, 0x17,
179	0x4d, 0x65, 0x73, 0x68, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52,
180	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x65, 0x72, 0x74, 0x5f,
181	0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x63, 0x65, 0x72,
182	0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x32, 0x96, 0x01, 0x0a, 0x16, 0x4d, 0x65, 0x73, 0x68, 0x43,
183	0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
184	0x65, 0x12, 0x7c, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69,
185	0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
186	0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x63, 0x61, 0x2e,
187	0x76, 0x31, 0x2e, 0x4d, 0x65, 0x73, 0x68, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
188	0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
189	0x6c, 0x65, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x6d, 0x65, 0x73, 0x68,
190	0x63, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x73, 0x68, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66,
191	0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42,
192	0x2e, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x65,
193	0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x6d, 0x65, 0x73, 0x68, 0x63, 0x61, 0x2e, 0x76, 0x31,
194	0x42, 0x0b, 0x4d, 0x65, 0x73, 0x68, 0x43, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x62,
195	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
196}
197
198var (
199	file_istio_google_security_meshca_v1_meshca_proto_rawDescOnce sync.Once
200	file_istio_google_security_meshca_v1_meshca_proto_rawDescData = file_istio_google_security_meshca_v1_meshca_proto_rawDesc
201)
202
203func file_istio_google_security_meshca_v1_meshca_proto_rawDescGZIP() []byte {
204	file_istio_google_security_meshca_v1_meshca_proto_rawDescOnce.Do(func() {
205		file_istio_google_security_meshca_v1_meshca_proto_rawDescData = protoimpl.X.CompressGZIP(file_istio_google_security_meshca_v1_meshca_proto_rawDescData)
206	})
207	return file_istio_google_security_meshca_v1_meshca_proto_rawDescData
208}
209
210var file_istio_google_security_meshca_v1_meshca_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
211var file_istio_google_security_meshca_v1_meshca_proto_goTypes = []interface{}{
212	(*MeshCertificateRequest)(nil),  // 0: google.security.meshca.v1.MeshCertificateRequest
213	(*MeshCertificateResponse)(nil), // 1: google.security.meshca.v1.MeshCertificateResponse
214	(*durationpb.Duration)(nil),     // 2: google.protobuf.Duration
215}
216var file_istio_google_security_meshca_v1_meshca_proto_depIdxs = []int32{
217	2, // 0: google.security.meshca.v1.MeshCertificateRequest.validity:type_name -> google.protobuf.Duration
218	0, // 1: google.security.meshca.v1.MeshCertificateService.CreateCertificate:input_type -> google.security.meshca.v1.MeshCertificateRequest
219	1, // 2: google.security.meshca.v1.MeshCertificateService.CreateCertificate:output_type -> google.security.meshca.v1.MeshCertificateResponse
220	2, // [2:3] is the sub-list for method output_type
221	1, // [1:2] is the sub-list for method input_type
222	1, // [1:1] is the sub-list for extension type_name
223	1, // [1:1] is the sub-list for extension extendee
224	0, // [0:1] is the sub-list for field type_name
225}
226
227func init() { file_istio_google_security_meshca_v1_meshca_proto_init() }
228func file_istio_google_security_meshca_v1_meshca_proto_init() {
229	if File_istio_google_security_meshca_v1_meshca_proto != nil {
230		return
231	}
232	if !protoimpl.UnsafeEnabled {
233		file_istio_google_security_meshca_v1_meshca_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
234			switch v := v.(*MeshCertificateRequest); i {
235			case 0:
236				return &v.state
237			case 1:
238				return &v.sizeCache
239			case 2:
240				return &v.unknownFields
241			default:
242				return nil
243			}
244		}
245		file_istio_google_security_meshca_v1_meshca_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
246			switch v := v.(*MeshCertificateResponse); i {
247			case 0:
248				return &v.state
249			case 1:
250				return &v.sizeCache
251			case 2:
252				return &v.unknownFields
253			default:
254				return nil
255			}
256		}
257	}
258	type x struct{}
259	out := protoimpl.TypeBuilder{
260		File: protoimpl.DescBuilder{
261			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
262			RawDescriptor: file_istio_google_security_meshca_v1_meshca_proto_rawDesc,
263			NumEnums:      0,
264			NumMessages:   2,
265			NumExtensions: 0,
266			NumServices:   1,
267		},
268		GoTypes:           file_istio_google_security_meshca_v1_meshca_proto_goTypes,
269		DependencyIndexes: file_istio_google_security_meshca_v1_meshca_proto_depIdxs,
270		MessageInfos:      file_istio_google_security_meshca_v1_meshca_proto_msgTypes,
271	}.Build()
272	File_istio_google_security_meshca_v1_meshca_proto = out.File
273	file_istio_google_security_meshca_v1_meshca_proto_rawDesc = nil
274	file_istio_google_security_meshca_v1_meshca_proto_goTypes = nil
275	file_istio_google_security_meshca_v1_meshca_proto_depIdxs = nil
276}
277