// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.4
// 	protoc        v5.29.0
// source: core/v1/http.proto

package v1

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)
)

// HTTPMethod is the types of HTTP methods.
// See https://pkg.go.dev/net/http#pkg-constants
type HTTPMethod int32

const (
	HTTPMethod_HTTPMethodUnknown HTTPMethod = 0 // Unknown HTTP method.
	HTTPMethod_GET               HTTPMethod = 1 // HTTP GET method.
	HTTPMethod_HEAD              HTTPMethod = 2 // HTTP HEAD method.
	HTTPMethod_POST              HTTPMethod = 3 // HTTP POST method.
	HTTPMethod_PUT               HTTPMethod = 4 // HTTP PUT method.
	HTTPMethod_PATCH             HTTPMethod = 5 // HTTP PATCH method.
	HTTPMethod_DELETE            HTTPMethod = 6 // HTTP DELETE method.
	HTTPMethod_CONNECT           HTTPMethod = 7 // HTTP CONNECT method.
	HTTPMethod_OPTIONS           HTTPMethod = 8 // HTTP OPTIONS method.
	HTTPMethod_TRACE             HTTPMethod = 9 // HTTP TRACE method.
)

// Enum value maps for HTTPMethod.
var (
	HTTPMethod_name = map[int32]string{
		0: "HTTPMethodUnknown",
		1: "GET",
		2: "HEAD",
		3: "POST",
		4: "PUT",
		5: "PATCH",
		6: "DELETE",
		7: "CONNECT",
		8: "OPTIONS",
		9: "TRACE",
	}
	HTTPMethod_value = map[string]int32{
		"HTTPMethodUnknown": 0,
		"GET":               1,
		"HEAD":              2,
		"POST":              3,
		"PUT":               4,
		"PATCH":             5,
		"DELETE":            6,
		"CONNECT":           7,
		"OPTIONS":           8,
		"TRACE":             9,
	}
)

func (x HTTPMethod) Enum() *HTTPMethod {
	p := new(HTTPMethod)
	*p = x
	return p
}

func (x HTTPMethod) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (HTTPMethod) Descriptor() protoreflect.EnumDescriptor {
	return file_core_v1_http_proto_enumTypes[0].Descriptor()
}

func (HTTPMethod) Type() protoreflect.EnumType {
	return &file_core_v1_http_proto_enumTypes[0]
}

func (x HTTPMethod) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use HTTPMethod.Descriptor instead.
func (HTTPMethod) EnumDescriptor() ([]byte, []int) {
	return file_core_v1_http_proto_rawDescGZIP(), []int{0}
}

// SameSite is the values of cookie's SameSite attribute.
// See https://pkg.go.dev/net/http#SameSite.
type SameSite int32

const (
	SameSite_SameSiteUnknown SameSite = 0 // Unknown.
	SameSite_Default         SameSite = 1 // User-agent's default SameSite.
	SameSite_Lax             SameSite = 2 // Cookie's SameSite attribute "Lax".
	SameSite_Strict          SameSite = 3 // Cookie's SameSite attribute "Strict".
	SameSite_None            SameSite = 4 // Cookie's SameSite attribute "None".
)

// Enum value maps for SameSite.
var (
	SameSite_name = map[int32]string{
		0: "SameSiteUnknown",
		1: "Default",
		2: "Lax",
		3: "Strict",
		4: "None",
	}
	SameSite_value = map[string]int32{
		"SameSiteUnknown": 0,
		"Default":         1,
		"Lax":             2,
		"Strict":          3,
		"None":            4,
	}
)

func (x SameSite) Enum() *SameSite {
	p := new(SameSite)
	*p = x
	return p
}

func (x SameSite) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (SameSite) Descriptor() protoreflect.EnumDescriptor {
	return file_core_v1_http_proto_enumTypes[1].Descriptor()
}

func (SameSite) Type() protoreflect.EnumType {
	return &file_core_v1_http_proto_enumTypes[1]
}

func (x SameSite) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use SameSite.Descriptor instead.
func (SameSite) EnumDescriptor() ([]byte, []int) {
	return file_core_v1_http_proto_rawDescGZIP(), []int{1}
}

