fleet-memory/hindsight-clients/go/model_bank_profile_response.go
Nicolò Boschi 144e4c49d1 Release v0.4.15
- Update version to 0.4.15 in all components
- Regenerate OpenAPI spec and client SDKs
- Python packages: hindsight-api, hindsight-dev, hindsight-all, hindsight-litellm, hindsight-crewai, hindsight-pydantic-ai, hindsight-embed
- Python client: hindsight-clients/python
- TypeScript client: hindsight-clients/typescript
- Rust CLI: hindsight-cli
- Control Plane: hindsight-control-plane
- OpenClaw integration: hindsight-integrations/openclaw
- AI SDK integration: hindsight-integrations/ai-sdk
- Chat SDK integration: hindsight-integrations/chat
- Helm chart
- Sync documentation to version-0.4
2026-03-03 15:03:42 +01:00

289 lines
7.3 KiB
Go

/*
Hindsight HTTP API
HTTP API for Hindsight
API version: 0.4.15
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package hindsight
import (
"encoding/json"
"bytes"
"fmt"
)
// checks if the BankProfileResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &BankProfileResponse{}
// BankProfileResponse Response model for bank profile.
type BankProfileResponse struct {
BankId string `json:"bank_id"`
Name string `json:"name"`
Disposition DispositionTraits `json:"disposition"`
// The agent's mission - who they are and what they're trying to accomplish
Mission string `json:"mission"`
Background NullableString `json:"background,omitempty"`
}
type _BankProfileResponse BankProfileResponse
// NewBankProfileResponse instantiates a new BankProfileResponse 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 NewBankProfileResponse(bankId string, name string, disposition DispositionTraits, mission string) *BankProfileResponse {
this := BankProfileResponse{}
this.BankId = bankId
this.Name = name
this.Disposition = disposition
this.Mission = mission
return &this
}
// NewBankProfileResponseWithDefaults instantiates a new BankProfileResponse 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 NewBankProfileResponseWithDefaults() *BankProfileResponse {
this := BankProfileResponse{}
return &this
}
// GetBankId returns the BankId field value
func (o *BankProfileResponse) GetBankId() string {
if o == nil {
var ret string
return ret
}
return o.BankId
}
// GetBankIdOk returns a tuple with the BankId field value
// and a boolean to check if the value has been set.
func (o *BankProfileResponse) GetBankIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.BankId, true
}
// SetBankId sets field value
func (o *BankProfileResponse) SetBankId(v string) {
o.BankId = v
}
// GetName returns the Name field value
func (o *BankProfileResponse) GetName() string {
if o == nil {
var ret string
return ret
}
return o.Name
}
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
func (o *BankProfileResponse) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *BankProfileResponse) SetName(v string) {
o.Name = v
}
// GetDisposition returns the Disposition field value
func (o *BankProfileResponse) GetDisposition() DispositionTraits {
if o == nil {
var ret DispositionTraits
return ret
}
return o.Disposition
}
// GetDispositionOk returns a tuple with the Disposition field value
// and a boolean to check if the value has been set.
func (o *BankProfileResponse) GetDispositionOk() (*DispositionTraits, bool) {
if o == nil {
return nil, false
}
return &o.Disposition, true
}
// SetDisposition sets field value
func (o *BankProfileResponse) SetDisposition(v DispositionTraits) {
o.Disposition = v
}
// GetMission returns the Mission field value
func (o *BankProfileResponse) GetMission() string {
if o == nil {
var ret string
return ret
}
return o.Mission
}
// GetMissionOk returns a tuple with the Mission field value
// and a boolean to check if the value has been set.
func (o *BankProfileResponse) GetMissionOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Mission, true
}
// SetMission sets field value
func (o *BankProfileResponse) SetMission(v string) {
o.Mission = v
}
// GetBackground returns the Background field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BankProfileResponse) GetBackground() string {
if o == nil || IsNil(o.Background.Get()) {
var ret string
return ret
}
return *o.Background.Get()
}
// GetBackgroundOk returns a tuple with the Background field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BankProfileResponse) GetBackgroundOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Background.Get(), o.Background.IsSet()
}
// HasBackground returns a boolean if a field has been set.
func (o *BankProfileResponse) HasBackground() bool {
if o != nil && o.Background.IsSet() {
return true
}
return false
}
// SetBackground gets a reference to the given NullableString and assigns it to the Background field.
func (o *BankProfileResponse) SetBackground(v string) {
o.Background.Set(&v)
}
// SetBackgroundNil sets the value for Background to be an explicit nil
func (o *BankProfileResponse) SetBackgroundNil() {
o.Background.Set(nil)
}
// UnsetBackground ensures that no value is present for Background, not even an explicit nil
func (o *BankProfileResponse) UnsetBackground() {
o.Background.Unset()
}
func (o BankProfileResponse) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o BankProfileResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["bank_id"] = o.BankId
toSerialize["name"] = o.Name
toSerialize["disposition"] = o.Disposition
toSerialize["mission"] = o.Mission
if o.Background.IsSet() {
toSerialize["background"] = o.Background.Get()
}
return toSerialize, nil
}
func (o *BankProfileResponse) UnmarshalJSON(data []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"bank_id",
"name",
"disposition",
"mission",
}
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err;
}
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
varBankProfileResponse := _BankProfileResponse{}
decoder := json.NewDecoder(bytes.NewReader(data))
decoder.DisallowUnknownFields()
err = decoder.Decode(&varBankProfileResponse)
if err != nil {
return err
}
*o = BankProfileResponse(varBankProfileResponse)
return err
}
type NullableBankProfileResponse struct {
value *BankProfileResponse
isSet bool
}
func (v NullableBankProfileResponse) Get() *BankProfileResponse {
return v.value
}
func (v *NullableBankProfileResponse) Set(val *BankProfileResponse) {
v.value = val
v.isSet = true
}
func (v NullableBankProfileResponse) IsSet() bool {
return v.isSet
}
func (v *NullableBankProfileResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBankProfileResponse(val *BankProfileResponse) *NullableBankProfileResponse {
return &NullableBankProfileResponse{value: val, isSet: true}
}
func (v NullableBankProfileResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableBankProfileResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}