2 Star 0 Fork 0

huangjsshinedone/midjourney-apiserve

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
upscale_x_two.pb.go 11.76 KB
一键复制 编辑 原始数据 按行查看 历史
huangjs 提交于 2024-01-06 09:43 . first
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v4.24.0
// source: upscale_x_two.proto
package api
import (
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)
)
type UpscaleXTwoRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
OriginalUrl string `protobuf:"bytes,2,opt,name=original_url,json=originalUrl,proto3" json:"original_url,omitempty"`
Webhook string `protobuf:"bytes,3,opt,name=webhook,proto3" json:"webhook,omitempty"`
MemberId string `protobuf:"bytes,4,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
MessageId string `protobuf:"bytes,5,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
}
func (x *UpscaleXTwoRequest) Reset() {
*x = UpscaleXTwoRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_upscale_x_two_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpscaleXTwoRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpscaleXTwoRequest) ProtoMessage() {}
func (x *UpscaleXTwoRequest) ProtoReflect() protoreflect.Message {
mi := &file_upscale_x_two_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 UpscaleXTwoRequest.ProtoReflect.Descriptor instead.
func (*UpscaleXTwoRequest) Descriptor() ([]byte, []int) {
return file_upscale_x_two_proto_rawDescGZIP(), []int{0}
}
func (x *UpscaleXTwoRequest) GetRequestId() string {
if x != nil {
return x.RequestId
}
return ""
}
func (x *UpscaleXTwoRequest) GetOriginalUrl() string {
if x != nil {
return x.OriginalUrl
}
return ""
}
func (x *UpscaleXTwoRequest) GetWebhook() string {
if x != nil {
return x.Webhook
}
return ""
}
func (x *UpscaleXTwoRequest) GetMemberId() string {
if x != nil {
return x.MemberId
}
return ""
}
func (x *UpscaleXTwoRequest) GetMessageId() string {
if x != nil {
return x.MessageId
}
return ""
}
type UpscaleXTwoResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
Code Codes `protobuf:"varint,2,opt,name=code,proto3,enum=api.Codes" json:"code,omitempty"`
Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
Data *UpscaleXTwoResponseData `protobuf:"bytes,4,opt,name=data,proto3,oneof" json:"data,omitempty"`
}
func (x *UpscaleXTwoResponse) Reset() {
*x = UpscaleXTwoResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_upscale_x_two_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpscaleXTwoResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpscaleXTwoResponse) ProtoMessage() {}
func (x *UpscaleXTwoResponse) ProtoReflect() protoreflect.Message {
mi := &file_upscale_x_two_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 UpscaleXTwoResponse.ProtoReflect.Descriptor instead.
func (*UpscaleXTwoResponse) Descriptor() ([]byte, []int) {
return file_upscale_x_two_proto_rawDescGZIP(), []int{1}
}
func (x *UpscaleXTwoResponse) GetRequestId() string {
if x != nil {
return x.RequestId
}
return ""
}
func (x *UpscaleXTwoResponse) GetCode() Codes {
if x != nil {
return x.Code
}
return Codes_CODES_SUCCESS
}
func (x *UpscaleXTwoResponse) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
func (x *UpscaleXTwoResponse) GetData() *UpscaleXTwoResponseData {
if x != nil {
return x.Data
}
return nil
}
type UpscaleXTwoResponseData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
StartTime int64 `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
}
func (x *UpscaleXTwoResponseData) Reset() {
*x = UpscaleXTwoResponseData{}
if protoimpl.UnsafeEnabled {
mi := &file_upscale_x_two_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpscaleXTwoResponseData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpscaleXTwoResponseData) ProtoMessage() {}
func (x *UpscaleXTwoResponseData) ProtoReflect() protoreflect.Message {
mi := &file_upscale_x_two_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 UpscaleXTwoResponseData.ProtoReflect.Descriptor instead.
func (*UpscaleXTwoResponseData) Descriptor() ([]byte, []int) {
return file_upscale_x_two_proto_rawDescGZIP(), []int{2}
}
func (x *UpscaleXTwoResponseData) GetTaskId() string {
if x != nil {
return x.TaskId
}
return ""
}
func (x *UpscaleXTwoResponseData) GetStartTime() int64 {
if x != nil {
return x.StartTime
}
return 0
}
var File_upscale_x_two_proto protoreflect.FileDescriptor
var file_upscale_x_two_proto_rawDesc = []byte{
0x0a, 0x13, 0x75, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x5f, 0x78, 0x5f, 0x74, 0x77, 0x6f, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x61, 0x70, 0x69, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d,
0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x73,
0x63, 0x61, 0x6c, 0x65, 0x58, 0x54, 0x77, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x21,
0x0a, 0x0c, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x55, 0x72,
0x6c, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x03, 0x20, 0x01,
0x28, 0x09, 0x52, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x1b, 0x0a, 0x09, 0x6d,
0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0xa6, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x73, 0x63,
0x61, 0x6c, 0x65, 0x58, 0x54, 0x77, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1e,
0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10,
0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67,
0x12, 0x35, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x58, 0x54, 0x77, 0x6f,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04,
0x64, 0x61, 0x74, 0x61, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x64, 0x61, 0x74, 0x61,
0x22, 0x51, 0x0a, 0x17, 0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x58, 0x54, 0x77, 0x6f, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x17, 0x0a, 0x07, 0x74,
0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61,
0x73, 0x6b, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69,
0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54,
0x69, 0x6d, 0x65, 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_upscale_x_two_proto_rawDescOnce sync.Once
file_upscale_x_two_proto_rawDescData = file_upscale_x_two_proto_rawDesc
)
func file_upscale_x_two_proto_rawDescGZIP() []byte {
file_upscale_x_two_proto_rawDescOnce.Do(func() {
file_upscale_x_two_proto_rawDescData = protoimpl.X.CompressGZIP(file_upscale_x_two_proto_rawDescData)
})
return file_upscale_x_two_proto_rawDescData
}
var file_upscale_x_two_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_upscale_x_two_proto_goTypes = []interface{}{
(*UpscaleXTwoRequest)(nil), // 0: api.UpscaleXTwoRequest
(*UpscaleXTwoResponse)(nil), // 1: api.UpscaleXTwoResponse
(*UpscaleXTwoResponseData)(nil), // 2: api.UpscaleXTwoResponseData
(Codes)(0), // 3: api.Codes
}
var file_upscale_x_two_proto_depIdxs = []int32{
3, // 0: api.UpscaleXTwoResponse.code:type_name -> api.Codes
2, // 1: api.UpscaleXTwoResponse.data:type_name -> api.UpscaleXTwoResponseData
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_upscale_x_two_proto_init() }
func file_upscale_x_two_proto_init() {
if File_upscale_x_two_proto != nil {
return
}
file_common_proto_init()
if !protoimpl.UnsafeEnabled {
file_upscale_x_two_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpscaleXTwoRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_upscale_x_two_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpscaleXTwoResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_upscale_x_two_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpscaleXTwoResponseData); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_upscale_x_two_proto_msgTypes[1].OneofWrappers = []interface{}{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_upscale_x_two_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_upscale_x_two_proto_goTypes,
DependencyIndexes: file_upscale_x_two_proto_depIdxs,
MessageInfos: file_upscale_x_two_proto_msgTypes,
}.Build()
File_upscale_x_two_proto = out.File
file_upscale_x_two_proto_rawDesc = nil
file_upscale_x_two_proto_goTypes = nil
file_upscale_x_two_proto_depIdxs = nil
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/huangjsshinedone/midjourney-apiserve.git
git@gitee.com:huangjsshinedone/midjourney-apiserve.git
huangjsshinedone
midjourney-apiserve
midjourney-apiserve
v0.0.4

搜索帮助