kuma

Форк
0
/
inter_cp_ping.pb.go 
247 строк · 8.9 Кб
1
// Code generated by protoc-gen-go. DO NOT EDIT.
2
// versions:
3
// 	protoc-gen-go v1.28.1
4
// 	protoc        v3.20.0
5
// source: api/system/v1alpha1/inter_cp_ping.proto
6

7
package v1alpha1
8

9
import (
10
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12
	reflect "reflect"
13
	sync "sync"
14
)
15

16
const (
17
	// Verify that this generated code is sufficiently up-to-date.
18
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
19
	// Verify that runtime/protoimpl is sufficiently up-to-date.
20
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
21
)
22

23
type PingRequest struct {
24
	state         protoimpl.MessageState
25
	sizeCache     protoimpl.SizeCache
26
	unknownFields protoimpl.UnknownFields
27

28
	InstanceId  string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
29
	Address     string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
30
	InterCpPort uint32 `protobuf:"varint,3,opt,name=inter_cp_port,json=interCpPort,proto3" json:"inter_cp_port,omitempty"`
31
	Ready       bool   `protobuf:"varint,4,opt,name=ready,proto3" json:"ready,omitempty"`
32
}
33

34
func (x *PingRequest) Reset() {
35
	*x = PingRequest{}
36
	if protoimpl.UnsafeEnabled {
37
		mi := &file_api_system_v1alpha1_inter_cp_ping_proto_msgTypes[0]
38
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
39
		ms.StoreMessageInfo(mi)
40
	}
41
}
42

43
func (x *PingRequest) String() string {
44
	return protoimpl.X.MessageStringOf(x)
45
}
46

47
func (*PingRequest) ProtoMessage() {}
48

49
func (x *PingRequest) ProtoReflect() protoreflect.Message {
50
	mi := &file_api_system_v1alpha1_inter_cp_ping_proto_msgTypes[0]
51
	if protoimpl.UnsafeEnabled && x != nil {
52
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53
		if ms.LoadMessageInfo() == nil {
54
			ms.StoreMessageInfo(mi)
55
		}
56
		return ms
57
	}
58
	return mi.MessageOf(x)
59
}
60

61
// Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
62
func (*PingRequest) Descriptor() ([]byte, []int) {
63
	return file_api_system_v1alpha1_inter_cp_ping_proto_rawDescGZIP(), []int{0}
64
}
65

66
func (x *PingRequest) GetInstanceId() string {
67
	if x != nil {
68
		return x.InstanceId
69
	}
70
	return ""
71
}
72

73
func (x *PingRequest) GetAddress() string {
74
	if x != nil {
75
		return x.Address
76
	}
77
	return ""
78
}
79

80
func (x *PingRequest) GetInterCpPort() uint32 {
81
	if x != nil {
82
		return x.InterCpPort
83
	}
84
	return 0
85
}
86

87
func (x *PingRequest) GetReady() bool {
88
	if x != nil {
89
		return x.Ready
90
	}
91
	return false
92
}
93

94
type PingResponse struct {
95
	state         protoimpl.MessageState
96
	sizeCache     protoimpl.SizeCache
97
	unknownFields protoimpl.UnknownFields
98

99
	Leader bool `protobuf:"varint,1,opt,name=leader,proto3" json:"leader,omitempty"`
100
}
101

102
func (x *PingResponse) Reset() {
103
	*x = PingResponse{}
104
	if protoimpl.UnsafeEnabled {
105
		mi := &file_api_system_v1alpha1_inter_cp_ping_proto_msgTypes[1]
106
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
107
		ms.StoreMessageInfo(mi)
108
	}
109
}
110

111
func (x *PingResponse) String() string {
112
	return protoimpl.X.MessageStringOf(x)
113
}
114

115
func (*PingResponse) ProtoMessage() {}
116

117
func (x *PingResponse) ProtoReflect() protoreflect.Message {
118
	mi := &file_api_system_v1alpha1_inter_cp_ping_proto_msgTypes[1]
119
	if protoimpl.UnsafeEnabled && x != nil {
120
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
121
		if ms.LoadMessageInfo() == nil {
122
			ms.StoreMessageInfo(mi)
123
		}
124
		return ms
125
	}
126
	return mi.MessageOf(x)
127
}
128

129
// Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
130
func (*PingResponse) Descriptor() ([]byte, []int) {
131
	return file_api_system_v1alpha1_inter_cp_ping_proto_rawDescGZIP(), []int{1}
132
}
133

134
func (x *PingResponse) GetLeader() bool {
135
	if x != nil {
136
		return x.Leader
137
	}
138
	return false
139
}
140

141
var File_api_system_v1alpha1_inter_cp_ping_proto protoreflect.FileDescriptor
142

