mirror of https://github.com/status-im/consul.git
267 lines
10 KiB
Go
267 lines
10 KiB
Go
|
// Copyright (c) HashiCorp, Inc.
|
||
|
// SPDX-License-Identifier: MPL-2.0
|
||
|
|
||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// versions:
|
||
|
// protoc-gen-go v1.30.0
|
||
|
// protoc (unknown)
|
||
|
// source: pbresource/annotations.proto
|
||
|
|
||
|
package pbresource
|
||
|
|
||
|
import (
|
||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
|
descriptorpb "google.golang.org/protobuf/types/descriptorpb"
|
||
|
reflect "reflect"
|
||
|
sync "sync"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
// Verify that this generated code is sufficiently up-to-date.
|
||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
|
)
|
||
|
|
||
|
type Scope int32
|
||
|
|
||
|
const (
|
||
|
// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
|
||
|
Scope_SCOPE_UNDEFINED Scope = 0
|
||
|
Scope_SCOPE_CLUSTER Scope = 1
|
||
|
Scope_SCOPE_PARTITION Scope = 2
|
||
|
Scope_SCOPE_NAMESPACE Scope = 3
|
||
|
)
|
||
|
|
||
|
// Enum value maps for Scope.
|
||
|
var (
|
||
|
Scope_name = map[int32]string{
|
||
|
0: "SCOPE_UNDEFINED",
|
||
|
1: "SCOPE_CLUSTER",
|
||
|
2: "SCOPE_PARTITION",
|
||
|
3: "SCOPE_NAMESPACE",
|
||
|
}
|
||
|
Scope_value = map[string]int32{
|
||
|
"SCOPE_UNDEFINED": 0,
|
||
|
"SCOPE_CLUSTER": 1,
|
||
|
"SCOPE_PARTITION": 2,
|
||
|
"SCOPE_NAMESPACE": 3,
|
||
|
}
|
||
|
)
|
||
|
|
||
|
func (x Scope) Enum() *Scope {
|
||
|
p := new(Scope)
|
||
|
*p = x
|
||
|
return p
|
||
|
}
|
||
|
|
||
|
func (x Scope) String() string {
|
||
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||
|
}
|
||
|
|
||
|
func (Scope) Descriptor() protoreflect.EnumDescriptor {
|
||
|
return file_pbresource_annotations_proto_enumTypes[0].Descriptor()
|
||
|
}
|
||
|
|
||
|
func (Scope) Type() protoreflect.EnumType {
|
||
|
return &file_pbresource_annotations_proto_enumTypes[0]
|
||
|
}
|
||
|
|
||
|
func (x Scope) Number() protoreflect.EnumNumber {
|
||
|
return protoreflect.EnumNumber(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use Scope.Descriptor instead.
|
||
|
func (Scope) EnumDescriptor() ([]byte, []int) {
|
||
|
return file_pbresource_annotations_proto_rawDescGZIP(), []int{0}
|
||
|
}
|
||
|
|
||
|
type ResourceTypeSpec struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Scope Scope `protobuf:"varint,1,opt,name=scope,proto3,enum=hashicorp.consul.resource.Scope" json:"scope,omitempty"`
|
||
|
DontMapHttp bool `protobuf:"varint,2,opt,name=dont_map_http,json=dontMapHttp,proto3" json:"dont_map_http,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *ResourceTypeSpec) Reset() {
|
||
|
*x = ResourceTypeSpec{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_pbresource_annotations_proto_msgTypes[0]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *ResourceTypeSpec) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*ResourceTypeSpec) ProtoMessage() {}
|
||
|
|
||
|
func (x *ResourceTypeSpec) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_pbresource_annotations_proto_msgTypes[0]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
// Deprecated: Use ResourceTypeSpec.ProtoReflect.Descriptor instead.
|
||
|
func (*ResourceTypeSpec) Descriptor() ([]byte, []int) {
|
||
|
return file_pbresource_annotations_proto_rawDescGZIP(), []int{0}
|
||
|
}
|
||
|
|
||
|
func (x *ResourceTypeSpec) GetScope() Scope {
|
||
|
if x != nil {
|
||
|
return x.Scope
|
||
|
}
|
||
|
return Scope_SCOPE_UNDEFINED
|
||
|
}
|
||
|
|
||
|
func (x *ResourceTypeSpec) GetDontMapHttp() bool {
|
||
|
if x != nil {
|
||
|
return x.DontMapHttp
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
var file_pbresource_annotations_proto_extTypes = []protoimpl.ExtensionInfo{
|
||
|
{
|
||
|
ExtendedType: (*descriptorpb.MessageOptions)(nil),
|
||
|
ExtensionType: (*ResourceTypeSpec)(nil),
|
||
|
Field: 8500,
|
||
|
Name: "hashicorp.consul.resource.spec",
|
||
|
Tag: "bytes,8500,opt,name=spec",
|
||
|
Filename: "pbresource/annotations.proto",
|
||
|
},
|
||
|
}
|
||
|
|
||
|
// Extension fields to descriptorpb.MessageOptions.
|
||
|
var (
|
||
|
// optional hashicorp.consul.resource.ResourceTypeSpec spec = 8500;
|
||
|
E_Spec = &file_pbresource_annotations_proto_extTypes[0]
|
||
|
)
|
||
|
|
||
|
var File_pbresource_annotations_proto protoreflect.FileDescriptor
|
||
|
|
||
|
var file_pbresource_annotations_proto_rawDesc = []byte{
|
||
|
0x0a, 0x1c, 0x70, 0x62, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x61, 0x6e, 0x6e,
|
||
|
0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19,
|
||
|
0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6c,
|
||
|
0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
||
|
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72,
|
||
|
0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x10, 0x52,
|
||
|
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12,
|
||
|
0x36, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20,
|
||
|
0x2e, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x75,
|
||
|
0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x53, 0x63, 0x6f, 0x70, 0x65,
|
||
|
0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x64, 0x6f, 0x6e, 0x74, 0x5f,
|
||
|
0x6d, 0x61, 0x70, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b,
|
||
|
0x64, 0x6f, 0x6e, 0x74, 0x4d, 0x61, 0x70, 0x48, 0x74, 0x74, 0x70, 0x2a, 0x59, 0x0a, 0x05, 0x53,
|
||
|
0x63, 0x6f, 0x70, 0x65, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x55, 0x4e,
|
||
|
0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x43, 0x4f,
|
||
|
0x50, 0x45, 0x5f, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f,
|
||
|
0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x50, 0x41, 0x52, 0x54, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10,
|
||
|
0x02, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x53,
|
||
|
0x50, 0x41, 0x43, 0x45, 0x10, 0x03, 0x3a, 0x61, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x1f,
|
||
|
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
|
||
|
0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18,
|
||
|
0xb4, 0x42, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f,
|
||
|
0x72, 0x70, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
|
||
|
0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x53,
|
||
|
0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x42, 0xec, 0x01, 0x0a, 0x1d, 0x63, 0x6f,
|
||
|
0x6d, 0x2e, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x63, 0x6f, 0x6e, 0x73,
|
||
|
0x75, 0x6c, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x10, 0x41, 0x6e, 0x6e,
|
||
|
0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
|
||
|
0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, 0x68,
|
||
|
0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6c, 0x2f, 0x70, 0x72, 0x6f,
|
||
|
0x74, 0x6f, 0x2d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f, 0x70, 0x62, 0x72, 0x65, 0x73, 0x6f,
|
||
|
0x75, 0x72, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x48, 0x43, 0x52, 0xaa, 0x02, 0x19, 0x48, 0x61, 0x73,
|
||
|
0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6c, 0x2e, 0x52, 0x65,
|
||
|
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0xca, 0x02, 0x19, 0x48, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f,
|
||
|
0x72, 0x70, 0x5c, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6c, 0x5c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
|
||
|
0x63, 0x65, 0xe2, 0x02, 0x25, 0x48, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x5c, 0x43,
|
||
|
0x6f, 0x6e, 0x73, 0x75, 0x6c, 0x5c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5c, 0x47,
|
||
|
0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x48, 0x61, 0x73,
|
||
|
0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x3a, 0x3a, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6c, 0x3a, 0x3a,
|
||
|
0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
file_pbresource_annotations_proto_rawDescOnce sync.Once
|
||
|
file_pbresource_annotations_proto_rawDescData = file_pbresource_annotations_proto_rawDesc
|
||
|
)
|
||
|
|
||
|
func file_pbresource_annotations_proto_rawDescGZIP() []byte {
|
||
|
file_pbresource_annotations_proto_rawDescOnce.Do(func() {
|
||
|
file_pbresource_annotations_proto_rawDescData = protoimpl.X.CompressGZIP(file_pbresource_annotations_proto_rawDescData)
|
||
|
})
|
||
|
return file_pbresource_annotations_proto_rawDescData
|
||
|
}
|
||
|
|
||
|
var file_pbresource_annotations_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||
|
var file_pbresource_annotations_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||
|
var file_pbresource_annotations_proto_goTypes = []interface{}{
|
||
|
(Scope)(0), // 0: hashicorp.consul.resource.Scope
|
||
|
(*ResourceTypeSpec)(nil), // 1: hashicorp.consul.resource.ResourceTypeSpec
|
||
|
(*descriptorpb.MessageOptions)(nil), // 2: google.protobuf.MessageOptions
|
||
|
}
|
||
|
var file_pbresource_annotations_proto_depIdxs = []int32{
|
||
|
0, // 0: hashicorp.consul.resource.ResourceTypeSpec.scope:type_name -> hashicorp.consul.resource.Scope
|
||
|
2, // 1: hashicorp.consul.resource.spec:extendee -> google.protobuf.MessageOptions
|
||
|
1, // 2: hashicorp.consul.resource.spec:type_name -> hashicorp.consul.resource.ResourceTypeSpec
|
||
|
3, // [3:3] is the sub-list for method output_type
|
||
|
3, // [3:3] is the sub-list for method input_type
|
||
|
2, // [2:3] is the sub-list for extension type_name
|
||
|
1, // [1:2] is the sub-list for extension extendee
|
||
|
0, // [0:1] is the sub-list for field type_name
|
||
|
}
|
||
|
|
||
|
func init() { file_pbresource_annotations_proto_init() }
|
||
|
func file_pbresource_annotations_proto_init() {
|
||
|
if File_pbresource_annotations_proto != nil {
|
||
|
return
|
||
|
}
|
||
|
if !protoimpl.UnsafeEnabled {
|
||
|
file_pbresource_annotations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*ResourceTypeSpec); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
type x struct{}
|
||
|
out := protoimpl.TypeBuilder{
|
||
|
File: protoimpl.DescBuilder{
|
||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
|
RawDescriptor: file_pbresource_annotations_proto_rawDesc,
|
||
|
NumEnums: 1,
|
||
|
NumMessages: 1,
|
||
|
NumExtensions: 1,
|
||
|
NumServices: 0,
|
||
|
},
|
||
|
GoTypes: file_pbresource_annotations_proto_goTypes,
|
||
|
DependencyIndexes: file_pbresource_annotations_proto_depIdxs,
|
||
|
EnumInfos: file_pbresource_annotations_proto_enumTypes,
|
||
|
MessageInfos: file_pbresource_annotations_proto_msgTypes,
|
||
|
ExtensionInfos: file_pbresource_annotations_proto_extTypes,
|
||
|
}.Build()
|
||
|
File_pbresource_annotations_proto = out.File
|
||
|
file_pbresource_annotations_proto_rawDesc = nil
|
||
|
file_pbresource_annotations_proto_goTypes = nil
|
||
|
file_pbresource_annotations_proto_depIdxs = nil
|
||
|
}
|