/
ssl_config.pb.go
113 lines (98 loc) · 4.02 KB
/
ssl_config.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow_serving/config/ssl_config.proto
package serving
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Configuration for a secure gRPC channel
type SSLConfig struct {
// private server key for SSL
ServerKey string `protobuf:"bytes,1,opt,name=server_key,json=serverKey,proto3" json:"server_key,omitempty"`
// public server certificate
ServerCert string `protobuf:"bytes,2,opt,name=server_cert,json=serverCert,proto3" json:"server_cert,omitempty"`
// custom certificate authority
CustomCa string `protobuf:"bytes,3,opt,name=custom_ca,json=customCa,proto3" json:"custom_ca,omitempty"`
// valid client certificate required ?
ClientVerify bool `protobuf:"varint,4,opt,name=client_verify,json=clientVerify,proto3" json:"client_verify,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SSLConfig) Reset() { *m = SSLConfig{} }
func (m *SSLConfig) String() string { return proto.CompactTextString(m) }
func (*SSLConfig) ProtoMessage() {}
func (*SSLConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_4ff8a518289eb8df, []int{0}
}
func (m *SSLConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SSLConfig.Unmarshal(m, b)
}
func (m *SSLConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SSLConfig.Marshal(b, m, deterministic)
}
func (m *SSLConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_SSLConfig.Merge(m, src)
}
func (m *SSLConfig) XXX_Size() int {
return xxx_messageInfo_SSLConfig.Size(m)
}
func (m *SSLConfig) XXX_DiscardUnknown() {
xxx_messageInfo_SSLConfig.DiscardUnknown(m)
}
var xxx_messageInfo_SSLConfig proto.InternalMessageInfo
func (m *SSLConfig) GetServerKey() string {
if m != nil {
return m.ServerKey
}
return ""
}
func (m *SSLConfig) GetServerCert() string {
if m != nil {
return m.ServerCert
}
return ""
}
func (m *SSLConfig) GetCustomCa() string {
if m != nil {
return m.CustomCa
}
return ""
}
func (m *SSLConfig) GetClientVerify() bool {
if m != nil {
return m.ClientVerify
}
return false
}
func init() {
proto.RegisterType((*SSLConfig)(nil), "tensorflow.serving.SSLConfig")
}
func init() {
proto.RegisterFile("tensorflow_serving/config/ssl_config.proto", fileDescriptor_4ff8a518289eb8df)
}
var fileDescriptor_4ff8a518289eb8df = []byte{
// 187 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x8e, 0xb1, 0x0a, 0xc2, 0x30,
0x14, 0x45, 0x89, 0x15, 0x69, 0xa2, 0x2e, 0x99, 0x02, 0x22, 0x16, 0x5d, 0x8a, 0x43, 0x3b, 0xf8,
0x07, 0x76, 0xd4, 0xa9, 0x05, 0xd7, 0x50, 0xc3, 0x6b, 0x09, 0xd6, 0x44, 0x92, 0x58, 0xe9, 0x47,
0xf8, 0xbf, 0x8e, 0x62, 0x52, 0x70, 0x7b, 0x9c, 0x73, 0x1e, 0x5c, 0xb2, 0x77, 0xa0, 0xac, 0x36,
0x4d, 0xa7, 0x5f, 0xdc, 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