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

// V1LookasideFileUploadResponse struct for V1LookasideFileUploadResponse
type V1LookasideFileUploadResponse struct {
	Digest *string `json:"digest,omitempty"`
}

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

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

// GetDigest returns the Digest field value if set, zero value otherwise.
func (o *V1LookasideFileUploadResponse) GetDigest() string {
	if o == nil || o.Digest == nil {
		var ret string
		return ret
	}
	return *o.Digest
}

// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V1LookasideFileUploadResponse) GetDigestOk() (*string, bool) {
	if o == nil || o.Digest == nil {
		return nil, false
	}
	return o.Digest, true
}

// HasDigest returns a boolean if a field has been set.
func (o *V1LookasideFileUploadResponse) HasDigest() bool {
	if o != nil && o.Digest != nil {
		return true
	}

	return false
}

// SetDigest gets a reference to the given string and assigns it to the Digest field.
func (o *V1LookasideFileUploadResponse) SetDigest(v string) {
	o.Digest = &v
}

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

type NullableV1LookasideFileUploadResponse struct {
	value *V1LookasideFileUploadResponse
	isSet bool
}

func (v NullableV1LookasideFileUploadResponse) Get() *V1LookasideFileUploadResponse {
	return v.value
}

func (v *NullableV1LookasideFileUploadResponse) Set(val *V1LookasideFileUploadResponse) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableV1LookasideFileUploadResponse(val *V1LookasideFileUploadResponse) *NullableV1LookasideFileUploadResponse {
	return &NullableV1LookasideFileUploadResponse{value: val, isSet: true}
}

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

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


