/* * peridot/proto/v1/batch.proto * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * API version: version not set */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package peridotopenapi import ( "encoding/json" ) // V1ListBuildBatchesResponse struct for V1ListBuildBatchesResponse type V1ListBuildBatchesResponse struct { BuildBatches *[]V1BuildBatch `json:"buildBatches,omitempty"` Total *string `json:"total,omitempty"` Size *int32 `json:"size,omitempty"` Page *int32 `json:"page,omitempty"` } // NewV1ListBuildBatchesResponse instantiates a new V1ListBuildBatchesResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed func NewV1ListBuildBatchesResponse() *V1ListBuildBatchesResponse { this := V1ListBuildBatchesResponse{} return &this } // NewV1ListBuildBatchesResponseWithDefaults instantiates a new V1ListBuildBatchesResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set func NewV1ListBuildBatchesResponseWithDefaults() *V1ListBuildBatchesResponse { this := V1ListBuildBatchesResponse{} return &this } // GetBuildBatches returns the BuildBatches field value if set, zero value otherwise. func (o *V1ListBuildBatchesResponse) GetBuildBatches() []V1BuildBatch { if o == nil || o.BuildBatches == nil { var ret []V1BuildBatch return ret } return *o.BuildBatches } // GetBuildBatchesOk returns a tuple with the BuildBatches field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *V1ListBuildBatchesResponse) GetBuildBatchesOk() (*[]V1BuildBatch, bool) { if o == nil || o.BuildBatches == nil { return nil, false } return o.BuildBatches, true } // HasBuildBatches returns a boolean if a field has been set. func (o *V1ListBuildBatchesResponse) HasBuildBatches() bool { if o != nil && o.BuildBatches != nil { return true } return false } // SetBuildBatches gets a reference to the given []V1BuildBatch and assigns it to the BuildBatches field. func (o *V1ListBuildBatchesResponse) SetBuildBatches(v []V1BuildBatch) { o.BuildBatches = &v } // GetTotal returns the Total field value if set, zero value otherwise. func (o *V1ListBuildBatchesResponse) GetTotal() string { if o == nil || o.Total == nil { var ret string return ret } return *o.Total } // GetTotalOk returns a tuple with the Total field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *V1ListBuildBatchesResponse) GetTotalOk() (*string, bool) { if o == nil || o.Total == nil { return nil, false } return o.Total, true } // HasTotal returns a boolean if a field has been set. func (o *V1ListBuildBatchesResponse) HasTotal() bool { if o != nil && o.Total != nil { return true } return false } // SetTotal gets a reference to the given string and assigns it to the Total field. func (o *V1ListBuildBatchesResponse) SetTotal(v string) { o.Total = &v } // GetSize returns the Size field value if set, zero value otherwise. func (o *V1ListBuildBatchesResponse) GetSize() int32 { if o == nil || o.Size == nil { var ret int32 return ret } return *o.Size } // GetSizeOk returns a tuple with the Size field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *V1ListBuildBatchesResponse) GetSizeOk() (*int32, bool) { if o == nil || o.Size == nil { return nil, false } return o.Size, true } // HasSize returns a boolean if a field has been set. func (o *V1ListBuildBatchesResponse) HasSize() bool { if o != nil && o.Size != nil { return true } return false } // SetSize gets a reference to the given int32 and assigns it to the Size field. func (o *V1ListBuildBatchesResponse) SetSize(v int32) { o.Size = &v } // GetPage returns the Page field value if set, zero value otherwise. func (o *V1ListBuildBatchesResponse) GetPage() int32 { if o == nil || o.Page == nil { var ret int32 return ret } return *o.Page } // GetPageOk returns a tuple with the Page field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *V1ListBuildBatchesResponse) GetPageOk() (*int32, bool) { if o == nil || o.Page == nil { return nil, false } return o.Page, true } // HasPage returns a boolean if a field has been set. func (o *V1ListBuildBatchesResponse) HasPage() bool { if o != nil && o.Page != nil { return true } return false } // SetPage gets a reference to the given int32 and assigns it to the Page field. func (o *V1ListBuildBatchesResponse) SetPage(v int32) { o.Page = &v } func (o V1ListBuildBatchesResponse) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.BuildBatches != nil { toSerialize["buildBatches"] = o.BuildBatches } if o.Total != nil { toSerialize["total"] = o.Total } if o.Size != nil { toSerialize["size"] = o.Size } if o.Page != nil { toSerialize["page"] = o.Page } return json.Marshal(toSerialize) } type NullableV1ListBuildBatchesResponse struct { value *V1ListBuildBatchesResponse isSet bool } func (v NullableV1ListBuildBatchesResponse) Get() *V1ListBuildBatchesResponse { return v.value } func (v *NullableV1ListBuildBatchesResponse) Set(val *V1ListBuildBatchesResponse) { v.value = val v.isSet = true } func (v NullableV1ListBuildBatchesResponse) IsSet() bool { return v.isSet } func (v *NullableV1ListBuildBatchesResponse) Unset() { v.value = nil v.isSet = false } func NewNullableV1ListBuildBatchesResponse(val *V1ListBuildBatchesResponse) *NullableV1ListBuildBatchesResponse { return &NullableV1ListBuildBatchesResponse{value: val, isSet: true} } func (v NullableV1ListBuildBatchesResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableV1ListBuildBatchesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }