api

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2023 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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.

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

View Source
var File_common_proto protoreflect.FileDescriptor
View Source
var File_describe_proto protoreflect.FileDescriptor
View Source
var File_imagine_proto protoreflect.FileDescriptor
View Source
var File_reroll_proto protoreflect.FileDescriptor
View Source
var File_upscale_proto protoreflect.FileDescriptor
View Source
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
const (
	Codes_CODES_SUCCESS                 Codes = 0
	Codes_CODES_SERVER_INTERNAL_ERROR   Codes = 1
	Codes_CODES_INVALID_PARAMETER_ERROR Codes = 2
	Codes_CODES_CONCURRENCY_LIMITED     Codes = 3
	Codes_CODES_PROCESSING_TIMEOUT      Codes = 4
)

func (Codes) Descriptor

func (Codes) Descriptor() protoreflect.EnumDescriptor

func (Codes) Enum

func (x Codes) Enum() *Codes

func (Codes) EnumDescriptor deprecated

func (Codes) EnumDescriptor() ([]byte, []int)

Deprecated: Use Codes.Descriptor instead.

func (Codes) Number

func (x Codes) Number() protoreflect.EnumNumber

func (Codes) String

func (x Codes) String() string

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

func (UnimplementedAPIServiceServer) Reroll

func (UnimplementedAPIServiceServer) Upscale

func (UnimplementedAPIServiceServer) Variation

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL