/* * 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" ) // InlineObject8 struct for InlineObject8 type InlineObject8 struct { Repositories *[]string `json:"repositories,omitempty"` } // NewInlineObject8 instantiates a new InlineObject8 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 NewInlineObject8() *InlineObject8 { this := InlineObject8{} return &this } // NewInlineObject8WithDefaults instantiates a new InlineObject8 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 NewInlineObject8WithDefaults() *InlineObject8 { this := InlineObject8{} return &this } // GetRepositories returns the Repositories field value if set, zero value otherwise. func (o *InlineObject8) GetRepositories() []string { if o == nil || o.Repositories == nil { var ret []string return ret } return *o.Repositories } // GetRepositoriesOk returns a tuple with the Repositories field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *InlineObject8) GetRepositoriesOk() (*[]string, bool) { if o == nil || o.Repositories == nil { return nil, false } return o.Repositories, true } // HasRepositories returns a boolean if a field has been set. func (o *InlineObject8) HasRepositories() bool { if o != nil && o.Repositories != nil { return true } return false } // SetRepositories gets a reference to the given []string and assigns it to the Repositories field. func (o *InlineObject8) SetRepositories(v []string) { o.Repositories = &v } func (o InlineObject8) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Repositories != nil { toSerialize["repositories"] = o.Repositories } return json.Marshal(toSerialize) } type NullableInlineObject8 struct { value *InlineObject8 isSet bool } func (v NullableInlineObject8) Get() *InlineObject8 { return v.value } func (v *NullableInlineObject8) Set(val *InlineObject8) { v.value = val v.isSet = true } func (v NullableInlineObject8) IsSet() bool { return v.isSet } func (v *NullableInlineObject8) Unset() { v.value = nil v.isSet = false } func NewNullableInlineObject8(val *InlineObject8) *NullableInlineObject8 { return &NullableInlineObject8{value: val, isSet: true} } func (v NullableInlineObject8) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableInlineObject8) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }