github.com/imannamdari/v2ray-core/v5@v5.0.5/app/commander/config.pb.go (about)

     1  package commander
     2  
     3  import (
     4  	reflect "reflect"
     5  	sync "sync"
     6  
     7  	_ "github.com/imannamdari/v2ray-core/v5/common/protoext"
     8  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
     9  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    10  	anypb "google.golang.org/protobuf/types/known/anypb"
    11  )
    12  
    13  const (
    14  	// Verify that this generated code is sufficiently up-to-date.
    15  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    16  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    17  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    18  )
    19  
    20  // Config is the settings for Commander.
    21  type Config struct {
    22  	state         protoimpl.MessageState
    23  	sizeCache     protoimpl.SizeCache
    24  	unknownFields protoimpl.UnknownFields
    25  
    26  	// Tag of the outbound handler that handles grpc connections.
    27  	Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
    28  	// Services that supported by this server. All services must implement Service
    29  	// interface.
    30  	Service []*anypb.Any `protobuf:"bytes,2,rep,name=service,proto3" json:"service,omitempty"`
    31  }
    32  
    33  func (x *Config) Reset() {
    34  	*x = Config{}
    35  	if protoimpl.UnsafeEnabled {
    36  		mi := &file_app_commander_config_proto_msgTypes[0]
    37  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    38  		ms.StoreMessageInfo(mi)
    39  	}
    40  }
    41  
    42  func (x *Config) String() string {
    43  	return protoimpl.X.MessageStringOf(x)
    44  }
    45  
    46  func (*Config) ProtoMessage() {}
    47  
    48  func (x *Config) ProtoReflect() protoreflect.Message {
    49  	mi := &file_app_commander_config_proto_msgTypes[0]
    50  	if protoimpl.UnsafeEnabled && x != nil {
    51  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    52  		if ms.LoadMessageInfo() == nil {
    53  			ms.StoreMessageInfo(mi)
    54  		}
    55  		return ms
    56  	}
    57  	return mi.MessageOf(x)
    58  }
    59  
    60  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
    61  func (*Config) Descriptor() ([]byte, []int) {
    62  	return file_app_commander_config_proto_rawDescGZIP(), []int{0}
    63  }
    64  
    65  func (x *Config) GetTag() string {
    66  	if x != nil {
    67  		return x.Tag
    68  	}
    69  	return ""
    70  }
    71  
    72  func (x *Config) GetService() []*anypb.Any {
    73  	if x != nil {
    74  		return x.Service
    75  	}
    76  	return nil
    77  }
    78  
    79  // ReflectionConfig is the placeholder config for ReflectionService.
    80  type ReflectionConfig struct {
    81  	state         protoimpl.MessageState
    82  	sizeCache     protoimpl.SizeCache
    83  	unknownFields protoimpl.UnknownFields
    84  }
    85  
    86  func (x *ReflectionConfig) Reset() {
    87  	*x = ReflectionConfig{}
    88  	if protoimpl.UnsafeEnabled {
    89  		mi := &file_app_commander_config_proto_msgTypes[1]
    90  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    91  		ms.StoreMessageInfo(mi)
    92  	}
    93  }
    94  
    95  func (x *ReflectionConfig) String() string {
    96  	return protoimpl.X.MessageStringOf(x)
    97  }
    98  
    99  func (*ReflectionConfig) ProtoMessage() {}
   100  
   101  func (x *ReflectionConfig) ProtoReflect() protoreflect.Message {
   102  	mi := &file_app_commander_config_proto_msgTypes[1]
   103  	if protoimpl.UnsafeEnabled && x != nil {
   104  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   105  		if ms.LoadMessageInfo() == nil {
   106  			ms.StoreMessageInfo(mi)
   107  		}
   108  		return ms
   109  	}
   110  	return mi.MessageOf(x)
   111  }
   112  
   113  // Deprecated: Use ReflectionConfig.ProtoReflect.Descriptor instead.
   114  func (*ReflectionConfig) Descriptor() ([]byte, []int) {
   115  	return file_app_commander_config_proto_rawDescGZIP(), []int{1}
   116  }
   117  
   118  type SimplifiedConfig struct {
   119  	state         protoimpl.MessageState
   120  	sizeCache     protoimpl.SizeCache
   121  	unknownFields protoimpl.UnknownFields
   122  
   123  	Tag  string   `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
   124  	Name []string `protobuf:"bytes,2,rep,name=name,proto3" json:"name,omitempty"`
   125  }
   126  
   127  func (x *SimplifiedConfig) Reset() {
   128  	*x = SimplifiedConfig{}
   129  	if protoimpl.UnsafeEnabled {
   130  		mi := &file_app_commander_config_proto_msgTypes[2]
   131  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   132  		ms.StoreMessageInfo(mi)
   133  	}
   134  }
   135  
   136  func (x *SimplifiedConfig) String() string {
   137  	return protoimpl.X.MessageStringOf(x)
   138  }
   139  
   140  func (*SimplifiedConfig) ProtoMessage() {}
   141  
   142  func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
   143  	mi := &file_app_commander_config_proto_msgTypes[2]
   144  	if protoimpl.UnsafeEnabled && x != nil {
   145  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   146  		if ms.LoadMessageInfo() == nil {
   147  			ms.StoreMessageInfo(mi)
   148  		}
   149  		return ms
   150  	}
   151  	return mi.MessageOf(x)
   152  }
   153  
   154  // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
   155  func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
   156  	return file_app_commander_config_proto_rawDescGZIP(), []int{2}
   157  }
   158  
   159  func (x *SimplifiedConfig) GetTag() string {
   160  	if x != nil {
   161  		return x.Tag
   162  	}
   163  	return ""
   164  }
   165  
   166  func (x *SimplifiedConfig) GetName() []string {
   167  	if x != nil {
   168  		return x.Name
   169  	}
   170  	return nil
   171  }
   172  
   173  var File_app_commander_config_proto protoreflect.FileDescriptor
   174  
   175  var file_app_commander_config_proto_rawDesc = []byte{
   176  	0x0a, 0x1a, 0x61, 0x70, 0x70, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x2f,
   177  	0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x76, 0x32,
   178  	0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x63, 0x6f, 0x6d,
   179  	0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
   180  	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   181  	0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65,
   182  	0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
   183  	0x6f, 0x74, 0x6f, 0x22, 0x4a, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a,
   184  	0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12,
   185  	0x2e, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
   186  	0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   187  	0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22,
   188  	0x35, 0x0a, 0x10, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e,
   189  	0x66, 0x69, 0x67, 0x3a, 0x21, 0x82, 0xb5, 0x18, 0x0d, 0x0a, 0x0b, 0x67, 0x72, 0x70, 0x63, 0x73,
   190  	0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82, 0xb5, 0x18, 0x0c, 0x12, 0x0a, 0x72, 0x65, 0x66, 0x6c,
   191  	0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x56, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69,
   192  	0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61,
   193  	0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x12, 0x0a, 0x04,
   194  	0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
   195  	0x3a, 0x1c, 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82,
   196  	0xb5, 0x18, 0x0b, 0x12, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x69,
   197  	0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
   198  	0x2e, 0x61, 0x70, 0x70, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x50, 0x01,
   199  	0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66,
   200  	0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35,
   201  	0x2f, 0x61, 0x70, 0x70, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0xaa, 0x02,
   202  	0x18, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e,
   203  	0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   204  	0x33,
   205  }
   206  
   207  var (
   208  	file_app_commander_config_proto_rawDescOnce sync.Once
   209  	file_app_commander_config_proto_rawDescData = file_app_commander_config_proto_rawDesc
   210  )
   211  
   212  func file_app_commander_config_proto_rawDescGZIP() []byte {
   213  	file_app_commander_config_proto_rawDescOnce.Do(func() {
   214  		file_app_commander_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_commander_config_proto_rawDescData)
   215  	})
   216  	return file_app_commander_config_proto_rawDescData
   217  }
   218  
   219  var file_app_commander_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   220  var file_app_commander_config_proto_goTypes = []interface{}{
   221  	(*Config)(nil),           // 0: v2ray.core.app.commander.Config
   222  	(*ReflectionConfig)(nil), // 1: v2ray.core.app.commander.ReflectionConfig
   223  	(*SimplifiedConfig)(nil), // 2: v2ray.core.app.commander.SimplifiedConfig
   224  	(*anypb.Any)(nil),        // 3: google.protobuf.Any
   225  }
   226  var file_app_commander_config_proto_depIdxs = []int32{
   227  	3, // 0: v2ray.core.app.commander.Config.service:type_name -> google.protobuf.Any
   228  	1, // [1:1] is the sub-list for method output_type
   229  	1, // [1:1] is the sub-list for method input_type
   230  	1, // [1:1] is the sub-list for extension type_name
   231  	1, // [1:1] is the sub-list for extension extendee
   232  	0, // [0:1] is the sub-list for field type_name
   233  }
   234  
   235  func init() { file_app_commander_config_proto_init() }
   236  func file_app_commander_config_proto_init() {
   237  	if File_app_commander_config_proto != nil {
   238  		return
   239  	}
   240  	if !protoimpl.UnsafeEnabled {
   241  		file_app_commander_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   242  			switch v := v.(*Config); i {
   243  			case 0:
   244  				return &v.state
   245  			case 1:
   246  				return &v.sizeCache
   247  			case 2:
   248  				return &v.unknownFields
   249  			default:
   250  				return nil
   251  			}
   252  		}
   253  		file_app_commander_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   254  			switch v := v.(*ReflectionConfig); i {
   255  			case 0:
   256  				return &v.state
   257  			case 1:
   258  				return &v.sizeCache
   259  			case 2:
   260  				return &v.unknownFields
   261  			default:
   262  				return nil
   263  			}
   264  		}
   265  		file_app_commander_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   266  			switch v := v.(*SimplifiedConfig); i {
   267  			case 0:
   268  				return &v.state
   269  			case 1:
   270  				return &v.sizeCache
   271  			case 2:
   272  				return &v.unknownFields
   273  			default:
   274  				return nil
   275  			}
   276  		}
   277  	}
   278  	type x struct{}
   279  	out := protoimpl.TypeBuilder{
   280  		File: protoimpl.DescBuilder{
   281  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   282  			RawDescriptor: file_app_commander_config_proto_rawDesc,
   283  			NumEnums:      0,
   284  			NumMessages:   3,
   285  			NumExtensions: 0,
   286  			NumServices:   0,
   287  		},
   288  		GoTypes:           file_app_commander_config_proto_goTypes,
   289  		DependencyIndexes: file_app_commander_config_proto_depIdxs,
   290  		MessageInfos:      file_app_commander_config_proto_msgTypes,
   291  	}.Build()
   292  	File_app_commander_config_proto = out.File
   293  	file_app_commander_config_proto_rawDesc = nil
   294  	file_app_commander_config_proto_goTypes = nil
   295  	file_app_commander_config_proto_depIdxs = nil
   296  }