686 lines
27 KiB
Go
686 lines
27 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// source: service_http_header_policy.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
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 FindEnabledHTTPHeaderPolicyConfigRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledHTTPHeaderPolicyConfigRequest) Reset() {
|
|
*x = FindEnabledHTTPHeaderPolicyConfigRequest{}
|
|
mi := &file_service_http_header_policy_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledHTTPHeaderPolicyConfigRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledHTTPHeaderPolicyConfigRequest) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledHTTPHeaderPolicyConfigRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_header_policy_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindEnabledHTTPHeaderPolicyConfigRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledHTTPHeaderPolicyConfigRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *FindEnabledHTTPHeaderPolicyConfigRequest) GetHttpHeaderPolicyId() int64 {
|
|
if x != nil {
|
|
return x.HttpHeaderPolicyId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindEnabledHTTPHeaderPolicyConfigResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HttpHeaderPolicyJSON []byte `protobuf:"bytes,1,opt,name=httpHeaderPolicyJSON,proto3" json:"httpHeaderPolicyJSON,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledHTTPHeaderPolicyConfigResponse) Reset() {
|
|
*x = FindEnabledHTTPHeaderPolicyConfigResponse{}
|
|
mi := &file_service_http_header_policy_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledHTTPHeaderPolicyConfigResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledHTTPHeaderPolicyConfigResponse) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledHTTPHeaderPolicyConfigResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_header_policy_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindEnabledHTTPHeaderPolicyConfigResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledHTTPHeaderPolicyConfigResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *FindEnabledHTTPHeaderPolicyConfigResponse) GetHttpHeaderPolicyJSON() []byte {
|
|
if x != nil {
|
|
return x.HttpHeaderPolicyJSON
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 创建策略
|
|
type CreateHTTPHeaderPolicyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateHTTPHeaderPolicyRequest) Reset() {
|
|
*x = CreateHTTPHeaderPolicyRequest{}
|
|
mi := &file_service_http_header_policy_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateHTTPHeaderPolicyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateHTTPHeaderPolicyRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateHTTPHeaderPolicyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_header_policy_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateHTTPHeaderPolicyRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateHTTPHeaderPolicyRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type CreateHTTPHeaderPolicyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateHTTPHeaderPolicyResponse) Reset() {
|
|
*x = CreateHTTPHeaderPolicyResponse{}
|
|
mi := &file_service_http_header_policy_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateHTTPHeaderPolicyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateHTTPHeaderPolicyResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateHTTPHeaderPolicyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_header_policy_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateHTTPHeaderPolicyResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateHTTPHeaderPolicyResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *CreateHTTPHeaderPolicyResponse) GetHttpHeaderPolicyId() int64 {
|
|
if x != nil {
|
|
return x.HttpHeaderPolicyId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 修改AddHeaders
|
|
type UpdateHTTPHeaderPolicyAddingHeadersRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"`
|
|
HeadersJSON []byte `protobuf:"bytes,2,opt,name=headersJSON,proto3" json:"headersJSON,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyAddingHeadersRequest) Reset() {
|
|
*x = UpdateHTTPHeaderPolicyAddingHeadersRequest{}
|
|
mi := &file_service_http_header_policy_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyAddingHeadersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateHTTPHeaderPolicyAddingHeadersRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyAddingHeadersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_header_policy_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateHTTPHeaderPolicyAddingHeadersRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateHTTPHeaderPolicyAddingHeadersRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyAddingHeadersRequest) GetHttpHeaderPolicyId() int64 {
|
|
if x != nil {
|
|
return x.HttpHeaderPolicyId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyAddingHeadersRequest) GetHeadersJSON() []byte {
|
|
if x != nil {
|
|
return x.HeadersJSON
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 修改SetHeaders
|
|
type UpdateHTTPHeaderPolicySettingHeadersRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"`
|
|
HeadersJSON []byte `protobuf:"bytes,2,opt,name=headersJSON,proto3" json:"headersJSON,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicySettingHeadersRequest) Reset() {
|
|
*x = UpdateHTTPHeaderPolicySettingHeadersRequest{}
|
|
mi := &file_service_http_header_policy_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicySettingHeadersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateHTTPHeaderPolicySettingHeadersRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateHTTPHeaderPolicySettingHeadersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_header_policy_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateHTTPHeaderPolicySettingHeadersRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateHTTPHeaderPolicySettingHeadersRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicySettingHeadersRequest) GetHttpHeaderPolicyId() int64 {
|
|
if x != nil {
|
|
return x.HttpHeaderPolicyId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicySettingHeadersRequest) GetHeadersJSON() []byte {
|
|
if x != nil {
|
|
return x.HeadersJSON
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 修改AddTrailers
|
|
type UpdateHTTPHeaderPolicyAddingTrailersRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"`
|
|
HeadersJSON []byte `protobuf:"bytes,2,opt,name=headersJSON,proto3" json:"headersJSON,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyAddingTrailersRequest) Reset() {
|
|
*x = UpdateHTTPHeaderPolicyAddingTrailersRequest{}
|
|
mi := &file_service_http_header_policy_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyAddingTrailersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateHTTPHeaderPolicyAddingTrailersRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyAddingTrailersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_header_policy_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateHTTPHeaderPolicyAddingTrailersRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateHTTPHeaderPolicyAddingTrailersRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyAddingTrailersRequest) GetHttpHeaderPolicyId() int64 {
|
|
if x != nil {
|
|
return x.HttpHeaderPolicyId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyAddingTrailersRequest) GetHeadersJSON() []byte {
|
|
if x != nil {
|
|
return x.HeadersJSON
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 修改ReplaceHeaders
|
|
type UpdateHTTPHeaderPolicyReplacingHeadersRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"`
|
|
HeadersJSON []byte `protobuf:"bytes,2,opt,name=headersJSON,proto3" json:"headersJSON,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyReplacingHeadersRequest) Reset() {
|
|
*x = UpdateHTTPHeaderPolicyReplacingHeadersRequest{}
|
|
mi := &file_service_http_header_policy_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyReplacingHeadersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateHTTPHeaderPolicyReplacingHeadersRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyReplacingHeadersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_header_policy_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateHTTPHeaderPolicyReplacingHeadersRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateHTTPHeaderPolicyReplacingHeadersRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyReplacingHeadersRequest) GetHttpHeaderPolicyId() int64 {
|
|
if x != nil {
|
|
return x.HttpHeaderPolicyId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyReplacingHeadersRequest) GetHeadersJSON() []byte {
|
|
if x != nil {
|
|
return x.HeadersJSON
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 修改删除的Headers
|
|
type UpdateHTTPHeaderPolicyDeletingHeadersRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"`
|
|
HeaderNames []string `protobuf:"bytes,2,rep,name=headerNames,proto3" json:"headerNames,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyDeletingHeadersRequest) Reset() {
|
|
*x = UpdateHTTPHeaderPolicyDeletingHeadersRequest{}
|
|
mi := &file_service_http_header_policy_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyDeletingHeadersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateHTTPHeaderPolicyDeletingHeadersRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyDeletingHeadersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_header_policy_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateHTTPHeaderPolicyDeletingHeadersRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateHTTPHeaderPolicyDeletingHeadersRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyDeletingHeadersRequest) GetHttpHeaderPolicyId() int64 {
|
|
if x != nil {
|
|
return x.HttpHeaderPolicyId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyDeletingHeadersRequest) GetHeaderNames() []string {
|
|
if x != nil {
|
|
return x.HeaderNames
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 修改策略CORS设置
|
|
type UpdateHTTPHeaderPolicyCORSRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"`
|
|
CorsJSON []byte `protobuf:"bytes,2,opt,name=corsJSON,proto3" json:"corsJSON,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyCORSRequest) Reset() {
|
|
*x = UpdateHTTPHeaderPolicyCORSRequest{}
|
|
mi := &file_service_http_header_policy_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyCORSRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateHTTPHeaderPolicyCORSRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyCORSRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_header_policy_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateHTTPHeaderPolicyCORSRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateHTTPHeaderPolicyCORSRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyCORSRequest) GetHttpHeaderPolicyId() int64 {
|
|
if x != nil {
|
|
return x.HttpHeaderPolicyId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyCORSRequest) GetCorsJSON() []byte {
|
|
if x != nil {
|
|
return x.CorsJSON
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 修改非标的Headers
|
|
type UpdateHTTPHeaderPolicyNonStandardHeadersRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HttpHeaderPolicyId int64 `protobuf:"varint,1,opt,name=httpHeaderPolicyId,proto3" json:"httpHeaderPolicyId,omitempty"` // Header策略ID
|
|
HeaderNames []string `protobuf:"bytes,2,rep,name=headerNames,proto3" json:"headerNames,omitempty"` // 非标Header名称列表
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyNonStandardHeadersRequest) Reset() {
|
|
*x = UpdateHTTPHeaderPolicyNonStandardHeadersRequest{}
|
|
mi := &file_service_http_header_policy_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyNonStandardHeadersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateHTTPHeaderPolicyNonStandardHeadersRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyNonStandardHeadersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_header_policy_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateHTTPHeaderPolicyNonStandardHeadersRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateHTTPHeaderPolicyNonStandardHeadersRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_http_header_policy_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyNonStandardHeadersRequest) GetHttpHeaderPolicyId() int64 {
|
|
if x != nil {
|
|
return x.HttpHeaderPolicyId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateHTTPHeaderPolicyNonStandardHeadersRequest) GetHeaderNames() []string {
|
|
if x != nil {
|
|
return x.HeaderNames
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_service_http_header_policy_proto protoreflect.FileDescriptor
|
|
|
|
const file_service_http_header_policy_proto_rawDesc = "" +
|
|
"\n" +
|
|
" service_http_header_policy.proto\x12\x02pb\x1a\x19models/rpc_messages.proto\"Z\n" +
|
|
"(FindEnabledHTTPHeaderPolicyConfigRequest\x12.\n" +
|
|
"\x12httpHeaderPolicyId\x18\x01 \x01(\x03R\x12httpHeaderPolicyId\"_\n" +
|
|
")FindEnabledHTTPHeaderPolicyConfigResponse\x122\n" +
|
|
"\x14httpHeaderPolicyJSON\x18\x01 \x01(\fR\x14httpHeaderPolicyJSON\"\x1f\n" +
|
|
"\x1dCreateHTTPHeaderPolicyRequest\"P\n" +
|
|
"\x1eCreateHTTPHeaderPolicyResponse\x12.\n" +
|
|
"\x12httpHeaderPolicyId\x18\x01 \x01(\x03R\x12httpHeaderPolicyId\"~\n" +
|
|
"*UpdateHTTPHeaderPolicyAddingHeadersRequest\x12.\n" +
|
|
"\x12httpHeaderPolicyId\x18\x01 \x01(\x03R\x12httpHeaderPolicyId\x12 \n" +
|
|
"\vheadersJSON\x18\x02 \x01(\fR\vheadersJSON\"\x7f\n" +
|
|
"+UpdateHTTPHeaderPolicySettingHeadersRequest\x12.\n" +
|
|
"\x12httpHeaderPolicyId\x18\x01 \x01(\x03R\x12httpHeaderPolicyId\x12 \n" +
|
|
"\vheadersJSON\x18\x02 \x01(\fR\vheadersJSON\"\x7f\n" +
|
|
"+UpdateHTTPHeaderPolicyAddingTrailersRequest\x12.\n" +
|
|
"\x12httpHeaderPolicyId\x18\x01 \x01(\x03R\x12httpHeaderPolicyId\x12 \n" +
|
|
"\vheadersJSON\x18\x02 \x01(\fR\vheadersJSON\"\x81\x01\n" +
|
|
"-UpdateHTTPHeaderPolicyReplacingHeadersRequest\x12.\n" +
|
|
"\x12httpHeaderPolicyId\x18\x01 \x01(\x03R\x12httpHeaderPolicyId\x12 \n" +
|
|
"\vheadersJSON\x18\x02 \x01(\fR\vheadersJSON\"\x80\x01\n" +
|
|
",UpdateHTTPHeaderPolicyDeletingHeadersRequest\x12.\n" +
|
|
"\x12httpHeaderPolicyId\x18\x01 \x01(\x03R\x12httpHeaderPolicyId\x12 \n" +
|
|
"\vheaderNames\x18\x02 \x03(\tR\vheaderNames\"o\n" +
|
|
"!UpdateHTTPHeaderPolicyCORSRequest\x12.\n" +
|
|
"\x12httpHeaderPolicyId\x18\x01 \x01(\x03R\x12httpHeaderPolicyId\x12\x1a\n" +
|
|
"\bcorsJSON\x18\x02 \x01(\fR\bcorsJSON\"\x83\x01\n" +
|
|
"/UpdateHTTPHeaderPolicyNonStandardHeadersRequest\x12.\n" +
|
|
"\x12httpHeaderPolicyId\x18\x01 \x01(\x03R\x12httpHeaderPolicyId\x12 \n" +
|
|
"\vheaderNames\x18\x02 \x03(\tR\vheaderNames2\xd4\a\n" +
|
|
"\x17HTTPHeaderPolicyService\x12\x80\x01\n" +
|
|
"!findEnabledHTTPHeaderPolicyConfig\x12,.pb.FindEnabledHTTPHeaderPolicyConfigRequest\x1a-.pb.FindEnabledHTTPHeaderPolicyConfigResponse\x12_\n" +
|
|
"\x16createHTTPHeaderPolicy\x12!.pb.CreateHTTPHeaderPolicyRequest\x1a\".pb.CreateHTTPHeaderPolicyResponse\x12e\n" +
|
|
"#updateHTTPHeaderPolicyAddingHeaders\x12..pb.UpdateHTTPHeaderPolicyAddingHeadersRequest\x1a\x0e.pb.RPCSuccess\x12g\n" +
|
|
"$updateHTTPHeaderPolicySettingHeaders\x12/.pb.UpdateHTTPHeaderPolicySettingHeadersRequest\x1a\x0e.pb.RPCSuccess\x12g\n" +
|
|
"$updateHTTPHeaderPolicyAddingTrailers\x12/.pb.UpdateHTTPHeaderPolicyAddingTrailersRequest\x1a\x0e.pb.RPCSuccess\x12k\n" +
|
|
"&updateHTTPHeaderPolicyReplacingHeaders\x121.pb.UpdateHTTPHeaderPolicyReplacingHeadersRequest\x1a\x0e.pb.RPCSuccess\x12i\n" +
|
|
"%updateHTTPHeaderPolicyDeletingHeaders\x120.pb.UpdateHTTPHeaderPolicyDeletingHeadersRequest\x1a\x0e.pb.RPCSuccess\x12o\n" +
|
|
"(updateHTTPHeaderPolicyNonStandardHeaders\x123.pb.UpdateHTTPHeaderPolicyNonStandardHeadersRequest\x1a\x0e.pb.RPCSuccess\x12S\n" +
|
|
"\x1aupdateHTTPHeaderPolicyCORS\x12%.pb.UpdateHTTPHeaderPolicyCORSRequest\x1a\x0e.pb.RPCSuccessB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_service_http_header_policy_proto_rawDescOnce sync.Once
|
|
file_service_http_header_policy_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_service_http_header_policy_proto_rawDescGZIP() []byte {
|
|
file_service_http_header_policy_proto_rawDescOnce.Do(func() {
|
|
file_service_http_header_policy_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_http_header_policy_proto_rawDesc), len(file_service_http_header_policy_proto_rawDesc)))
|
|
})
|
|
return file_service_http_header_policy_proto_rawDescData
|
|
}
|
|
|
|
var file_service_http_header_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
|
var file_service_http_header_policy_proto_goTypes = []any{
|
|
(*FindEnabledHTTPHeaderPolicyConfigRequest)(nil), // 0: pb.FindEnabledHTTPHeaderPolicyConfigRequest
|
|
(*FindEnabledHTTPHeaderPolicyConfigResponse)(nil), // 1: pb.FindEnabledHTTPHeaderPolicyConfigResponse
|
|
(*CreateHTTPHeaderPolicyRequest)(nil), // 2: pb.CreateHTTPHeaderPolicyRequest
|
|
(*CreateHTTPHeaderPolicyResponse)(nil), // 3: pb.CreateHTTPHeaderPolicyResponse
|
|
(*UpdateHTTPHeaderPolicyAddingHeadersRequest)(nil), // 4: pb.UpdateHTTPHeaderPolicyAddingHeadersRequest
|
|
(*UpdateHTTPHeaderPolicySettingHeadersRequest)(nil), // 5: pb.UpdateHTTPHeaderPolicySettingHeadersRequest
|
|
(*UpdateHTTPHeaderPolicyAddingTrailersRequest)(nil), // 6: pb.UpdateHTTPHeaderPolicyAddingTrailersRequest
|
|
(*UpdateHTTPHeaderPolicyReplacingHeadersRequest)(nil), // 7: pb.UpdateHTTPHeaderPolicyReplacingHeadersRequest
|
|
(*UpdateHTTPHeaderPolicyDeletingHeadersRequest)(nil), // 8: pb.UpdateHTTPHeaderPolicyDeletingHeadersRequest
|
|
(*UpdateHTTPHeaderPolicyCORSRequest)(nil), // 9: pb.UpdateHTTPHeaderPolicyCORSRequest
|
|
(*UpdateHTTPHeaderPolicyNonStandardHeadersRequest)(nil), // 10: pb.UpdateHTTPHeaderPolicyNonStandardHeadersRequest
|
|
(*RPCSuccess)(nil), // 11: pb.RPCSuccess
|
|
}
|
|
var file_service_http_header_policy_proto_depIdxs = []int32{
|
|
0, // 0: pb.HTTPHeaderPolicyService.findEnabledHTTPHeaderPolicyConfig:input_type -> pb.FindEnabledHTTPHeaderPolicyConfigRequest
|
|
2, // 1: pb.HTTPHeaderPolicyService.createHTTPHeaderPolicy:input_type -> pb.CreateHTTPHeaderPolicyRequest
|
|
4, // 2: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingHeaders:input_type -> pb.UpdateHTTPHeaderPolicyAddingHeadersRequest
|
|
5, // 3: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicySettingHeaders:input_type -> pb.UpdateHTTPHeaderPolicySettingHeadersRequest
|
|
6, // 4: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingTrailers:input_type -> pb.UpdateHTTPHeaderPolicyAddingTrailersRequest
|
|
7, // 5: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyReplacingHeaders:input_type -> pb.UpdateHTTPHeaderPolicyReplacingHeadersRequest
|
|
8, // 6: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyDeletingHeaders:input_type -> pb.UpdateHTTPHeaderPolicyDeletingHeadersRequest
|
|
10, // 7: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyNonStandardHeaders:input_type -> pb.UpdateHTTPHeaderPolicyNonStandardHeadersRequest
|
|
9, // 8: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyCORS:input_type -> pb.UpdateHTTPHeaderPolicyCORSRequest
|
|
1, // 9: pb.HTTPHeaderPolicyService.findEnabledHTTPHeaderPolicyConfig:output_type -> pb.FindEnabledHTTPHeaderPolicyConfigResponse
|
|
3, // 10: pb.HTTPHeaderPolicyService.createHTTPHeaderPolicy:output_type -> pb.CreateHTTPHeaderPolicyResponse
|
|
11, // 11: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingHeaders:output_type -> pb.RPCSuccess
|
|
11, // 12: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicySettingHeaders:output_type -> pb.RPCSuccess
|
|
11, // 13: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyAddingTrailers:output_type -> pb.RPCSuccess
|
|
11, // 14: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyReplacingHeaders:output_type -> pb.RPCSuccess
|
|
11, // 15: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyDeletingHeaders:output_type -> pb.RPCSuccess
|
|
11, // 16: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyNonStandardHeaders:output_type -> pb.RPCSuccess
|
|
11, // 17: pb.HTTPHeaderPolicyService.updateHTTPHeaderPolicyCORS:output_type -> pb.RPCSuccess
|
|
9, // [9:18] is the sub-list for method output_type
|
|
0, // [0:9] 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_policy_proto_init() }
|
|
func file_service_http_header_policy_proto_init() {
|
|
if File_service_http_header_policy_proto != nil {
|
|
return
|
|
}
|
|
file_models_rpc_messages_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_http_header_policy_proto_rawDesc), len(file_service_http_header_policy_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 11,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_service_http_header_policy_proto_goTypes,
|
|
DependencyIndexes: file_service_http_header_policy_proto_depIdxs,
|
|
MessageInfos: file_service_http_header_policy_proto_msgTypes,
|
|
}.Build()
|
|
File_service_http_header_policy_proto = out.File
|
|
file_service_http_header_policy_proto_goTypes = nil
|
|
file_service_http_header_policy_proto_depIdxs = nil
|
|
}
|