// CookieSpec is the specification of cookie object.
// Cookie objests will be created with the given specs.
// See https://pkg.go.dev/net/http#Cookie
type CookieSpec struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// [OPTIONAL]
	// Name is the cookie name.
	// Default value depends on the resources that use this cookie objects.
	// Consider using "__Secure-" prefix or "__Host-" prefix to improve security.
	// See https://pkg.go.dev/net/http#Cookie.Name
	Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
	// [OPTIONAL]
	// Value is the value of cookie.
	// This field should basically be empty
	// because the value is set by the resources that
	// use this cookie resource.
	// See Value field of https://pkg.go.dev/net/http#Cookie.Value
	// Default is not set or empty string [""].
	Value string `protobuf:"bytes,2,opt,name=Value,json=value,proto3" json:"Value,omitempty"`
	// [OPTIONAL]
	// Path is the path attribute of cookie.
	// See Path field of https://pkg.go.dev/net/http#Cookie.Path
	// Default value depends on the resources that use this spec.
	Path string `protobuf:"bytes,3,opt,name=Path,json=path,proto3" json:"Path,omitempty"`
	// [OPTIONAL]
	// Domain is the domain attribute of cookie.
	// See Domain field of https://pkg.go.dev/net/http#Cookie.Domain
	// Default value depends on the resources that use this spec.
	Domain string `protobuf:"bytes,4,opt,name=Domain,json=domain,proto3" json:"Domain,omitempty"`
	// [OPTIONAL]
	// ExpiresIn is the expires attribute of cookie.
	// See Expires field of https://pkg.go.dev/net/http#Cookie.Expires
	// Default value depends on the resources that use this spec.
	ExpiresIn int32 `protobuf:"varint,5,opt,name=ExpiresIn,json=expiresIn,proto3" json:"ExpiresIn,omitempty"`
	// [OPTIONAL]
	// MaxAge is the MaxAge attribute of cookie.
	// See MaxAge field of https://pkg.go.dev/net/http#Cookie.MaxAge
	// MaxAge=0 means no 'Max-Age' attribute specified.
	// MaxAge<0 means delete cookie now, equivalently 'Max-Age: 0'
	// MaxAge>0 means Max-Age attribute present and given in seconds.
	// Default value depends on the resources that use this spec.
	MaxAge int32 `protobuf:"varint,6,opt,name=MaxAge,json=maxAge,proto3" json:"MaxAge,omitempty"`
	// [OPTIONAL]
	// Secure is the Secure attribute of cookie.
	// See Secure field of https://pkg.go.dev/net/http#Cookie.Secure
	// Default value depends on the resources that use this spec.
	Secure bool `protobuf:"varint,7,opt,name=Secure,json=secure,proto3" json:"Secure,omitempty"`
	// [OPTIONAL]
	// HttpOnly is the HttpOnly attribute of cookie.
	// See HttpOnly field of https://pkg.go.dev/net/http#Cookie.HttpOnly
	// Default value depends on the resources that use this spec.
	HTTPOnly bool `protobuf:"varint,8,opt,name=HTTPOnly,json=httpOnly,proto3" json:"HTTPOnly,omitempty"`
	// [OPTIONAL]
	// SameSite is the SameSite attribute of cookie.
	// See SameSite field of https://pkg.go.dev/net/http#Cookie.SameSite
	// Default value depends on the resources that use this spec.
	SameSite      SameSite `protobuf:"varint,9,opt,name=SameSite,json=sameSite,proto3,enum=core.v1.SameSite" json:"SameSite,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CookieSpec) Reset() {
	*x = CookieSpec{}
	mi := &file_core_v1_http_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CookieSpec) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CookieSpec) ProtoMessage() {}

func (x *CookieSpec) ProtoReflect() protoreflect.Message {
	mi := &file_core_v1_http_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 CookieSpec.ProtoReflect.Descriptor instead.
func (*CookieSpec) Descriptor() ([]byte, []int) {
	return file_core_v1_http_proto_rawDescGZIP(), []int{0}
}

func (x *CookieSpec) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *CookieSpec) GetValue() string {
	if x != nil {
		return x.Value
	}
	return ""
}

func (x *CookieSpec) GetPath() string {
	if x != nil {
		return x.Path
	}
	return ""
}

func (x *CookieSpec) GetDomain() string {
	if x != nil {
		return x.Domain
	}
	return ""
}

func (x *CookieSpec) GetExpiresIn() int32 {
	if x != nil {
		return x.ExpiresIn
	}
	return 0
}

func (x *CookieSpec) GetMaxAge() int32 {
	if x != nil {
		return x.MaxAge
	}
	return 0
}

func (x *CookieSpec) GetSecure() bool {
	if x != nil {
		return x.Secure
	}
	return false
}

func (x *CookieSpec) GetHTTPOnly() bool {
	if x != nil {
		return x.HTTPOnly
	}
	return false
}

func (x *CookieSpec) GetSameSite() SameSite {
	if x != nil {
		return x.SameSite
	}
	return SameSite_SameSiteUnknown
}

var File_core_v1_http_proto protoreflect.FileDescriptor

var file_core_v1_http_proto_rawDesc = string([]byte{
	0x0a, 0x12, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70,
	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x22, 0xfb, 0x01,
	0x0a, 0x0a, 0x43, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04,
	0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
	0x12, 0x14, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
	0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x50, 0x61, 0x74, 0x68, 0x18, 0x03,
	0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x44, 0x6f,
	0x6d, 0x61, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61,
	0x69, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x49, 0x6e, 0x18,
	0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x49, 0x6e,
	0x12, 0x16, 0x0a, 0x06, 0x4d, 0x61, 0x78, 0x41, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05,
	0x52, 0x06, 0x6d, 0x61, 0x78, 0x41, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x65, 0x63, 0x75,
	0x72, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65,
	0x12, 0x1a, 0x0a, 0x08, 0x48, 0x54, 0x54, 0x50, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x08, 0x20, 0x01,
	0x28, 0x08, 0x52, 0x08, 0x68, 0x74, 0x74, 0x70, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x2d, 0x0a, 0x08,
	0x53, 0x61, 0x6d, 0x65, 0x53, 0x69, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11,
	0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x61, 0x6d, 0x65, 0x53, 0x69, 0x74,
	0x65, 0x52, 0x08, 0x73, 0x61, 0x6d, 0x65, 0x53, 0x69, 0x74, 0x65, 0x2a, 0x85, 0x01, 0x0a, 0x0a,
	0x48, 0x54, 0x54, 0x50, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x15, 0x0a, 0x11, 0x48, 0x54,
	0x54, 0x50, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10,
	0x00, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x45, 0x54, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x45,
	0x41, 0x44, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x4f, 0x53, 0x54, 0x10, 0x03, 0x12, 0x07,
	0x0a, 0x03, 0x50, 0x55, 0x54, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x41, 0x54, 0x43, 0x48,
	0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x06, 0x12, 0x0b,
	0x0a, 0x07, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x10, 0x07, 0x12, 0x0b, 0x0a, 0x07, 0x4f,
	0x50, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x08, 0x12, 0x09, 0x0a, 0x05, 0x54, 0x52, 0x41, 0x43,
	0x45, 0x10, 0x09, 0x2a, 0x4b, 0x0a, 0x08, 0x53, 0x61, 0x6d, 0x65, 0x53, 0x69, 0x74, 0x65, 0x12,
	0x13, 0x0a, 0x0f, 0x53, 0x61, 0x6d, 0x65, 0x53, 0x69, 0x74, 0x65, 0x55, 0x6e, 0x6b, 0x6e, 0x6f,
	0x77, 0x6e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x10,
	0x01, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x61, 0x78, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x74,
	0x72, 0x69, 0x63, 0x74, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x6f, 0x6e, 0x65, 0x10, 0x04,
	0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61,
	0x69, 0x6c, 0x65, 0x72, 0x6f, 0x6e, 0x2d, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x61,
	0x69, 0x6c, 0x65, 0x72, 0x6f, 0x6e, 0x2d, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x61,
	0x70, 0x69, 0x73, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
	0x74, 0x6f, 0x33,
})

var (
	file_core_v1_http_proto_rawDescOnce sync.Once
	file_core_v1_http_proto_rawDescData []byte
)

func file_core_v1_http_proto_rawDescGZIP() []byte {
	file_core_v1_http_proto_rawDescOnce.Do(func() {
		file_core_v1_http_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_core_v1_http_proto_rawDesc), len(file_core_v1_http_proto_rawDesc)))
	})
	return file_core_v1_http_proto_rawDescData
}

var file_core_v1_http_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_core_v1_http_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_core_v1_http_proto_goTypes = []any{
	(HTTPMethod)(0),    // 0: core.v1.HTTPMethod
	(SameSite)(0),      // 1: core.v1.SameSite
	(*CookieSpec)(nil), // 2: core.v1.CookieSpec
}
var file_core_v1_http_proto_depIdxs = []int32{
	1, // 0: core.v1.CookieSpec.SameSite:type_name -> core.v1.SameSite
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_core_v1_http_proto_init() }
func file_core_v1_http_proto_init() {
	if File_core_v1_http_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_core_v1_http_proto_rawDesc), len(file_core_v1_http_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_core_v1_http_proto_goTypes,
		DependencyIndexes: file_core_v1_http_proto_depIdxs,
		EnumInfos:         file_core_v1_http_proto_enumTypes,
		MessageInfos:      file_core_v1_http_proto_msgTypes,
	}.Build()
	File_core_v1_http_proto = out.File
	file_core_v1_http_proto_goTypes = nil
	file_core_v1_http_proto_depIdxs = nil
}
