-
Notifications
You must be signed in to change notification settings - Fork 4
/
text_common.pbext.go
67 lines (50 loc) · 1.15 KB
/
text_common.pbext.go
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// Code generated by protoc-gen-goext. DO NOT EDIT.
package foundation_models
import (
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
)
func (m *CompletionOptions) SetStream(v bool) {
m.Stream = v
}
func (m *CompletionOptions) SetTemperature(v *wrapperspb.DoubleValue) {
m.Temperature = v
}
func (m *CompletionOptions) SetMaxTokens(v *wrapperspb.Int64Value) {
m.MaxTokens = v
}
type Message_Content = isMessage_Content
func (m *Message) SetContent(v Message_Content) {
m.Content = v
}
func (m *Message) SetRole(v string) {
m.Role = v
}
func (m *Message) SetText(v string) {
m.Content = &Message_Text{
Text: v,
}
}
func (m *ContentUsage) SetInputTextTokens(v int64) {
m.InputTextTokens = v
}
func (m *ContentUsage) SetCompletionTokens(v int64) {
m.CompletionTokens = v
}
func (m *ContentUsage) SetTotalTokens(v int64) {
m.TotalTokens = v
}
func (m *Alternative) SetMessage(v *Message) {
m.Message = v
}
func (m *Alternative) SetStatus(v Alternative_AlternativeStatus) {
m.Status = v
}
func (m *Token) SetId(v int64) {
m.Id = v
}
func (m *Token) SetText(v string) {
m.Text = v
}
func (m *Token) SetSpecial(v bool) {
m.Special = v
}