Files
EdgeCommon/pkg/rpc/pb/service_http_header.pb.go

624 lines
23 KiB
Go
Raw Normal View History

2020-09-16 20:29:26 +08:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.12.3
// source: service_http_header.proto
package pb
import (
context "context"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// 创建Header
type CreateHTTPHeaderRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *CreateHTTPHeaderRequest) Reset() {
*x = CreateHTTPHeaderRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_http_header_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateHTTPHeaderRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateHTTPHeaderRequest) ProtoMessage() {}
func (x *CreateHTTPHeaderRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_http_header_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 CreateHTTPHeaderRequest.ProtoReflect.Descriptor instead.
func (*CreateHTTPHeaderRequest) Descriptor() ([]byte, []int) {
return file_service_http_header_proto_rawDescGZIP(), []int{0}
}
func (x *CreateHTTPHeaderRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CreateHTTPHeaderRequest) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
type CreateHTTPHeaderResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
HeaderId int64 `protobuf:"varint,1,opt,name=headerId,proto3" json:"headerId,omitempty"`
}
func (x *CreateHTTPHeaderResponse) Reset() {
*x = CreateHTTPHeaderResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_http_header_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateHTTPHeaderResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateHTTPHeaderResponse) ProtoMessage() {}
func (x *CreateHTTPHeaderResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_http_header_proto_msgTypes[1]
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 CreateHTTPHeaderResponse.ProtoReflect.Descriptor instead.
func (*CreateHTTPHeaderResponse) Descriptor() ([]byte, []int) {
return file_service_http_header_proto_rawDescGZIP(), []int{1}
}
func (x *CreateHTTPHeaderResponse) GetHeaderId() int64 {
if x != nil {
return x.HeaderId
}
return 0
}
// 修改Header
type UpdateHTTPHeaderRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
HeaderId int64 `protobuf:"varint,1,opt,name=headerId,proto3" json:"headerId,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *UpdateHTTPHeaderRequest) Reset() {
*x = UpdateHTTPHeaderRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_http_header_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateHTTPHeaderRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateHTTPHeaderRequest) ProtoMessage() {}
func (x *UpdateHTTPHeaderRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_http_header_proto_msgTypes[2]
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 UpdateHTTPHeaderRequest.ProtoReflect.Descriptor instead.
func (*UpdateHTTPHeaderRequest) Descriptor() ([]byte, []int) {
return file_service_http_header_proto_rawDescGZIP(), []int{2}
}
func (x *UpdateHTTPHeaderRequest) GetHeaderId() int64 {
if x != nil {
return x.HeaderId
}
return 0
}
func (x *UpdateHTTPHeaderRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *UpdateHTTPHeaderRequest) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
// 查找配置
type FindEnabledHTTPHeaderConfigRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
HeaderId int64 `protobuf:"varint,1,opt,name=headerId,proto3" json:"headerId,omitempty"`
}
func (x *FindEnabledHTTPHeaderConfigRequest) Reset() {
*x = FindEnabledHTTPHeaderConfigRequest{}
if protoimpl.UnsafeEnabled {
2020-09-17 10:15:55 +08:00
mi := &file_service_http_header_proto_msgTypes[3]
2020-09-16 20:29:26 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindEnabledHTTPHeaderConfigRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledHTTPHeaderConfigRequest) ProtoMessage() {}
func (x *FindEnabledHTTPHeaderConfigRequest) ProtoReflect() protoreflect.Message {
2020-09-17 10:15:55 +08:00
mi := &file_service_http_header_proto_msgTypes[3]
2020-09-16 20:29:26 +08:00
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 FindEnabledHTTPHeaderConfigRequest.ProtoReflect.Descriptor instead.
func (*FindEnabledHTTPHeaderConfigRequest) Descriptor() ([]byte, []int) {
2020-09-17 10:15:55 +08:00
return file_service_http_header_proto_rawDescGZIP(), []int{3}
2020-09-16 20:29:26 +08:00
}
func (x *FindEnabledHTTPHeaderConfigRequest) GetHeaderId() int64 {
if x != nil {
return x.HeaderId
}
return 0
}
type FindEnabledHTTPHeaderConfigResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
2020-09-21 19:52:10 +08:00
HeaderJSON []byte `protobuf:"bytes,1,opt,name=headerJSON,proto3" json:"headerJSON,omitempty"`
2020-09-16 20:29:26 +08:00
}
func (x *FindEnabledHTTPHeaderConfigResponse) Reset() {
*x = FindEnabledHTTPHeaderConfigResponse{}
if protoimpl.UnsafeEnabled {
2020-09-17 10:15:55 +08:00
mi := &file_service_http_header_proto_msgTypes[4]
2020-09-16 20:29:26 +08:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindEnabledHTTPHeaderConfigResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledHTTPHeaderConfigResponse) ProtoMessage() {}
func (x *FindEnabledHTTPHeaderConfigResponse) ProtoReflect() protoreflect.Message {
2020-09-17 10:15:55 +08:00
mi := &file_service_http_header_proto_msgTypes[4]
2020-09-16 20:29:26 +08:00
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 FindEnabledHTTPHeaderConfigResponse.ProtoReflect.Descriptor instead.
func (*FindEnabledHTTPHeaderConfigResponse) Descriptor() ([]byte, []int) {
2020-09-17 10:15:55 +08:00
return file_service_http_header_proto_rawDescGZIP(), []int{4}
2020-09-16 20:29:26 +08:00
}
2020-09-21 19:52:10 +08:00
func (x *FindEnabledHTTPHeaderConfigResponse) GetHeaderJSON() []byte {
2020-09-16 20:29:26 +08:00
if x != nil {
2020-09-21 19:52:10 +08:00
return x.HeaderJSON
2020-09-16 20:29:26 +08:00
}
return nil
}
var File_service_http_header_proto protoreflect.FileDescriptor
var file_service_http_header_proto_rawDesc = []byte{
0x0a, 0x19, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x68,
2020-09-17 10:15:55 +08:00
0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a,
0x12, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0x43, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54,
0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12,
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x36, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61,
0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x49, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x49, 0x64,
0x22, 0x5f, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65,
0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x68,
0x65, 0x61, 0x64, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x68,
0x65, 0x61, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x22, 0x40, 0x0a, 0x22, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
2020-09-16 20:29:26 +08:00
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x65, 0x61, 0x64, 0x65,
0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x68, 0x65, 0x61, 0x64, 0x65,
2020-09-21 19:52:10 +08:00
0x72, 0x49, 0x64, 0x22, 0x45, 0x0a, 0x23, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c,
2020-09-17 10:15:55 +08:00
0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66,
2020-09-21 19:52:10 +08:00
0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x68, 0x65,
0x61, 0x64, 0x65, 0x72, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a,
0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4a, 0x53, 0x4f, 0x4e, 0x32, 0x99, 0x02, 0x0a, 0x11, 0x48,
0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x12, 0x4d, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65,
0x61, 0x64, 0x65, 0x72, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54,
0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x45, 0x0a, 0x10, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61,
0x64, 0x65, 0x72, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48,
0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53,
0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x6e, 0x0a, 0x1b, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x43,
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e,
2020-09-16 20:29:26 +08:00
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54,
0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65,
2020-09-21 19:52:10 +08:00
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
2020-09-16 20:29:26 +08:00
}
var (
file_service_http_header_proto_rawDescOnce sync.Once
file_service_http_header_proto_rawDescData = file_service_http_header_proto_rawDesc
)
func file_service_http_header_proto_rawDescGZIP() []byte {
file_service_http_header_proto_rawDescOnce.Do(func() {
file_service_http_header_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_http_header_proto_rawDescData)
})
return file_service_http_header_proto_rawDescData
}
2020-09-17 10:15:55 +08:00
var file_service_http_header_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
2020-09-16 20:29:26 +08:00
var file_service_http_header_proto_goTypes = []interface{}{
(*CreateHTTPHeaderRequest)(nil), // 0: pb.CreateHTTPHeaderRequest
(*CreateHTTPHeaderResponse)(nil), // 1: pb.CreateHTTPHeaderResponse
(*UpdateHTTPHeaderRequest)(nil), // 2: pb.UpdateHTTPHeaderRequest
2020-09-17 10:15:55 +08:00
(*FindEnabledHTTPHeaderConfigRequest)(nil), // 3: pb.FindEnabledHTTPHeaderConfigRequest
(*FindEnabledHTTPHeaderConfigResponse)(nil), // 4: pb.FindEnabledHTTPHeaderConfigResponse
(*RPCUpdateSuccess)(nil), // 5: pb.RPCUpdateSuccess
2020-09-16 20:29:26 +08:00
}
var file_service_http_header_proto_depIdxs = []int32{
0, // 0: pb.HTTPHeaderService.createHTTPHeader:input_type -> pb.CreateHTTPHeaderRequest
2, // 1: pb.HTTPHeaderService.updateHTTPHeader:input_type -> pb.UpdateHTTPHeaderRequest
2020-09-17 10:15:55 +08:00
3, // 2: pb.HTTPHeaderService.findEnabledHTTPHeaderConfig:input_type -> pb.FindEnabledHTTPHeaderConfigRequest
2020-09-16 20:29:26 +08:00
1, // 3: pb.HTTPHeaderService.createHTTPHeader:output_type -> pb.CreateHTTPHeaderResponse
2020-09-17 10:15:55 +08:00
5, // 4: pb.HTTPHeaderService.updateHTTPHeader:output_type -> pb.RPCUpdateSuccess
4, // 5: pb.HTTPHeaderService.findEnabledHTTPHeaderConfig:output_type -> pb.FindEnabledHTTPHeaderConfigResponse
2020-09-16 20:29:26 +08:00
3, // [3:6] is the sub-list for method output_type
0, // [0:3] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_service_http_header_proto_init() }
func file_service_http_header_proto_init() {
if File_service_http_header_proto != nil {
return
}
2020-09-17 10:15:55 +08:00
file_rpc_messages_proto_init()
2020-09-16 20:29:26 +08:00
if !protoimpl.UnsafeEnabled {
file_service_http_header_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateHTTPHeaderRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_http_header_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateHTTPHeaderResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_http_header_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateHTTPHeaderRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_http_header_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindEnabledHTTPHeaderConfigRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
2020-09-17 10:15:55 +08:00
file_service_http_header_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
2020-09-16 20:29:26 +08:00
switch v := v.(*FindEnabledHTTPHeaderConfigResponse); 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_service_http_header_proto_rawDesc,
NumEnums: 0,
2020-09-17 10:15:55 +08:00
NumMessages: 5,
2020-09-16 20:29:26 +08:00
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_service_http_header_proto_goTypes,
DependencyIndexes: file_service_http_header_proto_depIdxs,
MessageInfos: file_service_http_header_proto_msgTypes,
}.Build()
File_service_http_header_proto = out.File
file_service_http_header_proto_rawDesc = nil
file_service_http_header_proto_goTypes = nil
file_service_http_header_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// HTTPHeaderServiceClient is the client API for HTTPHeaderService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type HTTPHeaderServiceClient interface {
// 创建Header
CreateHTTPHeader(ctx context.Context, in *CreateHTTPHeaderRequest, opts ...grpc.CallOption) (*CreateHTTPHeaderResponse, error)
// 修改Header
2020-09-17 10:15:55 +08:00
UpdateHTTPHeader(ctx context.Context, in *UpdateHTTPHeaderRequest, opts ...grpc.CallOption) (*RPCUpdateSuccess, error)
2020-09-16 20:29:26 +08:00
// 查找配置
FindEnabledHTTPHeaderConfig(ctx context.Context, in *FindEnabledHTTPHeaderConfigRequest, opts ...grpc.CallOption) (*FindEnabledHTTPHeaderConfigResponse, error)
}
type hTTPHeaderServiceClient struct {
cc grpc.ClientConnInterface
}
func NewHTTPHeaderServiceClient(cc grpc.ClientConnInterface) HTTPHeaderServiceClient {
return &hTTPHeaderServiceClient{cc}
}
func (c *hTTPHeaderServiceClient) CreateHTTPHeader(ctx context.Context, in *CreateHTTPHeaderRequest, opts ...grpc.CallOption) (*CreateHTTPHeaderResponse, error) {
out := new(CreateHTTPHeaderResponse)
err := c.cc.Invoke(ctx, "/pb.HTTPHeaderService/createHTTPHeader", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
2020-09-17 10:15:55 +08:00
func (c *hTTPHeaderServiceClient) UpdateHTTPHeader(ctx context.Context, in *UpdateHTTPHeaderRequest, opts ...grpc.CallOption) (*RPCUpdateSuccess, error) {
out := new(RPCUpdateSuccess)
2020-09-16 20:29:26 +08:00
err := c.cc.Invoke(ctx, "/pb.HTTPHeaderService/updateHTTPHeader", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *hTTPHeaderServiceClient) FindEnabledHTTPHeaderConfig(ctx context.Context, in *FindEnabledHTTPHeaderConfigRequest, opts ...grpc.CallOption) (*FindEnabledHTTPHeaderConfigResponse, error) {
out := new(FindEnabledHTTPHeaderConfigResponse)
err := c.cc.Invoke(ctx, "/pb.HTTPHeaderService/findEnabledHTTPHeaderConfig", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// HTTPHeaderServiceServer is the server API for HTTPHeaderService service.
type HTTPHeaderServiceServer interface {
// 创建Header
CreateHTTPHeader(context.Context, *CreateHTTPHeaderRequest) (*CreateHTTPHeaderResponse, error)
// 修改Header
2020-09-17 10:15:55 +08:00
UpdateHTTPHeader(context.Context, *UpdateHTTPHeaderRequest) (*RPCUpdateSuccess, error)
2020-09-16 20:29:26 +08:00
// 查找配置
FindEnabledHTTPHeaderConfig(context.Context, *FindEnabledHTTPHeaderConfigRequest) (*FindEnabledHTTPHeaderConfigResponse, error)
}
// UnimplementedHTTPHeaderServiceServer can be embedded to have forward compatible implementations.
type UnimplementedHTTPHeaderServiceServer struct {
}
func (*UnimplementedHTTPHeaderServiceServer) CreateHTTPHeader(context.Context, *CreateHTTPHeaderRequest) (*CreateHTTPHeaderResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateHTTPHeader not implemented")
}
2020-09-17 10:15:55 +08:00
func (*UnimplementedHTTPHeaderServiceServer) UpdateHTTPHeader(context.Context, *UpdateHTTPHeaderRequest) (*RPCUpdateSuccess, error) {
2020-09-16 20:29:26 +08:00
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPHeader not implemented")
}
func (*UnimplementedHTTPHeaderServiceServer) FindEnabledHTTPHeaderConfig(context.Context, *FindEnabledHTTPHeaderConfigRequest) (*FindEnabledHTTPHeaderConfigResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledHTTPHeaderConfig not implemented")
}
func RegisterHTTPHeaderServiceServer(s *grpc.Server, srv HTTPHeaderServiceServer) {
s.RegisterService(&_HTTPHeaderService_serviceDesc, srv)
}
func _HTTPHeaderService_CreateHTTPHeader_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateHTTPHeaderRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HTTPHeaderServiceServer).CreateHTTPHeader(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.HTTPHeaderService/CreateHTTPHeader",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HTTPHeaderServiceServer).CreateHTTPHeader(ctx, req.(*CreateHTTPHeaderRequest))
}
return interceptor(ctx, in, info, handler)
}
func _HTTPHeaderService_UpdateHTTPHeader_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateHTTPHeaderRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HTTPHeaderServiceServer).UpdateHTTPHeader(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.HTTPHeaderService/UpdateHTTPHeader",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HTTPHeaderServiceServer).UpdateHTTPHeader(ctx, req.(*UpdateHTTPHeaderRequest))
}
return interceptor(ctx, in, info, handler)
}
func _HTTPHeaderService_FindEnabledHTTPHeaderConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindEnabledHTTPHeaderConfigRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HTTPHeaderServiceServer).FindEnabledHTTPHeaderConfig(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.HTTPHeaderService/FindEnabledHTTPHeaderConfig",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HTTPHeaderServiceServer).FindEnabledHTTPHeaderConfig(ctx, req.(*FindEnabledHTTPHeaderConfigRequest))
}
return interceptor(ctx, in, info, handler)
}
var _HTTPHeaderService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.HTTPHeaderService",
HandlerType: (*HTTPHeaderServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "createHTTPHeader",
Handler: _HTTPHeaderService_CreateHTTPHeader_Handler,
},
{
MethodName: "updateHTTPHeader",
Handler: _HTTPHeaderService_UpdateHTTPHeader_Handler,
},
{
MethodName: "findEnabledHTTPHeaderConfig",
Handler: _HTTPHeaderService_FindEnabledHTTPHeaderConfig_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "service_http_header.proto",
}