143
var file_api_system_v1alpha1_inter_cp_ping_proto_rawDesc = []byte{
144
	0x0a, 0x27, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2f, 0x76, 0x31, 0x61,
145
	0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x70, 0x5f, 0x70,
146
	0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x6b, 0x75, 0x6d, 0x61, 0x2e,
147
	0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x22,
148
	0x82, 0x01, 0x0a, 0x0b, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
149
	0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01,
150
	0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64,
151
	0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
152
	0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x69, 0x6e,
153
	0x74, 0x65, 0x72, 0x5f, 0x63, 0x70, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
154
	0x0d, 0x52, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x70, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x14,
155
	0x0a, 0x05, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x72,
156
	0x65, 0x61, 0x64, 0x79, 0x22, 0x26, 0x0a, 0x0c, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70,
157
	0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01,
158
	0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x32, 0x63, 0x0a, 0x12,
159
	0x49, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x70, 0x50, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69,
160
	0x63, 0x65, 0x12, 0x4d, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x21, 0x2e, 0x6b, 0x75, 0x6d,
161
	0x61, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
162
	0x31, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e,
163
	0x6b, 0x75, 0x6d, 0x61, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x76, 0x31, 0x61, 0x6c,
164
	0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
165
	0x65, 0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
166
	0x6b, 0x75, 0x6d, 0x61, 0x68, 0x71, 0x2f, 0x6b, 0x75, 0x6d, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f,
167
	0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62,
168
	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
169
}
170

171
var (
172
	file_api_system_v1alpha1_inter_cp_ping_proto_rawDescOnce sync.Once
173
	file_api_system_v1alpha1_inter_cp_ping_proto_rawDescData = file_api_system_v1alpha1_inter_cp_ping_proto_rawDesc
174
)
175

176
func file_api_system_v1alpha1_inter_cp_ping_proto_rawDescGZIP() []byte {
177
	file_api_system_v1alpha1_inter_cp_ping_proto_rawDescOnce.Do(func() {
178
		file_api_system_v1alpha1_inter_cp_ping_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_system_v1alpha1_inter_cp_ping_proto_rawDescData)
179
	})
180
	return file_api_system_v1alpha1_inter_cp_ping_proto_rawDescData
181
}
182

183
var file_api_system_v1alpha1_inter_cp_ping_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
184
var file_api_system_v1alpha1_inter_cp_ping_proto_goTypes = []interface{}{
185
	(*PingRequest)(nil),  // 0: kuma.system.v1alpha1.PingRequest
186
	(*PingResponse)(nil), // 1: kuma.system.v1alpha1.PingResponse
187
}
188
var file_api_system_v1alpha1_inter_cp_ping_proto_depIdxs = []int32{
189
	0, // 0: kuma.system.v1alpha1.InterCpPingService.Ping:input_type -> kuma.system.v1alpha1.PingRequest
190
	1, // 1: kuma.system.v1alpha1.InterCpPingService.Ping:output_type -> kuma.system.v1alpha1.PingResponse
191
	1, // [1:2] is the sub-list for method output_type
192
	0, // [0:1] is the sub-list for method input_type
193
	0, // [0:0] is the sub-list for extension type_name
194
	0, // [0:0] is the sub-list for extension extendee
195
	0, // [0:0] is the sub-list for field type_name
196
}
197

198
func init() { file_api_system_v1alpha1_inter_cp_ping_proto_init() }
199
func file_api_system_v1alpha1_inter_cp_ping_proto_init() {
200
	if File_api_system_v1alpha1_inter_cp_ping_proto != nil {
201
		return
202
	}
203
	if !protoimpl.UnsafeEnabled {
204
		file_api_system_v1alpha1_inter_cp_ping_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
205
			switch v := v.(*PingRequest); i {
206
			case 0:
207
				return &v.state
208
			case 1:
209
				return &v.sizeCache
210
			case 2:
211
				return &v.unknownFields
212
			default:
213
				return nil
214
			}
215
		}
216
		file_api_system_v1alpha1_inter_cp_ping_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
217
			switch v := v.(*PingResponse); i {
218
			case 0:
219
				return &v.state
220
			case 1:
221
				return &v.sizeCache
222
			case 2:
223
				return &v.unknownFields
224
			default:
225
				return nil
226
			}
227
		}
228
	}
229
	type x struct{}
230
	out := protoimpl.TypeBuilder{
231
		File: protoimpl.DescBuilder{
232
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
233
			RawDescriptor: file_api_system_v1alpha1_inter_cp_ping_proto_rawDesc,
234
			NumEnums:      0,
235
			NumMessages:   2,
236
			NumExtensions: 0,
237
			NumServices:   1,
238
		},
239
		GoTypes:           file_api_system_v1alpha1_inter_cp_ping_proto_goTypes,
240
		DependencyIndexes: file_api_system_v1alpha1_inter_cp_ping_proto_depIdxs,
241
		MessageInfos:      file_api_system_v1alpha1_inter_cp_ping_proto_msgTypes,
242
	}.Build()
243
	File_api_system_v1alpha1_inter_cp_ping_proto = out.File
244
	file_api_system_v1alpha1_inter_cp_ping_proto_rawDesc = nil
245
	file_api_system_v1alpha1_inter_cp_ping_proto_goTypes = nil
246
	file_api_system_v1alpha1_inter_cp_ping_proto_depIdxs = nil
247
}
248

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.