Support unknown (extended) properties in vocab

このコミットが含まれているのは:
Cory Slep 2018-08-19 23:37:02 +02:00
コミット d0812c9471
57個のファイルの変更6692行の追加6346行の削除

ファイルの表示

@ -1,3 +1,8 @@
master
* Types in the 'vocab' package now support setting, getting, removing, and
testing existence for unknown properties (extended properties).
v0.2.1 2018-08-19
* Request body is now correctly copied when sending federation messages.

ファイルの表示

@ -40,6 +40,7 @@ func generateDefinitions(t *defs.Type, m map[*defs.PropertyType]*intermedDef) (f
generateAddUnknownFunction(t, this)
generateHasUnknownFunction(t, this)
generateRemoveUnknownFunction(t, this)
generateGetUnknownFunction(t, this)
generateSerializeFunction(t, this, serializeFragments)
generateDeserializeFunction(t, this, deserializeFragments)
generateMetadataFunctions(t, this, thisInterface)
@ -179,7 +180,7 @@ func generateMetadataFunctions(t *defs.Type, this *defs.StructDef, it *defs.Inte
func generateHasUnknownFunction(t *defs.Type, this *defs.StructDef) {
m := &defs.MemberFunctionDef{
Name: "HasUnknown",
Comment: "HasUnknown returns true if there is an unknown object with the specified key",
Comment: "HasUnknown returns true if there is an unknown property with the specified key",
P: this,
Args: []*defs.FunctionVarDef{{"k", "string"}},
Return: []*defs.FunctionVarDef{{"b", "bool"}},
@ -199,7 +200,7 @@ func generateHasUnknownFunction(t *defs.Type, this *defs.StructDef) {
func generateAddUnknownFunction(t *defs.Type, this *defs.StructDef) {
m := &defs.MemberFunctionDef{
Name: "AddUnknown",
Comment: "AddUnknown adds a raw extension to this object with the specified key",
Comment: "AddUnknown adds an unknown property to this object with the specified key",
P: this,
Args: []*defs.FunctionVarDef{{"k", "string"}, {"i", "interface{}"}},
Return: []*defs.FunctionVarDef{{"this", "*" + t.Name}},
@ -216,6 +217,22 @@ func generateAddUnknownFunction(t *defs.Type, this *defs.StructDef) {
this.F = append(this.F, m)
}
func generateGetUnknownFunction(t *defs.Type, this *defs.StructDef) {
m := &defs.MemberFunctionDef{
Name: "GetUnknown",
Comment: "GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.",
P: this,
Args: []*defs.FunctionVarDef{{"k", "string"}},
Return: []*defs.FunctionVarDef{{"i", "interface{}"}},
Body: func() string {
var b bytes.Buffer
b.WriteString("return t.unknown_[k]\n")
return b.String()
},
}
this.F = append(this.F, m)
}
func generateDeserializeFunction(t *defs.Type, this *defs.StructDef, fragments []string) {
d := &defs.MemberFunctionDef{
Name: "Deserialize",

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Accept) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Accept) AddUnknown(k string, i interface{}) (this *Accept) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Accept) AddUnknown(k string, i interface{}) (this *Accept) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Accept) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Accept) RemoveUnknown(k string) (this *Accept) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Accept) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Accept" if not manually set by the caller
func (t *Accept) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Activity) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Activity) AddUnknown(k string, i interface{}) (this *Activity) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Activity) AddUnknown(k string, i interface{}) (this *Activity) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Activity) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Activity) RemoveUnknown(k string) (this *Activity) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Activity) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Activity" if not manually set by the caller
func (t *Activity) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Add) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Add) AddUnknown(k string, i interface{}) (this *Add) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Add) AddUnknown(k string, i interface{}) (this *Add) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Add) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Add) RemoveUnknown(k string) (this *Add) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Add) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Add" if not manually set by the caller
func (t *Add) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Announce) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Announce) AddUnknown(k string, i interface{}) (this *Announce) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Announce) AddUnknown(k string, i interface{}) (this *Announce) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Announce) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Announce) RemoveUnknown(k string) (this *Announce) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Announce) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Announce" if not manually set by the caller
func (t *Announce) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4513,7 +4513,7 @@ func (t *Application) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Application) AddUnknown(k string, i interface{}) (this *Application) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4523,7 +4523,7 @@ func (t *Application) AddUnknown(k string, i interface{}) (this *Application) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Application) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4540,6 +4540,12 @@ func (t *Application) RemoveUnknown(k string) (this *Application) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Application) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Application" if not manually set by the caller
func (t *Application) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5228,7 +5228,7 @@ func (t *Arrive) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Arrive) AddUnknown(k string, i interface{}) (this *Arrive) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5238,7 +5238,7 @@ func (t *Arrive) AddUnknown(k string, i interface{}) (this *Arrive) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Arrive) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5255,6 +5255,12 @@ func (t *Arrive) RemoveUnknown(k string) (this *Arrive) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Arrive) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Arrive" if not manually set by the caller
func (t *Arrive) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4513,7 +4513,7 @@ func (t *Article) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Article) AddUnknown(k string, i interface{}) (this *Article) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4523,7 +4523,7 @@ func (t *Article) AddUnknown(k string, i interface{}) (this *Article) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Article) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4540,6 +4540,12 @@ func (t *Article) RemoveUnknown(k string) (this *Article) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Article) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Article" if not manually set by the caller
func (t *Article) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4513,7 +4513,7 @@ func (t *Audio) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Audio) AddUnknown(k string, i interface{}) (this *Audio) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4523,7 +4523,7 @@ func (t *Audio) AddUnknown(k string, i interface{}) (this *Audio) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Audio) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4540,6 +4540,12 @@ func (t *Audio) RemoveUnknown(k string) (this *Audio) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Audio) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Audio" if not manually set by the caller
func (t *Audio) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Block) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Block) AddUnknown(k string, i interface{}) (this *Block) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Block) AddUnknown(k string, i interface{}) (this *Block) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Block) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Block) RemoveUnknown(k string) (this *Block) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Block) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Block" if not manually set by the caller
func (t *Block) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4987,7 +4987,7 @@ func (t *Collection) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Collection) AddUnknown(k string, i interface{}) (this *Collection) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4997,7 +4997,7 @@ func (t *Collection) AddUnknown(k string, i interface{}) (this *Collection) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Collection) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5014,6 +5014,12 @@ func (t *Collection) RemoveUnknown(k string) (this *Collection) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Collection) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Collection" if not manually set by the caller
func (t *Collection) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5251,7 +5251,7 @@ func (t *CollectionPage) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *CollectionPage) AddUnknown(k string, i interface{}) (this *CollectionPage) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5261,7 +5261,7 @@ func (t *CollectionPage) AddUnknown(k string, i interface{}) (this *CollectionPa
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *CollectionPage) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5278,6 +5278,12 @@ func (t *CollectionPage) RemoveUnknown(k string) (this *CollectionPage) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *CollectionPage) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "CollectionPage" if not manually set by the caller
func (t *CollectionPage) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Create) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Create) AddUnknown(k string, i interface{}) (this *Create) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Create) AddUnknown(k string, i interface{}) (this *Create) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Create) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Create) RemoveUnknown(k string) (this *Create) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Create) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Create" if not manually set by the caller
func (t *Create) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Delete) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Delete) AddUnknown(k string, i interface{}) (this *Delete) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Delete) AddUnknown(k string, i interface{}) (this *Delete) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Delete) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Delete) RemoveUnknown(k string) (this *Delete) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Delete) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Delete" if not manually set by the caller
func (t *Delete) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Dislike) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Dislike) AddUnknown(k string, i interface{}) (this *Dislike) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Dislike) AddUnknown(k string, i interface{}) (this *Dislike) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Dislike) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Dislike) RemoveUnknown(k string) (this *Dislike) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Dislike) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Dislike" if not manually set by the caller
func (t *Dislike) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4513,7 +4513,7 @@ func (t *Document) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Document) AddUnknown(k string, i interface{}) (this *Document) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4523,7 +4523,7 @@ func (t *Document) AddUnknown(k string, i interface{}) (this *Document) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Document) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4540,6 +4540,12 @@ func (t *Document) RemoveUnknown(k string) (this *Document) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Document) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Document" if not manually set by the caller
func (t *Document) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4513,7 +4513,7 @@ func (t *Event) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Event) AddUnknown(k string, i interface{}) (this *Event) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4523,7 +4523,7 @@ func (t *Event) AddUnknown(k string, i interface{}) (this *Event) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Event) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4540,6 +4540,12 @@ func (t *Event) RemoveUnknown(k string) (this *Event) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Event) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Event" if not manually set by the caller
func (t *Event) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Flag) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Flag) AddUnknown(k string, i interface{}) (this *Flag) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Flag) AddUnknown(k string, i interface{}) (this *Flag) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Flag) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Flag) RemoveUnknown(k string) (this *Flag) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Flag) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Flag" if not manually set by the caller
func (t *Flag) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Follow) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Follow) AddUnknown(k string, i interface{}) (this *Follow) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Follow) AddUnknown(k string, i interface{}) (this *Follow) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Follow) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Follow) RemoveUnknown(k string) (this *Follow) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Follow) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Follow" if not manually set by the caller
func (t *Follow) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4513,7 +4513,7 @@ func (t *Group) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Group) AddUnknown(k string, i interface{}) (this *Group) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4523,7 +4523,7 @@ func (t *Group) AddUnknown(k string, i interface{}) (this *Group) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Group) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4540,6 +4540,12 @@ func (t *Group) RemoveUnknown(k string) (this *Group) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Group) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Group" if not manually set by the caller
func (t *Group) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Ignore) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Ignore) AddUnknown(k string, i interface{}) (this *Ignore) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Ignore) AddUnknown(k string, i interface{}) (this *Ignore) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Ignore) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Ignore) RemoveUnknown(k string) (this *Ignore) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Ignore) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Ignore" if not manually set by the caller
func (t *Ignore) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4647,7 +4647,7 @@ func (t *Image) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Image) AddUnknown(k string, i interface{}) (this *Image) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4657,7 +4657,7 @@ func (t *Image) AddUnknown(k string, i interface{}) (this *Image) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Image) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4674,6 +4674,12 @@ func (t *Image) RemoveUnknown(k string) (this *Image) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Image) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Image" if not manually set by the caller
func (t *Image) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイル差分が大きすぎるため省略します 差分を読み込み

ファイルの表示

@ -5316,7 +5316,7 @@ func (t *IntransitiveActivity) SetUnknownObject(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *IntransitiveActivity) AddUnknown(k string, i interface{}) (this *IntransitiveActivity) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5326,7 +5326,7 @@ func (t *IntransitiveActivity) AddUnknown(k string, i interface{}) (this *Intran
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *IntransitiveActivity) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5343,6 +5343,12 @@ func (t *IntransitiveActivity) RemoveUnknown(k string) (this *IntransitiveActivi
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *IntransitiveActivity) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "IntransitiveActivity" if not manually set by the caller
func (t *IntransitiveActivity) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Invite) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Invite) AddUnknown(k string, i interface{}) (this *Invite) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Invite) AddUnknown(k string, i interface{}) (this *Invite) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Invite) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Invite) RemoveUnknown(k string) (this *Invite) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Invite) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Invite" if not manually set by the caller
func (t *Invite) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Join) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Join) AddUnknown(k string, i interface{}) (this *Join) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Join) AddUnknown(k string, i interface{}) (this *Join) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Join) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Join) RemoveUnknown(k string) (this *Join) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Join) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Join" if not manually set by the caller
func (t *Join) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Leave) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Leave) AddUnknown(k string, i interface{}) (this *Leave) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Leave) AddUnknown(k string, i interface{}) (this *Leave) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Leave) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Leave) RemoveUnknown(k string) (this *Leave) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Leave) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Leave" if not manually set by the caller
func (t *Leave) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Like) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Like) AddUnknown(k string, i interface{}) (this *Like) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Like) AddUnknown(k string, i interface{}) (this *Like) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Like) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Like) RemoveUnknown(k string) (this *Like) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Like) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Like" if not manually set by the caller
func (t *Like) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -1176,7 +1176,7 @@ func (t *Link) SetUnknownPreview(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Link) AddUnknown(k string, i interface{}) (this *Link) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -1186,7 +1186,7 @@ func (t *Link) AddUnknown(k string, i interface{}) (this *Link) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Link) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -1203,6 +1203,12 @@ func (t *Link) RemoveUnknown(k string) (this *Link) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Link) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Link" if not manually set by the caller
func (t *Link) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Listen) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Listen) AddUnknown(k string, i interface{}) (this *Listen) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Listen) AddUnknown(k string, i interface{}) (this *Listen) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Listen) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Listen) RemoveUnknown(k string) (this *Listen) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Listen) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Listen" if not manually set by the caller
func (t *Listen) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -1176,7 +1176,7 @@ func (t *Mention) SetUnknownPreview(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Mention) AddUnknown(k string, i interface{}) (this *Mention) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -1186,7 +1186,7 @@ func (t *Mention) AddUnknown(k string, i interface{}) (this *Mention) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Mention) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -1203,6 +1203,12 @@ func (t *Mention) RemoveUnknown(k string) (this *Mention) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Mention) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Mention" if not manually set by the caller
func (t *Mention) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Move) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Move) AddUnknown(k string, i interface{}) (this *Move) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Move) AddUnknown(k string, i interface{}) (this *Move) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Move) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Move) RemoveUnknown(k string) (this *Move) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Move) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Move" if not manually set by the caller
func (t *Move) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4513,7 +4513,7 @@ func (t *Note) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Note) AddUnknown(k string, i interface{}) (this *Note) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4523,7 +4523,7 @@ func (t *Note) AddUnknown(k string, i interface{}) (this *Note) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Note) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4540,6 +4540,12 @@ func (t *Note) RemoveUnknown(k string) (this *Note) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Note) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Note" if not manually set by the caller
func (t *Note) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4513,7 +4513,7 @@ func (t *Object) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Object) AddUnknown(k string, i interface{}) (this *Object) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4523,7 +4523,7 @@ func (t *Object) AddUnknown(k string, i interface{}) (this *Object) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Object) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4540,6 +4540,12 @@ func (t *Object) RemoveUnknown(k string) (this *Object) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Object) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Object" if not manually set by the caller
func (t *Object) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Offer) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Offer) AddUnknown(k string, i interface{}) (this *Offer) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Offer) AddUnknown(k string, i interface{}) (this *Offer) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Offer) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Offer) RemoveUnknown(k string) (this *Offer) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Offer) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Offer" if not manually set by the caller
func (t *Offer) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5107,7 +5107,7 @@ func (t *OrderedCollection) SetUnknownItems(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *OrderedCollection) AddUnknown(k string, i interface{}) (this *OrderedCollection) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5117,7 +5117,7 @@ func (t *OrderedCollection) AddUnknown(k string, i interface{}) (this *OrderedCo
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *OrderedCollection) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5134,6 +5134,12 @@ func (t *OrderedCollection) RemoveUnknown(k string) (this *OrderedCollection) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *OrderedCollection) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "OrderedCollection" if not manually set by the caller
func (t *OrderedCollection) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5438,7 +5438,7 @@ func (t *OrderedCollectionPage) SetUnknownItems(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *OrderedCollectionPage) AddUnknown(k string, i interface{}) (this *OrderedCollectionPage) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5448,7 +5448,7 @@ func (t *OrderedCollectionPage) AddUnknown(k string, i interface{}) (this *Order
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *OrderedCollectionPage) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5465,6 +5465,12 @@ func (t *OrderedCollectionPage) RemoveUnknown(k string) (this *OrderedCollection
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *OrderedCollectionPage) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "OrderedCollectionPage" if not manually set by the caller
func (t *OrderedCollectionPage) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4513,7 +4513,7 @@ func (t *Organization) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Organization) AddUnknown(k string, i interface{}) (this *Organization) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4523,7 +4523,7 @@ func (t *Organization) AddUnknown(k string, i interface{}) (this *Organization)
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Organization) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4540,6 +4540,12 @@ func (t *Organization) RemoveUnknown(k string) (this *Organization) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Organization) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Organization" if not manually set by the caller
func (t *Organization) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4513,7 +4513,7 @@ func (t *Page) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Page) AddUnknown(k string, i interface{}) (this *Page) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4523,7 +4523,7 @@ func (t *Page) AddUnknown(k string, i interface{}) (this *Page) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Page) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4540,6 +4540,12 @@ func (t *Page) RemoveUnknown(k string) (this *Page) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Page) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Page" if not manually set by the caller
func (t *Page) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4513,7 +4513,7 @@ func (t *Person) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Person) AddUnknown(k string, i interface{}) (this *Person) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4523,7 +4523,7 @@ func (t *Person) AddUnknown(k string, i interface{}) (this *Person) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Person) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4540,6 +4540,12 @@ func (t *Person) RemoveUnknown(k string) (this *Person) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Person) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Person" if not manually set by the caller
func (t *Person) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4848,7 +4848,7 @@ func (t *Place) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Place) AddUnknown(k string, i interface{}) (this *Place) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4858,7 +4858,7 @@ func (t *Place) AddUnknown(k string, i interface{}) (this *Place) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Place) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4875,6 +4875,12 @@ func (t *Place) RemoveUnknown(k string) (this *Place) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Place) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Place" if not manually set by the caller
func (t *Place) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4580,7 +4580,7 @@ func (t *Profile) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Profile) AddUnknown(k string, i interface{}) (this *Profile) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4590,7 +4590,7 @@ func (t *Profile) AddUnknown(k string, i interface{}) (this *Profile) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Profile) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4607,6 +4607,12 @@ func (t *Profile) RemoveUnknown(k string) (this *Profile) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Profile) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Profile" if not manually set by the caller
func (t *Profile) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5731,7 +5731,7 @@ func (t *Question) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Question) AddUnknown(k string, i interface{}) (this *Question) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5741,7 +5741,7 @@ func (t *Question) AddUnknown(k string, i interface{}) (this *Question) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Question) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5758,6 +5758,12 @@ func (t *Question) RemoveUnknown(k string) (this *Question) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Question) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Question" if not manually set by the caller
func (t *Question) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Read) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Read) AddUnknown(k string, i interface{}) (this *Read) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Read) AddUnknown(k string, i interface{}) (this *Read) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Read) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Read) RemoveUnknown(k string) (this *Read) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Read) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Read" if not manually set by the caller
func (t *Read) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Reject) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Reject) AddUnknown(k string, i interface{}) (this *Reject) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Reject) AddUnknown(k string, i interface{}) (this *Reject) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Reject) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Reject) RemoveUnknown(k string) (this *Reject) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Reject) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Reject" if not manually set by the caller
func (t *Reject) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4774,7 +4774,7 @@ func (t *Relationship) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Relationship) AddUnknown(k string, i interface{}) (this *Relationship) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4784,7 +4784,7 @@ func (t *Relationship) AddUnknown(k string, i interface{}) (this *Relationship)
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Relationship) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4801,6 +4801,12 @@ func (t *Relationship) RemoveUnknown(k string) (this *Relationship) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Relationship) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Relationship" if not manually set by the caller
func (t *Relationship) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Remove) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Remove) AddUnknown(k string, i interface{}) (this *Remove) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Remove) AddUnknown(k string, i interface{}) (this *Remove) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Remove) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Remove) RemoveUnknown(k string) (this *Remove) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Remove) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Remove" if not manually set by the caller
func (t *Remove) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4513,7 +4513,7 @@ func (t *Service) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Service) AddUnknown(k string, i interface{}) (this *Service) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4523,7 +4523,7 @@ func (t *Service) AddUnknown(k string, i interface{}) (this *Service) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Service) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4540,6 +4540,12 @@ func (t *Service) RemoveUnknown(k string) (this *Service) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Service) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Service" if not manually set by the caller
func (t *Service) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *TentativeAccept) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *TentativeAccept) AddUnknown(k string, i interface{}) (this *TentativeAccept) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *TentativeAccept) AddUnknown(k string, i interface{}) (this *TentativeAc
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *TentativeAccept) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *TentativeAccept) RemoveUnknown(k string) (this *TentativeAccept) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *TentativeAccept) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "TentativeAccept" if not manually set by the caller
func (t *TentativeAccept) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *TentativeReject) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *TentativeReject) AddUnknown(k string, i interface{}) (this *TentativeReject) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *TentativeReject) AddUnknown(k string, i interface{}) (this *TentativeRe
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *TentativeReject) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *TentativeReject) RemoveUnknown(k string) (this *TentativeReject) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *TentativeReject) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "TentativeReject" if not manually set by the caller
func (t *TentativeReject) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4723,7 +4723,7 @@ func (t *Tombstone) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Tombstone) AddUnknown(k string, i interface{}) (this *Tombstone) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4733,7 +4733,7 @@ func (t *Tombstone) AddUnknown(k string, i interface{}) (this *Tombstone) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Tombstone) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4750,6 +4750,12 @@ func (t *Tombstone) RemoveUnknown(k string) (this *Tombstone) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Tombstone) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Tombstone" if not manually set by the caller
func (t *Tombstone) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5228,7 +5228,7 @@ func (t *Travel) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Travel) AddUnknown(k string, i interface{}) (this *Travel) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5238,7 +5238,7 @@ func (t *Travel) AddUnknown(k string, i interface{}) (this *Travel) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Travel) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5255,6 +5255,12 @@ func (t *Travel) RemoveUnknown(k string) (this *Travel) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Travel) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Travel" if not manually set by the caller
func (t *Travel) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Undo) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Undo) AddUnknown(k string, i interface{}) (this *Undo) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Undo) AddUnknown(k string, i interface{}) (this *Undo) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Undo) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Undo) RemoveUnknown(k string) (this *Undo) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Undo) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Undo" if not manually set by the caller
func (t *Undo) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *Update) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Update) AddUnknown(k string, i interface{}) (this *Update) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *Update) AddUnknown(k string, i interface{}) (this *Update) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Update) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *Update) RemoveUnknown(k string) (this *Update) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Update) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Update" if not manually set by the caller
func (t *Update) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -4513,7 +4513,7 @@ func (t *Video) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *Video) AddUnknown(k string, i interface{}) (this *Video) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -4523,7 +4523,7 @@ func (t *Video) AddUnknown(k string, i interface{}) (this *Video) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *Video) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -4540,6 +4540,12 @@ func (t *Video) RemoveUnknown(k string) (this *Video) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *Video) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Video" if not manually set by the caller
func (t *Video) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})

ファイルの表示

@ -5334,7 +5334,7 @@ func (t *View) SetUnknownSharedInbox(i interface{}) {
}
// AddUnknown adds a raw extension to this object with the specified key
// AddUnknown adds an unknown property to this object with the specified key
func (t *View) AddUnknown(k string, i interface{}) (this *View) {
if t.unknown_ == nil {
t.unknown_ = make(map[string]interface{})
@ -5344,7 +5344,7 @@ func (t *View) AddUnknown(k string, i interface{}) (this *View) {
}
// HasUnknown returns true if there is an unknown object with the specified key
// HasUnknown returns true if there is an unknown property with the specified key
func (t *View) HasUnknown(k string) (b bool) {
if t.unknown_ == nil {
return false
@ -5361,6 +5361,12 @@ func (t *View) RemoveUnknown(k string) (this *View) {
}
// GetUnknown fetches an unknown property from this object with the specified key. Note that this will panic if HasUnknown would return false.
func (t *View) GetUnknown(k string) (i interface{}) {
return t.unknown_[k]
}
// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "View" if not manually set by the caller
func (t *View) Serialize() (m map[string]interface{}, err error) {
m = make(map[string]interface{})