github.com/optim-corp/cios-golang-sdk@v0.5.1/cios/model_multiple_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  // MultipleSeriesImage struct for MultipleSeriesImage
    18  type MultipleSeriesImage struct {
    19  	// 検索条件にマッチする全結果数
    20  	Total int64 `json:"total"`
    21  	// 画像データとタイムスタンプの配列。データが0件の場合は空配列。
    22  	Data []SeriesImage `json:"data"`
    23  	// timestampがキーとなってdataのindexが格納されているhashmap
    24  	ImageMap map[string]int32 `json:"image_map"`
    25  }
    26  
    27  // NewMultipleSeriesImage instantiates a new MultipleSeriesImage object
    28  // This constructor will assign default values to properties that have it defined,
    29  // and makes sure properties required by API are set, but the set of arguments
    30  // will change when the set of required properties is changed
    31  func NewMultipleSeriesImage(total int64, data []SeriesImage, imageMap map[string]int32, ) *MultipleSeriesImage {
    32  	this := MultipleSeriesImage{}
    33  	this.Total = total
    34  	this.Data = data
    35  	this.ImageMap = imageMap
    36  	return &this
    37  }
    38  
    39  // NewMultipleSeriesImageWithDefaults instantiates a new MultipleSeriesImage object
    40  // This constructor will only assign default values to properties that have it defined,
    41  // but it doesn't guarantee that properties required by API are set
    42  func NewMultipleSeriesImageWithDefaults() *MultipleSeriesImage {
    43  	this := MultipleSeriesImage{}
    44  	return &this
    45  }
    46  
    47  // GetTotal returns the Total field value
    48  func (o *MultipleSeriesImage) GetTotal() int64 {
    49  	if o == nil  {
    50  		var ret int64
    51  		return ret
    52  	}
    53  
    54  	return o.Total
    55  }
    56  
    57  // GetTotalOk returns a tuple with the Total field value
    58  // and a boolean to check if the value has been set.
    59  func (o *MultipleSeriesImage) GetTotalOk() (*int64, bool) {
    60  	if o == nil  {
    61  		return nil, false
    62  	}
    63  	return &o.Total, true
    64  }
    65  
    66  // SetTotal sets field value
    67  func (o *MultipleSeriesImage) SetTotal(v int64) {
    68  	o.Total = v
    69  }
    70  
    71  // GetData returns the Data field value
    72  func (o *MultipleSeriesImage) GetData() []SeriesImage {
    73  	if o == nil  {
    74  		var ret []SeriesImage
    75  		return ret
    76  	}
    77  
    78  	return o.Data
    79  }
    80  
    81  // GetDataOk returns a tuple with the Data field value
    82  // and a boolean to check if the value has been set.
    83  func (o *MultipleSeriesImage) GetDataOk() (*[]SeriesImage, bool) {
    84  	if o == nil  {
    85  		return nil, false
    86  	}
    87  	return &o.Data, true
    88  }
    89  
    90  // SetData sets field value
    91  func (o *MultipleSeriesImage) SetData(v []SeriesImage) {
    92  	o.Data = v
    93  }
    94  
    95  // GetImageMap returns the ImageMap field value
    96  func (o *MultipleSeriesImage) GetImageMap() map[string]int32 {
    97  	if o == nil  {
    98  		var ret map[string]int32
    99  		return ret
   100  	}
   101  
   102  	return o.ImageMap
   103  }
   104  
   105  // GetImageMapOk returns a tuple with the ImageMap field value
   106  // and a boolean to check if the value has been set.
   107  func (o *MultipleSeriesImage) GetImageMapOk() (*map[string]int32, bool) {
   108  	if o == nil  {
   109  		return nil, false
   110  	}
   111  	return &o.ImageMap, true
   112  }
   113  
   114  // SetImageMap sets field value
   115  func (o *MultipleSeriesImage) SetImageMap(v map[string]int32) {
   116  	o.ImageMap = v
   117  }
   118  
   119  func (o MultipleSeriesImage) MarshalJSON() ([]byte, error) {
   120  	toSerialize := map[string]interface{}{}
   121  	if true {
   122  		toSerialize["total"] = o.Total
   123  	}
   124  	if true {
   125  		toSerialize["data"] = o.Data
   126  	}
   127  	if true {
   128  		toSerialize["image_map"] = o.ImageMap
   129  	}
   130  	return json.Marshal(toSerialize)
   131  }
   132  
   133  type NullableMultipleSeriesImage struct {
   134  	value *MultipleSeriesImage
   135  	isSet bool
   136  }
   137  
   138  func (v NullableMultipleSeriesImage) Get() *MultipleSeriesImage {
   139  	return v.value
   140  }
   141  
   142  func (v *NullableMultipleSeriesImage) Set(val *MultipleSeriesImage) {
   143  	v.value = val
   144  	v.isSet = true
   145  }
   146  
   147  func (v NullableMultipleSeriesImage) IsSet() bool {
   148  	return v.isSet
   149  }
   150  
   151  func (v *NullableMultipleSeriesImage) Unset() {
   152  	v.value = nil
   153  	v.isSet = false
   154  }
   155  
   156  func NewNullableMultipleSeriesImage(val *MultipleSeriesImage) *NullableMultipleSeriesImage {
   157  	return &NullableMultipleSeriesImage{value: val, isSet: true}
   158  }
   159  
   160  func (v NullableMultipleSeriesImage) MarshalJSON() ([]byte, error) {
   161  	return json.Marshal(v.value)
   162  }
   163  
   164  func (v *NullableMultipleSeriesImage) UnmarshalJSON(src []byte) error {
   165  	v.isSet = true
   166  	return json.Unmarshal(src, &v.value)
   167  }
   168  
   169