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.5 KiB

NestedObject2

Properties

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

Methods

NewNestedObject2

func NewNestedObject2(field2 string, ) *NestedObject2

NewNestedObject2 instantiates a new NestedObject2 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

NewNestedObject2WithDefaults

func NewNestedObject2WithDefaults() *NestedObject2

NewNestedObject2WithDefaults instantiates a new NestedObject2 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

GetField2

func (o *NestedObject2) GetField2() string

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

GetField2Ok

func (o *NestedObject2) 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 *NestedObject2) SetField2(v string)

SetField2 sets Field2 field to given value.

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