peridot/vendor/openapi.peridot.resf.org/peridotopenapi/model_inline_object.go

116 lines
2.8 KiB
Go
Raw Normal View History

/*
* 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"
)
// InlineObject struct for InlineObject
type InlineObject struct {
Project *V1Project `json:"project,omitempty"`
}
// NewInlineObject instantiates a new InlineObject 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 NewInlineObject() *InlineObject {
this := InlineObject{}
return &this
}
// NewInlineObjectWithDefaults instantiates a new InlineObject 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 NewInlineObjectWithDefaults() *InlineObject {
this := InlineObject{}
return &this
}
// GetProject returns the Project field value if set, zero value otherwise.
func (o *InlineObject) GetProject() V1Project {
if o == nil || o.Project == nil {
var ret V1Project
return ret
}
return *o.Project
}
// GetProjectOk returns a tuple with the Project field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InlineObject) GetProjectOk() (*V1Project, bool) {
if o == nil || o.Project == nil {
return nil, false
}
return o.Project, true
}
// HasProject returns a boolean if a field has been set.
func (o *InlineObject) HasProject() bool {
if o != nil && o.Project != nil {
return true
}
return false
}
// SetProject gets a reference to the given V1Project and assigns it to the Project field.
func (o *InlineObject) SetProject(v V1Project) {
o.Project = &v
}
func (o InlineObject) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Project != nil {
toSerialize["project"] = o.Project
}
return json.Marshal(toSerialize)
}
type NullableInlineObject struct {
value *InlineObject
isSet bool
}
func (v NullableInlineObject) Get() *InlineObject {
return v.value
}
func (v *NullableInlineObject) Set(val *InlineObject) {
v.value = val
v.isSet = true
}
func (v NullableInlineObject) IsSet() bool {
return v.isSet
}
func (v *NullableInlineObject) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInlineObject(val *InlineObject) *NullableInlineObject {
return &NullableInlineObject{value: val, isSet: true}
}
func (v NullableInlineObject) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableInlineObject) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}