Fetch the repository succeeded.
/*
Zinc Search engine API
Zinc Search engine API documents https://docs.zincsearch.com
API version: 0.3.3
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package zincsearch
import (
"encoding/json"
)
// MetaSimpleQueryStringQuery struct for MetaSimpleQueryStringQuery
type MetaSimpleQueryStringQuery struct {
AllFields *bool `json:"all_fields,omitempty"`
Analyzer *string `json:"analyzer,omitempty"`
Boost *float32 `json:"boost,omitempty"`
// or(default), and
DefaultOperator *string `json:"default_operator,omitempty"`
Fields []string `json:"fields,omitempty"`
Query *string `json:"query,omitempty"`
}
// NewMetaSimpleQueryStringQuery instantiates a new MetaSimpleQueryStringQuery 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 NewMetaSimpleQueryStringQuery() *MetaSimpleQueryStringQuery {
this := MetaSimpleQueryStringQuery{}
return &this
}
// NewMetaSimpleQueryStringQueryWithDefaults instantiates a new MetaSimpleQueryStringQuery 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 NewMetaSimpleQueryStringQueryWithDefaults() *MetaSimpleQueryStringQuery {
this := MetaSimpleQueryStringQuery{}
return &this
}
// GetAllFields returns the AllFields field value if set, zero value otherwise.
func (o *MetaSimpleQueryStringQuery) GetAllFields() bool {
if o == nil || o.AllFields == nil {
var ret bool
return ret
}
return *o.AllFields
}
// GetAllFieldsOk returns a tuple with the AllFields field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MetaSimpleQueryStringQuery) GetAllFieldsOk() (*bool, bool) {
if o == nil || o.AllFields == nil {
return nil, false
}
return o.AllFields, true
}
// HasAllFields returns a boolean if a field has been set.
func (o *MetaSimpleQueryStringQuery) HasAllFields() bool {
if o != nil && o.AllFields != nil {
return true
}
return false
}
// SetAllFields gets a reference to the given bool and assigns it to the AllFields field.
func (o *MetaSimpleQueryStringQuery) SetAllFields(v bool) {
o.AllFields = &v
}
// GetAnalyzer returns the Analyzer field value if set, zero value otherwise.
func (o *MetaSimpleQueryStringQuery) GetAnalyzer() string {
if o == nil || o.Analyzer == nil {
var ret string
return ret
}
return *o.Analyzer
}
// GetAnalyzerOk returns a tuple with the Analyzer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MetaSimpleQueryStringQuery) GetAnalyzerOk() (*string, bool) {
if o == nil || o.Analyzer == nil {
return nil, false
}
return o.Analyzer, true
}
// HasAnalyzer returns a boolean if a field has been set.
func (o *MetaSimpleQueryStringQuery) HasAnalyzer() bool {
if o != nil && o.Analyzer != nil {
return true
}
return false
}
// SetAnalyzer gets a reference to the given string and assigns it to the Analyzer field.
func (o *MetaSimpleQueryStringQuery) SetAnalyzer(v string) {
o.Analyzer = &v
}
// GetBoost returns the Boost field value if set, zero value otherwise.
func (o *MetaSimpleQueryStringQuery) GetBoost() float32 {
if o == nil || o.Boost == nil {
var ret float32
return ret
}
return *o.Boost
}
// GetBoostOk returns a tuple with the Boost field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MetaSimpleQueryStringQuery) GetBoostOk() (*float32, bool) {
if o == nil || o.Boost == nil {
return nil, false
}
return o.Boost, true
}
// HasBoost returns a boolean if a field has been set.
func (o *MetaSimpleQueryStringQuery) HasBoost() bool {
if o != nil && o.Boost != nil {
return true
}
return false
}
// SetBoost gets a reference to the given float32 and assigns it to the Boost field.
func (o *MetaSimpleQueryStringQuery) SetBoost(v float32) {
o.Boost = &v
}
// GetDefaultOperator returns the DefaultOperator field value if set, zero value otherwise.
func (o *MetaSimpleQueryStringQuery) GetDefaultOperator() string {
if o == nil || o.DefaultOperator == nil {
var ret string
return ret
}
return *o.DefaultOperator
}
// GetDefaultOperatorOk returns a tuple with the DefaultOperator field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MetaSimpleQueryStringQuery) GetDefaultOperatorOk() (*string, bool) {
if o == nil || o.DefaultOperator == nil {
return nil, false
}
return o.DefaultOperator, true
}
// HasDefaultOperator returns a boolean if a field has been set.
func (o *MetaSimpleQueryStringQuery) HasDefaultOperator() bool {
if o != nil && o.DefaultOperator != nil {
return true
}
return false
}
// SetDefaultOperator gets a reference to the given string and assigns it to the DefaultOperator field.
func (o *MetaSimpleQueryStringQuery) SetDefaultOperator(v string) {
o.DefaultOperator = &v
}
// GetFields returns the Fields field value if set, zero value otherwise.
func (o *MetaSimpleQueryStringQuery) GetFields() []string {
if o == nil || o.Fields == nil {
var ret []string
return ret
}
return o.Fields
}
// GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MetaSimpleQueryStringQuery) GetFieldsOk() ([]string, bool) {
if o == nil || o.Fields == nil {
return nil, false
}
return o.Fields, true
}
// HasFields returns a boolean if a field has been set.
func (o *MetaSimpleQueryStringQuery) HasFields() bool {
if o != nil && o.Fields != nil {
return true
}
return false
}
// SetFields gets a reference to the given []string and assigns it to the Fields field.
func (o *MetaSimpleQueryStringQuery) SetFields(v []string) {
o.Fields = v
}
// GetQuery returns the Query field value if set, zero value otherwise.
func (o *MetaSimpleQueryStringQuery) GetQuery() string {
if o == nil || o.Query == nil {
var ret string
return ret
}
return *o.Query
}
// GetQueryOk returns a tuple with the Query field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MetaSimpleQueryStringQuery) GetQueryOk() (*string, bool) {
if o == nil || o.Query == nil {
return nil, false
}
return o.Query, true
}
// HasQuery returns a boolean if a field has been set.
func (o *MetaSimpleQueryStringQuery) HasQuery() bool {
if o != nil && o.Query != nil {
return true
}
return false
}
// SetQuery gets a reference to the given string and assigns it to the Query field.
func (o *MetaSimpleQueryStringQuery) SetQuery(v string) {
o.Query = &v
}
func (o MetaSimpleQueryStringQuery) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.AllFields != nil {
toSerialize["all_fields"] = o.AllFields
}
if o.Analyzer != nil {
toSerialize["analyzer"] = o.Analyzer
}
if o.Boost != nil {
toSerialize["boost"] = o.Boost
}
if o.DefaultOperator != nil {
toSerialize["default_operator"] = o.DefaultOperator
}
if o.Fields != nil {
toSerialize["fields"] = o.Fields
}
if o.Query != nil {
toSerialize["query"] = o.Query
}
return json.Marshal(toSerialize)
}
type NullableMetaSimpleQueryStringQuery struct {
value *MetaSimpleQueryStringQuery
isSet bool
}
func (v NullableMetaSimpleQueryStringQuery) Get() *MetaSimpleQueryStringQuery {
return v.value
}
func (v *NullableMetaSimpleQueryStringQuery) Set(val *MetaSimpleQueryStringQuery) {
v.value = val
v.isSet = true
}
func (v NullableMetaSimpleQueryStringQuery) IsSet() bool {
return v.isSet
}
func (v *NullableMetaSimpleQueryStringQuery) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMetaSimpleQueryStringQuery(val *MetaSimpleQueryStringQuery) *NullableMetaSimpleQueryStringQuery {
return &NullableMetaSimpleQueryStringQuery{value: val, isSet: true}
}
func (v NullableMetaSimpleQueryStringQuery) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMetaSimpleQueryStringQuery) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。