first version
This commit is contained in:
191
model_schema_close_question_req.go
Normal file
191
model_schema_close_question_req.go
Normal file
@@ -0,0 +1,191 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
answer api
|
||||
|
||||
API version: v0.0.1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the SchemaCloseQuestionReq type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &SchemaCloseQuestionReq{}
|
||||
|
||||
// SchemaCloseQuestionReq struct for SchemaCloseQuestionReq
|
||||
type SchemaCloseQuestionReq struct {
|
||||
// close_type
|
||||
CloseMsg *string `json:"close_msg,omitempty"`
|
||||
// close_type
|
||||
CloseType *int32 `json:"close_type,omitempty"`
|
||||
Id string `json:"id"`
|
||||
}
|
||||
|
||||
// NewSchemaCloseQuestionReq instantiates a new SchemaCloseQuestionReq 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 NewSchemaCloseQuestionReq(id string) *SchemaCloseQuestionReq {
|
||||
this := SchemaCloseQuestionReq{}
|
||||
this.Id = id
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewSchemaCloseQuestionReqWithDefaults instantiates a new SchemaCloseQuestionReq 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 NewSchemaCloseQuestionReqWithDefaults() *SchemaCloseQuestionReq {
|
||||
this := SchemaCloseQuestionReq{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCloseMsg returns the CloseMsg field value if set, zero value otherwise.
|
||||
func (o *SchemaCloseQuestionReq) GetCloseMsg() string {
|
||||
if o == nil || IsNil(o.CloseMsg) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.CloseMsg
|
||||
}
|
||||
|
||||
// GetCloseMsgOk returns a tuple with the CloseMsg field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaCloseQuestionReq) GetCloseMsgOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.CloseMsg) {
|
||||
return nil, false
|
||||
}
|
||||
return o.CloseMsg, true
|
||||
}
|
||||
|
||||
// HasCloseMsg returns a boolean if a field has been set.
|
||||
func (o *SchemaCloseQuestionReq) HasCloseMsg() bool {
|
||||
if o != nil && !IsNil(o.CloseMsg) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCloseMsg gets a reference to the given string and assigns it to the CloseMsg field.
|
||||
func (o *SchemaCloseQuestionReq) SetCloseMsg(v string) {
|
||||
o.CloseMsg = &v
|
||||
}
|
||||
|
||||
// GetCloseType returns the CloseType field value if set, zero value otherwise.
|
||||
func (o *SchemaCloseQuestionReq) GetCloseType() int32 {
|
||||
if o == nil || IsNil(o.CloseType) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.CloseType
|
||||
}
|
||||
|
||||
// GetCloseTypeOk returns a tuple with the CloseType field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaCloseQuestionReq) GetCloseTypeOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.CloseType) {
|
||||
return nil, false
|
||||
}
|
||||
return o.CloseType, true
|
||||
}
|
||||
|
||||
// HasCloseType returns a boolean if a field has been set.
|
||||
func (o *SchemaCloseQuestionReq) HasCloseType() bool {
|
||||
if o != nil && !IsNil(o.CloseType) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCloseType gets a reference to the given int32 and assigns it to the CloseType field.
|
||||
func (o *SchemaCloseQuestionReq) SetCloseType(v int32) {
|
||||
o.CloseType = &v
|
||||
}
|
||||
|
||||
// GetId returns the Id field value
|
||||
func (o *SchemaCloseQuestionReq) GetId() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Id
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaCloseQuestionReq) GetIdOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Id, true
|
||||
}
|
||||
|
||||
// SetId sets field value
|
||||
func (o *SchemaCloseQuestionReq) SetId(v string) {
|
||||
o.Id = v
|
||||
}
|
||||
|
||||
func (o SchemaCloseQuestionReq) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o SchemaCloseQuestionReq) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.CloseMsg) {
|
||||
toSerialize["close_msg"] = o.CloseMsg
|
||||
}
|
||||
if !IsNil(o.CloseType) {
|
||||
toSerialize["close_type"] = o.CloseType
|
||||
}
|
||||
toSerialize["id"] = o.Id
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableSchemaCloseQuestionReq struct {
|
||||
value *SchemaCloseQuestionReq
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableSchemaCloseQuestionReq) Get() *SchemaCloseQuestionReq {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableSchemaCloseQuestionReq) Set(val *SchemaCloseQuestionReq) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableSchemaCloseQuestionReq) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableSchemaCloseQuestionReq) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableSchemaCloseQuestionReq(val *SchemaCloseQuestionReq) *NullableSchemaCloseQuestionReq {
|
||||
return &NullableSchemaCloseQuestionReq{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableSchemaCloseQuestionReq) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableSchemaCloseQuestionReq) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user