github.com/optim-corp/cios-golang-sdk@v0.5.1/cios/model_series_image.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 // SeriesImage struct for SeriesImage 18 type SeriesImage struct { 19 Timestamp string `json:"timestamp"` 20 // base64エンコードされた画像データ 21 Image string `json:"image"` 22 // 画像データのフォーマット 23 ImageType string `json:"image_type"` 24 } 25 26 // NewSeriesImage instantiates a new SeriesImage object 27 // This constructor will assign default values to properties that have it defined, 28 // and makes sure properties required by API are set, but the set of arguments 29 // will change when the set of required properties is changed 30 func NewSeriesImage(timestamp string, image string, imageType string, ) *SeriesImage { 31 this := SeriesImage{} 32 this.Timestamp = timestamp 33 this.Image = image 34 this.ImageType = imageType 35 return &this 36 } 37 38 // NewSeriesImageWithDefaults instantiates a new SeriesImage object 39 // This constructor will only assign default values to properties that have it defined, 40 // but it doesn't guarantee that properties required by API are set 41 func NewSeriesImageWithDefaults() *SeriesImage { 42 this := SeriesImage{} 43 return &this 44 } 45 46 // GetTimestamp returns the Timestamp field value 47 func (o *SeriesImage) GetTimestamp() string { 48 if o == nil { 49 var ret string 50 return ret 51 } 52 53 return o.Timestamp 54 } 55 56 // GetTimestampOk returns a tuple with the Timestamp field value 57 // and a boolean to check if the value has been set. 58 func (o *SeriesImage) GetTimestampOk() (*string, bool) { 59 if o == nil { 60 return nil, false 61 } 62 return &o.Timestamp, true 63 } 64 65 // SetTimestamp sets field value 66 func (o *SeriesImage) SetTimestamp(v string) { 67 o.Timestamp = v 68 } 69 70 // GetImage returns the Image field value 71 func (o *SeriesImage) GetImage() string { 72 if o == nil { 73 var ret string 74 return ret 75 } 76 77 return o.Image 78 } 79 80 // GetImageOk returns a tuple with the Image field value 81 // and a boolean to check if the value has been set. 82 func (o *SeriesImage) GetImageOk() (*string, bool) { 83 if o == nil { 84 return nil, false 85 } 86 return &o.Image, true 87 } 88 89 // SetImage sets field value 90 func (o *SeriesImage) SetImage(v string) { 91 o.Image = v 92 } 93 94 // GetImageType returns the ImageType field value 95 func (o *SeriesImage) GetImageType() string { 96 if o == nil { 97 var ret string 98 return ret 99 } 100 101 return o.ImageType 102 } 103 104 // GetImageTypeOk returns a tuple with the ImageType field value 105 // and a boolean to check if the value has been set. 106 func (o *SeriesImage) GetImageTypeOk() (*string, bool) { 107 if o == nil { 108 return nil, false 109 } 110 return &o.ImageType, true 111 } 112 113 // SetImageType sets field value 114 func (o *SeriesImage) SetImageType(v string) { 115 o.ImageType = v 116 } 117 118 func (o SeriesImage) MarshalJSON() ([]byte, error) { 119 toSerialize := map[string]interface{}{} 120 if true { 121 toSerialize["timestamp"] = o.Timestamp 122 } 123 if true { 124 toSerialize["image"] = o.Image 125 } 126 if true { 127 toSerialize["image_type"] = o.ImageType 128 } 129 return json.Marshal(toSerialize) 130 } 131 132 type NullableSeriesImage struct { 133 value *SeriesImage 134 isSet bool 135 } 136 137 func (v NullableSeriesImage) Get() *SeriesImage { 138 return v.value 139 } 140 141 func (v *NullableSeriesImage) Set(val *SeriesImage) { 142 v.value = val 143 v.isSet = true 144 } 145 146 func (v NullableSeriesImage) IsSet() bool { 147 return v.isSet 148 } 149 150 func (v *NullableSeriesImage) Unset() { 151 v.value = nil 152 v.isSet = false 153 } 154 155 func NewNullableSeriesImage(val *SeriesImage) *NullableSeriesImage { 156 return &NullableSeriesImage{value: val, isSet: true} 157 } 158 159 func (v NullableSeriesImage) MarshalJSON() ([]byte, error) { 160 return json.Marshal(v.value) 161 } 162 163 func (v *NullableSeriesImage) UnmarshalJSON(src []byte) error { 164 v.isSet = true 165 return json.Unmarshal(src, &v.value) 166 } 167 168