-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtranslated_story.go
More file actions
52 lines (43 loc) · 1.4 KB
/
translated_story.go
File metadata and controls
52 lines (43 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// This file was auto-generated by Fern from our API Definition.
package cambai
import (
json "encoding/json"
fmt "fmt"
core "github.com/camb-ai/cambai-go-sdk/core"
)
type CreateTranslationForExistingStoryRequestPayload struct {
TargetLanguage Languages `json:"target_language" url:"target_language"`
}
type GetTranslatedStoryRunInfoTranslatedStoryResultRunIDTargetLanguageGetRequest struct {
// Whether to include the transcription in the response for fetching the result of a Stories Translation run.
IncludeTranscript *bool `json:"-" url:"include_transcript,omitempty"`
}
type GetTranslatedStoryStatusTranslatedStoryTaskIDGetRequest struct {
RunID *int `json:"-" url:"run_id,omitempty"`
}
type AddTargetLanguageOut struct {
Message string `json:"message" url:"message"`
TaskID *string `json:"task_id,omitempty" url:"task_id,omitempty"`
_rawJSON json.RawMessage
}
func (a *AddTargetLanguageOut) UnmarshalJSON(data []byte) error {
type unmarshaler AddTargetLanguageOut
var value unmarshaler
if err := json.Unmarshal(data, &value); err != nil {
return err
}
*a = AddTargetLanguageOut(value)
a._rawJSON = json.RawMessage(data)
return nil
}
func (a *AddTargetLanguageOut) String() string {
if len(a._rawJSON) > 0 {
if value, err := core.StringifyJSON(a._rawJSON); err == nil {
return value
}
}
if value, err := core.StringifyJSON(a); err == nil {
return value
}
return fmt.Sprintf("%#v", a)
}