2 Star 0 Fork 0

huangjsshinedone/midjourney-apiserve

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
upscale_creative.pb.go 12.19 KB
一键复制 编辑 原始数据 按行查看 历史
huangjs 提交于 2024-01-11 17:21 . --6.0 u
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v4.24.0
// source: upscale_creative.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 UpscaleCreativeRequest 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 *UpscaleCreativeRequest) Reset() {
*x = UpscaleCreativeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_upscale_creative_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpscaleCreativeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpscaleCreativeRequest) ProtoMessage() {}
func (x *UpscaleCreativeRequest) ProtoReflect() protoreflect.Message {
mi := &file_upscale_creative_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 UpscaleCreativeRequest.ProtoReflect.Descriptor instead.
func (*UpscaleCreativeRequest) Descriptor() ([]byte, []int) {
return file_upscale_creative_proto_rawDescGZIP(), []int{0}
}
func (x *UpscaleCreativeRequest) GetRequestId() string {
if x != nil {
return x.RequestId
}
return ""
}
func (x *UpscaleCreativeRequest) GetOriginalUrl() string {
if x != nil {
return x.OriginalUrl
}
return ""
}
func (x *UpscaleCreativeRequest) GetWebhook() string {
if x != nil {
return x.Webhook
}
return ""
}
func (x *UpscaleCreativeRequest) GetMemberId() string {
if x != nil {
return x.MemberId
}
return ""
}
func (x *UpscaleCreativeRequest) GetMessageId() string {
if x != nil {
return x.MessageId
}
return ""
}
type UpscaleCreativeResponse 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 *UpscaleCreativeResponseData `protobuf:"bytes,4,opt,name=data,proto3,oneof" json:"data,omitempty"`
}
func (x *UpscaleCreativeResponse) Reset() {
*x = UpscaleCreativeResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_upscale_creative_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpscaleCreativeResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpscaleCreativeResponse) ProtoMessage() {}
func (x *UpscaleCreativeResponse) ProtoReflect() protoreflect.Message {
mi := &file_upscale_creative_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 UpscaleCreativeResponse.ProtoReflect.Descriptor instead.
func (*UpscaleCreativeResponse) Descriptor() ([]byte, []int) {
return file_upscale_creative_proto_rawDescGZIP(), []int{1}
}
func (x *UpscaleCreativeResponse) GetRequestId() string {
if x != nil {
return x.RequestId
}
return ""
}
func (x *UpscaleCreativeResponse) GetCode() Codes {
if x != nil {
return x.Code
}
return Codes_CODES_SUCCESS
}
func (x *UpscaleCreativeResponse) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
func (x *UpscaleCreativeResponse) GetData() *UpscaleCreativeResponseData {
if x != nil {
return x.Data
}
return nil
}
type UpscaleCreativeResponseData 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 *UpscaleCreativeResponseData) Reset() {
*x = UpscaleCreativeResponseData{}
if protoimpl.UnsafeEnabled {
mi := &file_upscale_creative_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpscaleCreativeResponseData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpscaleCreativeResponseData) ProtoMessage() {}
func (x *UpscaleCreativeResponseData) ProtoReflect() protoreflect.Message {
mi := &file_upscale_creative_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 UpscaleCreativeResponseData.ProtoReflect.Descriptor instead.
func (*UpscaleCreativeResponseData) Descriptor() ([]byte, []int) {
return file_upscale_creative_proto_rawDescGZIP(), []int{2}
}
func (x *UpscaleCreativeResponseData) GetTaskId() string {
if x != nil {
return x.TaskId
}
return ""
}
func (x *UpscaleCreativeResponseData) GetStartTime() int64 {
if x != nil {
return x.StartTime
}
return 0
}
var File_upscale_creative_proto protoreflect.FileDescriptor
var file_upscale_creative_proto_rawDesc = []byte{
0x0a, 0x16, 0x75, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69,
0x76, 0x65, 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, 0xb0, 0x01, 0x0a, 0x16,
0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x76, 0x65, 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, 0xae,
0x01, 0x0a, 0x17, 0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69,
0x76, 0x65, 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, 0x39, 0x0a, 0x04, 0x64,
0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x76, 0x65, 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,
0x55, 0x0a, 0x1b, 0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69,
0x76, 0x65, 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_creative_proto_rawDescOnce sync.Once
file_upscale_creative_proto_rawDescData = file_upscale_creative_proto_rawDesc
)
func file_upscale_creative_proto_rawDescGZIP() []byte {
file_upscale_creative_proto_rawDescOnce.Do(func() {
file_upscale_creative_proto_rawDescData = protoimpl.X.CompressGZIP(file_upscale_creative_proto_rawDescData)
})
return file_upscale_creative_proto_rawDescData
}
var file_upscale_creative_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_upscale_creative_proto_goTypes = []interface{}{
(*UpscaleCreativeRequest)(nil), // 0: api.UpscaleCreativeRequest
(*UpscaleCreativeResponse)(nil), // 1: api.UpscaleCreativeResponse
(*UpscaleCreativeResponseData)(nil), // 2: api.UpscaleCreativeResponseData
(Codes)(0), // 3: api.Codes
}
var file_upscale_creative_proto_depIdxs = []int32{
3, // 0: api.UpscaleCreativeResponse.code:type_name -> api.Codes
2, // 1: api.UpscaleCreativeResponse.data:type_name -> api.UpscaleCreativeResponseData
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_creative_proto_init() }
func file_upscale_creative_proto_init() {
if File_upscale_creative_proto != nil {
return
}
file_common_proto_init()
if !protoimpl.UnsafeEnabled {
file_upscale_creative_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpscaleCreativeRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_upscale_creative_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpscaleCreativeResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_upscale_creative_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpscaleCreativeResponseData); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_upscale_creative_proto_msgTypes[1].OneofWrappers = []interface{}{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_upscale_creative_proto_rawDesc,
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_upscale_creative_proto_goTypes,
DependencyIndexes: file_upscale_creative_proto_depIdxs,
MessageInfos: file_upscale_creative_proto_msgTypes,
}.Build()
File_upscale_creative_proto = out.File
file_upscale_creative_proto_rawDesc = nil
file_upscale_creative_proto_goTypes = nil
file_upscale_creative_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

搜索帮助