kuma

Форк
0
/
zone.pb.go 
164 строки · 6.2 Кб
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/zone.proto
6

7
package v1alpha1
8

9
import (
10
	_ "github.com/kumahq/kuma/api/mesh"
11
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13
	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
14
	reflect "reflect"
15
	sync "sync"
16
)
17

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

25
// Zone defines the Zone configuration used at the Global Control Plane
26
// within a distributed deployment
27
type Zone struct {
28
	state         protoimpl.MessageState
29
	sizeCache     protoimpl.SizeCache
30
	unknownFields protoimpl.UnknownFields
31

32
	// enable allows to turn the zone on/off and exclude the whole zone from
33
	// balancing traffic on it
34
	Enabled *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
35
}
36

37
func (x *Zone) Reset() {
38
	*x = Zone{}
39
	if protoimpl.UnsafeEnabled {
40
		mi := &file_api_system_v1alpha1_zone_proto_msgTypes[0]
41
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
42
		ms.StoreMessageInfo(mi)
43
	}
44
}
45

46
func (x *Zone) String() string {
47
	return protoimpl.X.MessageStringOf(x)
48
}
49

50
func (*Zone) ProtoMessage() {}
51

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

64
// Deprecated: Use Zone.ProtoReflect.Descriptor instead.
65
func (*Zone) Descriptor() ([]byte, []int) {
66
	return file_api_system_v1alpha1_zone_proto_rawDescGZIP(), []int{0}
67
}
68

69
func (x *Zone) GetEnabled() *wrapperspb.BoolValue {
70
	if x != nil {
71
		return x.Enabled
72
	}
73
	return nil
74
}
75

76
var File_api_system_v1alpha1_zone_proto protoreflect.FileDescriptor
77

78
var file_api_system_v1alpha1_zone_proto_rawDesc = []byte{
79
	0x0a, 0x1e, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2f, 0x76, 0x31, 0x61,
80
	0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x7a, 0x6f, 0x6e, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
81
	0x12, 0x14, 0x6b, 0x75, 0x6d, 0x61, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x76, 0x31,
82
	0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x16, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x65, 0x73, 0x68,
83
	0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e,
84
	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
85
	0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b,
86
	0x01, 0x0a, 0x04, 0x5a, 0x6f, 0x6e, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c,
87
	0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
88
	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56,
89
	0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x3a, 0x4d, 0xaa,
90
	0x8c, 0x89, 0xa6, 0x01, 0x0e, 0x0a, 0x0c, 0x5a, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75,
91
	0x72, 0x63, 0x65, 0xaa, 0x8c, 0x89, 0xa6, 0x01, 0x06, 0x12, 0x04, 0x5a, 0x6f, 0x6e, 0x65, 0xaa,
92
	0x8c, 0x89, 0xa6, 0x01, 0x08, 0x22, 0x06, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0xaa, 0x8c, 0x89,
93
	0xa6, 0x01, 0x02, 0x18, 0x01, 0xaa, 0x8c, 0x89, 0xa6, 0x01, 0x08, 0x3a, 0x06, 0x0a, 0x04, 0x7a,
94
	0x6f, 0x6e, 0x65, 0xaa, 0x8c, 0x89, 0xa6, 0x01, 0x03, 0x90, 0x01, 0x01, 0x42, 0x2c, 0x5a, 0x2a,
95
	0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x75, 0x6d, 0x61, 0x68,
96
	0x71, 0x2f, 0x6b, 0x75, 0x6d, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65,
97
	0x6d, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
98
	0x6f, 0x33,
99
}
100

101
var (
102
	file_api_system_v1alpha1_zone_proto_rawDescOnce sync.Once
103
	file_api_system_v1alpha1_zone_proto_rawDescData = file_api_system_v1alpha1_zone_proto_rawDesc
104
)
105

106
func file_api_system_v1alpha1_zone_proto_rawDescGZIP() []byte {
107
	file_api_system_v1alpha1_zone_proto_rawDescOnce.Do(func() {
108
		file_api_system_v1alpha1_zone_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_system_v1alpha1_zone_proto_rawDescData)
109
	})
110
	return file_api_system_v1alpha1_zone_proto_rawDescData
111
}
112

113
var file_api_system_v1alpha1_zone_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
114
var file_api_system_v1alpha1_zone_proto_goTypes = []interface{}{
115
	(*Zone)(nil),                 // 0: kuma.system.v1alpha1.Zone
116
	(*wrapperspb.BoolValue)(nil), // 1: google.protobuf.BoolValue
117
}
118
var file_api_system_v1alpha1_zone_proto_depIdxs = []int32{
119
	1, // 0: kuma.system.v1alpha1.Zone.enabled:type_name -> google.protobuf.BoolValue
120
	1, // [1:1] is the sub-list for method output_type
121
	1, // [1:1] is the sub-list for method input_type
122
	1, // [1:1] is the sub-list for extension type_name
123
	1, // [1:1] is the sub-list for extension extendee
124
	0, // [0:1] is the sub-list for field type_name
125
}
126

127
func init() { file_api_system_v1alpha1_zone_proto_init() }
128
func file_api_system_v1alpha1_zone_proto_init() {
129
	if File_api_system_v1alpha1_zone_proto != nil {
130
		return
131
	}
132
	if !protoimpl.UnsafeEnabled {
133
		file_api_system_v1alpha1_zone_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
134
			switch v := v.(*Zone); i {
135
			case 0:
136
				return &v.state
137
			case 1:
138
				return &v.sizeCache
139
			case 2:
140
				return &v.unknownFields
141
			default:
142
				return nil
143
			}
144
		}
145
	}
146
	type x struct{}
147
	out := protoimpl.TypeBuilder{
148
		File: protoimpl.DescBuilder{
149
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
150
			RawDescriptor: file_api_system_v1alpha1_zone_proto_rawDesc,
151
			NumEnums:      0,
152
			NumMessages:   1,
153
			NumExtensions: 0,
154
			NumServices:   0,
155
		},
156
		GoTypes:           file_api_system_v1alpha1_zone_proto_goTypes,
157
		DependencyIndexes: file_api_system_v1alpha1_zone_proto_depIdxs,
158
		MessageInfos:      file_api_system_v1alpha1_zone_proto_msgTypes,
159
	}.Build()
160
	File_api_system_v1alpha1_zone_proto = out.File
161
	file_api_system_v1alpha1_zone_proto_rawDesc = nil
162
	file_api_system_v1alpha1_zone_proto_goTypes = nil
163
	file_api_system_v1alpha1_zone_proto_depIdxs = nil
164
}
165

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

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

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

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