Documentation ¶
Index ¶
- Variables
- func RegisterAIServiceServer(s grpc.ServiceRegistrar, srv AIServiceServer)
- type AIServiceClient
- type AIServiceServer
- type GenerateAudioRequest
- func (*GenerateAudioRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateAudioRequest) GetPreset() GenerateAudioRequest_Preset
- func (x *GenerateAudioRequest) GetPrompt() string
- func (*GenerateAudioRequest) ProtoMessage()
- func (x *GenerateAudioRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateAudioRequest) Reset()
- func (x *GenerateAudioRequest) String() string
- type GenerateAudioRequest_Preset
- func (GenerateAudioRequest_Preset) Descriptor() protoreflect.EnumDescriptor
- func (x GenerateAudioRequest_Preset) Enum() *GenerateAudioRequest_Preset
- func (GenerateAudioRequest_Preset) EnumDescriptor() ([]byte, []int)deprecated
- func (x GenerateAudioRequest_Preset) Number() protoreflect.EnumNumber
- func (x GenerateAudioRequest_Preset) String() string
- func (GenerateAudioRequest_Preset) Type() protoreflect.EnumType
- type GenerateAudioResponse
- func (*GenerateAudioResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateAudioResponse) GetAudioId() string
- func (x *GenerateAudioResponse) GetAudioUrl() string
- func (*GenerateAudioResponse) ProtoMessage()
- func (x *GenerateAudioResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateAudioResponse) Reset()
- func (x *GenerateAudioResponse) String() string
- type GenerateImageRequest
- func (*GenerateImageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateImageRequest) GetPreset() GenerateImageRequest_Preset
- func (x *GenerateImageRequest) GetPrompt() string
- func (*GenerateImageRequest) ProtoMessage()
- func (x *GenerateImageRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateImageRequest) Reset()
- func (x *GenerateImageRequest) String() string
- type GenerateImageRequest_Preset
- func (GenerateImageRequest_Preset) Descriptor() protoreflect.EnumDescriptor
- func (x GenerateImageRequest_Preset) Enum() *GenerateImageRequest_Preset
- func (GenerateImageRequest_Preset) EnumDescriptor() ([]byte, []int)deprecated
- func (x GenerateImageRequest_Preset) Number() protoreflect.EnumNumber
- func (x GenerateImageRequest_Preset) String() string
- func (GenerateImageRequest_Preset) Type() protoreflect.EnumType
- type GenerateImageResponse
- func (*GenerateImageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateImageResponse) GetImageId() string
- func (x *GenerateImageResponse) GetImageUrl() string
- func (*GenerateImageResponse) ProtoMessage()
- func (x *GenerateImageResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateImageResponse) Reset()
- func (x *GenerateImageResponse) String() string
- type GenerateVoiceRequest
- func (*GenerateVoiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateVoiceRequest) GetGender() VoiceModel_Gender
- func (m *GenerateVoiceRequest) GetGenderOption() isGenerateVoiceRequest_GenderOption
- func (x *GenerateVoiceRequest) GetLanguageCode() string
- func (x *GenerateVoiceRequest) GetModelName() string
- func (x *GenerateVoiceRequest) GetText() string
- func (*GenerateVoiceRequest) ProtoMessage()
- func (x *GenerateVoiceRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateVoiceRequest) Reset()
- func (x *GenerateVoiceRequest) String() string
- type GenerateVoiceRequest_Gender
- type GenerateVoiceRequest_ModelName
- type GenerateVoiceResponse
- func (*GenerateVoiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateVoiceResponse) GetVoiceId() string
- func (x *GenerateVoiceResponse) GetVoiceUrl() string
- func (*GenerateVoiceResponse) ProtoMessage()
- func (x *GenerateVoiceResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateVoiceResponse) Reset()
- func (x *GenerateVoiceResponse) String() string
- type GetVoiceLanguagesRequest
- type GetVoiceLanguagesResponse
- func (*GetVoiceLanguagesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetVoiceLanguagesResponse) GetLanguageCodes() []string
- func (*GetVoiceLanguagesResponse) ProtoMessage()
- func (x *GetVoiceLanguagesResponse) ProtoReflect() protoreflect.Message
- func (x *GetVoiceLanguagesResponse) Reset()
- func (x *GetVoiceLanguagesResponse) String() string
- type GetVoiceModelsRequest
- func (*GetVoiceModelsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetVoiceModelsRequest) GetLanguageCode() string
- func (*GetVoiceModelsRequest) ProtoMessage()
- func (x *GetVoiceModelsRequest) ProtoReflect() protoreflect.Message
- func (x *GetVoiceModelsRequest) Reset()
- func (x *GetVoiceModelsRequest) String() string
- type GetVoiceModelsResponse
- func (*GetVoiceModelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetVoiceModelsResponse) GetModels() []*VoiceModel
- func (*GetVoiceModelsResponse) ProtoMessage()
- func (x *GetVoiceModelsResponse) ProtoReflect() protoreflect.Message
- func (x *GetVoiceModelsResponse) Reset()
- func (x *GetVoiceModelsResponse) String() string
- type UnimplementedAIServiceServer
- func (UnimplementedAIServiceServer) GenerateAudio(context.Context, *GenerateAudioRequest) (*GenerateAudioResponse, error)
- func (UnimplementedAIServiceServer) GenerateImage(context.Context, *GenerateImageRequest) (*GenerateImageResponse, error)
- func (UnimplementedAIServiceServer) GenerateVoice(context.Context, *GenerateVoiceRequest) (*GenerateVoiceResponse, error)
- func (UnimplementedAIServiceServer) GetVoiceLanguages(context.Context, *GetVoiceLanguagesRequest) (*GetVoiceLanguagesResponse, error)
- func (UnimplementedAIServiceServer) GetVoiceModels(context.Context, *GetVoiceModelsRequest) (*GetVoiceModelsResponse, error)
- type UnsafeAIServiceServer
- type VoiceModel
- func (*VoiceModel) Descriptor() ([]byte, []int)deprecated
- func (x *VoiceModel) GetGender() VoiceModel_Gender
- func (x *VoiceModel) GetName() string
- func (*VoiceModel) ProtoMessage()
- func (x *VoiceModel) ProtoReflect() protoreflect.Message
- func (x *VoiceModel) Reset()
- func (x *VoiceModel) String() string
- type VoiceModel_Gender
- func (VoiceModel_Gender) Descriptor() protoreflect.EnumDescriptor
- func (x VoiceModel_Gender) Enum() *VoiceModel_Gender
- func (VoiceModel_Gender) EnumDescriptor() ([]byte, []int)deprecated
- func (x VoiceModel_Gender) Number() protoreflect.EnumNumber
- func (x VoiceModel_Gender) String() string
- func (VoiceModel_Gender) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( GenerateImageRequest_Preset_name = map[int32]string{ 0: "PRESET_UNSPECIFIED", } GenerateImageRequest_Preset_value = map[string]int32{ "PRESET_UNSPECIFIED": 0, } )
Enum value maps for GenerateImageRequest_Preset.
var ( GenerateAudioRequest_Preset_name = map[int32]string{ 0: "PRESET_UNSPECIFIED", 1: "PRESET_MUSIC", } GenerateAudioRequest_Preset_value = map[string]int32{ "PRESET_UNSPECIFIED": 0, "PRESET_MUSIC": 1, } )
Enum value maps for GenerateAudioRequest_Preset.
var ( VoiceModel_Gender_name = map[int32]string{ 0: "GENDER_UNSPECIFIED", 1: "GENDER_MALE", 2: "GENDER_FEMALE", 3: "GENDER_NEUTRAL", } VoiceModel_Gender_value = map[string]int32{ "GENDER_UNSPECIFIED": 0, "GENDER_MALE": 1, "GENDER_FEMALE": 2, "GENDER_NEUTRAL": 3, } )
Enum value maps for VoiceModel_Gender.
var AIService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "basket.ai_service.v1.AIService", HandlerType: (*AIServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GenerateImage", Handler: _AIService_GenerateImage_Handler, }, { MethodName: "GenerateAudio", Handler: _AIService_GenerateAudio_Handler, }, { MethodName: "GetVoiceLanguages", Handler: _AIService_GetVoiceLanguages_Handler, }, { MethodName: "GetVoiceModels", Handler: _AIService_GetVoiceModels_Handler, }, { MethodName: "GenerateVoice", Handler: _AIService_GenerateVoice_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "basket/ai-service/v1/ai.proto", }
AIService_ServiceDesc is the grpc.ServiceDesc for AIService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_basket_ai_service_v1_ai_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAIServiceServer ¶
func RegisterAIServiceServer(s grpc.ServiceRegistrar, srv AIServiceServer)
Types ¶
type AIServiceClient ¶
type AIServiceClient interface { GenerateImage(ctx context.Context, in *GenerateImageRequest, opts ...grpc.CallOption) (*GenerateImageResponse, error) GenerateAudio(ctx context.Context, in *GenerateAudioRequest, opts ...grpc.CallOption) (*GenerateAudioResponse, error) GetVoiceLanguages(ctx context.Context, in *GetVoiceLanguagesRequest, opts ...grpc.CallOption) (*GetVoiceLanguagesResponse, error) GetVoiceModels(ctx context.Context, in *GetVoiceModelsRequest, opts ...grpc.CallOption) (*GetVoiceModelsResponse, error) GenerateVoice(ctx context.Context, in *GenerateVoiceRequest, opts ...grpc.CallOption) (*GenerateVoiceResponse, error) }
AIServiceClient is the client API for AIService 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 NewAIServiceClient ¶
func NewAIServiceClient(cc grpc.ClientConnInterface) AIServiceClient
type AIServiceServer ¶
type AIServiceServer interface { GenerateImage(context.Context, *GenerateImageRequest) (*GenerateImageResponse, error) GenerateAudio(context.Context, *GenerateAudioRequest) (*GenerateAudioResponse, error) GetVoiceLanguages(context.Context, *GetVoiceLanguagesRequest) (*GetVoiceLanguagesResponse, error) GetVoiceModels(context.Context, *GetVoiceModelsRequest) (*GetVoiceModelsResponse, error) GenerateVoice(context.Context, *GenerateVoiceRequest) (*GenerateVoiceResponse, error) // contains filtered or unexported methods }
AIServiceServer is the server API for AIService service. All implementations must embed UnimplementedAIServiceServer for forward compatibility
type GenerateAudioRequest ¶
type GenerateAudioRequest struct { Preset GenerateAudioRequest_Preset `protobuf:"varint,1,opt,name=preset,proto3,enum=basket.ai_service.v1.GenerateAudioRequest_Preset" json:"preset,omitempty"` Prompt string `protobuf:"bytes,2,opt,name=prompt,proto3" json:"prompt,omitempty"` // contains filtered or unexported fields }
func (*GenerateAudioRequest) Descriptor
deprecated
func (*GenerateAudioRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateAudioRequest.ProtoReflect.Descriptor instead.
func (*GenerateAudioRequest) GetPreset ¶
func (x *GenerateAudioRequest) GetPreset() GenerateAudioRequest_Preset
func (*GenerateAudioRequest) GetPrompt ¶
func (x *GenerateAudioRequest) GetPrompt() string
func (*GenerateAudioRequest) ProtoMessage ¶
func (*GenerateAudioRequest) ProtoMessage()
func (*GenerateAudioRequest) ProtoReflect ¶
func (x *GenerateAudioRequest) ProtoReflect() protoreflect.Message
func (*GenerateAudioRequest) Reset ¶
func (x *GenerateAudioRequest) Reset()
func (*GenerateAudioRequest) String ¶
func (x *GenerateAudioRequest) String() string
type GenerateAudioRequest_Preset ¶
type GenerateAudioRequest_Preset int32
const ( GenerateAudioRequest_PRESET_UNSPECIFIED GenerateAudioRequest_Preset = 0 GenerateAudioRequest_PRESET_MUSIC GenerateAudioRequest_Preset = 1 )
func (GenerateAudioRequest_Preset) Descriptor ¶
func (GenerateAudioRequest_Preset) Descriptor() protoreflect.EnumDescriptor
func (GenerateAudioRequest_Preset) Enum ¶
func (x GenerateAudioRequest_Preset) Enum() *GenerateAudioRequest_Preset
func (GenerateAudioRequest_Preset) EnumDescriptor
deprecated
func (GenerateAudioRequest_Preset) EnumDescriptor() ([]byte, []int)
Deprecated: Use GenerateAudioRequest_Preset.Descriptor instead.
func (GenerateAudioRequest_Preset) Number ¶
func (x GenerateAudioRequest_Preset) Number() protoreflect.EnumNumber
func (GenerateAudioRequest_Preset) String ¶
func (x GenerateAudioRequest_Preset) String() string
func (GenerateAudioRequest_Preset) Type ¶
func (GenerateAudioRequest_Preset) Type() protoreflect.EnumType
type GenerateAudioResponse ¶
type GenerateAudioResponse struct { AudioId string `protobuf:"bytes,1,opt,name=audio_id,json=audioId,proto3" json:"audio_id,omitempty"` AudioUrl string `protobuf:"bytes,2,opt,name=audio_url,json=audioUrl,proto3" json:"audio_url,omitempty"` // contains filtered or unexported fields }
func (*GenerateAudioResponse) Descriptor
deprecated
func (*GenerateAudioResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateAudioResponse.ProtoReflect.Descriptor instead.
func (*GenerateAudioResponse) GetAudioId ¶
func (x *GenerateAudioResponse) GetAudioId() string
func (*GenerateAudioResponse) GetAudioUrl ¶
func (x *GenerateAudioResponse) GetAudioUrl() string
func (*GenerateAudioResponse) ProtoMessage ¶
func (*GenerateAudioResponse) ProtoMessage()
func (*GenerateAudioResponse) ProtoReflect ¶
func (x *GenerateAudioResponse) ProtoReflect() protoreflect.Message
func (*GenerateAudioResponse) Reset ¶
func (x *GenerateAudioResponse) Reset()
func (*GenerateAudioResponse) String ¶
func (x *GenerateAudioResponse) String() string
type GenerateImageRequest ¶
type GenerateImageRequest struct { Preset GenerateImageRequest_Preset `protobuf:"varint,1,opt,name=preset,proto3,enum=basket.ai_service.v1.GenerateImageRequest_Preset" json:"preset,omitempty"` Prompt string `protobuf:"bytes,2,opt,name=prompt,proto3" json:"prompt,omitempty"` // contains filtered or unexported fields }
func (*GenerateImageRequest) Descriptor
deprecated
func (*GenerateImageRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateImageRequest.ProtoReflect.Descriptor instead.
func (*GenerateImageRequest) GetPreset ¶
func (x *GenerateImageRequest) GetPreset() GenerateImageRequest_Preset
func (*GenerateImageRequest) GetPrompt ¶
func (x *GenerateImageRequest) GetPrompt() string
func (*GenerateImageRequest) ProtoMessage ¶
func (*GenerateImageRequest) ProtoMessage()
func (*GenerateImageRequest) ProtoReflect ¶
func (x *GenerateImageRequest) ProtoReflect() protoreflect.Message
func (*GenerateImageRequest) Reset ¶
func (x *GenerateImageRequest) Reset()
func (*GenerateImageRequest) String ¶
func (x *GenerateImageRequest) String() string
type GenerateImageRequest_Preset ¶
type GenerateImageRequest_Preset int32
const (
GenerateImageRequest_PRESET_UNSPECIFIED GenerateImageRequest_Preset = 0
)
func (GenerateImageRequest_Preset) Descriptor ¶
func (GenerateImageRequest_Preset) Descriptor() protoreflect.EnumDescriptor
func (GenerateImageRequest_Preset) Enum ¶
func (x GenerateImageRequest_Preset) Enum() *GenerateImageRequest_Preset
func (GenerateImageRequest_Preset) EnumDescriptor
deprecated
func (GenerateImageRequest_Preset) EnumDescriptor() ([]byte, []int)
Deprecated: Use GenerateImageRequest_Preset.Descriptor instead.
func (GenerateImageRequest_Preset) Number ¶
func (x GenerateImageRequest_Preset) Number() protoreflect.EnumNumber
func (GenerateImageRequest_Preset) String ¶
func (x GenerateImageRequest_Preset) String() string
func (GenerateImageRequest_Preset) Type ¶
func (GenerateImageRequest_Preset) Type() protoreflect.EnumType
type GenerateImageResponse ¶
type GenerateImageResponse struct { ImageId string `protobuf:"bytes,1,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"` ImageUrl string `protobuf:"bytes,2,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"` // contains filtered or unexported fields }
func (*GenerateImageResponse) Descriptor
deprecated
func (*GenerateImageResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateImageResponse.ProtoReflect.Descriptor instead.
func (*GenerateImageResponse) GetImageId ¶
func (x *GenerateImageResponse) GetImageId() string
func (*GenerateImageResponse) GetImageUrl ¶
func (x *GenerateImageResponse) GetImageUrl() string
func (*GenerateImageResponse) ProtoMessage ¶
func (*GenerateImageResponse) ProtoMessage()
func (*GenerateImageResponse) ProtoReflect ¶
func (x *GenerateImageResponse) ProtoReflect() protoreflect.Message
func (*GenerateImageResponse) Reset ¶
func (x *GenerateImageResponse) Reset()
func (*GenerateImageResponse) String ¶
func (x *GenerateImageResponse) String() string
type GenerateVoiceRequest ¶ added in v0.2.161
type GenerateVoiceRequest struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // Types that are assignable to GenderOption: // // *GenerateVoiceRequest_Gender // *GenerateVoiceRequest_ModelName GenderOption isGenerateVoiceRequest_GenderOption `protobuf_oneof:"gender_option"` // contains filtered or unexported fields }
func (*GenerateVoiceRequest) Descriptor
deprecated
added in
v0.2.161
func (*GenerateVoiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateVoiceRequest.ProtoReflect.Descriptor instead.
func (*GenerateVoiceRequest) GetGender ¶ added in v0.2.161
func (x *GenerateVoiceRequest) GetGender() VoiceModel_Gender
func (*GenerateVoiceRequest) GetGenderOption ¶ added in v0.2.161
func (m *GenerateVoiceRequest) GetGenderOption() isGenerateVoiceRequest_GenderOption
func (*GenerateVoiceRequest) GetLanguageCode ¶ added in v0.2.161
func (x *GenerateVoiceRequest) GetLanguageCode() string
func (*GenerateVoiceRequest) GetModelName ¶ added in v0.2.161
func (x *GenerateVoiceRequest) GetModelName() string
func (*GenerateVoiceRequest) GetText ¶ added in v0.2.161
func (x *GenerateVoiceRequest) GetText() string
func (*GenerateVoiceRequest) ProtoMessage ¶ added in v0.2.161
func (*GenerateVoiceRequest) ProtoMessage()
func (*GenerateVoiceRequest) ProtoReflect ¶ added in v0.2.161
func (x *GenerateVoiceRequest) ProtoReflect() protoreflect.Message
func (*GenerateVoiceRequest) Reset ¶ added in v0.2.161
func (x *GenerateVoiceRequest) Reset()
func (*GenerateVoiceRequest) String ¶ added in v0.2.161
func (x *GenerateVoiceRequest) String() string
type GenerateVoiceRequest_Gender ¶ added in v0.2.161
type GenerateVoiceRequest_Gender struct {
Gender VoiceModel_Gender `protobuf:"varint,3,opt,name=gender,proto3,enum=basket.ai_service.v1.VoiceModel_Gender,oneof"`
}
type GenerateVoiceRequest_ModelName ¶ added in v0.2.161
type GenerateVoiceRequest_ModelName struct {
ModelName string `protobuf:"bytes,4,opt,name=model_name,json=modelName,proto3,oneof"`
}
type GenerateVoiceResponse ¶ added in v0.2.161
type GenerateVoiceResponse struct { VoiceId string `protobuf:"bytes,1,opt,name=voice_id,json=voiceId,proto3" json:"voice_id,omitempty"` VoiceUrl string `protobuf:"bytes,2,opt,name=voice_url,json=voiceUrl,proto3" json:"voice_url,omitempty"` // contains filtered or unexported fields }
func (*GenerateVoiceResponse) Descriptor
deprecated
added in
v0.2.161
func (*GenerateVoiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateVoiceResponse.ProtoReflect.Descriptor instead.
func (*GenerateVoiceResponse) GetVoiceId ¶ added in v0.2.161
func (x *GenerateVoiceResponse) GetVoiceId() string
func (*GenerateVoiceResponse) GetVoiceUrl ¶ added in v0.2.161
func (x *GenerateVoiceResponse) GetVoiceUrl() string
func (*GenerateVoiceResponse) ProtoMessage ¶ added in v0.2.161
func (*GenerateVoiceResponse) ProtoMessage()
func (*GenerateVoiceResponse) ProtoReflect ¶ added in v0.2.161
func (x *GenerateVoiceResponse) ProtoReflect() protoreflect.Message
func (*GenerateVoiceResponse) Reset ¶ added in v0.2.161
func (x *GenerateVoiceResponse) Reset()
func (*GenerateVoiceResponse) String ¶ added in v0.2.161
func (x *GenerateVoiceResponse) String() string
type GetVoiceLanguagesRequest ¶ added in v0.2.161
type GetVoiceLanguagesRequest struct {
// contains filtered or unexported fields
}
func (*GetVoiceLanguagesRequest) Descriptor
deprecated
added in
v0.2.161
func (*GetVoiceLanguagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetVoiceLanguagesRequest.ProtoReflect.Descriptor instead.
func (*GetVoiceLanguagesRequest) ProtoMessage ¶ added in v0.2.161
func (*GetVoiceLanguagesRequest) ProtoMessage()
func (*GetVoiceLanguagesRequest) ProtoReflect ¶ added in v0.2.161
func (x *GetVoiceLanguagesRequest) ProtoReflect() protoreflect.Message
func (*GetVoiceLanguagesRequest) Reset ¶ added in v0.2.161
func (x *GetVoiceLanguagesRequest) Reset()
func (*GetVoiceLanguagesRequest) String ¶ added in v0.2.161
func (x *GetVoiceLanguagesRequest) String() string
type GetVoiceLanguagesResponse ¶ added in v0.2.161
type GetVoiceLanguagesResponse struct { LanguageCodes []string `protobuf:"bytes,1,rep,name=language_codes,json=languageCodes,proto3" json:"language_codes,omitempty"` // contains filtered or unexported fields }
func (*GetVoiceLanguagesResponse) Descriptor
deprecated
added in
v0.2.161
func (*GetVoiceLanguagesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetVoiceLanguagesResponse.ProtoReflect.Descriptor instead.
func (*GetVoiceLanguagesResponse) GetLanguageCodes ¶ added in v0.2.161
func (x *GetVoiceLanguagesResponse) GetLanguageCodes() []string
func (*GetVoiceLanguagesResponse) ProtoMessage ¶ added in v0.2.161
func (*GetVoiceLanguagesResponse) ProtoMessage()
func (*GetVoiceLanguagesResponse) ProtoReflect ¶ added in v0.2.161
func (x *GetVoiceLanguagesResponse) ProtoReflect() protoreflect.Message
func (*GetVoiceLanguagesResponse) Reset ¶ added in v0.2.161
func (x *GetVoiceLanguagesResponse) Reset()
func (*GetVoiceLanguagesResponse) String ¶ added in v0.2.161
func (x *GetVoiceLanguagesResponse) String() string
type GetVoiceModelsRequest ¶ added in v0.2.161
type GetVoiceModelsRequest struct { LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // contains filtered or unexported fields }
func (*GetVoiceModelsRequest) Descriptor
deprecated
added in
v0.2.161
func (*GetVoiceModelsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetVoiceModelsRequest.ProtoReflect.Descriptor instead.
func (*GetVoiceModelsRequest) GetLanguageCode ¶ added in v0.2.161
func (x *GetVoiceModelsRequest) GetLanguageCode() string
func (*GetVoiceModelsRequest) ProtoMessage ¶ added in v0.2.161
func (*GetVoiceModelsRequest) ProtoMessage()
func (*GetVoiceModelsRequest) ProtoReflect ¶ added in v0.2.161
func (x *GetVoiceModelsRequest) ProtoReflect() protoreflect.Message
func (*GetVoiceModelsRequest) Reset ¶ added in v0.2.161
func (x *GetVoiceModelsRequest) Reset()
func (*GetVoiceModelsRequest) String ¶ added in v0.2.161
func (x *GetVoiceModelsRequest) String() string
type GetVoiceModelsResponse ¶ added in v0.2.161
type GetVoiceModelsResponse struct { Models []*VoiceModel `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"` // contains filtered or unexported fields }
func (*GetVoiceModelsResponse) Descriptor
deprecated
added in
v0.2.161
func (*GetVoiceModelsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetVoiceModelsResponse.ProtoReflect.Descriptor instead.
func (*GetVoiceModelsResponse) GetModels ¶ added in v0.2.161
func (x *GetVoiceModelsResponse) GetModels() []*VoiceModel
func (*GetVoiceModelsResponse) ProtoMessage ¶ added in v0.2.161
func (*GetVoiceModelsResponse) ProtoMessage()
func (*GetVoiceModelsResponse) ProtoReflect ¶ added in v0.2.161
func (x *GetVoiceModelsResponse) ProtoReflect() protoreflect.Message
func (*GetVoiceModelsResponse) Reset ¶ added in v0.2.161
func (x *GetVoiceModelsResponse) Reset()
func (*GetVoiceModelsResponse) String ¶ added in v0.2.161
func (x *GetVoiceModelsResponse) String() string
type UnimplementedAIServiceServer ¶
type UnimplementedAIServiceServer struct { }
UnimplementedAIServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAIServiceServer) GenerateAudio ¶
func (UnimplementedAIServiceServer) GenerateAudio(context.Context, *GenerateAudioRequest) (*GenerateAudioResponse, error)
func (UnimplementedAIServiceServer) GenerateImage ¶
func (UnimplementedAIServiceServer) GenerateImage(context.Context, *GenerateImageRequest) (*GenerateImageResponse, error)
func (UnimplementedAIServiceServer) GenerateVoice ¶ added in v0.2.161
func (UnimplementedAIServiceServer) GenerateVoice(context.Context, *GenerateVoiceRequest) (*GenerateVoiceResponse, error)
func (UnimplementedAIServiceServer) GetVoiceLanguages ¶ added in v0.2.161
func (UnimplementedAIServiceServer) GetVoiceLanguages(context.Context, *GetVoiceLanguagesRequest) (*GetVoiceLanguagesResponse, error)
func (UnimplementedAIServiceServer) GetVoiceModels ¶ added in v0.2.161
func (UnimplementedAIServiceServer) GetVoiceModels(context.Context, *GetVoiceModelsRequest) (*GetVoiceModelsResponse, error)
type UnsafeAIServiceServer ¶
type UnsafeAIServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAIServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AIServiceServer will result in compilation errors.
type VoiceModel ¶ added in v0.2.161
type VoiceModel struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Gender VoiceModel_Gender `protobuf:"varint,2,opt,name=gender,proto3,enum=basket.ai_service.v1.VoiceModel_Gender" json:"gender,omitempty"` // contains filtered or unexported fields }
func (*VoiceModel) Descriptor
deprecated
added in
v0.2.161
func (*VoiceModel) Descriptor() ([]byte, []int)
Deprecated: Use VoiceModel.ProtoReflect.Descriptor instead.
func (*VoiceModel) GetGender ¶ added in v0.2.161
func (x *VoiceModel) GetGender() VoiceModel_Gender
func (*VoiceModel) GetName ¶ added in v0.2.161
func (x *VoiceModel) GetName() string
func (*VoiceModel) ProtoMessage ¶ added in v0.2.161
func (*VoiceModel) ProtoMessage()
func (*VoiceModel) ProtoReflect ¶ added in v0.2.161
func (x *VoiceModel) ProtoReflect() protoreflect.Message
func (*VoiceModel) Reset ¶ added in v0.2.161
func (x *VoiceModel) Reset()
func (*VoiceModel) String ¶ added in v0.2.161
func (x *VoiceModel) String() string
type VoiceModel_Gender ¶ added in v0.2.161
type VoiceModel_Gender int32
const ( VoiceModel_GENDER_UNSPECIFIED VoiceModel_Gender = 0 VoiceModel_GENDER_MALE VoiceModel_Gender = 1 VoiceModel_GENDER_FEMALE VoiceModel_Gender = 2 VoiceModel_GENDER_NEUTRAL VoiceModel_Gender = 3 )
func (VoiceModel_Gender) Descriptor ¶ added in v0.2.161
func (VoiceModel_Gender) Descriptor() protoreflect.EnumDescriptor
func (VoiceModel_Gender) Enum ¶ added in v0.2.161
func (x VoiceModel_Gender) Enum() *VoiceModel_Gender
func (VoiceModel_Gender) EnumDescriptor
deprecated
added in
v0.2.161
func (VoiceModel_Gender) EnumDescriptor() ([]byte, []int)
Deprecated: Use VoiceModel_Gender.Descriptor instead.
func (VoiceModel_Gender) Number ¶ added in v0.2.161
func (x VoiceModel_Gender) Number() protoreflect.EnumNumber
func (VoiceModel_Gender) String ¶ added in v0.2.161
func (x VoiceModel_Gender) String() string
func (VoiceModel_Gender) Type ¶ added in v0.2.161
func (VoiceModel_Gender) Type() protoreflect.EnumType