github.com/optim-corp/cios-golang-sdk@v0.5.1/cios/model_multiple_series_data_location_unix.go (about) 1 /* 2 * Cios Openapi 3 * 4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 5 * 6 * API version: 1.0.1 7 */ 8 9 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 10 11 package cios 12 13 import ( 14 "encoding/json" 15 ) 16 17 // MultipleSeriesDataLocationUnix struct for MultipleSeriesDataLocationUnix 18 type MultipleSeriesDataLocationUnix struct { 19 // 検索条件にマッチする全結果数 20 Total int64 `json:"total"` 21 // 時系列データ配列。データが0件の場合は空配列。 22 Data []SeriesDataLocationUnix `json:"data"` 23 } 24 25 // NewMultipleSeriesDataLocationUnix instantiates a new MultipleSeriesDataLocationUnix object 26 // This constructor will assign default values to properties that have it defined, 27 // and makes sure properties required by API are set, but the set of arguments 28 // will change when the set of required properties is changed 29 func NewMultipleSeriesDataLocationUnix(total int64, data []SeriesDataLocationUnix, ) *MultipleSeriesDataLocationUnix { 30 this := MultipleSeriesDataLocationUnix{} 31 this.Total = total 32 this.Data = data 33 return &this 34 } 35 36 // NewMultipleSeriesDataLocationUnixWithDefaults instantiates a new MultipleSeriesDataLocationUnix object 37 // This constructor will only assign default values to properties that have it defined, 38 // but it doesn't guarantee that properties required by API are set 39 func NewMultipleSeriesDataLocationUnixWithDefaults() *MultipleSeriesDataLocationUnix { 40 this := MultipleSeriesDataLocationUnix{} 41 return &this 42 } 43 44 // GetTotal returns the Total field value 45 func (o *MultipleSeriesDataLocationUnix) GetTotal() int64 { 46 if o == nil { 47 var ret int64 48 return ret 49 } 50 51 return o.Total 52 } 53 54 // GetTotalOk returns a tuple with the Total field value 55 // and a boolean to check if the value has been set. 56 func (o *MultipleSeriesDataLocationUnix) GetTotalOk() (*int64, bool) { 57 if o == nil { 58 return nil, false 59 } 60 return &o.Total, true 61 } 62 63 // SetTotal sets field value 64 func (o *MultipleSeriesDataLocationUnix) SetTotal(v int64) { 65 o.Total = v 66 } 67 68 // GetData returns the Data field value 69 // If the value is explicit nil, the zero value for []SeriesDataLocationUnix will be returned 70 func (o *MultipleSeriesDataLocationUnix) GetData() []SeriesDataLocationUnix { 71 if o == nil { 72 var ret []SeriesDataLocationUnix 73 return ret 74 } 75 76 return o.Data 77 } 78 79 // GetDataOk returns a tuple with the Data field value 80 // and a boolean to check if the value has been set. 81 // NOTE: If the value is an explicit nil, `nil, true` will be returned 82 func (o *MultipleSeriesDataLocationUnix) GetDataOk() (*[]SeriesDataLocationUnix, bool) { 83 if o == nil || o.Data == nil { 84 return nil, false 85 } 86 return &o.Data, true 87 } 88 89 // SetData sets field value 90 func (o *MultipleSeriesDataLocationUnix) SetData(v []SeriesDataLocationUnix) { 91 o.Data = v 92 } 93 94 func (o MultipleSeriesDataLocationUnix) MarshalJSON() ([]byte, error) { 95 toSerialize := map[string]interface{}{} 96 if true { 97 toSerialize["total"] = o.Total 98 } 99 if o.Data != nil { 100 toSerialize["data"] = o.Data 101 } 102 return json.Marshal(toSerialize) 103 } 104 105 type NullableMultipleSeriesDataLocationUnix struct { 106 value *MultipleSeriesDataLocationUnix 107 isSet bool 108 } 109 110 func (v NullableMultipleSeriesDataLocationUnix) Get() *MultipleSeriesDataLocationUnix { 111 return v.value 112 } 113 114 func (v *NullableMultipleSeriesDataLocationUnix) Set(val *MultipleSeriesDataLocationUnix) { 115 v.value = val 116 v.isSet = true 117 } 118 119 func (v NullableMultipleSeriesDataLocationUnix) IsSet() bool { 120 return v.isSet 121 } 122 123 func (v *NullableMultipleSeriesDataLocationUnix) Unset() { 124 v.value = nil 125 v.isSet = false 126 } 127 128 func NewNullableMultipleSeriesDataLocationUnix(val *MultipleSeriesDataLocationUnix) *NullableMultipleSeriesDataLocationUnix { 129 return &NullableMultipleSeriesDataLocationUnix{value: val, isSet: true} 130 } 131 132 func (v NullableMultipleSeriesDataLocationUnix) MarshalJSON() ([]byte, error) { 133 return json.Marshal(v.value) 134 } 135 136 func (v *NullableMultipleSeriesDataLocationUnix) UnmarshalJSON(src []byte) error { 137 v.isSet = true 138 return json.Unmarshal(src, &v.value) 139 } 140 141