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

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

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

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

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

	return false
}

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

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

type NullableV1ListExternalRepositoriesResponse struct {
	value *V1ListExternalRepositoriesResponse
	isSet bool
}

func (v NullableV1ListExternalRepositoriesResponse) Get() *V1ListExternalRepositoriesResponse {
	return v.value
}

func (v *NullableV1ListExternalRepositoriesResponse) Set(val *V1ListExternalRepositoriesResponse) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableV1ListExternalRepositoriesResponse(val *V1ListExternalRepositoriesResponse) *NullableV1ListExternalRepositoriesResponse {
	return &NullableV1ListExternalRepositoriesResponse{value: val, isSet: true}
}

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

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


