RpcStatus Model
RpcStatus Model documentation for Go SDK
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Code | int32 | gRPC status code as defined by google.rpc.Code | |
| Message | Pointer to NullableString | Human-readable error message | [optional] |
Methods
NewRpcStatus
func NewRpcStatus(code int32, ) *RpcStatus
NewRpcStatus instantiates a new RpcStatus 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
NewRpcStatusWithDefaults
func NewRpcStatusWithDefaults() *RpcStatus
NewRpcStatusWithDefaults instantiates a new RpcStatus 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
GetCode
func (o *RpcStatus) GetCode() int32
GetCode returns the Code field if non-nil, zero value otherwise.
GetCodeOk
func (o *RpcStatus) GetCodeOk() (*int32, bool)
GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCode
func (o *RpcStatus) SetCode(v int32)
SetCode sets Code field to given value.
GetMessage
func (o *RpcStatus) GetMessage() string
GetMessage returns the Message field if non-nil, zero value otherwise.
GetMessageOk
func (o *RpcStatus) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMessage
func (o *RpcStatus) SetMessage(v string)
SetMessage sets Message field to given value.
HasMessage
func (o *RpcStatus) HasMessage() bool
HasMessage returns a boolean if a field has been set.
SetMessageNil
func (o *RpcStatus) SetMessageNil(b bool)
SetMessageNil sets the value for Message to be an explicit nil
UnsetMessage
func (o *RpcStatus) UnsetMessage()
UnsetMessage ensures that no value is present for Message, not even an explicit nil