/*
 * 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"
)

// V1ListRepositoriesResponse struct for V1ListRepositoriesResponse
type V1ListRepositoriesResponse struct {
	Repositories *[]V1Repository `json:"repositories,omitempty"`
}

// NewV1ListRepositoriesResponse instantiates a new V1ListRepositoriesResponse 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 NewV1ListRepositoriesResponse() *V1ListRepositoriesResponse {
	this := V1ListRepositoriesResponse{}
	return &this
}

// NewV1ListRepositoriesResponseWithDefaults instantiates a new V1ListRepositoriesResponse 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 NewV1ListRepositoriesResponseWithDefaults() *V1ListRepositoriesResponse {
	this := V1ListRepositoriesResponse{}
	return &this
}

// GetRepositories returns the Repositories field value if set, zero value otherwise.
func (o *V1ListRepositoriesResponse) GetRepositories() []V1Repository {
	if o == nil || o.Repositories == nil {
		var ret []V1Repository
		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 *V1ListRepositoriesResponse) GetRepositoriesOk() (*[]V1Repository, 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 *V1ListRepositoriesResponse) HasRepositories() bool {
	if o != nil && o.Repositories != nil {
		return true
	}

	return false
}

// SetRepositories gets a reference to the given []V1Repository and assigns it to the Repositories field.
func (o *V1ListRepositoriesResponse) SetRepositories(v []V1Repository) {
	o.Repositories = &v
}

func (o V1ListRepositoriesResponse) MarshalJSON() ([]byte, error) {
	toSerialize := map[string]interface{}{}
	if o.Repositories != nil {
		toSerialize["repositories"] = o.Repositories
	}
	return json.Marshal(toSerialize)
}

type NullableV1ListRepositoriesResponse struct {
	value *V1ListRepositoriesResponse
	isSet bool
}

func (v NullableV1ListRepositoriesResponse) Get() *V1ListRepositoriesResponse {
	return v.value
}

func (v *NullableV1ListRepositoriesResponse) Set(val *V1ListRepositoriesResponse) {
	v.value = val
	v.isSet = true
}

func (v NullableV1ListRepositoriesResponse) IsSet() bool {
	return v.isSet
}

func (v *NullableV1ListRepositoriesResponse) Unset() {
	v.value = nil
	v.isSet = false
}

func NewNullableV1ListRepositoriesResponse(val *V1ListRepositoriesResponse) *NullableV1ListRepositoriesResponse {
	return &NullableV1ListRepositoriesResponse{value: val, isSet: true}
}

func (v NullableV1ListRepositoriesResponse) MarshalJSON() ([]byte, error) {
	return json.Marshal(v.value)
}

func (v *NullableV1ListRepositoriesResponse) UnmarshalJSON(src []byte) error {
	v.isSet = true
	return json.Unmarshal(src, &v.value)
}


