Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAPIServiceServer(s grpc.ServiceRegistrar, srv APIServiceServer)
- type APIServiceClient
- type APIServiceServer
- type Codes
- type DescribeRequest
- func (*DescribeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeRequest) GetImageUrl() string
- func (x *DescribeRequest) GetMemberId() string
- func (x *DescribeRequest) GetRequestId() string
- func (*DescribeRequest) ProtoMessage()
- func (x *DescribeRequest) ProtoReflect() protoreflect.Message
- func (x *DescribeRequest) Reset()
- func (x *DescribeRequest) String() string
- type DescribeResponse
- func (*DescribeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeResponse) GetCode() Codes
- func (x *DescribeResponse) GetData() *DescribeResponseData
- func (x *DescribeResponse) GetMsg() string
- func (x *DescribeResponse) GetRequestId() string
- func (*DescribeResponse) ProtoMessage()
- func (x *DescribeResponse) ProtoReflect() protoreflect.Message
- func (x *DescribeResponse) Reset()
- func (x *DescribeResponse) String() string
- type DescribeResponseData
- func (*DescribeResponseData) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeResponseData) GetPrompts() []string
- func (*DescribeResponseData) ProtoMessage()
- func (x *DescribeResponseData) ProtoReflect() protoreflect.Message
- func (x *DescribeResponseData) Reset()
- func (x *DescribeResponseData) String() string
- type ImagineRequest
- func (*ImagineRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImagineRequest) GetMemberId() string
- func (x *ImagineRequest) GetPrompt() string
- func (x *ImagineRequest) GetRequestId() string
- func (x *ImagineRequest) GetWebhook() string
- func (*ImagineRequest) ProtoMessage()
- func (x *ImagineRequest) ProtoReflect() protoreflect.Message
- func (x *ImagineRequest) Reset()
- func (x *ImagineRequest) String() string
- type ImagineResponse
- func (*ImagineResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ImagineResponse) GetCode() Codes
- func (x *ImagineResponse) GetData() *ImagineResponseData
- func (x *ImagineResponse) GetMsg() string
- func (x *ImagineResponse) GetRequestId() string
- func (*ImagineResponse) ProtoMessage()
- func (x *ImagineResponse) ProtoReflect() protoreflect.Message
- func (x *ImagineResponse) Reset()
- func (x *ImagineResponse) String() string
- type ImagineResponseData
- func (*ImagineResponseData) Descriptor() ([]byte, []int)deprecated
- func (x *ImagineResponseData) GetStartTime() int64
- func (x *ImagineResponseData) GetTaskId() string
- func (*ImagineResponseData) ProtoMessage()
- func (x *ImagineResponseData) ProtoReflect() protoreflect.Message
- func (x *ImagineResponseData) Reset()
- func (x *ImagineResponseData) String() string
- type RerollRequest
- func (*RerollRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RerollRequest) GetIndex() int32
- func (x *RerollRequest) GetMemberId() string
- func (x *RerollRequest) GetRequestId() string
- func (x *RerollRequest) GetTaskId() string
- func (x *RerollRequest) GetWebhook() string
- func (*RerollRequest) ProtoMessage()
- func (x *RerollRequest) ProtoReflect() protoreflect.Message
- func (x *RerollRequest) Reset()
- func (x *RerollRequest) String() string
- type RerollResponse
- func (*RerollResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RerollResponse) GetCode() Codes
- func (x *RerollResponse) GetData() *RerollResponseData
- func (x *RerollResponse) GetMsg() string
- func (x *RerollResponse) GetRequestId() string
- func (*RerollResponse) ProtoMessage()
- func (x *RerollResponse) ProtoReflect() protoreflect.Message
- func (x *RerollResponse) Reset()
- func (x *RerollResponse) String() string
- type RerollResponseData
- func (*RerollResponseData) Descriptor() ([]byte, []int)deprecated
- func (x *RerollResponseData) GetStartTime() int64
- func (x *RerollResponseData) GetTaskId() string
- func (*RerollResponseData) ProtoMessage()
- func (x *RerollResponseData) ProtoReflect() protoreflect.Message
- func (x *RerollResponseData) Reset()
- func (x *RerollResponseData) String() string
- type UnimplementedAPIServiceServer
- func (UnimplementedAPIServiceServer) Describe(context.Context, *DescribeRequest) (*DescribeResponse, error)
- func (UnimplementedAPIServiceServer) Imagine(context.Context, *ImagineRequest) (*ImagineResponse, error)
- func (UnimplementedAPIServiceServer) Reroll(context.Context, *RerollRequest) (*RerollResponse, error)
- func (UnimplementedAPIServiceServer) Upscale(context.Context, *UpscaleRequest) (*UpscaleResponse, error)
- func (UnimplementedAPIServiceServer) Variation(context.Context, *VariationRequest) (*VariationResponse, error)
- type UnsafeAPIServiceServer
- type UpscaleRequest
- func (*UpscaleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpscaleRequest) GetIndex() int32
- func (x *UpscaleRequest) GetMemberId() string
- func (x *UpscaleRequest) GetRequestId() string
- func (x *UpscaleRequest) GetTaskId() string
- func (x *UpscaleRequest) GetWebhook() string
- func (*UpscaleRequest) ProtoMessage()
- func (x *UpscaleRequest) ProtoReflect() protoreflect.Message
- func (x *UpscaleRequest) Reset()
- func (x *UpscaleRequest) String() string
- type UpscaleResponse
- func (*UpscaleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpscaleResponse) GetCode() Codes
- func (x *UpscaleResponse) GetData() *UpscaleResponseData
- func (x *UpscaleResponse) GetMsg() string
- func (x *UpscaleResponse) GetRequestId() string
- func (*UpscaleResponse) ProtoMessage()
- func (x *UpscaleResponse) ProtoReflect() protoreflect.Message
- func (x *UpscaleResponse) Reset()
- func (x *UpscaleResponse) String() string
- type UpscaleResponseData
- func (*UpscaleResponseData) Descriptor() ([]byte, []int)deprecated
- func (x *UpscaleResponseData) GetStartTime() int64
- func (x *UpscaleResponseData) GetTaskId() string
- func (*UpscaleResponseData) ProtoMessage()
- func (x *UpscaleResponseData) ProtoReflect() protoreflect.Message
- func (x *UpscaleResponseData) Reset()
- func (x *UpscaleResponseData) String() string
- type VariationRequest
- func (*VariationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VariationRequest) GetIndex() int32
- func (x *VariationRequest) GetMemberId() string
- func (x *VariationRequest) GetRequestId() string
- func (x *VariationRequest) GetTaskId() string
- func (x *VariationRequest) GetWebhook() string
- func (*VariationRequest) ProtoMessage()
- func (x *VariationRequest) ProtoReflect() protoreflect.Message
- func (x *VariationRequest) Reset()
- func (x *VariationRequest) String() string
- type VariationResponse
- func (*VariationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VariationResponse) GetCode() Codes
- func (x *VariationResponse) GetData() *VariationResponseData
- func (x *VariationResponse) GetMsg() string
- func (x *VariationResponse) GetRequestId() string
- func (*VariationResponse) ProtoMessage()
- func (x *VariationResponse) ProtoReflect() protoreflect.Message
- func (x *VariationResponse) Reset()
- func (x *VariationResponse) String() string
- type VariationResponseData
- func (*VariationResponseData) Descriptor() ([]byte, []int)deprecated
- func (x *VariationResponseData) GetStartTime() int64
- func (x *VariationResponseData) GetTaskId() string
- func (*VariationResponseData) ProtoMessage()
- func (x *VariationResponseData) ProtoReflect() protoreflect.Message
- func (x *VariationResponseData) Reset()
- func (x *VariationResponseData) String() string
Constants ¶
const ( APIService_Imagine_FullMethodName = "/api.APIService/Imagine" APIService_Upscale_FullMethodName = "/api.APIService/Upscale" APIService_Describe_FullMethodName = "/api.APIService/Describe" APIService_Reroll_FullMethodName = "/api.APIService/Reroll" APIService_Variation_FullMethodName = "/api.APIService/Variation" )
Variables ¶
var ( Codes_name = map[int32]string{ 0: "CODES_SUCCESS", 1: "CODES_SERVER_INTERNAL_ERROR", 2: "CODES_INVALID_PARAMETER_ERROR", 3: "CODES_CONCURRENCY_LIMITED", 4: "CODES_PROCESSING_TIMEOUT", } Codes_value = map[string]int32{ "CODES_SUCCESS": 0, "CODES_SERVER_INTERNAL_ERROR": 1, "CODES_INVALID_PARAMETER_ERROR": 2, "CODES_CONCURRENCY_LIMITED": 3, "CODES_PROCESSING_TIMEOUT": 4, } )
Enum value maps for Codes.
var APIService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.APIService", HandlerType: (*APIServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Imagine", Handler: _APIService_Imagine_Handler, }, { MethodName: "Upscale", Handler: _APIService_Upscale_Handler, }, { MethodName: "Describe", Handler: _APIService_Describe_Handler, }, { MethodName: "Reroll", Handler: _APIService_Reroll_Handler, }, { MethodName: "Variation", Handler: _APIService_Variation_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api.proto", }
APIService_ServiceDesc is the grpc.ServiceDesc for APIService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_proto protoreflect.FileDescriptor
var File_common_proto protoreflect.FileDescriptor
var File_describe_proto protoreflect.FileDescriptor
var File_imagine_proto protoreflect.FileDescriptor
var File_reroll_proto protoreflect.FileDescriptor
var File_upscale_proto protoreflect.FileDescriptor
var File_variation_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAPIServiceServer ¶
func RegisterAPIServiceServer(s grpc.ServiceRegistrar, srv APIServiceServer)
Types ¶
type APIServiceClient ¶
type APIServiceClient interface { Imagine(ctx context.Context, in *ImagineRequest, opts ...grpc.CallOption) (*ImagineResponse, error) Upscale(ctx context.Context, in *UpscaleRequest, opts ...grpc.CallOption) (*UpscaleResponse, error) Describe(ctx context.Context, in *DescribeRequest, opts ...grpc.CallOption) (*DescribeResponse, error) Reroll(ctx context.Context, in *RerollRequest, opts ...grpc.CallOption) (*RerollResponse, error) Variation(ctx context.Context, in *VariationRequest, opts ...grpc.CallOption) (*VariationResponse, error) }
APIServiceClient is the client API for APIService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAPIServiceClient ¶
func NewAPIServiceClient(cc grpc.ClientConnInterface) APIServiceClient
type APIServiceServer ¶
type APIServiceServer interface { Imagine(context.Context, *ImagineRequest) (*ImagineResponse, error) Upscale(context.Context, *UpscaleRequest) (*UpscaleResponse, error) Describe(context.Context, *DescribeRequest) (*DescribeResponse, error) Reroll(context.Context, *RerollRequest) (*RerollResponse, error) Variation(context.Context, *VariationRequest) (*VariationResponse, error) // contains filtered or unexported methods }
APIServiceServer is the server API for APIService service. All implementations must embed UnimplementedAPIServiceServer for forward compatibility
type Codes ¶
type Codes int32
func (Codes) Descriptor ¶
func (Codes) Descriptor() protoreflect.EnumDescriptor
func (Codes) EnumDescriptor
deprecated
func (Codes) Number ¶
func (x Codes) Number() protoreflect.EnumNumber
func (Codes) Type ¶
func (Codes) Type() protoreflect.EnumType
type DescribeRequest ¶
type DescribeRequest struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` ImageUrl string `protobuf:"bytes,2,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"` MemberId string `protobuf:"bytes,3,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` // contains filtered or unexported fields }
func (*DescribeRequest) Descriptor
deprecated
func (*DescribeRequest) Descriptor() ([]byte, []int)
Deprecated: Use DescribeRequest.ProtoReflect.Descriptor instead.
func (*DescribeRequest) GetImageUrl ¶
func (x *DescribeRequest) GetImageUrl() string
func (*DescribeRequest) GetMemberId ¶ added in v0.0.4
func (x *DescribeRequest) GetMemberId() string
func (*DescribeRequest) GetRequestId ¶
func (x *DescribeRequest) GetRequestId() string
func (*DescribeRequest) ProtoMessage ¶
func (*DescribeRequest) ProtoMessage()
func (*DescribeRequest) ProtoReflect ¶
func (x *DescribeRequest) ProtoReflect() protoreflect.Message
func (*DescribeRequest) Reset ¶
func (x *DescribeRequest) Reset()
func (*DescribeRequest) String ¶
func (x *DescribeRequest) String() string
type DescribeResponse ¶
type DescribeResponse struct { 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 *DescribeResponseData `protobuf:"bytes,4,opt,name=data,proto3,oneof" json:"data,omitempty"` // contains filtered or unexported fields }
func (*DescribeResponse) Descriptor
deprecated
func (*DescribeResponse) Descriptor() ([]byte, []int)
Deprecated: Use DescribeResponse.ProtoReflect.Descriptor instead.
func (*DescribeResponse) GetCode ¶
func (x *DescribeResponse) GetCode() Codes
func (*DescribeResponse) GetData ¶
func (x *DescribeResponse) GetData() *DescribeResponseData
func (*DescribeResponse) GetMsg ¶
func (x *DescribeResponse) GetMsg() string
func (*DescribeResponse) GetRequestId ¶
func (x *DescribeResponse) GetRequestId() string
func (*DescribeResponse) ProtoMessage ¶
func (*DescribeResponse) ProtoMessage()
func (*DescribeResponse) ProtoReflect ¶
func (x *DescribeResponse) ProtoReflect() protoreflect.Message
func (*DescribeResponse) Reset ¶
func (x *DescribeResponse) Reset()
func (*DescribeResponse) String ¶
func (x *DescribeResponse) String() string
type DescribeResponseData ¶
type DescribeResponseData struct { Prompts []string `protobuf:"bytes,1,rep,name=prompts,proto3" json:"prompts,omitempty"` // contains filtered or unexported fields }
func (*DescribeResponseData) Descriptor
deprecated
func (*DescribeResponseData) Descriptor() ([]byte, []int)
Deprecated: Use DescribeResponseData.ProtoReflect.Descriptor instead.
func (*DescribeResponseData) GetPrompts ¶
func (x *DescribeResponseData) GetPrompts() []string
func (*DescribeResponseData) ProtoMessage ¶
func (*DescribeResponseData) ProtoMessage()
func (*DescribeResponseData) ProtoReflect ¶
func (x *DescribeResponseData) ProtoReflect() protoreflect.Message
func (*DescribeResponseData) Reset ¶
func (x *DescribeResponseData) Reset()
func (*DescribeResponseData) String ¶
func (x *DescribeResponseData) String() string
type ImagineRequest ¶
type ImagineRequest struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Prompt string `protobuf:"bytes,2,opt,name=prompt,proto3" json:"prompt,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"` // contains filtered or unexported fields }
func (*ImagineRequest) Descriptor
deprecated
func (*ImagineRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImagineRequest.ProtoReflect.Descriptor instead.
func (*ImagineRequest) GetMemberId ¶ added in v0.0.4
func (x *ImagineRequest) GetMemberId() string
func (*ImagineRequest) GetPrompt ¶
func (x *ImagineRequest) GetPrompt() string
func (*ImagineRequest) GetRequestId ¶
func (x *ImagineRequest) GetRequestId() string
func (*ImagineRequest) GetWebhook ¶
func (x *ImagineRequest) GetWebhook() string
func (*ImagineRequest) ProtoMessage ¶
func (*ImagineRequest) ProtoMessage()
func (*ImagineRequest) ProtoReflect ¶
func (x *ImagineRequest) ProtoReflect() protoreflect.Message
func (*ImagineRequest) Reset ¶
func (x *ImagineRequest) Reset()
func (*ImagineRequest) String ¶
func (x *ImagineRequest) String() string
type ImagineResponse ¶
type ImagineResponse struct { 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 *ImagineResponseData `protobuf:"bytes,4,opt,name=data,proto3,oneof" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ImagineResponse) Descriptor
deprecated
func (*ImagineResponse) Descriptor() ([]byte, []int)
Deprecated: Use ImagineResponse.ProtoReflect.Descriptor instead.
func (*ImagineResponse) GetCode ¶
func (x *ImagineResponse) GetCode() Codes
func (*ImagineResponse) GetData ¶
func (x *ImagineResponse) GetData() *ImagineResponseData
func (*ImagineResponse) GetMsg ¶
func (x *ImagineResponse) GetMsg() string
func (*ImagineResponse) GetRequestId ¶
func (x *ImagineResponse) GetRequestId() string
func (*ImagineResponse) ProtoMessage ¶
func (*ImagineResponse) ProtoMessage()
func (*ImagineResponse) ProtoReflect ¶
func (x *ImagineResponse) ProtoReflect() protoreflect.Message
func (*ImagineResponse) Reset ¶
func (x *ImagineResponse) Reset()
func (*ImagineResponse) String ¶
func (x *ImagineResponse) String() string
type ImagineResponseData ¶
type ImagineResponseData struct { 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"` // contains filtered or unexported fields }
func (*ImagineResponseData) Descriptor
deprecated
func (*ImagineResponseData) Descriptor() ([]byte, []int)
Deprecated: Use ImagineResponseData.ProtoReflect.Descriptor instead.
func (*ImagineResponseData) GetStartTime ¶
func (x *ImagineResponseData) GetStartTime() int64
func (*ImagineResponseData) GetTaskId ¶
func (x *ImagineResponseData) GetTaskId() string
func (*ImagineResponseData) ProtoMessage ¶
func (*ImagineResponseData) ProtoMessage()
func (*ImagineResponseData) ProtoReflect ¶
func (x *ImagineResponseData) ProtoReflect() protoreflect.Message
func (*ImagineResponseData) Reset ¶
func (x *ImagineResponseData) Reset()
func (*ImagineResponseData) String ¶
func (x *ImagineResponseData) String() string
type RerollRequest ¶
type RerollRequest struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` TaskId string `protobuf:"bytes,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` Webhook string `protobuf:"bytes,4,opt,name=webhook,proto3" json:"webhook,omitempty"` MemberId string `protobuf:"bytes,5,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` // contains filtered or unexported fields }
func (*RerollRequest) Descriptor
deprecated
func (*RerollRequest) Descriptor() ([]byte, []int)
Deprecated: Use RerollRequest.ProtoReflect.Descriptor instead.
func (*RerollRequest) GetIndex ¶
func (x *RerollRequest) GetIndex() int32
func (*RerollRequest) GetMemberId ¶ added in v0.0.4
func (x *RerollRequest) GetMemberId() string
func (*RerollRequest) GetRequestId ¶
func (x *RerollRequest) GetRequestId() string
func (*RerollRequest) GetTaskId ¶
func (x *RerollRequest) GetTaskId() string
func (*RerollRequest) GetWebhook ¶
func (x *RerollRequest) GetWebhook() string
func (*RerollRequest) ProtoMessage ¶
func (*RerollRequest) ProtoMessage()
func (*RerollRequest) ProtoReflect ¶
func (x *RerollRequest) ProtoReflect() protoreflect.Message
func (*RerollRequest) Reset ¶
func (x *RerollRequest) Reset()
func (*RerollRequest) String ¶
func (x *RerollRequest) String() string
type RerollResponse ¶
type RerollResponse struct { 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 *RerollResponseData `protobuf:"bytes,4,opt,name=data,proto3,oneof" json:"data,omitempty"` // contains filtered or unexported fields }
func (*RerollResponse) Descriptor
deprecated
func (*RerollResponse) Descriptor() ([]byte, []int)
Deprecated: Use RerollResponse.ProtoReflect.Descriptor instead.
func (*RerollResponse) GetCode ¶
func (x *RerollResponse) GetCode() Codes
func (*RerollResponse) GetData ¶
func (x *RerollResponse) GetData() *RerollResponseData
func (*RerollResponse) GetMsg ¶
func (x *RerollResponse) GetMsg() string
func (*RerollResponse) GetRequestId ¶
func (x *RerollResponse) GetRequestId() string
func (*RerollResponse) ProtoMessage ¶
func (*RerollResponse) ProtoMessage()
func (*RerollResponse) ProtoReflect ¶
func (x *RerollResponse) ProtoReflect() protoreflect.Message
func (*RerollResponse) Reset ¶
func (x *RerollResponse) Reset()
func (*RerollResponse) String ¶
func (x *RerollResponse) String() string
type RerollResponseData ¶
type RerollResponseData struct { 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"` // contains filtered or unexported fields }
func (*RerollResponseData) Descriptor
deprecated
func (*RerollResponseData) Descriptor() ([]byte, []int)
Deprecated: Use RerollResponseData.ProtoReflect.Descriptor instead.
func (*RerollResponseData) GetStartTime ¶
func (x *RerollResponseData) GetStartTime() int64
func (*RerollResponseData) GetTaskId ¶
func (x *RerollResponseData) GetTaskId() string
func (*RerollResponseData) ProtoMessage ¶
func (*RerollResponseData) ProtoMessage()
func (*RerollResponseData) ProtoReflect ¶
func (x *RerollResponseData) ProtoReflect() protoreflect.Message
func (*RerollResponseData) Reset ¶
func (x *RerollResponseData) Reset()
func (*RerollResponseData) String ¶
func (x *RerollResponseData) String() string
type UnimplementedAPIServiceServer ¶
type UnimplementedAPIServiceServer struct { }
UnimplementedAPIServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAPIServiceServer) Describe ¶
func (UnimplementedAPIServiceServer) Describe(context.Context, *DescribeRequest) (*DescribeResponse, error)
func (UnimplementedAPIServiceServer) Imagine ¶
func (UnimplementedAPIServiceServer) Imagine(context.Context, *ImagineRequest) (*ImagineResponse, error)
func (UnimplementedAPIServiceServer) Reroll ¶
func (UnimplementedAPIServiceServer) Reroll(context.Context, *RerollRequest) (*RerollResponse, error)
func (UnimplementedAPIServiceServer) Upscale ¶
func (UnimplementedAPIServiceServer) Upscale(context.Context, *UpscaleRequest) (*UpscaleResponse, error)
func (UnimplementedAPIServiceServer) Variation ¶
func (UnimplementedAPIServiceServer) Variation(context.Context, *VariationRequest) (*VariationResponse, error)
type UnsafeAPIServiceServer ¶
type UnsafeAPIServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAPIServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to APIServiceServer will result in compilation errors.
type UpscaleRequest ¶
type UpscaleRequest struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` TaskId string `protobuf:"bytes,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` Webhook string `protobuf:"bytes,4,opt,name=webhook,proto3" json:"webhook,omitempty"` MemberId string `protobuf:"bytes,5,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` // contains filtered or unexported fields }
func (*UpscaleRequest) Descriptor
deprecated
func (*UpscaleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpscaleRequest.ProtoReflect.Descriptor instead.
func (*UpscaleRequest) GetIndex ¶
func (x *UpscaleRequest) GetIndex() int32
func (*UpscaleRequest) GetMemberId ¶ added in v0.0.4
func (x *UpscaleRequest) GetMemberId() string
func (*UpscaleRequest) GetRequestId ¶
func (x *UpscaleRequest) GetRequestId() string
func (*UpscaleRequest) GetTaskId ¶
func (x *UpscaleRequest) GetTaskId() string
func (*UpscaleRequest) GetWebhook ¶
func (x *UpscaleRequest) GetWebhook() string
func (*UpscaleRequest) ProtoMessage ¶
func (*UpscaleRequest) ProtoMessage()
func (*UpscaleRequest) ProtoReflect ¶
func (x *UpscaleRequest) ProtoReflect() protoreflect.Message
func (*UpscaleRequest) Reset ¶
func (x *UpscaleRequest) Reset()
func (*UpscaleRequest) String ¶
func (x *UpscaleRequest) String() string
type UpscaleResponse ¶
type UpscaleResponse struct { 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 *UpscaleResponseData `protobuf:"bytes,4,opt,name=data,proto3,oneof" json:"data,omitempty"` // contains filtered or unexported fields }
func (*UpscaleResponse) Descriptor
deprecated
func (*UpscaleResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpscaleResponse.ProtoReflect.Descriptor instead.
func (*UpscaleResponse) GetCode ¶
func (x *UpscaleResponse) GetCode() Codes
func (*UpscaleResponse) GetData ¶
func (x *UpscaleResponse) GetData() *UpscaleResponseData
func (*UpscaleResponse) GetMsg ¶
func (x *UpscaleResponse) GetMsg() string
func (*UpscaleResponse) GetRequestId ¶
func (x *UpscaleResponse) GetRequestId() string
func (*UpscaleResponse) ProtoMessage ¶
func (*UpscaleResponse) ProtoMessage()
func (*UpscaleResponse) ProtoReflect ¶
func (x *UpscaleResponse) ProtoReflect() protoreflect.Message
func (*UpscaleResponse) Reset ¶
func (x *UpscaleResponse) Reset()
func (*UpscaleResponse) String ¶
func (x *UpscaleResponse) String() string
type UpscaleResponseData ¶
type UpscaleResponseData struct { 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"` // contains filtered or unexported fields }
func (*UpscaleResponseData) Descriptor
deprecated
func (*UpscaleResponseData) Descriptor() ([]byte, []int)
Deprecated: Use UpscaleResponseData.ProtoReflect.Descriptor instead.
func (*UpscaleResponseData) GetStartTime ¶
func (x *UpscaleResponseData) GetStartTime() int64
func (*UpscaleResponseData) GetTaskId ¶
func (x *UpscaleResponseData) GetTaskId() string
func (*UpscaleResponseData) ProtoMessage ¶
func (*UpscaleResponseData) ProtoMessage()
func (*UpscaleResponseData) ProtoReflect ¶
func (x *UpscaleResponseData) ProtoReflect() protoreflect.Message
func (*UpscaleResponseData) Reset ¶
func (x *UpscaleResponseData) Reset()
func (*UpscaleResponseData) String ¶
func (x *UpscaleResponseData) String() string
type VariationRequest ¶
type VariationRequest struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` TaskId string `protobuf:"bytes,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` Webhook string `protobuf:"bytes,4,opt,name=webhook,proto3" json:"webhook,omitempty"` MemberId string `protobuf:"bytes,5,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` // contains filtered or unexported fields }
func (*VariationRequest) Descriptor
deprecated
func (*VariationRequest) Descriptor() ([]byte, []int)
Deprecated: Use VariationRequest.ProtoReflect.Descriptor instead.
func (*VariationRequest) GetIndex ¶
func (x *VariationRequest) GetIndex() int32
func (*VariationRequest) GetMemberId ¶ added in v0.0.4
func (x *VariationRequest) GetMemberId() string
func (*VariationRequest) GetRequestId ¶
func (x *VariationRequest) GetRequestId() string
func (*VariationRequest) GetTaskId ¶
func (x *VariationRequest) GetTaskId() string
func (*VariationRequest) GetWebhook ¶
func (x *VariationRequest) GetWebhook() string
func (*VariationRequest) ProtoMessage ¶
func (*VariationRequest) ProtoMessage()
func (*VariationRequest) ProtoReflect ¶
func (x *VariationRequest) ProtoReflect() protoreflect.Message
func (*VariationRequest) Reset ¶
func (x *VariationRequest) Reset()
func (*VariationRequest) String ¶
func (x *VariationRequest) String() string
type VariationResponse ¶
type VariationResponse struct { 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 *VariationResponseData `protobuf:"bytes,4,opt,name=data,proto3,oneof" json:"data,omitempty"` // contains filtered or unexported fields }
func (*VariationResponse) Descriptor
deprecated
func (*VariationResponse) Descriptor() ([]byte, []int)
Deprecated: Use VariationResponse.ProtoReflect.Descriptor instead.
func (*VariationResponse) GetCode ¶
func (x *VariationResponse) GetCode() Codes
func (*VariationResponse) GetData ¶
func (x *VariationResponse) GetData() *VariationResponseData
func (*VariationResponse) GetMsg ¶
func (x *VariationResponse) GetMsg() string
func (*VariationResponse) GetRequestId ¶
func (x *VariationResponse) GetRequestId() string
func (*VariationResponse) ProtoMessage ¶
func (*VariationResponse) ProtoMessage()
func (*VariationResponse) ProtoReflect ¶
func (x *VariationResponse) ProtoReflect() protoreflect.Message
func (*VariationResponse) Reset ¶
func (x *VariationResponse) Reset()
func (*VariationResponse) String ¶
func (x *VariationResponse) String() string
type VariationResponseData ¶
type VariationResponseData struct { 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"` // contains filtered or unexported fields }
func (*VariationResponseData) Descriptor
deprecated
func (*VariationResponseData) Descriptor() ([]byte, []int)
Deprecated: Use VariationResponseData.ProtoReflect.Descriptor instead.
func (*VariationResponseData) GetStartTime ¶
func (x *VariationResponseData) GetStartTime() int64
func (*VariationResponseData) GetTaskId ¶
func (x *VariationResponseData) GetTaskId() string
func (*VariationResponseData) ProtoMessage ¶
func (*VariationResponseData) ProtoMessage()
func (*VariationResponseData) ProtoReflect ¶
func (x *VariationResponseData) ProtoReflect() protoreflect.Message
func (*VariationResponseData) Reset ¶
func (x *VariationResponseData) Reset()
func (*VariationResponseData) String ¶
func (x *VariationResponseData) String() string