/* * 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" ) // InlineObject6 struct for InlineObject6 type InlineObject6 struct { GitlabUsername *string `json:"gitlabUsername,omitempty"` GitlabPassword *string `json:"gitlabPassword,omitempty"` } // NewInlineObject6 instantiates a new InlineObject6 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 NewInlineObject6() *InlineObject6 { this := InlineObject6{} return &this } // NewInlineObject6WithDefaults instantiates a new InlineObject6 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 NewInlineObject6WithDefaults() *InlineObject6 { this := InlineObject6{} return &this } // GetGitlabUsername returns the GitlabUsername field value if set, zero value otherwise. func (o *InlineObject6) GetGitlabUsername() string { if o == nil || o.GitlabUsername == nil { var ret string return ret } return *o.GitlabUsername } // GetGitlabUsernameOk returns a tuple with the GitlabUsername field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *InlineObject6) GetGitlabUsernameOk() (*string, bool) { if o == nil || o.GitlabUsername == nil { return nil, false } return o.GitlabUsername, true } // HasGitlabUsername returns a boolean if a field has been set. func (o *InlineObject6) HasGitlabUsername() bool { if o != nil && o.GitlabUsername != nil { return true } return false } // SetGitlabUsername gets a reference to the given string and assigns it to the GitlabUsername field. func (o *InlineObject6) SetGitlabUsername(v string) { o.GitlabUsername = &v } // GetGitlabPassword returns the GitlabPassword field value if set, zero value otherwise. func (o *InlineObject6) GetGitlabPassword() string { if o == nil || o.GitlabPassword == nil { var ret string return ret } return *o.GitlabPassword } // GetGitlabPasswordOk returns a tuple with the GitlabPassword field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *InlineObject6) GetGitlabPasswordOk() (*string, bool) { if o == nil || o.GitlabPassword == nil { return nil, false } return o.GitlabPassword, true } // HasGitlabPassword returns a boolean if a field has been set. func (o *InlineObject6) HasGitlabPassword() bool { if o != nil && o.GitlabPassword != nil { return true } return false } // SetGitlabPassword gets a reference to the given string and assigns it to the GitlabPassword field. func (o *InlineObject6) SetGitlabPassword(v string) { o.GitlabPassword = &v } func (o InlineObject6) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.GitlabUsername != nil { toSerialize["gitlabUsername"] = o.GitlabUsername } if o.GitlabPassword != nil { toSerialize["gitlabPassword"] = o.GitlabPassword } return json.Marshal(toSerialize) } type NullableInlineObject6 struct { value *InlineObject6 isSet bool } func (v NullableInlineObject6) Get() *InlineObject6 { return v.value } func (v *NullableInlineObject6) Set(val *InlineObject6) { v.value = val v.isSet = true } func (v NullableInlineObject6) IsSet() bool { return v.isSet } func (v *NullableInlineObject6) Unset() { v.value = nil v.isSet = false } func NewNullableInlineObject6(val *InlineObject6) *NullableInlineObject6 { return &NullableInlineObject6{value: val, isSet: true} } func (v NullableInlineObject6) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableInlineObject6) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }