1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_civic_address.go 30.63 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312
/*
3gpp-data-reporting
API for 3GPP Data Reporting. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_DataReporting
import (
"encoding/json"
)
// checks if the CivicAddress type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CivicAddress{}
// CivicAddress Indicates a Civic address.
type CivicAddress struct {
Country *string `json:"country,omitempty"`
A1 *string `json:"A1,omitempty"`
A2 *string `json:"A2,omitempty"`
A3 *string `json:"A3,omitempty"`
A4 *string `json:"A4,omitempty"`
A5 *string `json:"A5,omitempty"`
A6 *string `json:"A6,omitempty"`
PRD *string `json:"PRD,omitempty"`
POD *string `json:"POD,omitempty"`
STS *string `json:"STS,omitempty"`
HNO *string `json:"HNO,omitempty"`
HNS *string `json:"HNS,omitempty"`
LMK *string `json:"LMK,omitempty"`
LOC *string `json:"LOC,omitempty"`
NAM *string `json:"NAM,omitempty"`
PC *string `json:"PC,omitempty"`
BLD *string `json:"BLD,omitempty"`
UNIT *string `json:"UNIT,omitempty"`
FLR *string `json:"FLR,omitempty"`
ROOM *string `json:"ROOM,omitempty"`
PLC *string `json:"PLC,omitempty"`
PCN *string `json:"PCN,omitempty"`
POBOX *string `json:"POBOX,omitempty"`
ADDCODE *string `json:"ADDCODE,omitempty"`
SEAT *string `json:"SEAT,omitempty"`
RD *string `json:"RD,omitempty"`
RDSEC *string `json:"RDSEC,omitempty"`
RDBR *string `json:"RDBR,omitempty"`
RDSUBBR *string `json:"RDSUBBR,omitempty"`
PRM *string `json:"PRM,omitempty"`
POM *string `json:"POM,omitempty"`
UsageRules *string `json:"usageRules,omitempty"`
Method *string `json:"method,omitempty"`
ProvidedBy *string `json:"providedBy,omitempty"`
}
// NewCivicAddress instantiates a new CivicAddress 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 NewCivicAddress() *CivicAddress {
this := CivicAddress{}
return &this
}
// NewCivicAddressWithDefaults instantiates a new CivicAddress 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 NewCivicAddressWithDefaults() *CivicAddress {
this := CivicAddress{}
return &this
}
// GetCountry returns the Country field value if set, zero value otherwise.
func (o *CivicAddress) GetCountry() string {
if o == nil || IsNil(o.Country) {
var ret string
return ret
}
return *o.Country
}
// GetCountryOk returns a tuple with the Country field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetCountryOk() (*string, bool) {
if o == nil || IsNil(o.Country) {
return nil, false
}
return o.Country, true
}
// HasCountry returns a boolean if a field has been set.
func (o *CivicAddress) HasCountry() bool {
if o != nil && !IsNil(o.Country) {
return true
}
return false
}
// SetCountry gets a reference to the given string and assigns it to the Country field.
func (o *CivicAddress) SetCountry(v string) {
o.Country = &v
}
// GetA1 returns the A1 field value if set, zero value otherwise.
func (o *CivicAddress) GetA1() string {
if o == nil || IsNil(o.A1) {
var ret string
return ret
}
return *o.A1
}
// GetA1Ok returns a tuple with the A1 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetA1Ok() (*string, bool) {
if o == nil || IsNil(o.A1) {
return nil, false
}
return o.A1, true
}
// HasA1 returns a boolean if a field has been set.
func (o *CivicAddress) HasA1() bool {
if o != nil && !IsNil(o.A1) {
return true
}
return false
}
// SetA1 gets a reference to the given string and assigns it to the A1 field.
func (o *CivicAddress) SetA1(v string) {
o.A1 = &v
}
// GetA2 returns the A2 field value if set, zero value otherwise.
func (o *CivicAddress) GetA2() string {
if o == nil || IsNil(o.A2) {
var ret string
return ret
}
return *o.A2
}
// GetA2Ok returns a tuple with the A2 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetA2Ok() (*string, bool) {
if o == nil || IsNil(o.A2) {
return nil, false
}
return o.A2, true
}
// HasA2 returns a boolean if a field has been set.
func (o *CivicAddress) HasA2() bool {
if o != nil && !IsNil(o.A2) {
return true
}
return false
}
// SetA2 gets a reference to the given string and assigns it to the A2 field.
func (o *CivicAddress) SetA2(v string) {
o.A2 = &v
}
// GetA3 returns the A3 field value if set, zero value otherwise.
func (o *CivicAddress) GetA3() string {
if o == nil || IsNil(o.A3) {
var ret string
return ret
}
return *o.A3
}
// GetA3Ok returns a tuple with the A3 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetA3Ok() (*string, bool) {
if o == nil || IsNil(o.A3) {
return nil, false
}
return o.A3, true
}
// HasA3 returns a boolean if a field has been set.
func (o *CivicAddress) HasA3() bool {
if o != nil && !IsNil(o.A3) {
return true
}
return false
}
// SetA3 gets a reference to the given string and assigns it to the A3 field.
func (o *CivicAddress) SetA3(v string) {
o.A3 = &v
}
// GetA4 returns the A4 field value if set, zero value otherwise.
func (o *CivicAddress) GetA4() string {
if o == nil || IsNil(o.A4) {
var ret string
return ret
}
return *o.A4
}
// GetA4Ok returns a tuple with the A4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetA4Ok() (*string, bool) {
if o == nil || IsNil(o.A4) {
return nil, false
}
return o.A4, true
}
// HasA4 returns a boolean if a field has been set.
func (o *CivicAddress) HasA4() bool {
if o != nil && !IsNil(o.A4) {
return true
}
return false
}
// SetA4 gets a reference to the given string and assigns it to the A4 field.
func (o *CivicAddress) SetA4(v string) {
o.A4 = &v
}
// GetA5 returns the A5 field value if set, zero value otherwise.
func (o *CivicAddress) GetA5() string {
if o == nil || IsNil(o.A5) {
var ret string
return ret
}
return *o.A5
}
// GetA5Ok returns a tuple with the A5 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetA5Ok() (*string, bool) {
if o == nil || IsNil(o.A5) {
return nil, false
}
return o.A5, true
}
// HasA5 returns a boolean if a field has been set.
func (o *CivicAddress) HasA5() bool {
if o != nil && !IsNil(o.A5) {
return true
}
return false
}
// SetA5 gets a reference to the given string and assigns it to the A5 field.
func (o *CivicAddress) SetA5(v string) {
o.A5 = &v
}
// GetA6 returns the A6 field value if set, zero value otherwise.
func (o *CivicAddress) GetA6() string {
if o == nil || IsNil(o.A6) {
var ret string
return ret
}
return *o.A6
}
// GetA6Ok returns a tuple with the A6 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetA6Ok() (*string, bool) {
if o == nil || IsNil(o.A6) {
return nil, false
}
return o.A6, true
}
// HasA6 returns a boolean if a field has been set.
func (o *CivicAddress) HasA6() bool {
if o != nil && !IsNil(o.A6) {
return true
}
return false
}
// SetA6 gets a reference to the given string and assigns it to the A6 field.
func (o *CivicAddress) SetA6(v string) {
o.A6 = &v
}
// GetPRD returns the PRD field value if set, zero value otherwise.
func (o *CivicAddress) GetPRD() string {
if o == nil || IsNil(o.PRD) {
var ret string
return ret
}
return *o.PRD
}
// GetPRDOk returns a tuple with the PRD field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetPRDOk() (*string, bool) {
if o == nil || IsNil(o.PRD) {
return nil, false
}
return o.PRD, true
}
// HasPRD returns a boolean if a field has been set.
func (o *CivicAddress) HasPRD() bool {
if o != nil && !IsNil(o.PRD) {
return true
}
return false
}
// SetPRD gets a reference to the given string and assigns it to the PRD field.
func (o *CivicAddress) SetPRD(v string) {
o.PRD = &v
}
// GetPOD returns the POD field value if set, zero value otherwise.
func (o *CivicAddress) GetPOD() string {
if o == nil || IsNil(o.POD) {
var ret string
return ret
}
return *o.POD
}
// GetPODOk returns a tuple with the POD field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetPODOk() (*string, bool) {
if o == nil || IsNil(o.POD) {
return nil, false
}
return o.POD, true
}
// HasPOD returns a boolean if a field has been set.
func (o *CivicAddress) HasPOD() bool {
if o != nil && !IsNil(o.POD) {
return true
}
return false
}
// SetPOD gets a reference to the given string and assigns it to the POD field.
func (o *CivicAddress) SetPOD(v string) {
o.POD = &v
}
// GetSTS returns the STS field value if set, zero value otherwise.
func (o *CivicAddress) GetSTS() string {
if o == nil || IsNil(o.STS) {
var ret string
return ret
}
return *o.STS
}
// GetSTSOk returns a tuple with the STS field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetSTSOk() (*string, bool) {
if o == nil || IsNil(o.STS) {
return nil, false
}
return o.STS, true
}
// HasSTS returns a boolean if a field has been set.
func (o *CivicAddress) HasSTS() bool {
if o != nil && !IsNil(o.STS) {
return true
}
return false
}
// SetSTS gets a reference to the given string and assigns it to the STS field.
func (o *CivicAddress) SetSTS(v string) {
o.STS = &v
}
// GetHNO returns the HNO field value if set, zero value otherwise.
func (o *CivicAddress) GetHNO() string {
if o == nil || IsNil(o.HNO) {
var ret string
return ret
}
return *o.HNO
}
// GetHNOOk returns a tuple with the HNO field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetHNOOk() (*string, bool) {
if o == nil || IsNil(o.HNO) {
return nil, false
}
return o.HNO, true
}
// HasHNO returns a boolean if a field has been set.
func (o *CivicAddress) HasHNO() bool {
if o != nil && !IsNil(o.HNO) {
return true
}
return false
}
// SetHNO gets a reference to the given string and assigns it to the HNO field.
func (o *CivicAddress) SetHNO(v string) {
o.HNO = &v
}
// GetHNS returns the HNS field value if set, zero value otherwise.
func (o *CivicAddress) GetHNS() string {
if o == nil || IsNil(o.HNS) {
var ret string
return ret
}
return *o.HNS
}
// GetHNSOk returns a tuple with the HNS field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetHNSOk() (*string, bool) {
if o == nil || IsNil(o.HNS) {
return nil, false
}
return o.HNS, true
}
// HasHNS returns a boolean if a field has been set.
func (o *CivicAddress) HasHNS() bool {
if o != nil && !IsNil(o.HNS) {
return true
}
return false
}
// SetHNS gets a reference to the given string and assigns it to the HNS field.
func (o *CivicAddress) SetHNS(v string) {
o.HNS = &v
}
// GetLMK returns the LMK field value if set, zero value otherwise.
func (o *CivicAddress) GetLMK() string {
if o == nil || IsNil(o.LMK) {
var ret string
return ret
}
return *o.LMK
}
// GetLMKOk returns a tuple with the LMK field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetLMKOk() (*string, bool) {
if o == nil || IsNil(o.LMK) {
return nil, false
}
return o.LMK, true
}
// HasLMK returns a boolean if a field has been set.
func (o *CivicAddress) HasLMK() bool {
if o != nil && !IsNil(o.LMK) {
return true
}
return false
}
// SetLMK gets a reference to the given string and assigns it to the LMK field.
func (o *CivicAddress) SetLMK(v string) {
o.LMK = &v
}
// GetLOC returns the LOC field value if set, zero value otherwise.
func (o *CivicAddress) GetLOC() string {
if o == nil || IsNil(o.LOC) {
var ret string
return ret
}
return *o.LOC
}
// GetLOCOk returns a tuple with the LOC field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetLOCOk() (*string, bool) {
if o == nil || IsNil(o.LOC) {
return nil, false
}
return o.LOC, true
}
// HasLOC returns a boolean if a field has been set.
func (o *CivicAddress) HasLOC() bool {
if o != nil && !IsNil(o.LOC) {
return true
}
return false
}
// SetLOC gets a reference to the given string and assigns it to the LOC field.
func (o *CivicAddress) SetLOC(v string) {
o.LOC = &v
}
// GetNAM returns the NAM field value if set, zero value otherwise.
func (o *CivicAddress) GetNAM() string {
if o == nil || IsNil(o.NAM) {
var ret string
return ret
}
return *o.NAM
}
// GetNAMOk returns a tuple with the NAM field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetNAMOk() (*string, bool) {
if o == nil || IsNil(o.NAM) {
return nil, false
}
return o.NAM, true
}
// HasNAM returns a boolean if a field has been set.
func (o *CivicAddress) HasNAM() bool {
if o != nil && !IsNil(o.NAM) {
return true
}
return false
}
// SetNAM gets a reference to the given string and assigns it to the NAM field.
func (o *CivicAddress) SetNAM(v string) {
o.NAM = &v
}
// GetPC returns the PC field value if set, zero value otherwise.
func (o *CivicAddress) GetPC() string {
if o == nil || IsNil(o.PC) {
var ret string
return ret
}
return *o.PC
}
// GetPCOk returns a tuple with the PC field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetPCOk() (*string, bool) {
if o == nil || IsNil(o.PC) {
return nil, false
}
return o.PC, true
}
// HasPC returns a boolean if a field has been set.
func (o *CivicAddress) HasPC() bool {
if o != nil && !IsNil(o.PC) {
return true
}
return false
}
// SetPC gets a reference to the given string and assigns it to the PC field.
func (o *CivicAddress) SetPC(v string) {
o.PC = &v
}
// GetBLD returns the BLD field value if set, zero value otherwise.
func (o *CivicAddress) GetBLD() string {
if o == nil || IsNil(o.BLD) {
var ret string
return ret
}
return *o.BLD
}
// GetBLDOk returns a tuple with the BLD field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetBLDOk() (*string, bool) {
if o == nil || IsNil(o.BLD) {
return nil, false
}
return o.BLD, true
}
// HasBLD returns a boolean if a field has been set.
func (o *CivicAddress) HasBLD() bool {
if o != nil && !IsNil(o.BLD) {
return true
}
return false
}
// SetBLD gets a reference to the given string and assigns it to the BLD field.
func (o *CivicAddress) SetBLD(v string) {
o.BLD = &v
}
// GetUNIT returns the UNIT field value if set, zero value otherwise.
func (o *CivicAddress) GetUNIT() string {
if o == nil || IsNil(o.UNIT) {
var ret string
return ret
}
return *o.UNIT
}
// GetUNITOk returns a tuple with the UNIT field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetUNITOk() (*string, bool) {
if o == nil || IsNil(o.UNIT) {
return nil, false
}
return o.UNIT, true
}
// HasUNIT returns a boolean if a field has been set.
func (o *CivicAddress) HasUNIT() bool {
if o != nil && !IsNil(o.UNIT) {
return true
}
return false
}
// SetUNIT gets a reference to the given string and assigns it to the UNIT field.
func (o *CivicAddress) SetUNIT(v string) {
o.UNIT = &v
}
// GetFLR returns the FLR field value if set, zero value otherwise.
func (o *CivicAddress) GetFLR() string {
if o == nil || IsNil(o.FLR) {
var ret string
return ret
}
return *o.FLR
}
// GetFLROk returns a tuple with the FLR field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetFLROk() (*string, bool) {
if o == nil || IsNil(o.FLR) {
return nil, false
}
return o.FLR, true
}
// HasFLR returns a boolean if a field has been set.
func (o *CivicAddress) HasFLR() bool {
if o != nil && !IsNil(o.FLR) {
return true
}
return false
}
// SetFLR gets a reference to the given string and assigns it to the FLR field.
func (o *CivicAddress) SetFLR(v string) {
o.FLR = &v
}
// GetROOM returns the ROOM field value if set, zero value otherwise.
func (o *CivicAddress) GetROOM() string {
if o == nil || IsNil(o.ROOM) {
var ret string
return ret
}
return *o.ROOM
}
// GetROOMOk returns a tuple with the ROOM field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetROOMOk() (*string, bool) {
if o == nil || IsNil(o.ROOM) {
return nil, false
}
return o.ROOM, true
}
// HasROOM returns a boolean if a field has been set.
func (o *CivicAddress) HasROOM() bool {
if o != nil && !IsNil(o.ROOM) {
return true
}
return false
}
// SetROOM gets a reference to the given string and assigns it to the ROOM field.
func (o *CivicAddress) SetROOM(v string) {
o.ROOM = &v
}
// GetPLC returns the PLC field value if set, zero value otherwise.
func (o *CivicAddress) GetPLC() string {
if o == nil || IsNil(o.PLC) {
var ret string
return ret
}
return *o.PLC
}
// GetPLCOk returns a tuple with the PLC field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetPLCOk() (*string, bool) {
if o == nil || IsNil(o.PLC) {
return nil, false
}
return o.PLC, true
}
// HasPLC returns a boolean if a field has been set.
func (o *CivicAddress) HasPLC() bool {
if o != nil && !IsNil(o.PLC) {
return true
}
return false
}
// SetPLC gets a reference to the given string and assigns it to the PLC field.
func (o *CivicAddress) SetPLC(v string) {
o.PLC = &v
}
// GetPCN returns the PCN field value if set, zero value otherwise.
func (o *CivicAddress) GetPCN() string {
if o == nil || IsNil(o.PCN) {
var ret string
return ret
}
return *o.PCN
}
// GetPCNOk returns a tuple with the PCN field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetPCNOk() (*string, bool) {
if o == nil || IsNil(o.PCN) {
return nil, false
}
return o.PCN, true
}
// HasPCN returns a boolean if a field has been set.
func (o *CivicAddress) HasPCN() bool {
if o != nil && !IsNil(o.PCN) {
return true
}
return false
}
// SetPCN gets a reference to the given string and assigns it to the PCN field.
func (o *CivicAddress) SetPCN(v string) {
o.PCN = &v
}
// GetPOBOX returns the POBOX field value if set, zero value otherwise.
func (o *CivicAddress) GetPOBOX() string {
if o == nil || IsNil(o.POBOX) {
var ret string
return ret
}
return *o.POBOX
}
// GetPOBOXOk returns a tuple with the POBOX field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetPOBOXOk() (*string, bool) {
if o == nil || IsNil(o.POBOX) {
return nil, false
}
return o.POBOX, true
}
// HasPOBOX returns a boolean if a field has been set.
func (o *CivicAddress) HasPOBOX() bool {
if o != nil && !IsNil(o.POBOX) {
return true
}
return false
}
// SetPOBOX gets a reference to the given string and assigns it to the POBOX field.
func (o *CivicAddress) SetPOBOX(v string) {
o.POBOX = &v
}
// GetADDCODE returns the ADDCODE field value if set, zero value otherwise.
func (o *CivicAddress) GetADDCODE() string {
if o == nil || IsNil(o.ADDCODE) {
var ret string
return ret
}
return *o.ADDCODE
}
// GetADDCODEOk returns a tuple with the ADDCODE field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetADDCODEOk() (*string, bool) {
if o == nil || IsNil(o.ADDCODE) {
return nil, false
}
return o.ADDCODE, true
}
// HasADDCODE returns a boolean if a field has been set.
func (o *CivicAddress) HasADDCODE() bool {
if o != nil && !IsNil(o.ADDCODE) {
return true
}
return false
}
// SetADDCODE gets a reference to the given string and assigns it to the ADDCODE field.
func (o *CivicAddress) SetADDCODE(v string) {
o.ADDCODE = &v
}
// GetSEAT returns the SEAT field value if set, zero value otherwise.
func (o *CivicAddress) GetSEAT() string {
if o == nil || IsNil(o.SEAT) {
var ret string
return ret
}
return *o.SEAT
}
// GetSEATOk returns a tuple with the SEAT field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetSEATOk() (*string, bool) {
if o == nil || IsNil(o.SEAT) {
return nil, false
}
return o.SEAT, true
}
// HasSEAT returns a boolean if a field has been set.
func (o *CivicAddress) HasSEAT() bool {
if o != nil && !IsNil(o.SEAT) {
return true
}
return false
}
// SetSEAT gets a reference to the given string and assigns it to the SEAT field.
func (o *CivicAddress) SetSEAT(v string) {
o.SEAT = &v
}
// GetRD returns the RD field value if set, zero value otherwise.
func (o *CivicAddress) GetRD() string {
if o == nil || IsNil(o.RD) {
var ret string
return ret
}
return *o.RD
}
// GetRDOk returns a tuple with the RD field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetRDOk() (*string, bool) {
if o == nil || IsNil(o.RD) {
return nil, false
}
return o.RD, true
}
// HasRD returns a boolean if a field has been set.
func (o *CivicAddress) HasRD() bool {
if o != nil && !IsNil(o.RD) {
return true
}
return false
}
// SetRD gets a reference to the given string and assigns it to the RD field.
func (o *CivicAddress) SetRD(v string) {
o.RD = &v
}
// GetRDSEC returns the RDSEC field value if set, zero value otherwise.
func (o *CivicAddress) GetRDSEC() string {
if o == nil || IsNil(o.RDSEC) {
var ret string
return ret
}
return *o.RDSEC
}
// GetRDSECOk returns a tuple with the RDSEC field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetRDSECOk() (*string, bool) {
if o == nil || IsNil(o.RDSEC) {
return nil, false
}
return o.RDSEC, true
}
// HasRDSEC returns a boolean if a field has been set.
func (o *CivicAddress) HasRDSEC() bool {
if o != nil && !IsNil(o.RDSEC) {
return true
}
return false
}
// SetRDSEC gets a reference to the given string and assigns it to the RDSEC field.
func (o *CivicAddress) SetRDSEC(v string) {
o.RDSEC = &v
}
// GetRDBR returns the RDBR field value if set, zero value otherwise.
func (o *CivicAddress) GetRDBR() string {
if o == nil || IsNil(o.RDBR) {
var ret string
return ret
}
return *o.RDBR
}
// GetRDBROk returns a tuple with the RDBR field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetRDBROk() (*string, bool) {
if o == nil || IsNil(o.RDBR) {
return nil, false
}
return o.RDBR, true
}
// HasRDBR returns a boolean if a field has been set.
func (o *CivicAddress) HasRDBR() bool {
if o != nil && !IsNil(o.RDBR) {
return true
}
return false
}
// SetRDBR gets a reference to the given string and assigns it to the RDBR field.
func (o *CivicAddress) SetRDBR(v string) {
o.RDBR = &v
}
// GetRDSUBBR returns the RDSUBBR field value if set, zero value otherwise.
func (o *CivicAddress) GetRDSUBBR() string {
if o == nil || IsNil(o.RDSUBBR) {
var ret string
return ret
}
return *o.RDSUBBR
}
// GetRDSUBBROk returns a tuple with the RDSUBBR field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetRDSUBBROk() (*string, bool) {
if o == nil || IsNil(o.RDSUBBR) {
return nil, false
}
return o.RDSUBBR, true
}
// HasRDSUBBR returns a boolean if a field has been set.
func (o *CivicAddress) HasRDSUBBR() bool {
if o != nil && !IsNil(o.RDSUBBR) {
return true
}
return false
}
// SetRDSUBBR gets a reference to the given string and assigns it to the RDSUBBR field.
func (o *CivicAddress) SetRDSUBBR(v string) {
o.RDSUBBR = &v
}
// GetPRM returns the PRM field value if set, zero value otherwise.
func (o *CivicAddress) GetPRM() string {
if o == nil || IsNil(o.PRM) {
var ret string
return ret
}
return *o.PRM
}
// GetPRMOk returns a tuple with the PRM field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetPRMOk() (*string, bool) {
if o == nil || IsNil(o.PRM) {
return nil, false
}
return o.PRM, true
}
// HasPRM returns a boolean if a field has been set.
func (o *CivicAddress) HasPRM() bool {
if o != nil && !IsNil(o.PRM) {
return true
}
return false
}
// SetPRM gets a reference to the given string and assigns it to the PRM field.
func (o *CivicAddress) SetPRM(v string) {
o.PRM = &v
}
// GetPOM returns the POM field value if set, zero value otherwise.
func (o *CivicAddress) GetPOM() string {
if o == nil || IsNil(o.POM) {
var ret string
return ret
}
return *o.POM
}
// GetPOMOk returns a tuple with the POM field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetPOMOk() (*string, bool) {
if o == nil || IsNil(o.POM) {
return nil, false
}
return o.POM, true
}
// HasPOM returns a boolean if a field has been set.
func (o *CivicAddress) HasPOM() bool {
if o != nil && !IsNil(o.POM) {
return true
}
return false
}
// SetPOM gets a reference to the given string and assigns it to the POM field.
func (o *CivicAddress) SetPOM(v string) {
o.POM = &v
}
// GetUsageRules returns the UsageRules field value if set, zero value otherwise.
func (o *CivicAddress) GetUsageRules() string {
if o == nil || IsNil(o.UsageRules) {
var ret string
return ret
}
return *o.UsageRules
}
// GetUsageRulesOk returns a tuple with the UsageRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetUsageRulesOk() (*string, bool) {
if o == nil || IsNil(o.UsageRules) {
return nil, false
}
return o.UsageRules, true
}
// HasUsageRules returns a boolean if a field has been set.
func (o *CivicAddress) HasUsageRules() bool {
if o != nil && !IsNil(o.UsageRules) {
return true
}
return false
}
// SetUsageRules gets a reference to the given string and assigns it to the UsageRules field.
func (o *CivicAddress) SetUsageRules(v string) {
o.UsageRules = &v
}
// GetMethod returns the Method field value if set, zero value otherwise.
func (o *CivicAddress) GetMethod() string {
if o == nil || IsNil(o.Method) {
var ret string
return ret
}
return *o.Method
}
// GetMethodOk returns a tuple with the Method field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetMethodOk() (*string, bool) {
if o == nil || IsNil(o.Method) {
return nil, false
}
return o.Method, true
}
// HasMethod returns a boolean if a field has been set.
func (o *CivicAddress) HasMethod() bool {
if o != nil && !IsNil(o.Method) {
return true
}
return false
}
// SetMethod gets a reference to the given string and assigns it to the Method field.
func (o *CivicAddress) SetMethod(v string) {
o.Method = &v
}
// GetProvidedBy returns the ProvidedBy field value if set, zero value otherwise.
func (o *CivicAddress) GetProvidedBy() string {
if o == nil || IsNil(o.ProvidedBy) {
var ret string
return ret
}
return *o.ProvidedBy
}
// GetProvidedByOk returns a tuple with the ProvidedBy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CivicAddress) GetProvidedByOk() (*string, bool) {
if o == nil || IsNil(o.ProvidedBy) {
return nil, false
}
return o.ProvidedBy, true
}
// HasProvidedBy returns a boolean if a field has been set.
func (o *CivicAddress) HasProvidedBy() bool {
if o != nil && !IsNil(o.ProvidedBy) {
return true
}
return false
}
// SetProvidedBy gets a reference to the given string and assigns it to the ProvidedBy field.
func (o *CivicAddress) SetProvidedBy(v string) {
o.ProvidedBy = &v
}
func (o CivicAddress) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o CivicAddress) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Country) {
toSerialize["country"] = o.Country
}
if !IsNil(o.A1) {
toSerialize["A1"] = o.A1
}
if !IsNil(o.A2) {
toSerialize["A2"] = o.A2
}
if !IsNil(o.A3) {
toSerialize["A3"] = o.A3
}
if !IsNil(o.A4) {
toSerialize["A4"] = o.A4
}
if !IsNil(o.A5) {
toSerialize["A5"] = o.A5
}
if !IsNil(o.A6) {
toSerialize["A6"] = o.A6
}
if !IsNil(o.PRD) {
toSerialize["PRD"] = o.PRD
}
if !IsNil(o.POD) {
toSerialize["POD"] = o.POD
}
if !IsNil(o.STS) {
toSerialize["STS"] = o.STS
}
if !IsNil(o.HNO) {
toSerialize["HNO"] = o.HNO
}
if !IsNil(o.HNS) {
toSerialize["HNS"] = o.HNS
}
if !IsNil(o.LMK) {
toSerialize["LMK"] = o.LMK
}
if !IsNil(o.LOC) {
toSerialize["LOC"] = o.LOC
}
if !IsNil(o.NAM) {
toSerialize["NAM"] = o.NAM
}
if !IsNil(o.PC) {
toSerialize["PC"] = o.PC
}
if !IsNil(o.BLD) {
toSerialize["BLD"] = o.BLD
}
if !IsNil(o.UNIT) {
toSerialize["UNIT"] = o.UNIT
}
if !IsNil(o.FLR) {
toSerialize["FLR"] = o.FLR
}
if !IsNil(o.ROOM) {
toSerialize["ROOM"] = o.ROOM
}
if !IsNil(o.PLC) {
toSerialize["PLC"] = o.PLC
}
if !IsNil(o.PCN) {
toSerialize["PCN"] = o.PCN
}
if !IsNil(o.POBOX) {
toSerialize["POBOX"] = o.POBOX
}
if !IsNil(o.ADDCODE) {
toSerialize["ADDCODE"] = o.ADDCODE
}
if !IsNil(o.SEAT) {
toSerialize["SEAT"] = o.SEAT
}
if !IsNil(o.RD) {
toSerialize["RD"] = o.RD
}
if !IsNil(o.RDSEC) {
toSerialize["RDSEC"] = o.RDSEC
}
if !IsNil(o.RDBR) {
toSerialize["RDBR"] = o.RDBR
}
if !IsNil(o.RDSUBBR) {
toSerialize["RDSUBBR"] = o.RDSUBBR
}
if !IsNil(o.PRM) {
toSerialize["PRM"] = o.PRM
}
if !IsNil(o.POM) {
toSerialize["POM"] = o.POM
}
if !IsNil(o.UsageRules) {
toSerialize["usageRules"] = o.UsageRules
}
if !IsNil(o.Method) {
toSerialize["method"] = o.Method
}
if !IsNil(o.ProvidedBy) {
toSerialize["providedBy"] = o.ProvidedBy
}
return toSerialize, nil
}
type NullableCivicAddress struct {
value *CivicAddress
isSet bool
}
func (v NullableCivicAddress) Get() *CivicAddress {
return v.value
}
func (v *NullableCivicAddress) Set(val *CivicAddress) {
v.value = val
v.isSet = true
}
func (v NullableCivicAddress) IsSet() bool {
return v.isSet
}
func (v *NullableCivicAddress) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCivicAddress(val *CivicAddress) *NullableCivicAddress {
return &NullableCivicAddress{value: val, isSet: true}
}
func (v NullableCivicAddress) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableCivicAddress) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助