Files
openapi-go-answer/model_schema_get_plugin_config_resp.go
2023-09-26 16:20:01 +08:00

269 lines
7.5 KiB
Go

/*
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package answer_sdk
import (
"encoding/json"
)
// checks if the SchemaGetPluginConfigResp type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SchemaGetPluginConfigResp{}
// SchemaGetPluginConfigResp struct for SchemaGetPluginConfigResp
type SchemaGetPluginConfigResp struct {
ConfigFields []SchemaConfigField `json:"config_fields,omitempty"`
Description *string `json:"description,omitempty"`
Name *string `json:"name,omitempty"`
SlugName *string `json:"slug_name,omitempty"`
Version *string `json:"version,omitempty"`
}
// NewSchemaGetPluginConfigResp instantiates a new SchemaGetPluginConfigResp 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 NewSchemaGetPluginConfigResp() *SchemaGetPluginConfigResp {
this := SchemaGetPluginConfigResp{}
return &this
}
// NewSchemaGetPluginConfigRespWithDefaults instantiates a new SchemaGetPluginConfigResp 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 NewSchemaGetPluginConfigRespWithDefaults() *SchemaGetPluginConfigResp {
this := SchemaGetPluginConfigResp{}
return &this
}
// GetConfigFields returns the ConfigFields field value if set, zero value otherwise.
func (o *SchemaGetPluginConfigResp) GetConfigFields() []SchemaConfigField {
if o == nil || IsNil(o.ConfigFields) {
var ret []SchemaConfigField
return ret
}
return o.ConfigFields
}
// GetConfigFieldsOk returns a tuple with the ConfigFields field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SchemaGetPluginConfigResp) GetConfigFieldsOk() ([]SchemaConfigField, bool) {
if o == nil || IsNil(o.ConfigFields) {
return nil, false
}
return o.ConfigFields, true
}
// HasConfigFields returns a boolean if a field has been set.
func (o *SchemaGetPluginConfigResp) HasConfigFields() bool {
if o != nil && !IsNil(o.ConfigFields) {
return true
}
return false
}
// SetConfigFields gets a reference to the given []SchemaConfigField and assigns it to the ConfigFields field.
func (o *SchemaGetPluginConfigResp) SetConfigFields(v []SchemaConfigField) {
o.ConfigFields = v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *SchemaGetPluginConfigResp) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SchemaGetPluginConfigResp) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *SchemaGetPluginConfigResp) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *SchemaGetPluginConfigResp) SetDescription(v string) {
o.Description = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *SchemaGetPluginConfigResp) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SchemaGetPluginConfigResp) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *SchemaGetPluginConfigResp) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *SchemaGetPluginConfigResp) SetName(v string) {
o.Name = &v
}
// GetSlugName returns the SlugName field value if set, zero value otherwise.
func (o *SchemaGetPluginConfigResp) GetSlugName() string {
if o == nil || IsNil(o.SlugName) {
var ret string
return ret
}
return *o.SlugName
}
// GetSlugNameOk returns a tuple with the SlugName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SchemaGetPluginConfigResp) GetSlugNameOk() (*string, bool) {
if o == nil || IsNil(o.SlugName) {
return nil, false
}
return o.SlugName, true
}
// HasSlugName returns a boolean if a field has been set.
func (o *SchemaGetPluginConfigResp) HasSlugName() bool {
if o != nil && !IsNil(o.SlugName) {
return true
}
return false
}
// SetSlugName gets a reference to the given string and assigns it to the SlugName field.
func (o *SchemaGetPluginConfigResp) SetSlugName(v string) {
o.SlugName = &v
}
// GetVersion returns the Version field value if set, zero value otherwise.
func (o *SchemaGetPluginConfigResp) GetVersion() string {
if o == nil || IsNil(o.Version) {
var ret string
return ret
}
return *o.Version
}
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SchemaGetPluginConfigResp) GetVersionOk() (*string, bool) {
if o == nil || IsNil(o.Version) {
return nil, false
}
return o.Version, true
}
// HasVersion returns a boolean if a field has been set.
func (o *SchemaGetPluginConfigResp) HasVersion() bool {
if o != nil && !IsNil(o.Version) {
return true
}
return false
}
// SetVersion gets a reference to the given string and assigns it to the Version field.
func (o *SchemaGetPluginConfigResp) SetVersion(v string) {
o.Version = &v
}
func (o SchemaGetPluginConfigResp) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SchemaGetPluginConfigResp) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ConfigFields) {
toSerialize["config_fields"] = o.ConfigFields
}
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.SlugName) {
toSerialize["slug_name"] = o.SlugName
}
if !IsNil(o.Version) {
toSerialize["version"] = o.Version
}
return toSerialize, nil
}
type NullableSchemaGetPluginConfigResp struct {
value *SchemaGetPluginConfigResp
isSet bool
}
func (v NullableSchemaGetPluginConfigResp) Get() *SchemaGetPluginConfigResp {
return v.value
}
func (v *NullableSchemaGetPluginConfigResp) Set(val *SchemaGetPluginConfigResp) {
v.value = val
v.isSet = true
}
func (v NullableSchemaGetPluginConfigResp) IsSet() bool {
return v.isSet
}
func (v *NullableSchemaGetPluginConfigResp) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSchemaGetPluginConfigResp(val *SchemaGetPluginConfigResp) *NullableSchemaGetPluginConfigResp {
return &NullableSchemaGetPluginConfigResp{value: val, isSet: true}
}
func (v NullableSchemaGetPluginConfigResp) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSchemaGetPluginConfigResp) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}