4.1 KiB
CodeCitation
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| EndLine | Pointer to int64 | EndLine is its last line, inclusive. | [optional] |
| File | Pointer to string | File is the path inside the repo, relative to its root. | [optional] |
| Line | Pointer to int64 | Line is the first line of the cited region, 1-based. | [optional] |
| Repo | Pointer to string | Repo is the repository the cited code lives in ("owner/name"), absent when the ask was already scoped to one. | [optional] |
| Symbol | Pointer to string | Symbol is the declaration the region belongs to, when it belongs to one. | [optional] |
Methods
NewCodeCitation
func NewCodeCitation() *CodeCitation
NewCodeCitation instantiates a new CodeCitation 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
NewCodeCitationWithDefaults
func NewCodeCitationWithDefaults() *CodeCitation
NewCodeCitationWithDefaults instantiates a new CodeCitation 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
GetEndLine
func (o *CodeCitation) GetEndLine() int64
GetEndLine returns the EndLine field if non-nil, zero value otherwise.
GetEndLineOk
func (o *CodeCitation) GetEndLineOk() (*int64, bool)
GetEndLineOk returns a tuple with the EndLine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetEndLine
func (o *CodeCitation) SetEndLine(v int64)
SetEndLine sets EndLine field to given value.
HasEndLine
func (o *CodeCitation) HasEndLine() bool
HasEndLine returns a boolean if a field has been set.
GetFile
func (o *CodeCitation) GetFile() string
GetFile returns the File field if non-nil, zero value otherwise.
GetFileOk
func (o *CodeCitation) GetFileOk() (*string, bool)
GetFileOk returns a tuple with the File field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetFile
func (o *CodeCitation) SetFile(v string)
SetFile sets File field to given value.
HasFile
func (o *CodeCitation) HasFile() bool
HasFile returns a boolean if a field has been set.
GetLine
func (o *CodeCitation) GetLine() int64
GetLine returns the Line field if non-nil, zero value otherwise.
GetLineOk
func (o *CodeCitation) GetLineOk() (*int64, bool)
GetLineOk returns a tuple with the Line field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetLine
func (o *CodeCitation) SetLine(v int64)
SetLine sets Line field to given value.
HasLine
func (o *CodeCitation) HasLine() bool
HasLine returns a boolean if a field has been set.
GetRepo
func (o *CodeCitation) GetRepo() string
GetRepo returns the Repo field if non-nil, zero value otherwise.
GetRepoOk
func (o *CodeCitation) GetRepoOk() (*string, bool)
GetRepoOk returns a tuple with the Repo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetRepo
func (o *CodeCitation) SetRepo(v string)
SetRepo sets Repo field to given value.
HasRepo
func (o *CodeCitation) HasRepo() bool
HasRepo returns a boolean if a field has been set.
GetSymbol
func (o *CodeCitation) GetSymbol() string
GetSymbol returns the Symbol field if non-nil, zero value otherwise.
GetSymbolOk
func (o *CodeCitation) GetSymbolOk() (*string, bool)
GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSymbol
func (o *CodeCitation) SetSymbol(v string)
SetSymbol sets Symbol field to given value.
HasSymbol
func (o *CodeCitation) HasSymbol() bool
HasSymbol returns a boolean if a field has been set.