This repository has been archived by the owner on Nov 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 152
/
config.pb.go
179 lines (155 loc) · 6.32 KB
/
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/google/cloudprober/targets/rds/server/proto/config.proto
package proto
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
proto1 "github.com/google/cloudprober/targets/rds/server/gcp/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
type ServerConf struct {
// List of providers that server supports.
Provider []*Provider `protobuf:"bytes,1,rep,name=provider" json:"provider,omitempty"`
// Listener address for RDS server. If this address is not provided we try
// to use the default gRPC server configured through the
// runtime.SetDefaultGRPCServer() call.
// TODO(manugarg): Deprecate this option. While running as part of
// cloudprober, only the top-level gRPC server should be configured. While
// running standalone, cmd/server.go should create a gRPC server and provide
// that to server.New() call.
Addr *string `protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerConf) Reset() { *m = ServerConf{} }
func (m *ServerConf) String() string { return proto.CompactTextString(m) }
func (*ServerConf) ProtoMessage() {}
func (*ServerConf) Descriptor() ([]byte, []int) {
return fileDescriptor_4a3234188f7c6305, []int{0}
}
func (m *ServerConf) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerConf.Unmarshal(m, b)
}
func (m *ServerConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerConf.Marshal(b, m, deterministic)
}
func (m *ServerConf) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerConf.Merge(m, src)
}
func (m *ServerConf) XXX_Size() int {
return xxx_messageInfo_ServerConf.Size(m)
}
func (m *ServerConf) XXX_DiscardUnknown() {
xxx_messageInfo_ServerConf.DiscardUnknown(m)
}
var xxx_messageInfo_ServerConf proto.InternalMessageInfo
func (m *ServerConf) GetProvider() []*Provider {
if m != nil {
return m.Provider
}
return nil
}
func (m *ServerConf) GetAddr() string {
if m != nil && m.Addr != nil {
return *m.Addr
}
return ""
}
type Provider struct {
// Provider identifier, e.g. "gcp". Server routes incoming requests to various
// providers based on this id.
Id *string `protobuf:"bytes,1,req,name=id" json:"id,omitempty"`
// Types that are valid to be assigned to Config:
// *Provider_GcpConfig
Config isProvider_Config `protobuf_oneof:"config"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Provider) Reset() { *m = Provider{} }
func (m *Provider) String() string { return proto.CompactTextString(m) }
func (*Provider) ProtoMessage() {}
func (*Provider) Descriptor() ([]byte, []int) {
return fileDescriptor_4a3234188f7c6305, []int{1}
}
func (m *Provider) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Provider.Unmarshal(m, b)
}
func (m *Provider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Provider.Marshal(b, m, deterministic)
}
func (m *Provider) XXX_Merge(src proto.Message) {
xxx_messageInfo_Provider.Merge(m, src)
}
func (m *Provider) XXX_Size() int {
return xxx_messageInfo_Provider.Size(m)
}
func (m *Provider) XXX_DiscardUnknown() {
xxx_messageInfo_Provider.DiscardUnknown(m)
}
var xxx_messageInfo_Provider proto.InternalMessageInfo
func (m *Provider) GetId() string {
if m != nil && m.Id != nil {
return *m.Id
}
return ""
}
type isProvider_Config interface {
isProvider_Config()
}
type Provider_GcpConfig struct {
GcpConfig *proto1.ProviderConfig `protobuf:"bytes,2,opt,name=gcp_config,json=gcpConfig,oneof"`
}
func (*Provider_GcpConfig) isProvider_Config() {}
func (m *Provider) GetConfig() isProvider_Config {
if m != nil {
return m.Config
}
return nil
}
func (m *Provider) GetGcpConfig() *proto1.ProviderConfig {
if x, ok := m.GetConfig().(*Provider_GcpConfig); ok {
return x.GcpConfig
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*Provider) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*Provider_GcpConfig)(nil),
}
}
func init() {
proto.RegisterType((*ServerConf)(nil), "cloudprober.targets.rds.ServerConf")
proto.RegisterType((*Provider)(nil), "cloudprober.targets.rds.Provider")
}
func init() {
proto.RegisterFile("github.com/google/cloudprober/targets/rds/server/proto/config.proto", fileDescriptor_4a3234188f7c6305)
}
var fileDescriptor_4a3234188f7c6305 = []byte{
// 224 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x8e, 0x31, 0x4b, 0x03, 0x41,
0x10, 0x85, 0xbd, 0x53, 0xe4, 0x6e, 0x02, 0x16, 0xdb, 0x78, 0x58, 0x9d, 0xa9, 0x0e, 0x84, 0x5d,
0x48, 0x6f, 0xe3, 0x15, 0x5a, 0x58, 0xc8, 0xfa, 0x03, 0x42, 0xb2, 0xb3, 0x19, 0x17, 0x62, 0x66,
0x99, 0xdd, 0xe4, 0xf7, 0x0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