587 lines
20 KiB
Go
587 lines
20 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: proto/shorten/v1/shorten.proto
|
|
|
|
package shortenv1
|
|
|
|
import (
|
|
_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
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 CreateURLRedirectionRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ShortCode string `protobuf:"bytes,1,opt,name=short_code,json=shortCode,proto3" json:"short_code,omitempty"`
|
|
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateURLRedirectionRequest) Reset() {
|
|
*x = CreateURLRedirectionRequest{}
|
|
mi := &file_proto_shorten_v1_shorten_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateURLRedirectionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateURLRedirectionRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateURLRedirectionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_shorten_v1_shorten_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 CreateURLRedirectionRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateURLRedirectionRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_shorten_v1_shorten_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CreateURLRedirectionRequest) GetShortCode() string {
|
|
if x != nil {
|
|
return x.ShortCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateURLRedirectionRequest) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateURLRedirectionResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateURLRedirectionResponse) Reset() {
|
|
*x = CreateURLRedirectionResponse{}
|
|
mi := &file_proto_shorten_v1_shorten_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateURLRedirectionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateURLRedirectionResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateURLRedirectionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_shorten_v1_shorten_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 CreateURLRedirectionResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateURLRedirectionResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_shorten_v1_shorten_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateURLRedirectionResponse) GetOk() bool {
|
|
if x != nil {
|
|
return x.Ok
|
|
}
|
|
return false
|
|
}
|
|
|
|
type URLRedirection struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UrlId int32 `protobuf:"varint,1,opt,name=url_id,json=urlId,proto3" json:"url_id,omitempty"`
|
|
ShortCode string `protobuf:"bytes,3,opt,name=short_code,json=shortCode,proto3" json:"short_code,omitempty"`
|
|
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
|
IsActive bool `protobuf:"varint,6,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
|
|
ClickCountByDay []int32 `protobuf:"varint,7,rep,packed,name=click_count_by_day,json=clickCountByDay,proto3" json:"click_count_by_day,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *URLRedirection) Reset() {
|
|
*x = URLRedirection{}
|
|
mi := &file_proto_shorten_v1_shorten_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *URLRedirection) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*URLRedirection) ProtoMessage() {}
|
|
|
|
func (x *URLRedirection) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_shorten_v1_shorten_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 URLRedirection.ProtoReflect.Descriptor instead.
|
|
func (*URLRedirection) Descriptor() ([]byte, []int) {
|
|
return file_proto_shorten_v1_shorten_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *URLRedirection) GetUrlId() int32 {
|
|
if x != nil {
|
|
return x.UrlId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *URLRedirection) GetShortCode() string {
|
|
if x != nil {
|
|
return x.ShortCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *URLRedirection) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *URLRedirection) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *URLRedirection) GetExpiresAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *URLRedirection) GetIsActive() bool {
|
|
if x != nil {
|
|
return x.IsActive
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *URLRedirection) GetClickCountByDay() []int32 {
|
|
if x != nil {
|
|
return x.ClickCountByDay
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListURLRedirectionsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListURLRedirectionsRequest) Reset() {
|
|
*x = ListURLRedirectionsRequest{}
|
|
mi := &file_proto_shorten_v1_shorten_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListURLRedirectionsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListURLRedirectionsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListURLRedirectionsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_shorten_v1_shorten_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 ListURLRedirectionsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListURLRedirectionsRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_shorten_v1_shorten_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
type ListURLRedirectionsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UrlRedirections []*URLRedirection `protobuf:"bytes,1,rep,name=url_redirections,json=urlRedirections,proto3" json:"url_redirections,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListURLRedirectionsResponse) Reset() {
|
|
*x = ListURLRedirectionsResponse{}
|
|
mi := &file_proto_shorten_v1_shorten_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListURLRedirectionsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListURLRedirectionsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListURLRedirectionsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_shorten_v1_shorten_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 ListURLRedirectionsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListURLRedirectionsResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_shorten_v1_shorten_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ListURLRedirectionsResponse) GetUrlRedirections() []*URLRedirection {
|
|
if x != nil {
|
|
return x.UrlRedirections
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeactivateURLRedirectionRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UrlId int32 `protobuf:"varint,1,opt,name=url_id,json=urlId,proto3" json:"url_id,omitempty"`
|
|
IsActive bool `protobuf:"varint,2,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeactivateURLRedirectionRequest) Reset() {
|
|
*x = DeactivateURLRedirectionRequest{}
|
|
mi := &file_proto_shorten_v1_shorten_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeactivateURLRedirectionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeactivateURLRedirectionRequest) ProtoMessage() {}
|
|
|
|
func (x *DeactivateURLRedirectionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_shorten_v1_shorten_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 DeactivateURLRedirectionRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeactivateURLRedirectionRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_shorten_v1_shorten_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *DeactivateURLRedirectionRequest) GetUrlId() int32 {
|
|
if x != nil {
|
|
return x.UrlId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DeactivateURLRedirectionRequest) GetIsActive() bool {
|
|
if x != nil {
|
|
return x.IsActive
|
|
}
|
|
return false
|
|
}
|
|
|
|
type DeactivateURLRedirectionResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeactivateURLRedirectionResponse) Reset() {
|
|
*x = DeactivateURLRedirectionResponse{}
|
|
mi := &file_proto_shorten_v1_shorten_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeactivateURLRedirectionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeactivateURLRedirectionResponse) ProtoMessage() {}
|
|
|
|
func (x *DeactivateURLRedirectionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_shorten_v1_shorten_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 DeactivateURLRedirectionResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeactivateURLRedirectionResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_shorten_v1_shorten_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *DeactivateURLRedirectionResponse) GetOk() bool {
|
|
if x != nil {
|
|
return x.Ok
|
|
}
|
|
return false
|
|
}
|
|
|
|
type DeleteURLRedirectionRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UrlId int32 `protobuf:"varint,1,opt,name=url_id,json=urlId,proto3" json:"url_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteURLRedirectionRequest) Reset() {
|
|
*x = DeleteURLRedirectionRequest{}
|
|
mi := &file_proto_shorten_v1_shorten_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteURLRedirectionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteURLRedirectionRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteURLRedirectionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_shorten_v1_shorten_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 DeleteURLRedirectionRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteURLRedirectionRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_shorten_v1_shorten_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *DeleteURLRedirectionRequest) GetUrlId() int32 {
|
|
if x != nil {
|
|
return x.UrlId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteURLRedirectionResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteURLRedirectionResponse) Reset() {
|
|
*x = DeleteURLRedirectionResponse{}
|
|
mi := &file_proto_shorten_v1_shorten_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteURLRedirectionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteURLRedirectionResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteURLRedirectionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_shorten_v1_shorten_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 DeleteURLRedirectionResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteURLRedirectionResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_shorten_v1_shorten_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *DeleteURLRedirectionResponse) GetOk() bool {
|
|
if x != nil {
|
|
return x.Ok
|
|
}
|
|
return false
|
|
}
|
|
|
|
var File_proto_shorten_v1_shorten_proto protoreflect.FileDescriptor
|
|
|
|
const file_proto_shorten_v1_shorten_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1eproto/shorten/v1/shorten.proto\x12\x10proto.shorten.v1\x1a\x1bbuf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"b\n" +
|
|
"\x1bCreateURLRedirectionRequest\x12'\n" +
|
|
"\n" +
|
|
"short_code\x18\x01 \x01(\tB\b\xbaH\x05r\x03\x98\x01\n" +
|
|
"R\tshortCode\x12\x1a\n" +
|
|
"\x03url\x18\x02 \x01(\tB\b\xbaH\x05r\x03\x88\x01\x01R\x03url\".\n" +
|
|
"\x1cCreateURLRedirectionResponse\x12\x0e\n" +
|
|
"\x02ok\x18\x01 \x01(\bR\x02ok\"\x98\x02\n" +
|
|
"\x0eURLRedirection\x12\x15\n" +
|
|
"\x06url_id\x18\x01 \x01(\x05R\x05urlId\x12\x1d\n" +
|
|
"\n" +
|
|
"short_code\x18\x03 \x01(\tR\tshortCode\x12\x10\n" +
|
|
"\x03url\x18\x02 \x01(\tR\x03url\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
|
|
"\n" +
|
|
"expires_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x12\x1b\n" +
|
|
"\tis_active\x18\x06 \x01(\bR\bisActive\x12+\n" +
|
|
"\x12click_count_by_day\x18\a \x03(\x05R\x0fclickCountByDay\"\x1c\n" +
|
|
"\x1aListURLRedirectionsRequest\"j\n" +
|
|
"\x1bListURLRedirectionsResponse\x12K\n" +
|
|
"\x10url_redirections\x18\x01 \x03(\v2 .proto.shorten.v1.URLRedirectionR\x0furlRedirections\"U\n" +
|
|
"\x1fDeactivateURLRedirectionRequest\x12\x15\n" +
|
|
"\x06url_id\x18\x01 \x01(\x05R\x05urlId\x12\x1b\n" +
|
|
"\tis_active\x18\x02 \x01(\bR\bisActive\"2\n" +
|
|
" DeactivateURLRedirectionResponse\x12\x0e\n" +
|
|
"\x02ok\x18\x01 \x01(\bR\x02ok\"4\n" +
|
|
"\x1bDeleteURLRedirectionRequest\x12\x15\n" +
|
|
"\x06url_id\x18\x01 \x01(\x05R\x05urlId\".\n" +
|
|
"\x1cDeleteURLRedirectionResponse\x12\x0e\n" +
|
|
"\x02ok\x18\x01 \x01(\bR\x02ok2\xfe\x03\n" +
|
|
"\x0eShortenService\x12w\n" +
|
|
"\x14CreateURLRedirection\x12-.proto.shorten.v1.CreateURLRedirectionRequest\x1a..proto.shorten.v1.CreateURLRedirectionResponse\"\x00\x12t\n" +
|
|
"\x13ListURLRedirections\x12,.proto.shorten.v1.ListURLRedirectionsRequest\x1a-.proto.shorten.v1.ListURLRedirectionsResponse\"\x00\x12\x83\x01\n" +
|
|
"\x18DeactivateURLRedirection\x121.proto.shorten.v1.DeactivateURLRedirectionRequest\x1a2.proto.shorten.v1.DeactivateURLRedirectionResponse\"\x00\x12w\n" +
|
|
"\x14DeleteURLRedirection\x12-.proto.shorten.v1.DeleteURLRedirectionRequest\x1a..proto.shorten.v1.DeleteURLRedirectionResponse\"\x00B\xc8\x01\n" +
|
|
"\x14com.proto.shorten.v1B\fShortenProtoP\x01Z@git.kocoder.xyz/vt/shortener/internal/proto/shorten/v1;shortenv1\xa2\x02\x03PSX\xaa\x02\x10Proto.Shorten.V1\xca\x02\x10Proto\\Shorten\\V1\xe2\x02\x1cProto\\Shorten\\V1\\GPBMetadata\xea\x02\x12Proto::Shorten::V1b\x06proto3"
|
|
|
|
var (
|
|
file_proto_shorten_v1_shorten_proto_rawDescOnce sync.Once
|
|
file_proto_shorten_v1_shorten_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_proto_shorten_v1_shorten_proto_rawDescGZIP() []byte {
|
|
file_proto_shorten_v1_shorten_proto_rawDescOnce.Do(func() {
|
|
file_proto_shorten_v1_shorten_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_shorten_v1_shorten_proto_rawDesc), len(file_proto_shorten_v1_shorten_proto_rawDesc)))
|
|
})
|
|
return file_proto_shorten_v1_shorten_proto_rawDescData
|
|
}
|
|
|
|
var file_proto_shorten_v1_shorten_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
var file_proto_shorten_v1_shorten_proto_goTypes = []any{
|
|
(*CreateURLRedirectionRequest)(nil), // 0: proto.shorten.v1.CreateURLRedirectionRequest
|
|
(*CreateURLRedirectionResponse)(nil), // 1: proto.shorten.v1.CreateURLRedirectionResponse
|
|
(*URLRedirection)(nil), // 2: proto.shorten.v1.URLRedirection
|
|
(*ListURLRedirectionsRequest)(nil), // 3: proto.shorten.v1.ListURLRedirectionsRequest
|
|
(*ListURLRedirectionsResponse)(nil), // 4: proto.shorten.v1.ListURLRedirectionsResponse
|
|
(*DeactivateURLRedirectionRequest)(nil), // 5: proto.shorten.v1.DeactivateURLRedirectionRequest
|
|
(*DeactivateURLRedirectionResponse)(nil), // 6: proto.shorten.v1.DeactivateURLRedirectionResponse
|
|
(*DeleteURLRedirectionRequest)(nil), // 7: proto.shorten.v1.DeleteURLRedirectionRequest
|
|
(*DeleteURLRedirectionResponse)(nil), // 8: proto.shorten.v1.DeleteURLRedirectionResponse
|
|
(*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp
|
|
}
|
|
var file_proto_shorten_v1_shorten_proto_depIdxs = []int32{
|
|
9, // 0: proto.shorten.v1.URLRedirection.created_at:type_name -> google.protobuf.Timestamp
|
|
9, // 1: proto.shorten.v1.URLRedirection.expires_at:type_name -> google.protobuf.Timestamp
|
|
2, // 2: proto.shorten.v1.ListURLRedirectionsResponse.url_redirections:type_name -> proto.shorten.v1.URLRedirection
|
|
0, // 3: proto.shorten.v1.ShortenService.CreateURLRedirection:input_type -> proto.shorten.v1.CreateURLRedirectionRequest
|
|
3, // 4: proto.shorten.v1.ShortenService.ListURLRedirections:input_type -> proto.shorten.v1.ListURLRedirectionsRequest
|
|
5, // 5: proto.shorten.v1.ShortenService.DeactivateURLRedirection:input_type -> proto.shorten.v1.DeactivateURLRedirectionRequest
|
|
7, // 6: proto.shorten.v1.ShortenService.DeleteURLRedirection:input_type -> proto.shorten.v1.DeleteURLRedirectionRequest
|
|
1, // 7: proto.shorten.v1.ShortenService.CreateURLRedirection:output_type -> proto.shorten.v1.CreateURLRedirectionResponse
|
|
4, // 8: proto.shorten.v1.ShortenService.ListURLRedirections:output_type -> proto.shorten.v1.ListURLRedirectionsResponse
|
|
6, // 9: proto.shorten.v1.ShortenService.DeactivateURLRedirection:output_type -> proto.shorten.v1.DeactivateURLRedirectionResponse
|
|
8, // 10: proto.shorten.v1.ShortenService.DeleteURLRedirection:output_type -> proto.shorten.v1.DeleteURLRedirectionResponse
|
|
7, // [7:11] is the sub-list for method output_type
|
|
3, // [3:7] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_proto_shorten_v1_shorten_proto_init() }
|
|
func file_proto_shorten_v1_shorten_proto_init() {
|
|
if File_proto_shorten_v1_shorten_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_shorten_v1_shorten_proto_rawDesc), len(file_proto_shorten_v1_shorten_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 9,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_proto_shorten_v1_shorten_proto_goTypes,
|
|
DependencyIndexes: file_proto_shorten_v1_shorten_proto_depIdxs,
|
|
MessageInfos: file_proto_shorten_v1_shorten_proto_msgTypes,
|
|
}.Build()
|
|
File_proto_shorten_v1_shorten_proto = out.File
|
|
file_proto_shorten_v1_shorten_proto_goTypes = nil
|
|
file_proto_shorten_v1_shorten_proto_depIdxs = nil
|
|
}
|