You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func (o *{{classname}}) Get{{name}}() (result *{{#isInteger}}int64{{/isInteger}}{{^isInteger}}{{dataType}}{{/isInteger}}){
120
+
func (o *{{classname}}) Get{{name}}() *{{#isInteger}}int64{{/isInteger}}{{^isInteger}}{{dataType}}{{/isInteger}} {
121
121
if o == nil|| IsNil(o.{{name}}) {{#isNullable}}{{^vendorExtensions.x-golang-is-container}} || o.{{name}}.Get() == nil{{/vendorExtensions.x-golang-is-container}}{{/isNullable}} {
122
-
return
122
+
var ret *{{#isInteger}}int64{{/isInteger}}{{^isInteger}}{{dataType}}{{/isInteger}}
123
+
return ret
123
124
}
124
125
125
126
{{#isNullable}}
@@ -143,7 +144,7 @@ func (o *{{classname}}) Get{{name}}() (result *{{#isInteger}}int64{{/isInteger}}
143
144
{{#deprecated}}
144
145
// Deprecated
145
146
{{/deprecated}}
146
-
func (o *{{classname}}) Get{{name}}Ok() (result *{{#isInteger}}int64{{/isInteger}}{{^isInteger}}{{dataType}}{{/isInteger}},ok bool) {
147
+
func (o *{{classname}}) Get{{name}}Ok() (*{{#isInteger}}int64{{/isInteger}}{{^isInteger}}{{dataType}}{{/isInteger}}, bool) {
147
148
if o == nil{{#isNullable}}{{#vendorExtensions.x-golang-is-container}} || IsNil(o.{{name}}){{/vendorExtensions.x-golang-is-container}}{{/isNullable}} {
148
149
{{^isFreeFormObject}}
149
150
return nil, false
@@ -192,9 +193,10 @@ func (o *{{classname}}) Set{{name}}(v *{{#isInteger}}int64{{/isInteger}}{{^isInt
192
193
{{#deprecated}}
193
194
// Deprecated
194
195
{{/deprecated}}
195
-
func (o *{{classname}}) Get{{name}}() (result *{{#isContainer}}{{dataType}}{{/isContainer}}{{^isContainer}}{{#isInteger}}int64{{/isInteger}}{{^isInteger}}{{baseType}}{{/isInteger}}{{/isContainer}}){
196
+
func (o *{{classname}}) Get{{name}}() *{{#isContainer}}{{dataType}}{{/isContainer}}{{^isContainer}}{{#isInteger}}int64{{/isInteger}}{{^isInteger}}{{baseType}}{{/isInteger}}{{/isContainer}} {
196
197
if o == nil || IsNil(o.{{name}}) {{#isNullable}}{{^vendorExtensions.x-golang-is-container}} || IsNil(o.{{name}}.Get()){{/vendorExtensions.x-golang-is-container}}{{/isNullable}} {
197
-
return
198
+
var ret *{{#isContainer}}{{dataType}}{{/isContainer}}{{^isContainer}}{{#isInteger}}int64{{/isInteger}}{{^isInteger}}{{baseType}}{{/isInteger}}{{/isContainer}}
199
+
return ret
198
200
}
199
201
{{#isNullable}}
200
202
{{#vendorExtensions.x-golang-is-container}}
@@ -217,7 +219,7 @@ func (o *{{classname}}) Get{{name}}() (result *{{#isContainer}}{{dataType}}{{/is
217
219
{{#deprecated}}
218
220
// Deprecated
219
221
{{/deprecated}}
220
-
func (o *{{classname}}) Get{{name}}Ok() (result *{{#isContainer}}{{dataType}}{{/isContainer}}{{^isContainer}}{{#isInteger}}int64{{/isInteger}}{{^isInteger}}{{baseType}}{{/isInteger}}{{/isContainer}},ok bool) {
222
+
func (o *{{classname}}) Get{{name}}Ok() (*{{#isContainer}}{{dataType}}{{/isContainer}}{{^isContainer}}{{#isInteger}}int64{{/isInteger}}{{^isInteger}}{{baseType}}{{/isInteger}}{{/isContainer}}, bool) {
221
223
if o == nil || IsNil(o.{{name}}) {
222
224
{{^isFreeFormObject}}
223
225
return nil, false
@@ -248,7 +250,7 @@ func (o *{{classname}}) Has{{name}}() bool {
248
250
return false
249
251
}
250
252
251
-
// Set{{name}} gets a reference to the given {{dataType}} and assigns it to the {{name}} field.
253
+
// Set{{name}} gets a reference to the given {{#isNumber}}float64{{/isNumber}}{{#isFloat}}float64{{/isFloat}}{{#isDouble}}float64{{/isDouble}}{{#isInteger}}int64{{/isInteger}}{{#isLong}}int64{{/isLong}}{{^isNumeric}}{{vendorExtensions.x-go-base-type}}{{/isNumeric}} and assigns it to the {{name}} field.
252
254
{{#deprecated}}
253
255
// Deprecated
254
256
{{/deprecated}}
@@ -280,7 +282,10 @@ func (o *{{classname}}) Set{{name}}Nil() {
280
282
281
283
// Unset{{name}} ensures that no value is present for {{name}}, not even an explicit nil
0 commit comments