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

152 lines
3.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"
)
// V1SearchRequest struct for V1SearchRequest
type V1SearchRequest struct {
Query *string `json:"query,omitempty"`
ProjectId *string `json:"projectId,omitempty"`
}
// NewV1SearchRequest instantiates a new V1SearchRequest 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 NewV1SearchRequest() *V1SearchRequest {
this := V1SearchRequest{}
return &this
}
// NewV1SearchRequestWithDefaults instantiates a new V1SearchRequest 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 NewV1SearchRequestWithDefaults() *V1SearchRequest {
this := V1SearchRequest{}
return &this
}
// GetQuery returns the Query field value if set, zero value otherwise.
func (o *V1SearchRequest) 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 *V1SearchRequest) 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 *V1SearchRequest) 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 *V1SearchRequest) SetQuery(v string) {
o.Query = &v
}
// GetProjectId returns the ProjectId field value if set, zero value otherwise.
func (o *V1SearchRequest) GetProjectId() string {
if o == nil || o.ProjectId == nil {
var ret string
return ret
}
return *o.ProjectId
}
// GetProjectIdOk returns a tuple with the ProjectId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V1SearchRequest) GetProjectIdOk() (*string, bool) {
if o == nil || o.ProjectId == nil {
return nil, false
}
return o.ProjectId, true
}
// HasProjectId returns a boolean if a field has been set.
func (o *V1SearchRequest) HasProjectId() bool {
if o != nil && o.ProjectId != nil {
return true
}
return false
}
// SetProjectId gets a reference to the given string and assigns it to the ProjectId field.
func (o *V1SearchRequest) SetProjectId(v string) {
o.ProjectId = &v
}
func (o V1SearchRequest) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Query != nil {
toSerialize["query"] = o.Query
}
if o.ProjectId != nil {
toSerialize["projectId"] = o.ProjectId
}
return json.Marshal(toSerialize)
}
type NullableV1SearchRequest struct {
value *V1SearchRequest
isSet bool
}
func (v NullableV1SearchRequest) Get() *V1SearchRequest {
return v.value
}
func (v *NullableV1SearchRequest) Set(val *V1SearchRequest) {
v.value = val
v.isSet = true
}
func (v NullableV1SearchRequest) IsSet() bool {
return v.isSet
}
func (v *NullableV1SearchRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableV1SearchRequest(val *V1SearchRequest) *NullableV1SearchRequest {
return &NullableV1SearchRequest{value: val, isSet: true}
}
func (v NullableV1SearchRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableV1SearchRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}