/* * 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" ) // InlineObject7 struct for InlineObject7 type InlineObject7 struct { Imports *[]V1ImportPackageRequest `json:"imports,omitempty"` } // NewInlineObject7 instantiates a new InlineObject7 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 NewInlineObject7() *InlineObject7 { this := InlineObject7{} return &this } // NewInlineObject7WithDefaults instantiates a new InlineObject7 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 NewInlineObject7WithDefaults() *InlineObject7 { this := InlineObject7{} return &this } // GetImports returns the Imports field value if set, zero value otherwise. func (o *InlineObject7) GetImports() []V1ImportPackageRequest { if o == nil || o.Imports == nil { var ret []V1ImportPackageRequest return ret } return *o.Imports } // GetImportsOk returns a tuple with the Imports field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *InlineObject7) GetImportsOk() (*[]V1ImportPackageRequest, bool) { if o == nil || o.Imports == nil { return nil, false } return o.Imports, true } // HasImports returns a boolean if a field has been set. func (o *InlineObject7) HasImports() bool { if o != nil && o.Imports != nil { return true } return false } // SetImports gets a reference to the given []V1ImportPackageRequest and assigns it to the Imports field. func (o *InlineObject7) SetImports(v []V1ImportPackageRequest) { o.Imports = &v } func (o InlineObject7) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Imports != nil { toSerialize["imports"] = o.Imports } return json.Marshal(toSerialize) } type NullableInlineObject7 struct { value *InlineObject7 isSet bool } func (v NullableInlineObject7) Get() *InlineObject7 { return v.value } func (v *NullableInlineObject7) Set(val *InlineObject7) { v.value = val v.isSet = true } func (v NullableInlineObject7) IsSet() bool { return v.isSet } func (v *NullableInlineObject7) Unset() { v.value = nil v.isSet = false } func NewNullableInlineObject7(val *InlineObject7) *NullableInlineObject7 { return &NullableInlineObject7{value: val, isSet: true} } func (v NullableInlineObject7) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableInlineObject7) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }