mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
877 lines
26 KiB
Go
877 lines
26 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the PatentPatentImplementation type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &PatentPatentImplementation{}
|
|
|
|
// PatentPatentImplementation struct for PatentPatentImplementation
|
|
type PatentPatentImplementation struct {
|
|
// ArtifactSHA256 is the digest of the recorded artifact — a diff, a file, a build — when the caller has one and wants it addressed by content.
|
|
ArtifactSha256 *string `json:"artifact_sha256,omitempty"`
|
|
// AuthoredBy is the validated principal who recorded this. Authorship of the IDEA is PatentIdea.AuthoredBy — this field records who filed the implementation record, which is not the same question.
|
|
AuthoredBy *string `json:"authored_by,omitempty"`
|
|
// Canonical is DERIVED on read.
|
|
Canonical *bool `json:"canonical,omitempty"`
|
|
// ContentHash is the server's digest of the recorded content.
|
|
ContentHash *string `json:"content_hash,omitempty"`
|
|
// Generated says the recorded artifact was produced with a model's assistance rather than typed by hand.
|
|
Generated *bool `json:"generated,omitempty"`
|
|
// GitBranch is the branch that commit was on.
|
|
GitBranch *string `json:"git_branch,omitempty"`
|
|
// GitDirty says the working tree carried uncommitted changes when this was recorded. It is recorded because an exact commit claim that is not true is worse than no commit claim.
|
|
GitDirty *bool `json:"git_dirty,omitempty"`
|
|
// GitSHA is the commit. Together with Seq it is what makes the claim checkable outside this app: a reader can go read the code.
|
|
GitSha *string `json:"git_sha,omitempty"`
|
|
// HumanReview is what a person did with the output: accepted, edited, rewritten, or none. `none` on a novel mechanism is the disposition to know about.
|
|
HumanReview *string `json:"human_review,omitempty"`
|
|
// ID is this implementation's stable id — usually the artifact or change it records, e.g. router-v2-generated. Required.
|
|
Id *string `json:"id,omitempty"`
|
|
// IdeaIDs names the conceptions this implements. REQUIRED and non-empty: an implementation citing nothing is the inverted order the guidance is written against, and filing it silently would be the worst thing this surface could do.
|
|
IdeaIds []string `json:"idea_ids,omitempty"`
|
|
// Model names the system that produced the code, as it was addressed. This is the field that answers \"how much of this was a tool\" without a guess.
|
|
Model *string `json:"model,omitempty"`
|
|
// Notes is anything a later reader needs.
|
|
Notes *string `json:"notes,omitempty"`
|
|
// Project is the SERVER's scope value.
|
|
Project *string `json:"project,omitempty"`
|
|
// PromptSHA256 is the digest of the prompt, not the prompt. The text often carries third-party material; the digest lets a later reader prove the same request was made.
|
|
PromptSha256 *string `json:"prompt_sha256,omitempty"`
|
|
// RecordedAt is the server's clock.
|
|
RecordedAt *string `json:"recorded_at,omitempty"`
|
|
// Repo is the repository the work landed in.
|
|
Repo *string `json:"repo,omitempty"`
|
|
// Revision is original, corrected or retracted.
|
|
Revision *string `json:"revision,omitempty"`
|
|
// Seq is the append order, which is what GET /v1/patent/proof compares against the cited ideas.
|
|
Seq *int64 `json:"seq,omitempty"`
|
|
// Visibility is private, org or public; forced private on a write.
|
|
Visibility *string `json:"visibility,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _PatentPatentImplementation PatentPatentImplementation
|
|
|
|
// NewPatentPatentImplementation instantiates a new PatentPatentImplementation 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 NewPatentPatentImplementation() *PatentPatentImplementation {
|
|
this := PatentPatentImplementation{}
|
|
return &this
|
|
}
|
|
|
|
// NewPatentPatentImplementationWithDefaults instantiates a new PatentPatentImplementation 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 NewPatentPatentImplementationWithDefaults() *PatentPatentImplementation {
|
|
this := PatentPatentImplementation{}
|
|
return &this
|
|
}
|
|
|
|
// GetArtifactSha256 returns the ArtifactSha256 field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetArtifactSha256() string {
|
|
if o == nil || IsNil(o.ArtifactSha256) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ArtifactSha256
|
|
}
|
|
|
|
// GetArtifactSha256Ok returns a tuple with the ArtifactSha256 field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetArtifactSha256Ok() (*string, bool) {
|
|
if o == nil || IsNil(o.ArtifactSha256) {
|
|
return nil, false
|
|
}
|
|
return o.ArtifactSha256, true
|
|
}
|
|
|
|
// HasArtifactSha256 returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasArtifactSha256() bool {
|
|
if o != nil && !IsNil(o.ArtifactSha256) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetArtifactSha256 gets a reference to the given string and assigns it to the ArtifactSha256 field.
|
|
func (o *PatentPatentImplementation) SetArtifactSha256(v string) {
|
|
o.ArtifactSha256 = &v
|
|
}
|
|
|
|
// GetAuthoredBy returns the AuthoredBy field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetAuthoredBy() string {
|
|
if o == nil || IsNil(o.AuthoredBy) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AuthoredBy
|
|
}
|
|
|
|
// GetAuthoredByOk returns a tuple with the AuthoredBy field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetAuthoredByOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AuthoredBy) {
|
|
return nil, false
|
|
}
|
|
return o.AuthoredBy, true
|
|
}
|
|
|
|
// HasAuthoredBy returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasAuthoredBy() bool {
|
|
if o != nil && !IsNil(o.AuthoredBy) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAuthoredBy gets a reference to the given string and assigns it to the AuthoredBy field.
|
|
func (o *PatentPatentImplementation) SetAuthoredBy(v string) {
|
|
o.AuthoredBy = &v
|
|
}
|
|
|
|
// GetCanonical returns the Canonical field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetCanonical() bool {
|
|
if o == nil || IsNil(o.Canonical) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Canonical
|
|
}
|
|
|
|
// GetCanonicalOk returns a tuple with the Canonical field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetCanonicalOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Canonical) {
|
|
return nil, false
|
|
}
|
|
return o.Canonical, true
|
|
}
|
|
|
|
// HasCanonical returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasCanonical() bool {
|
|
if o != nil && !IsNil(o.Canonical) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCanonical gets a reference to the given bool and assigns it to the Canonical field.
|
|
func (o *PatentPatentImplementation) SetCanonical(v bool) {
|
|
o.Canonical = &v
|
|
}
|
|
|
|
// GetContentHash returns the ContentHash field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetContentHash() string {
|
|
if o == nil || IsNil(o.ContentHash) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ContentHash
|
|
}
|
|
|
|
// GetContentHashOk returns a tuple with the ContentHash field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetContentHashOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ContentHash) {
|
|
return nil, false
|
|
}
|
|
return o.ContentHash, true
|
|
}
|
|
|
|
// HasContentHash returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasContentHash() bool {
|
|
if o != nil && !IsNil(o.ContentHash) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetContentHash gets a reference to the given string and assigns it to the ContentHash field.
|
|
func (o *PatentPatentImplementation) SetContentHash(v string) {
|
|
o.ContentHash = &v
|
|
}
|
|
|
|
// GetGenerated returns the Generated field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetGenerated() bool {
|
|
if o == nil || IsNil(o.Generated) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Generated
|
|
}
|
|
|
|
// GetGeneratedOk returns a tuple with the Generated field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetGeneratedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Generated) {
|
|
return nil, false
|
|
}
|
|
return o.Generated, true
|
|
}
|
|
|
|
// HasGenerated returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasGenerated() bool {
|
|
if o != nil && !IsNil(o.Generated) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGenerated gets a reference to the given bool and assigns it to the Generated field.
|
|
func (o *PatentPatentImplementation) SetGenerated(v bool) {
|
|
o.Generated = &v
|
|
}
|
|
|
|
// GetGitBranch returns the GitBranch field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetGitBranch() string {
|
|
if o == nil || IsNil(o.GitBranch) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.GitBranch
|
|
}
|
|
|
|
// GetGitBranchOk returns a tuple with the GitBranch field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetGitBranchOk() (*string, bool) {
|
|
if o == nil || IsNil(o.GitBranch) {
|
|
return nil, false
|
|
}
|
|
return o.GitBranch, true
|
|
}
|
|
|
|
// HasGitBranch returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasGitBranch() bool {
|
|
if o != nil && !IsNil(o.GitBranch) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGitBranch gets a reference to the given string and assigns it to the GitBranch field.
|
|
func (o *PatentPatentImplementation) SetGitBranch(v string) {
|
|
o.GitBranch = &v
|
|
}
|
|
|
|
// GetGitDirty returns the GitDirty field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetGitDirty() bool {
|
|
if o == nil || IsNil(o.GitDirty) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.GitDirty
|
|
}
|
|
|
|
// GetGitDirtyOk returns a tuple with the GitDirty field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetGitDirtyOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.GitDirty) {
|
|
return nil, false
|
|
}
|
|
return o.GitDirty, true
|
|
}
|
|
|
|
// HasGitDirty returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasGitDirty() bool {
|
|
if o != nil && !IsNil(o.GitDirty) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGitDirty gets a reference to the given bool and assigns it to the GitDirty field.
|
|
func (o *PatentPatentImplementation) SetGitDirty(v bool) {
|
|
o.GitDirty = &v
|
|
}
|
|
|
|
// GetGitSha returns the GitSha field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetGitSha() string {
|
|
if o == nil || IsNil(o.GitSha) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.GitSha
|
|
}
|
|
|
|
// GetGitShaOk returns a tuple with the GitSha field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetGitShaOk() (*string, bool) {
|
|
if o == nil || IsNil(o.GitSha) {
|
|
return nil, false
|
|
}
|
|
return o.GitSha, true
|
|
}
|
|
|
|
// HasGitSha returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasGitSha() bool {
|
|
if o != nil && !IsNil(o.GitSha) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGitSha gets a reference to the given string and assigns it to the GitSha field.
|
|
func (o *PatentPatentImplementation) SetGitSha(v string) {
|
|
o.GitSha = &v
|
|
}
|
|
|
|
// GetHumanReview returns the HumanReview field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetHumanReview() string {
|
|
if o == nil || IsNil(o.HumanReview) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.HumanReview
|
|
}
|
|
|
|
// GetHumanReviewOk returns a tuple with the HumanReview field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetHumanReviewOk() (*string, bool) {
|
|
if o == nil || IsNil(o.HumanReview) {
|
|
return nil, false
|
|
}
|
|
return o.HumanReview, true
|
|
}
|
|
|
|
// HasHumanReview returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasHumanReview() bool {
|
|
if o != nil && !IsNil(o.HumanReview) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetHumanReview gets a reference to the given string and assigns it to the HumanReview field.
|
|
func (o *PatentPatentImplementation) SetHumanReview(v string) {
|
|
o.HumanReview = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetId() string {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Id
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Id) {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *PatentPatentImplementation) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetIdeaIds returns the IdeaIds field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetIdeaIds() []string {
|
|
if o == nil || IsNil(o.IdeaIds) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.IdeaIds
|
|
}
|
|
|
|
// GetIdeaIdsOk returns a tuple with the IdeaIds field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetIdeaIdsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.IdeaIds) {
|
|
return nil, false
|
|
}
|
|
return o.IdeaIds, true
|
|
}
|
|
|
|
// HasIdeaIds returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasIdeaIds() bool {
|
|
if o != nil && !IsNil(o.IdeaIds) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIdeaIds gets a reference to the given []string and assigns it to the IdeaIds field.
|
|
func (o *PatentPatentImplementation) SetIdeaIds(v []string) {
|
|
o.IdeaIds = v
|
|
}
|
|
|
|
// GetModel returns the Model field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetModel() string {
|
|
if o == nil || IsNil(o.Model) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Model
|
|
}
|
|
|
|
// GetModelOk returns a tuple with the Model field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetModelOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Model) {
|
|
return nil, false
|
|
}
|
|
return o.Model, true
|
|
}
|
|
|
|
// HasModel returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasModel() bool {
|
|
if o != nil && !IsNil(o.Model) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetModel gets a reference to the given string and assigns it to the Model field.
|
|
func (o *PatentPatentImplementation) SetModel(v string) {
|
|
o.Model = &v
|
|
}
|
|
|
|
// GetNotes returns the Notes field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetNotes() string {
|
|
if o == nil || IsNil(o.Notes) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Notes
|
|
}
|
|
|
|
// GetNotesOk returns a tuple with the Notes field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetNotesOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Notes) {
|
|
return nil, false
|
|
}
|
|
return o.Notes, true
|
|
}
|
|
|
|
// HasNotes returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasNotes() bool {
|
|
if o != nil && !IsNil(o.Notes) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetNotes gets a reference to the given string and assigns it to the Notes field.
|
|
func (o *PatentPatentImplementation) SetNotes(v string) {
|
|
o.Notes = &v
|
|
}
|
|
|
|
// GetProject returns the Project field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetProject() string {
|
|
if o == nil || IsNil(o.Project) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Project
|
|
}
|
|
|
|
// GetProjectOk returns a tuple with the Project field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetProjectOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Project) {
|
|
return nil, false
|
|
}
|
|
return o.Project, true
|
|
}
|
|
|
|
// HasProject returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasProject() bool {
|
|
if o != nil && !IsNil(o.Project) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProject gets a reference to the given string and assigns it to the Project field.
|
|
func (o *PatentPatentImplementation) SetProject(v string) {
|
|
o.Project = &v
|
|
}
|
|
|
|
// GetPromptSha256 returns the PromptSha256 field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetPromptSha256() string {
|
|
if o == nil || IsNil(o.PromptSha256) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.PromptSha256
|
|
}
|
|
|
|
// GetPromptSha256Ok returns a tuple with the PromptSha256 field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetPromptSha256Ok() (*string, bool) {
|
|
if o == nil || IsNil(o.PromptSha256) {
|
|
return nil, false
|
|
}
|
|
return o.PromptSha256, true
|
|
}
|
|
|
|
// HasPromptSha256 returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasPromptSha256() bool {
|
|
if o != nil && !IsNil(o.PromptSha256) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPromptSha256 gets a reference to the given string and assigns it to the PromptSha256 field.
|
|
func (o *PatentPatentImplementation) SetPromptSha256(v string) {
|
|
o.PromptSha256 = &v
|
|
}
|
|
|
|
// GetRecordedAt returns the RecordedAt field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetRecordedAt() string {
|
|
if o == nil || IsNil(o.RecordedAt) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.RecordedAt
|
|
}
|
|
|
|
// GetRecordedAtOk returns a tuple with the RecordedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetRecordedAtOk() (*string, bool) {
|
|
if o == nil || IsNil(o.RecordedAt) {
|
|
return nil, false
|
|
}
|
|
return o.RecordedAt, true
|
|
}
|
|
|
|
// HasRecordedAt returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasRecordedAt() bool {
|
|
if o != nil && !IsNil(o.RecordedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRecordedAt gets a reference to the given string and assigns it to the RecordedAt field.
|
|
func (o *PatentPatentImplementation) SetRecordedAt(v string) {
|
|
o.RecordedAt = &v
|
|
}
|
|
|
|
// GetRepo returns the Repo field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetRepo() string {
|
|
if o == nil || IsNil(o.Repo) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Repo
|
|
}
|
|
|
|
// GetRepoOk returns a tuple with the Repo field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetRepoOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Repo) {
|
|
return nil, false
|
|
}
|
|
return o.Repo, true
|
|
}
|
|
|
|
// HasRepo returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasRepo() bool {
|
|
if o != nil && !IsNil(o.Repo) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRepo gets a reference to the given string and assigns it to the Repo field.
|
|
func (o *PatentPatentImplementation) SetRepo(v string) {
|
|
o.Repo = &v
|
|
}
|
|
|
|
// GetRevision returns the Revision field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetRevision() string {
|
|
if o == nil || IsNil(o.Revision) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Revision
|
|
}
|
|
|
|
// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetRevisionOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Revision) {
|
|
return nil, false
|
|
}
|
|
return o.Revision, true
|
|
}
|
|
|
|
// HasRevision returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasRevision() bool {
|
|
if o != nil && !IsNil(o.Revision) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRevision gets a reference to the given string and assigns it to the Revision field.
|
|
func (o *PatentPatentImplementation) SetRevision(v string) {
|
|
o.Revision = &v
|
|
}
|
|
|
|
// GetSeq returns the Seq field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetSeq() int64 {
|
|
if o == nil || IsNil(o.Seq) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Seq
|
|
}
|
|
|
|
// GetSeqOk returns a tuple with the Seq field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetSeqOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Seq) {
|
|
return nil, false
|
|
}
|
|
return o.Seq, true
|
|
}
|
|
|
|
// HasSeq returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasSeq() bool {
|
|
if o != nil && !IsNil(o.Seq) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSeq gets a reference to the given int64 and assigns it to the Seq field.
|
|
func (o *PatentPatentImplementation) SetSeq(v int64) {
|
|
o.Seq = &v
|
|
}
|
|
|
|
// GetVisibility returns the Visibility field value if set, zero value otherwise.
|
|
func (o *PatentPatentImplementation) GetVisibility() string {
|
|
if o == nil || IsNil(o.Visibility) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Visibility
|
|
}
|
|
|
|
// GetVisibilityOk returns a tuple with the Visibility field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *PatentPatentImplementation) GetVisibilityOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Visibility) {
|
|
return nil, false
|
|
}
|
|
return o.Visibility, true
|
|
}
|
|
|
|
// HasVisibility returns a boolean if a field has been set.
|
|
func (o *PatentPatentImplementation) HasVisibility() bool {
|
|
if o != nil && !IsNil(o.Visibility) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVisibility gets a reference to the given string and assigns it to the Visibility field.
|
|
func (o *PatentPatentImplementation) SetVisibility(v string) {
|
|
o.Visibility = &v
|
|
}
|
|
|
|
func (o PatentPatentImplementation) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o PatentPatentImplementation) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.ArtifactSha256) {
|
|
toSerialize["artifact_sha256"] = o.ArtifactSha256
|
|
}
|
|
if !IsNil(o.AuthoredBy) {
|
|
toSerialize["authored_by"] = o.AuthoredBy
|
|
}
|
|
if !IsNil(o.Canonical) {
|
|
toSerialize["canonical"] = o.Canonical
|
|
}
|
|
if !IsNil(o.ContentHash) {
|
|
toSerialize["content_hash"] = o.ContentHash
|
|
}
|
|
if !IsNil(o.Generated) {
|
|
toSerialize["generated"] = o.Generated
|
|
}
|
|
if !IsNil(o.GitBranch) {
|
|
toSerialize["git_branch"] = o.GitBranch
|
|
}
|
|
if !IsNil(o.GitDirty) {
|
|
toSerialize["git_dirty"] = o.GitDirty
|
|
}
|
|
if !IsNil(o.GitSha) {
|
|
toSerialize["git_sha"] = o.GitSha
|
|
}
|
|
if !IsNil(o.HumanReview) {
|
|
toSerialize["human_review"] = o.HumanReview
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.IdeaIds) {
|
|
toSerialize["idea_ids"] = o.IdeaIds
|
|
}
|
|
if !IsNil(o.Model) {
|
|
toSerialize["model"] = o.Model
|
|
}
|
|
if !IsNil(o.Notes) {
|
|
toSerialize["notes"] = o.Notes
|
|
}
|
|
if !IsNil(o.Project) {
|
|
toSerialize["project"] = o.Project
|
|
}
|
|
if !IsNil(o.PromptSha256) {
|
|
toSerialize["prompt_sha256"] = o.PromptSha256
|
|
}
|
|
if !IsNil(o.RecordedAt) {
|
|
toSerialize["recorded_at"] = o.RecordedAt
|
|
}
|
|
if !IsNil(o.Repo) {
|
|
toSerialize["repo"] = o.Repo
|
|
}
|
|
if !IsNil(o.Revision) {
|
|
toSerialize["revision"] = o.Revision
|
|
}
|
|
if !IsNil(o.Seq) {
|
|
toSerialize["seq"] = o.Seq
|
|
}
|
|
if !IsNil(o.Visibility) {
|
|
toSerialize["visibility"] = o.Visibility
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *PatentPatentImplementation) UnmarshalJSON(data []byte) (err error) {
|
|
varPatentPatentImplementation := _PatentPatentImplementation{}
|
|
|
|
err = json.Unmarshal(data, &varPatentPatentImplementation)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = PatentPatentImplementation(varPatentPatentImplementation)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "artifact_sha256")
|
|
delete(additionalProperties, "authored_by")
|
|
delete(additionalProperties, "canonical")
|
|
delete(additionalProperties, "content_hash")
|
|
delete(additionalProperties, "generated")
|
|
delete(additionalProperties, "git_branch")
|
|
delete(additionalProperties, "git_dirty")
|
|
delete(additionalProperties, "git_sha")
|
|
delete(additionalProperties, "human_review")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "idea_ids")
|
|
delete(additionalProperties, "model")
|
|
delete(additionalProperties, "notes")
|
|
delete(additionalProperties, "project")
|
|
delete(additionalProperties, "prompt_sha256")
|
|
delete(additionalProperties, "recorded_at")
|
|
delete(additionalProperties, "repo")
|
|
delete(additionalProperties, "revision")
|
|
delete(additionalProperties, "seq")
|
|
delete(additionalProperties, "visibility")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullablePatentPatentImplementation struct {
|
|
value *PatentPatentImplementation
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullablePatentPatentImplementation) Get() *PatentPatentImplementation {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullablePatentPatentImplementation) Set(val *PatentPatentImplementation) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullablePatentPatentImplementation) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullablePatentPatentImplementation) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullablePatentPatentImplementation(val *PatentPatentImplementation) *NullablePatentPatentImplementation {
|
|
return &NullablePatentPatentImplementation{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullablePatentPatentImplementation) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullablePatentPatentImplementation) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|