-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_hcl_range_start.go
204 lines (169 loc) · 5.7 KB
/
model_hcl_range_start.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
/*
Flowpipe
Flowpipe is workflow and pipelines for DevSecOps.
API version: 0.1.0
Contact: info@flowpipe.io
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package flowpipeapi
import (
"encoding/json"
)
// checks if the HclRangeStart type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &HclRangeStart{}
// HclRangeStart Start and End represent the bounds of this range. Start is inclusive and End is exclusive.
type HclRangeStart struct {
// Byte is the byte offset into the file where the indicated character begins. This is a zero-based offset to the first byte of the first UTF-8 codepoint sequence in the character, and thus gives a position that can be resolved _without_ awareness of Unicode characters.
Byte *int32 `json:"byte,omitempty"`
// Column is the source code column where this position points, in unicode characters, with counting starting at 1. Column counts characters as they appear visually, so for example a latin letter with a combining diacritic mark counts as one character. This is intended for rendering visual markers against source code in contexts where these diacritics would be rendered in a single character cell. Technically speaking, Column is counting grapheme clusters as used in unicode normalization.
Column *int32 `json:"column,omitempty"`
// Line is the source code line where this position points. Lines are counted starting at 1 and incremented for each newline character encountered.
Line *int32 `json:"line,omitempty"`
}
func (o HclRangeStart) GetResourceType() string {
return "HclRangeStart"
}
// NewHclRangeStart instantiates a new HclRangeStart 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 NewHclRangeStart() *HclRangeStart {
this := HclRangeStart{}
return &this
}
// NewHclRangeStartWithDefaults instantiates a new HclRangeStart 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 NewHclRangeStartWithDefaults() *HclRangeStart {
this := HclRangeStart{}
return &this
}
// GetByte returns the Byte field value if set, zero value otherwise.
func (o *HclRangeStart) GetByte() int32 {
if o == nil || IsNil(o.Byte) {
var ret int32
return ret
}
return *o.Byte
}
// GetByteOk returns a tuple with the Byte field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HclRangeStart) GetByteOk() (*int32, bool) {
if o == nil || IsNil(o.Byte) {
return nil, false
}
return o.Byte, true
}
// HasByte returns a boolean if a field has been set.
func (o *HclRangeStart) HasByte() bool {
if o != nil && !IsNil(o.Byte) {
return true
}
return false
}
// SetByte gets a reference to the given int32 and assigns it to the Byte field.
func (o *HclRangeStart) SetByte(v int32) {
o.Byte = &v
}
// GetColumn returns the Column field value if set, zero value otherwise.
func (o *HclRangeStart) GetColumn() int32 {
if o == nil || IsNil(o.Column) {
var ret int32
return ret
}
return *o.Column
}
// GetColumnOk returns a tuple with the Column field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HclRangeStart) GetColumnOk() (*int32, bool) {
if o == nil || IsNil(o.Column) {
return nil, false
}
return o.Column, true
}
// HasColumn returns a boolean if a field has been set.
func (o *HclRangeStart) HasColumn() bool {
if o != nil && !IsNil(o.Column) {
return true
}
return false
}
// SetColumn gets a reference to the given int32 and assigns it to the Column field.
func (o *HclRangeStart) SetColumn(v int32) {
o.Column = &v
}
// GetLine returns the Line field value if set, zero value otherwise.
func (o *HclRangeStart) GetLine() int32 {
if o == nil || IsNil(o.Line) {
var ret int32
return ret
}
return *o.Line
}
// GetLineOk returns a tuple with the Line field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HclRangeStart) GetLineOk() (*int32, bool) {
if o == nil || IsNil(o.Line) {
return nil, false
}
return o.Line, true
}
// HasLine returns a boolean if a field has been set.
func (o *HclRangeStart) HasLine() bool {
if o != nil && !IsNil(o.Line) {
return true
}
return false
}
// SetLine gets a reference to the given int32 and assigns it to the Line field.
func (o *HclRangeStart) SetLine(v int32) {
o.Line = &v
}
func (o HclRangeStart) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o HclRangeStart) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Byte) {
toSerialize["byte"] = o.Byte
}
if !IsNil(o.Column) {
toSerialize["column"] = o.Column
}
if !IsNil(o.Line) {
toSerialize["line"] = o.Line
}
return toSerialize, nil
}
type NullableHclRangeStart struct {
value *HclRangeStart
isSet bool
}
func (v NullableHclRangeStart) Get() *HclRangeStart {
return v.value
}
func (v *NullableHclRangeStart) Set(val *HclRangeStart) {
v.value = val
v.isSet = true
}
func (v NullableHclRangeStart) IsSet() bool {
return v.isSet
}
func (v *NullableHclRangeStart) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableHclRangeStart(val *HclRangeStart) *NullableHclRangeStart {
return &NullableHclRangeStart{value: val, isSet: true}
}
func (v NullableHclRangeStart) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableHclRangeStart) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}