// Describes a relationship between two individuals. The subject and object properties are used to identify the connected individuals. See 5.2 Representing Relationships Between Entities for additional information. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package.
typeRelationshipstruct{
// The raw type from the vocab package
raw*vocab.Relationship
}
// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail.
func(t*Relationship)Raw()(n*vocab.Relationship){
returnt.raw
}
// Serialize turns this object into a map[string]interface{}.
// ResolveSubject passes the actual concrete type to the resolver for handing property subject. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.
func(t*Relationship)LenObject()(idxint){
returnt.raw.ObjectLen()
}
// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// RemoveObject deletes the value from the specified index for property 'object'.
func(t*Relationship)RemoveObject(idxint){
t.raw.RemoveObject(idx)
}
// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasObject(idxint)(pPresence){
p=NoPresence
ift.raw.IsObject(idx){
p=ConvenientPresence
}elseift.raw.IsObjectIRI(idx){
p=RawPresence
}
return
}
// ResolveRelationship passes the actual concrete type to the resolver for handing property relationship. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasAltitude()(pPresence){
p=NoPresence
ift.raw.IsAltitude(){
p=ConvenientPresence
}elseift.raw.IsAltitudeIRI(){
p=RawPresence
}
return
}
// SetAltitude sets the value for property 'altitude'.
func(t*Relationship)SetAltitude(kfloat64){
t.raw.SetAltitude(k)
}
// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.
func(t*Relationship)LenAttachment()(idxint){
returnt.raw.AttachmentLen()
}
// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.
func(t*Relationship)LenAttributedTo()(idxint){
returnt.raw.AttributedToLen()
}
// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.
func(t*Relationship)LenAudience()(idxint){
returnt.raw.AudienceLen()
}
// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.
func(t*Relationship)LenContent()(idxint){
returnt.raw.ContentLen()
}
// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.
func(t*Relationship)LenContext()(idxint){
returnt.raw.ContextLen()
}
// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.
func(t*Relationship)LenName()(idxint){
returnt.raw.NameLen()
}
// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasEndTime()(pPresence){
p=NoPresence
ift.raw.IsEndTime(){
p=ConvenientPresence
}elseift.raw.IsEndTimeIRI(){
p=RawPresence
}
return
}
// SetEndTime sets the value for property 'endTime'.
func(t*Relationship)SetEndTime(ktime.Time){
t.raw.SetEndTime(k)
}
// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.
func(t*Relationship)LenGenerator()(idxint){
returnt.raw.GeneratorLen()
}
// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.
func(t*Relationship)LenIcon()(idxint){
returnt.raw.IconLen()
}
// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// RemoveIcon deletes the value from the specified index for property 'icon'.
func(t*Relationship)RemoveIcon(idxint){
t.raw.RemoveIconImage(idx)
}
// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasIcon(idxint)(pPresence){
p=NoPresence
ift.raw.IsIconImage(idx){
p=ConvenientPresence
}elseift.raw.IsIconLink(idx){
p=RawPresence
}elseift.raw.IsIconIRI(idx){
p=RawPresence
}
return
}
// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasId()(pPresence){
p=NoPresence
ift.raw.HasId(){
p=ConvenientPresence
}
return
}
// SetId sets the value for property 'id'.
func(t*Relationship)SetId(k*url.URL){
t.raw.SetId(k)
}
// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.
func(t*Relationship)LenImage()(idxint){
returnt.raw.ImageLen()
}
// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// RemoveImage deletes the value from the specified index for property 'image'.
func(t*Relationship)RemoveImage(idxint){
t.raw.RemoveImageImage(idx)
}
// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasImage(idxint)(pPresence){
p=NoPresence
ift.raw.IsImageImage(idx){
p=ConvenientPresence
}elseift.raw.IsImageLink(idx){
p=RawPresence
}elseift.raw.IsImageIRI(idx){
p=RawPresence
}
return
}
// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.
func(t*Relationship)LenInReplyTo()(idxint){
returnt.raw.InReplyToLen()
}
// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.
func(t*Relationship)LenLocation()(idxint){
returnt.raw.LocationLen()
}
// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.
func(t*Relationship)LenPreview()(idxint){
returnt.raw.PreviewLen()
}
// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasPublished()(pPresence){
p=NoPresence
ift.raw.IsPublished(){
p=ConvenientPresence
}elseift.raw.IsPublishedIRI(){
p=RawPresence
}
return
}
// SetPublished sets the value for property 'published'.
func(t*Relationship)SetPublished(ktime.Time){
t.raw.SetPublished(k)
}
// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasStartTime()(pPresence){
p=NoPresence
ift.raw.IsStartTime(){
p=ConvenientPresence
}elseift.raw.IsStartTimeIRI(){
p=RawPresence
}
return
}
// SetStartTime sets the value for property 'startTime'.
func(t*Relationship)SetStartTime(ktime.Time){
t.raw.SetStartTime(k)
}
// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.
func(t*Relationship)LenSummary()(idxint){
returnt.raw.SummaryLen()
}
// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.
func(t*Relationship)LenTag()(idxint){
returnt.raw.TagLen()
}
// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.
func(t*Relationship)LenType()(idxint){
returnt.raw.TypeLen()
}
// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// AppendType appends the value for property 'type'.
func(t*Relationship)AppendType(iinterface{}){
t.raw.AppendType(i)
}
// PrependType prepends the value for property 'type'.
func(t*Relationship)PrependType(iinterface{}){
t.raw.PrependType(i)
}
// RemoveType deletes the value from the specified index for property 'type'.
func(t*Relationship)RemoveType(idxint){
t.raw.RemoveType(idx)
}
// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasUpdated()(pPresence){
p=NoPresence
ift.raw.IsUpdated(){
p=ConvenientPresence
}elseift.raw.IsUpdatedIRI(){
p=RawPresence
}
return
}
// SetUpdated sets the value for property 'updated'.
func(t*Relationship)SetUpdated(ktime.Time){
t.raw.SetUpdated(k)
}
// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.
func(t*Relationship)LenUrl()(idxint){
returnt.raw.UrlLen()
}
// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// AppendUrl appends the value for property 'url'.
func(t*Relationship)AppendUrl(k*url.URL){
t.raw.AppendUrlAnyURI(k)
}
// PrependUrl prepends the value for property 'url'.
func(t*Relationship)PrependUrl(k*url.URL){
t.raw.PrependUrlAnyURI(k)
}
// RemoveUrl deletes the value from the specified index for property 'url'.
func(t*Relationship)RemoveUrl(idxint){
t.raw.RemoveUrlAnyURI(idx)
}
// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasUrl(idxint)(pPresence){
p=NoPresence
ift.raw.IsUrlAnyURI(idx){
p=ConvenientPresence
}elseift.raw.IsUrlLink(idx){
p=RawPresence
}
return
}
// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.
func(t*Relationship)LenTo()(idxint){
returnt.raw.ToLen()
}
// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// PrependTo prepends the value for property 'to'.
func(t*Relationship)PrependTo(k*url.URL){
t.raw.PrependToIRI(k)
}
// RemoveTo deletes the value from the specified index for property 'to'.
func(t*Relationship)RemoveTo(idxint){
t.raw.RemoveToIRI(idx)
}
// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasTo(idxint)(pPresence){
p=NoPresence
ift.raw.IsToIRI(idx){
p=ConvenientPresence
}elseift.raw.IsToLink(idx){
p=RawPresence
}elseift.raw.IsToIRI(idx){
p=RawPresence
}
return
}
// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.
func(t*Relationship)LenBto()(idxint){
returnt.raw.BtoLen()
}
// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// AppendBto appends the value for property 'bto'.
func(t*Relationship)AppendBto(k*url.URL){
t.raw.AppendBtoIRI(k)
}
// PrependBto prepends the value for property 'bto'.
func(t*Relationship)PrependBto(k*url.URL){
t.raw.PrependBtoIRI(k)
}
// RemoveBto deletes the value from the specified index for property 'bto'.
func(t*Relationship)RemoveBto(idxint){
t.raw.RemoveBtoIRI(idx)
}
// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasBto(idxint)(pPresence){
p=NoPresence
ift.raw.IsBtoIRI(idx){
p=ConvenientPresence
}elseift.raw.IsBtoLink(idx){
p=RawPresence
}elseift.raw.IsBtoIRI(idx){
p=RawPresence
}
return
}
// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.
func(t*Relationship)LenCc()(idxint){
returnt.raw.CcLen()
}
// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// PrependCc prepends the value for property 'cc'.
func(t*Relationship)PrependCc(k*url.URL){
t.raw.PrependCcIRI(k)
}
// RemoveCc deletes the value from the specified index for property 'cc'.
func(t*Relationship)RemoveCc(idxint){
t.raw.RemoveCcIRI(idx)
}
// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasCc(idxint)(pPresence){
p=NoPresence
ift.raw.IsCcIRI(idx){
p=ConvenientPresence
}elseift.raw.IsCcLink(idx){
p=RawPresence
}elseift.raw.IsCcIRI(idx){
p=RawPresence
}
return
}
// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.
func(t*Relationship)LenBcc()(idxint){
returnt.raw.BccLen()
}
// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// AppendBcc appends the value for property 'bcc'.
func(t*Relationship)AppendBcc(k*url.URL){
t.raw.AppendBccIRI(k)
}
// PrependBcc prepends the value for property 'bcc'.
func(t*Relationship)PrependBcc(k*url.URL){
t.raw.PrependBccIRI(k)
}
// RemoveBcc deletes the value from the specified index for property 'bcc'.
func(t*Relationship)RemoveBcc(idxint){
t.raw.RemoveBccIRI(idx)
}
// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasBcc(idxint)(pPresence){
p=NoPresence
ift.raw.IsBccIRI(idx){
p=ConvenientPresence
}elseift.raw.IsBccLink(idx){
p=RawPresence
}elseift.raw.IsBccIRI(idx){
p=RawPresence
}
return
}
// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasMediaType()(pPresence){
p=NoPresence
ift.raw.IsMediaType(){
p=ConvenientPresence
}elseift.raw.IsMediaTypeIRI(){
p=RawPresence
}
return
}
// SetMediaType sets the value for property 'mediaType'.
func(t*Relationship)SetMediaType(kstring){
t.raw.SetMediaType(k)
}
// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasDuration()(pPresence){
p=NoPresence
ift.raw.IsDuration(){
p=ConvenientPresence
}elseift.raw.IsDurationIRI(){
p=RawPresence
}
return
}
// SetDuration sets the value for property 'duration'.
func(t*Relationship)SetDuration(ktime.Duration){
t.raw.SetDuration(k)
}
// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasSource()(pPresence){
p=NoPresence
ift.raw.IsSource(){
p=ConvenientPresence
}elseift.raw.IsSourceIRI(){
p=RawPresence
}
return
}
// SetSource sets this value to be a 'Object' type.
func(t*Relationship)SetSource(ivocab.ObjectType){
t.raw.SetSource(i)
}
// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.
func(t*Relationship)LenStreams()(idxint){
returnt.raw.StreamsLen()
}
// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// AppendStreams appends the value for property 'streams'.
func(t*Relationship)AppendStreams(k*url.URL){
t.raw.AppendStreams(k)
}
// PrependStreams prepends the value for property 'streams'.
func(t*Relationship)PrependStreams(k*url.URL){
t.raw.PrependStreams(k)
}
// RemoveStreams deletes the value from the specified index for property 'streams'.
func(t*Relationship)RemoveStreams(idxint){
t.raw.RemoveStreams(idx)
}
// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func(t*Relationship)HasProxyUrl()(pPresence){
p=NoPresence
ift.raw.HasProxyUrl(){
p=ConvenientPresence
}
return
}
// SetProxyUrl sets the value for property 'proxyUrl'.
func(t*Relationship)SetProxyUrl(k*url.URL){
t.raw.SetProxyUrl(k)
}
// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// SetSignClientKey sets the value for property 'signClientKey'.
func(t*Relationship)SetSignClientKey(k*url.URL){
t.raw.SetSignClientKey(k)
}
// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling.
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.