Charles Treatman d0ed25a06d
[Go] fix unused bytes import for anyOf and oneOf models (#17775)
* add sample spec for oneof and anyof with required properties

* omit bytes import for oneOf and anyOf models

* generate sample client for new spec
2024-02-06 17:05:39 +08:00

1.9 KiB

Object2

Properties

Name Type Description Notes
Field1 string Specifies an action name to be used with the Android Intent class.
Field2 string Specifies an action name to be used with the Android Intent class.

Methods

NewObject2

func NewObject2(field1 string, field2 string, ) *Object2

NewObject2 instantiates a new Object2 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

NewObject2WithDefaults

func NewObject2WithDefaults() *Object2

NewObject2WithDefaults instantiates a new Object2 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

GetField1

func (o *Object2) GetField1() string

GetField1 returns the Field1 field if non-nil, zero value otherwise.

GetField1Ok

func (o *Object2) GetField1Ok() (*string, bool)

GetField1Ok returns a tuple with the Field1 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetField1

func (o *Object2) SetField1(v string)

SetField1 sets Field1 field to given value.

GetField2

func (o *Object2) GetField2() string

GetField2 returns the Field2 field if non-nil, zero value otherwise.

GetField2Ok

func (o *Object2) GetField2Ok() (*string, bool)

GetField2Ok returns a tuple with the Field2 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetField2

func (o *Object2) SetField2(v string)

SetField2 sets Field2 field to given value.

[Back to Model list] [Back to API list] [Back to README]