plus-gen.go 118 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394
  1. // Package plus provides access to the Google+ API.
  2. //
  3. // See https://developers.google.com/+/api/
  4. //
  5. // Usage example:
  6. //
  7. // import "google.golang.org/api/plus/v1"
  8. // ...
  9. // plusService, err := plus.New(oauthHttpClient)
  10. package plus // import "google.golang.org/api/plus/v1"
  11. import (
  12. "bytes"
  13. "encoding/json"
  14. "errors"
  15. "fmt"
  16. context "golang.org/x/net/context"
  17. ctxhttp "golang.org/x/net/context/ctxhttp"
  18. gensupport "google.golang.org/api/gensupport"
  19. googleapi "google.golang.org/api/googleapi"
  20. "io"
  21. "net/http"
  22. "net/url"
  23. "strconv"
  24. "strings"
  25. )
  26. // Always reference these packages, just in case the auto-generated code
  27. // below doesn't.
  28. var _ = bytes.NewBuffer
  29. var _ = strconv.Itoa
  30. var _ = fmt.Sprintf
  31. var _ = json.NewDecoder
  32. var _ = io.Copy
  33. var _ = url.Parse
  34. var _ = gensupport.MarshalJSON
  35. var _ = googleapi.Version
  36. var _ = errors.New
  37. var _ = strings.Replace
  38. var _ = context.Canceled
  39. var _ = ctxhttp.Do
  40. const apiId = "plus:v1"
  41. const apiName = "plus"
  42. const apiVersion = "v1"
  43. const basePath = "https://www.googleapis.com/plus/v1/"
  44. // OAuth2 scopes used by this API.
  45. const (
  46. // Know the list of people in your circles, your age range, and language
  47. PlusLoginScope = "https://www.googleapis.com/auth/plus.login"
  48. // Know who you are on Google
  49. PlusMeScope = "https://www.googleapis.com/auth/plus.me"
  50. // View your email address
  51. UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email"
  52. // View your basic profile info
  53. UserinfoProfileScope = "https://www.googleapis.com/auth/userinfo.profile"
  54. )
  55. func New(client *http.Client) (*Service, error) {
  56. if client == nil {
  57. return nil, errors.New("client is nil")
  58. }
  59. s := &Service{client: client, BasePath: basePath}
  60. s.Activities = NewActivitiesService(s)
  61. s.Comments = NewCommentsService(s)
  62. s.People = NewPeopleService(s)
  63. return s, nil
  64. }
  65. type Service struct {
  66. client *http.Client
  67. BasePath string // API endpoint base URL
  68. UserAgent string // optional additional User-Agent fragment
  69. Activities *ActivitiesService
  70. Comments *CommentsService
  71. People *PeopleService
  72. }
  73. func (s *Service) userAgent() string {
  74. if s.UserAgent == "" {
  75. return googleapi.UserAgent
  76. }
  77. return googleapi.UserAgent + " " + s.UserAgent
  78. }
  79. func NewActivitiesService(s *Service) *ActivitiesService {
  80. rs := &ActivitiesService{s: s}
  81. return rs
  82. }
  83. type ActivitiesService struct {
  84. s *Service
  85. }
  86. func NewCommentsService(s *Service) *CommentsService {
  87. rs := &CommentsService{s: s}
  88. return rs
  89. }
  90. type CommentsService struct {
  91. s *Service
  92. }
  93. func NewPeopleService(s *Service) *PeopleService {
  94. rs := &PeopleService{s: s}
  95. return rs
  96. }
  97. type PeopleService struct {
  98. s *Service
  99. }
  100. type Acl struct {
  101. // Description: Description of the access granted, suitable for display.
  102. Description string `json:"description,omitempty"`
  103. // Items: The list of access entries.
  104. Items []*PlusAclentryResource `json:"items,omitempty"`
  105. // Kind: Identifies this resource as a collection of access controls.
  106. // Value: "plus#acl".
  107. Kind string `json:"kind,omitempty"`
  108. // ForceSendFields is a list of field names (e.g. "Description") to
  109. // unconditionally include in API requests. By default, fields with
  110. // empty values are omitted from API requests. However, any non-pointer,
  111. // non-interface field appearing in ForceSendFields will be sent to the
  112. // server regardless of whether the field is empty or not. This may be
  113. // used to include empty fields in Patch requests.
  114. ForceSendFields []string `json:"-"`
  115. }
  116. func (s *Acl) MarshalJSON() ([]byte, error) {
  117. type noMethod Acl
  118. raw := noMethod(*s)
  119. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  120. }
  121. type Activity struct {
  122. // Access: Identifies who has access to see this activity.
  123. Access *Acl `json:"access,omitempty"`
  124. // Actor: The person who performed this activity.
  125. Actor *ActivityActor `json:"actor,omitempty"`
  126. // Address: Street address where this activity occurred.
  127. Address string `json:"address,omitempty"`
  128. // Annotation: Additional content added by the person who shared this
  129. // activity, applicable only when resharing an activity.
  130. Annotation string `json:"annotation,omitempty"`
  131. // CrosspostSource: If this activity is a crosspost from another system,
  132. // this property specifies the ID of the original activity.
  133. CrosspostSource string `json:"crosspostSource,omitempty"`
  134. // Etag: ETag of this response for caching purposes.
  135. Etag string `json:"etag,omitempty"`
  136. // Geocode: Latitude and longitude where this activity occurred. Format
  137. // is latitude followed by longitude, space separated.
  138. Geocode string `json:"geocode,omitempty"`
  139. // Id: The ID of this activity.
  140. Id string `json:"id,omitempty"`
  141. // Kind: Identifies this resource as an activity. Value:
  142. // "plus#activity".
  143. Kind string `json:"kind,omitempty"`
  144. // Location: The location where this activity occurred.
  145. Location *Place `json:"location,omitempty"`
  146. // Object: The object of this activity.
  147. Object *ActivityObject `json:"object,omitempty"`
  148. // PlaceId: ID of the place where this activity occurred.
  149. PlaceId string `json:"placeId,omitempty"`
  150. // PlaceName: Name of the place where this activity occurred.
  151. PlaceName string `json:"placeName,omitempty"`
  152. // Provider: The service provider that initially published this
  153. // activity.
  154. Provider *ActivityProvider `json:"provider,omitempty"`
  155. // Published: The time at which this activity was initially published.
  156. // Formatted as an RFC 3339 timestamp.
  157. Published string `json:"published,omitempty"`
  158. // Radius: Radius, in meters, of the region where this activity
  159. // occurred, centered at the latitude and longitude identified in
  160. // geocode.
  161. Radius string `json:"radius,omitempty"`
  162. // Title: Title of this activity.
  163. Title string `json:"title,omitempty"`
  164. // Updated: The time at which this activity was last updated. Formatted
  165. // as an RFC 3339 timestamp.
  166. Updated string `json:"updated,omitempty"`
  167. // Url: The link to this activity.
  168. Url string `json:"url,omitempty"`
  169. // Verb: This activity's verb, which indicates the action that was
  170. // performed. Possible values include, but are not limited to, the
  171. // following values:
  172. // - "post" - Publish content to the stream.
  173. // - "share" - Reshare an activity.
  174. Verb string `json:"verb,omitempty"`
  175. // ServerResponse contains the HTTP response code and headers from the
  176. // server.
  177. googleapi.ServerResponse `json:"-"`
  178. // ForceSendFields is a list of field names (e.g. "Access") to
  179. // unconditionally include in API requests. By default, fields with
  180. // empty values are omitted from API requests. However, any non-pointer,
  181. // non-interface field appearing in ForceSendFields will be sent to the
  182. // server regardless of whether the field is empty or not. This may be
  183. // used to include empty fields in Patch requests.
  184. ForceSendFields []string `json:"-"`
  185. }
  186. func (s *Activity) MarshalJSON() ([]byte, error) {
  187. type noMethod Activity
  188. raw := noMethod(*s)
  189. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  190. }
  191. // ActivityActor: The person who performed this activity.
  192. type ActivityActor struct {
  193. // ClientSpecificActorInfo: Actor info specific to particular clients.
  194. ClientSpecificActorInfo *ActivityActorClientSpecificActorInfo `json:"clientSpecificActorInfo,omitempty"`
  195. // DisplayName: The name of the actor, suitable for display.
  196. DisplayName string `json:"displayName,omitempty"`
  197. // Id: The ID of the actor's Person resource.
  198. Id string `json:"id,omitempty"`
  199. // Image: The image representation of the actor.
  200. Image *ActivityActorImage `json:"image,omitempty"`
  201. // Name: An object representation of the individual components of name.
  202. Name *ActivityActorName `json:"name,omitempty"`
  203. // Url: The link to the actor's Google profile.
  204. Url string `json:"url,omitempty"`
  205. // Verification: Verification status of actor.
  206. Verification *ActivityActorVerification `json:"verification,omitempty"`
  207. // ForceSendFields is a list of field names (e.g.
  208. // "ClientSpecificActorInfo") to unconditionally include in API
  209. // requests. By default, fields with empty values are omitted from API
  210. // requests. However, any non-pointer, non-interface field appearing in
  211. // ForceSendFields will be sent to the server regardless of whether the
  212. // field is empty or not. This may be used to include empty fields in
  213. // Patch requests.
  214. ForceSendFields []string `json:"-"`
  215. }
  216. func (s *ActivityActor) MarshalJSON() ([]byte, error) {
  217. type noMethod ActivityActor
  218. raw := noMethod(*s)
  219. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  220. }
  221. // ActivityActorClientSpecificActorInfo: Actor info specific to
  222. // particular clients.
  223. type ActivityActorClientSpecificActorInfo struct {
  224. // YoutubeActorInfo: Actor info specific to YouTube clients.
  225. YoutubeActorInfo *ActivityActorClientSpecificActorInfoYoutubeActorInfo `json:"youtubeActorInfo,omitempty"`
  226. // ForceSendFields is a list of field names (e.g. "YoutubeActorInfo") to
  227. // unconditionally include in API requests. By default, fields with
  228. // empty values are omitted from API requests. However, any non-pointer,
  229. // non-interface field appearing in ForceSendFields will be sent to the
  230. // server regardless of whether the field is empty or not. This may be
  231. // used to include empty fields in Patch requests.
  232. ForceSendFields []string `json:"-"`
  233. }
  234. func (s *ActivityActorClientSpecificActorInfo) MarshalJSON() ([]byte, error) {
  235. type noMethod ActivityActorClientSpecificActorInfo
  236. raw := noMethod(*s)
  237. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  238. }
  239. // ActivityActorClientSpecificActorInfoYoutubeActorInfo: Actor info
  240. // specific to YouTube clients.
  241. type ActivityActorClientSpecificActorInfoYoutubeActorInfo struct {
  242. // ChannelId: ID of the YouTube channel owned by the Actor.
  243. ChannelId string `json:"channelId,omitempty"`
  244. // ForceSendFields is a list of field names (e.g. "ChannelId") to
  245. // unconditionally include in API requests. By default, fields with
  246. // empty values are omitted from API requests. However, any non-pointer,
  247. // non-interface field appearing in ForceSendFields will be sent to the
  248. // server regardless of whether the field is empty or not. This may be
  249. // used to include empty fields in Patch requests.
  250. ForceSendFields []string `json:"-"`
  251. }
  252. func (s *ActivityActorClientSpecificActorInfoYoutubeActorInfo) MarshalJSON() ([]byte, error) {
  253. type noMethod ActivityActorClientSpecificActorInfoYoutubeActorInfo
  254. raw := noMethod(*s)
  255. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  256. }
  257. // ActivityActorImage: The image representation of the actor.
  258. type ActivityActorImage struct {
  259. // Url: The URL of the actor's profile photo. To resize the image and
  260. // crop it to a square, append the query string ?sz=x, where x is the
  261. // dimension in pixels of each side.
  262. Url string `json:"url,omitempty"`
  263. // ForceSendFields is a list of field names (e.g. "Url") to
  264. // unconditionally include in API requests. By default, fields with
  265. // empty values are omitted from API requests. However, any non-pointer,
  266. // non-interface field appearing in ForceSendFields will be sent to the
  267. // server regardless of whether the field is empty or not. This may be
  268. // used to include empty fields in Patch requests.
  269. ForceSendFields []string `json:"-"`
  270. }
  271. func (s *ActivityActorImage) MarshalJSON() ([]byte, error) {
  272. type noMethod ActivityActorImage
  273. raw := noMethod(*s)
  274. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  275. }
  276. // ActivityActorName: An object representation of the individual
  277. // components of name.
  278. type ActivityActorName struct {
  279. // FamilyName: The family name ("last name") of the actor.
  280. FamilyName string `json:"familyName,omitempty"`
  281. // GivenName: The given name ("first name") of the actor.
  282. GivenName string `json:"givenName,omitempty"`
  283. // ForceSendFields is a list of field names (e.g. "FamilyName") to
  284. // unconditionally include in API requests. By default, fields with
  285. // empty values are omitted from API requests. However, any non-pointer,
  286. // non-interface field appearing in ForceSendFields will be sent to the
  287. // server regardless of whether the field is empty or not. This may be
  288. // used to include empty fields in Patch requests.
  289. ForceSendFields []string `json:"-"`
  290. }
  291. func (s *ActivityActorName) MarshalJSON() ([]byte, error) {
  292. type noMethod ActivityActorName
  293. raw := noMethod(*s)
  294. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  295. }
  296. // ActivityActorVerification: Verification status of actor.
  297. type ActivityActorVerification struct {
  298. // AdHocVerified: Verification for one-time or manual processes.
  299. AdHocVerified string `json:"adHocVerified,omitempty"`
  300. // ForceSendFields is a list of field names (e.g. "AdHocVerified") to
  301. // unconditionally include in API requests. By default, fields with
  302. // empty values are omitted from API requests. However, any non-pointer,
  303. // non-interface field appearing in ForceSendFields will be sent to the
  304. // server regardless of whether the field is empty or not. This may be
  305. // used to include empty fields in Patch requests.
  306. ForceSendFields []string `json:"-"`
  307. }
  308. func (s *ActivityActorVerification) MarshalJSON() ([]byte, error) {
  309. type noMethod ActivityActorVerification
  310. raw := noMethod(*s)
  311. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  312. }
  313. // ActivityObject: The object of this activity.
  314. type ActivityObject struct {
  315. // Actor: If this activity's object is itself another activity, such as
  316. // when a person reshares an activity, this property specifies the
  317. // original activity's actor.
  318. Actor *ActivityObjectActor `json:"actor,omitempty"`
  319. // Attachments: The media objects attached to this activity.
  320. Attachments []*ActivityObjectAttachments `json:"attachments,omitempty"`
  321. // Content: The HTML-formatted content, which is suitable for display.
  322. Content string `json:"content,omitempty"`
  323. // Id: The ID of the object. When resharing an activity, this is the ID
  324. // of the activity that is being reshared.
  325. Id string `json:"id,omitempty"`
  326. // ObjectType: The type of the object. Possible values include, but are
  327. // not limited to, the following values:
  328. // - "note" - Textual content.
  329. // - "activity" - A Google+ activity.
  330. ObjectType string `json:"objectType,omitempty"`
  331. // OriginalContent: The content (text) as provided by the author, which
  332. // is stored without any HTML formatting. When creating or updating an
  333. // activity, this value must be supplied as plain text in the request.
  334. OriginalContent string `json:"originalContent,omitempty"`
  335. // Plusoners: People who +1'd this activity.
  336. Plusoners *ActivityObjectPlusoners `json:"plusoners,omitempty"`
  337. // Replies: Comments in reply to this activity.
  338. Replies *ActivityObjectReplies `json:"replies,omitempty"`
  339. // Resharers: People who reshared this activity.
  340. Resharers *ActivityObjectResharers `json:"resharers,omitempty"`
  341. // Url: The URL that points to the linked resource.
  342. Url string `json:"url,omitempty"`
  343. // ForceSendFields is a list of field names (e.g. "Actor") to
  344. // unconditionally include in API requests. By default, fields with
  345. // empty values are omitted from API requests. However, any non-pointer,
  346. // non-interface field appearing in ForceSendFields will be sent to the
  347. // server regardless of whether the field is empty or not. This may be
  348. // used to include empty fields in Patch requests.
  349. ForceSendFields []string `json:"-"`
  350. }
  351. func (s *ActivityObject) MarshalJSON() ([]byte, error) {
  352. type noMethod ActivityObject
  353. raw := noMethod(*s)
  354. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  355. }
  356. // ActivityObjectActor: If this activity's object is itself another
  357. // activity, such as when a person reshares an activity, this property
  358. // specifies the original activity's actor.
  359. type ActivityObjectActor struct {
  360. // ClientSpecificActorInfo: Actor info specific to particular clients.
  361. ClientSpecificActorInfo *ActivityObjectActorClientSpecificActorInfo `json:"clientSpecificActorInfo,omitempty"`
  362. // DisplayName: The original actor's name, which is suitable for
  363. // display.
  364. DisplayName string `json:"displayName,omitempty"`
  365. // Id: ID of the original actor.
  366. Id string `json:"id,omitempty"`
  367. // Image: The image representation of the original actor.
  368. Image *ActivityObjectActorImage `json:"image,omitempty"`
  369. // Url: A link to the original actor's Google profile.
  370. Url string `json:"url,omitempty"`
  371. // Verification: Verification status of actor.
  372. Verification *ActivityObjectActorVerification `json:"verification,omitempty"`
  373. // ForceSendFields is a list of field names (e.g.
  374. // "ClientSpecificActorInfo") to unconditionally include in API
  375. // requests. By default, fields with empty values are omitted from API
  376. // requests. However, any non-pointer, non-interface field appearing in
  377. // ForceSendFields will be sent to the server regardless of whether the
  378. // field is empty or not. This may be used to include empty fields in
  379. // Patch requests.
  380. ForceSendFields []string `json:"-"`
  381. }
  382. func (s *ActivityObjectActor) MarshalJSON() ([]byte, error) {
  383. type noMethod ActivityObjectActor
  384. raw := noMethod(*s)
  385. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  386. }
  387. // ActivityObjectActorClientSpecificActorInfo: Actor info specific to
  388. // particular clients.
  389. type ActivityObjectActorClientSpecificActorInfo struct {
  390. // YoutubeActorInfo: Actor info specific to YouTube clients.
  391. YoutubeActorInfo *ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo `json:"youtubeActorInfo,omitempty"`
  392. // ForceSendFields is a list of field names (e.g. "YoutubeActorInfo") to
  393. // unconditionally include in API requests. By default, fields with
  394. // empty values are omitted from API requests. However, any non-pointer,
  395. // non-interface field appearing in ForceSendFields will be sent to the
  396. // server regardless of whether the field is empty or not. This may be
  397. // used to include empty fields in Patch requests.
  398. ForceSendFields []string `json:"-"`
  399. }
  400. func (s *ActivityObjectActorClientSpecificActorInfo) MarshalJSON() ([]byte, error) {
  401. type noMethod ActivityObjectActorClientSpecificActorInfo
  402. raw := noMethod(*s)
  403. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  404. }
  405. // ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo: Actor
  406. // info specific to YouTube clients.
  407. type ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo struct {
  408. // ChannelId: ID of the YouTube channel owned by the Actor.
  409. ChannelId string `json:"channelId,omitempty"`
  410. // ForceSendFields is a list of field names (e.g. "ChannelId") to
  411. // unconditionally include in API requests. By default, fields with
  412. // empty values are omitted from API requests. However, any non-pointer,
  413. // non-interface field appearing in ForceSendFields will be sent to the
  414. // server regardless of whether the field is empty or not. This may be
  415. // used to include empty fields in Patch requests.
  416. ForceSendFields []string `json:"-"`
  417. }
  418. func (s *ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo) MarshalJSON() ([]byte, error) {
  419. type noMethod ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo
  420. raw := noMethod(*s)
  421. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  422. }
  423. // ActivityObjectActorImage: The image representation of the original
  424. // actor.
  425. type ActivityObjectActorImage struct {
  426. // Url: A URL that points to a thumbnail photo of the original actor.
  427. Url string `json:"url,omitempty"`
  428. // ForceSendFields is a list of field names (e.g. "Url") to
  429. // unconditionally include in API requests. By default, fields with
  430. // empty values are omitted from API requests. However, any non-pointer,
  431. // non-interface field appearing in ForceSendFields will be sent to the
  432. // server regardless of whether the field is empty or not. This may be
  433. // used to include empty fields in Patch requests.
  434. ForceSendFields []string `json:"-"`
  435. }
  436. func (s *ActivityObjectActorImage) MarshalJSON() ([]byte, error) {
  437. type noMethod ActivityObjectActorImage
  438. raw := noMethod(*s)
  439. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  440. }
  441. // ActivityObjectActorVerification: Verification status of actor.
  442. type ActivityObjectActorVerification struct {
  443. // AdHocVerified: Verification for one-time or manual processes.
  444. AdHocVerified string `json:"adHocVerified,omitempty"`
  445. // ForceSendFields is a list of field names (e.g. "AdHocVerified") to
  446. // unconditionally include in API requests. By default, fields with
  447. // empty values are omitted from API requests. However, any non-pointer,
  448. // non-interface field appearing in ForceSendFields will be sent to the
  449. // server regardless of whether the field is empty or not. This may be
  450. // used to include empty fields in Patch requests.
  451. ForceSendFields []string `json:"-"`
  452. }
  453. func (s *ActivityObjectActorVerification) MarshalJSON() ([]byte, error) {
  454. type noMethod ActivityObjectActorVerification
  455. raw := noMethod(*s)
  456. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  457. }
  458. type ActivityObjectAttachments struct {
  459. // Content: If the attachment is an article, this property contains a
  460. // snippet of text from the article. It can also include descriptions
  461. // for other types.
  462. Content string `json:"content,omitempty"`
  463. // DisplayName: The title of the attachment, such as a photo caption or
  464. // an article title.
  465. DisplayName string `json:"displayName,omitempty"`
  466. // Embed: If the attachment is a video, the embeddable link.
  467. Embed *ActivityObjectAttachmentsEmbed `json:"embed,omitempty"`
  468. // FullImage: The full image URL for photo attachments.
  469. FullImage *ActivityObjectAttachmentsFullImage `json:"fullImage,omitempty"`
  470. // Id: The ID of the attachment.
  471. Id string `json:"id,omitempty"`
  472. // Image: The preview image for photos or videos.
  473. Image *ActivityObjectAttachmentsImage `json:"image,omitempty"`
  474. // ObjectType: The type of media object. Possible values include, but
  475. // are not limited to, the following values:
  476. // - "photo" - A photo.
  477. // - "album" - A photo album.
  478. // - "video" - A video.
  479. // - "article" - An article, specified by a link.
  480. ObjectType string `json:"objectType,omitempty"`
  481. // Thumbnails: If the attachment is an album, this property is a list of
  482. // potential additional thumbnails from the album.
  483. Thumbnails []*ActivityObjectAttachmentsThumbnails `json:"thumbnails,omitempty"`
  484. // Url: The link to the attachment, which should be of type text/html.
  485. Url string `json:"url,omitempty"`
  486. // ForceSendFields is a list of field names (e.g. "Content") to
  487. // unconditionally include in API requests. By default, fields with
  488. // empty values are omitted from API requests. However, any non-pointer,
  489. // non-interface field appearing in ForceSendFields will be sent to the
  490. // server regardless of whether the field is empty or not. This may be
  491. // used to include empty fields in Patch requests.
  492. ForceSendFields []string `json:"-"`
  493. }
  494. func (s *ActivityObjectAttachments) MarshalJSON() ([]byte, error) {
  495. type noMethod ActivityObjectAttachments
  496. raw := noMethod(*s)
  497. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  498. }
  499. // ActivityObjectAttachmentsEmbed: If the attachment is a video, the
  500. // embeddable link.
  501. type ActivityObjectAttachmentsEmbed struct {
  502. // Type: Media type of the link.
  503. Type string `json:"type,omitempty"`
  504. // Url: URL of the link.
  505. Url string `json:"url,omitempty"`
  506. // ForceSendFields is a list of field names (e.g. "Type") to
  507. // unconditionally include in API requests. By default, fields with
  508. // empty values are omitted from API requests. However, any non-pointer,
  509. // non-interface field appearing in ForceSendFields will be sent to the
  510. // server regardless of whether the field is empty or not. This may be
  511. // used to include empty fields in Patch requests.
  512. ForceSendFields []string `json:"-"`
  513. }
  514. func (s *ActivityObjectAttachmentsEmbed) MarshalJSON() ([]byte, error) {
  515. type noMethod ActivityObjectAttachmentsEmbed
  516. raw := noMethod(*s)
  517. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  518. }
  519. // ActivityObjectAttachmentsFullImage: The full image URL for photo
  520. // attachments.
  521. type ActivityObjectAttachmentsFullImage struct {
  522. // Height: The height, in pixels, of the linked resource.
  523. Height int64 `json:"height,omitempty"`
  524. // Type: Media type of the link.
  525. Type string `json:"type,omitempty"`
  526. // Url: URL of the image.
  527. Url string `json:"url,omitempty"`
  528. // Width: The width, in pixels, of the linked resource.
  529. Width int64 `json:"width,omitempty"`
  530. // ForceSendFields is a list of field names (e.g. "Height") to
  531. // unconditionally include in API requests. By default, fields with
  532. // empty values are omitted from API requests. However, any non-pointer,
  533. // non-interface field appearing in ForceSendFields will be sent to the
  534. // server regardless of whether the field is empty or not. This may be
  535. // used to include empty fields in Patch requests.
  536. ForceSendFields []string `json:"-"`
  537. }
  538. func (s *ActivityObjectAttachmentsFullImage) MarshalJSON() ([]byte, error) {
  539. type noMethod ActivityObjectAttachmentsFullImage
  540. raw := noMethod(*s)
  541. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  542. }
  543. // ActivityObjectAttachmentsImage: The preview image for photos or
  544. // videos.
  545. type ActivityObjectAttachmentsImage struct {
  546. // Height: The height, in pixels, of the linked resource.
  547. Height int64 `json:"height,omitempty"`
  548. // Type: Media type of the link.
  549. Type string `json:"type,omitempty"`
  550. // Url: Image URL.
  551. Url string `json:"url,omitempty"`
  552. // Width: The width, in pixels, of the linked resource.
  553. Width int64 `json:"width,omitempty"`
  554. // ForceSendFields is a list of field names (e.g. "Height") to
  555. // unconditionally include in API requests. By default, fields with
  556. // empty values are omitted from API requests. However, any non-pointer,
  557. // non-interface field appearing in ForceSendFields will be sent to the
  558. // server regardless of whether the field is empty or not. This may be
  559. // used to include empty fields in Patch requests.
  560. ForceSendFields []string `json:"-"`
  561. }
  562. func (s *ActivityObjectAttachmentsImage) MarshalJSON() ([]byte, error) {
  563. type noMethod ActivityObjectAttachmentsImage
  564. raw := noMethod(*s)
  565. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  566. }
  567. type ActivityObjectAttachmentsThumbnails struct {
  568. // Description: Potential name of the thumbnail.
  569. Description string `json:"description,omitempty"`
  570. // Image: Image resource.
  571. Image *ActivityObjectAttachmentsThumbnailsImage `json:"image,omitempty"`
  572. // Url: URL of the webpage containing the image.
  573. Url string `json:"url,omitempty"`
  574. // ForceSendFields is a list of field names (e.g. "Description") to
  575. // unconditionally include in API requests. By default, fields with
  576. // empty values are omitted from API requests. However, any non-pointer,
  577. // non-interface field appearing in ForceSendFields will be sent to the
  578. // server regardless of whether the field is empty or not. This may be
  579. // used to include empty fields in Patch requests.
  580. ForceSendFields []string `json:"-"`
  581. }
  582. func (s *ActivityObjectAttachmentsThumbnails) MarshalJSON() ([]byte, error) {
  583. type noMethod ActivityObjectAttachmentsThumbnails
  584. raw := noMethod(*s)
  585. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  586. }
  587. // ActivityObjectAttachmentsThumbnailsImage: Image resource.
  588. type ActivityObjectAttachmentsThumbnailsImage struct {
  589. // Height: The height, in pixels, of the linked resource.
  590. Height int64 `json:"height,omitempty"`
  591. // Type: Media type of the link.
  592. Type string `json:"type,omitempty"`
  593. // Url: Image url.
  594. Url string `json:"url,omitempty"`
  595. // Width: The width, in pixels, of the linked resource.
  596. Width int64 `json:"width,omitempty"`
  597. // ForceSendFields is a list of field names (e.g. "Height") to
  598. // unconditionally include in API requests. By default, fields with
  599. // empty values are omitted from API requests. However, any non-pointer,
  600. // non-interface field appearing in ForceSendFields will be sent to the
  601. // server regardless of whether the field is empty or not. This may be
  602. // used to include empty fields in Patch requests.
  603. ForceSendFields []string `json:"-"`
  604. }
  605. func (s *ActivityObjectAttachmentsThumbnailsImage) MarshalJSON() ([]byte, error) {
  606. type noMethod ActivityObjectAttachmentsThumbnailsImage
  607. raw := noMethod(*s)
  608. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  609. }
  610. // ActivityObjectPlusoners: People who +1'd this activity.
  611. type ActivityObjectPlusoners struct {
  612. // SelfLink: The URL for the collection of people who +1'd this
  613. // activity.
  614. SelfLink string `json:"selfLink,omitempty"`
  615. // TotalItems: Total number of people who +1'd this activity.
  616. TotalItems int64 `json:"totalItems,omitempty"`
  617. // ForceSendFields is a list of field names (e.g. "SelfLink") to
  618. // unconditionally include in API requests. By default, fields with
  619. // empty values are omitted from API requests. However, any non-pointer,
  620. // non-interface field appearing in ForceSendFields will be sent to the
  621. // server regardless of whether the field is empty or not. This may be
  622. // used to include empty fields in Patch requests.
  623. ForceSendFields []string `json:"-"`
  624. }
  625. func (s *ActivityObjectPlusoners) MarshalJSON() ([]byte, error) {
  626. type noMethod ActivityObjectPlusoners
  627. raw := noMethod(*s)
  628. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  629. }
  630. // ActivityObjectReplies: Comments in reply to this activity.
  631. type ActivityObjectReplies struct {
  632. // SelfLink: The URL for the collection of comments in reply to this
  633. // activity.
  634. SelfLink string `json:"selfLink,omitempty"`
  635. // TotalItems: Total number of comments on this activity.
  636. TotalItems int64 `json:"totalItems,omitempty"`
  637. // ForceSendFields is a list of field names (e.g. "SelfLink") to
  638. // unconditionally include in API requests. By default, fields with
  639. // empty values are omitted from API requests. However, any non-pointer,
  640. // non-interface field appearing in ForceSendFields will be sent to the
  641. // server regardless of whether the field is empty or not. This may be
  642. // used to include empty fields in Patch requests.
  643. ForceSendFields []string `json:"-"`
  644. }
  645. func (s *ActivityObjectReplies) MarshalJSON() ([]byte, error) {
  646. type noMethod ActivityObjectReplies
  647. raw := noMethod(*s)
  648. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  649. }
  650. // ActivityObjectResharers: People who reshared this activity.
  651. type ActivityObjectResharers struct {
  652. // SelfLink: The URL for the collection of resharers.
  653. SelfLink string `json:"selfLink,omitempty"`
  654. // TotalItems: Total number of people who reshared this activity.
  655. TotalItems int64 `json:"totalItems,omitempty"`
  656. // ForceSendFields is a list of field names (e.g. "SelfLink") to
  657. // unconditionally include in API requests. By default, fields with
  658. // empty values are omitted from API requests. However, any non-pointer,
  659. // non-interface field appearing in ForceSendFields will be sent to the
  660. // server regardless of whether the field is empty or not. This may be
  661. // used to include empty fields in Patch requests.
  662. ForceSendFields []string `json:"-"`
  663. }
  664. func (s *ActivityObjectResharers) MarshalJSON() ([]byte, error) {
  665. type noMethod ActivityObjectResharers
  666. raw := noMethod(*s)
  667. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  668. }
  669. // ActivityProvider: The service provider that initially published this
  670. // activity.
  671. type ActivityProvider struct {
  672. // Title: Name of the service provider.
  673. Title string `json:"title,omitempty"`
  674. // ForceSendFields is a list of field names (e.g. "Title") to
  675. // unconditionally include in API requests. By default, fields with
  676. // empty values are omitted from API requests. However, any non-pointer,
  677. // non-interface field appearing in ForceSendFields will be sent to the
  678. // server regardless of whether the field is empty or not. This may be
  679. // used to include empty fields in Patch requests.
  680. ForceSendFields []string `json:"-"`
  681. }
  682. func (s *ActivityProvider) MarshalJSON() ([]byte, error) {
  683. type noMethod ActivityProvider
  684. raw := noMethod(*s)
  685. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  686. }
  687. type ActivityFeed struct {
  688. // Etag: ETag of this response for caching purposes.
  689. Etag string `json:"etag,omitempty"`
  690. // Id: The ID of this collection of activities. Deprecated.
  691. Id string `json:"id,omitempty"`
  692. // Items: The activities in this page of results.
  693. Items []*Activity `json:"items,omitempty"`
  694. // Kind: Identifies this resource as a collection of activities. Value:
  695. // "plus#activityFeed".
  696. Kind string `json:"kind,omitempty"`
  697. // NextLink: Link to the next page of activities.
  698. NextLink string `json:"nextLink,omitempty"`
  699. // NextPageToken: The continuation token, which is used to page through
  700. // large result sets. Provide this value in a subsequent request to
  701. // return the next page of results.
  702. NextPageToken string `json:"nextPageToken,omitempty"`
  703. // SelfLink: Link to this activity resource.
  704. SelfLink string `json:"selfLink,omitempty"`
  705. // Title: The title of this collection of activities, which is a
  706. // truncated portion of the content.
  707. Title string `json:"title,omitempty"`
  708. // Updated: The time at which this collection of activities was last
  709. // updated. Formatted as an RFC 3339 timestamp.
  710. Updated string `json:"updated,omitempty"`
  711. // ServerResponse contains the HTTP response code and headers from the
  712. // server.
  713. googleapi.ServerResponse `json:"-"`
  714. // ForceSendFields is a list of field names (e.g. "Etag") to
  715. // unconditionally include in API requests. By default, fields with
  716. // empty values are omitted from API requests. However, any non-pointer,
  717. // non-interface field appearing in ForceSendFields will be sent to the
  718. // server regardless of whether the field is empty or not. This may be
  719. // used to include empty fields in Patch requests.
  720. ForceSendFields []string `json:"-"`
  721. }
  722. func (s *ActivityFeed) MarshalJSON() ([]byte, error) {
  723. type noMethod ActivityFeed
  724. raw := noMethod(*s)
  725. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  726. }
  727. type Comment struct {
  728. // Actor: The person who posted this comment.
  729. Actor *CommentActor `json:"actor,omitempty"`
  730. // Etag: ETag of this response for caching purposes.
  731. Etag string `json:"etag,omitempty"`
  732. // Id: The ID of this comment.
  733. Id string `json:"id,omitempty"`
  734. // InReplyTo: The activity this comment replied to.
  735. InReplyTo []*CommentInReplyTo `json:"inReplyTo,omitempty"`
  736. // Kind: Identifies this resource as a comment. Value: "plus#comment".
  737. Kind string `json:"kind,omitempty"`
  738. // Object: The object of this comment.
  739. Object *CommentObject `json:"object,omitempty"`
  740. // Plusoners: People who +1'd this comment.
  741. Plusoners *CommentPlusoners `json:"plusoners,omitempty"`
  742. // Published: The time at which this comment was initially published.
  743. // Formatted as an RFC 3339 timestamp.
  744. Published string `json:"published,omitempty"`
  745. // SelfLink: Link to this comment resource.
  746. SelfLink string `json:"selfLink,omitempty"`
  747. // Updated: The time at which this comment was last updated. Formatted
  748. // as an RFC 3339 timestamp.
  749. Updated string `json:"updated,omitempty"`
  750. // Verb: This comment's verb, indicating what action was performed.
  751. // Possible values are:
  752. // - "post" - Publish content to the stream.
  753. Verb string `json:"verb,omitempty"`
  754. // ServerResponse contains the HTTP response code and headers from the
  755. // server.
  756. googleapi.ServerResponse `json:"-"`
  757. // ForceSendFields is a list of field names (e.g. "Actor") to
  758. // unconditionally include in API requests. By default, fields with
  759. // empty values are omitted from API requests. However, any non-pointer,
  760. // non-interface field appearing in ForceSendFields will be sent to the
  761. // server regardless of whether the field is empty or not. This may be
  762. // used to include empty fields in Patch requests.
  763. ForceSendFields []string `json:"-"`
  764. }
  765. func (s *Comment) MarshalJSON() ([]byte, error) {
  766. type noMethod Comment
  767. raw := noMethod(*s)
  768. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  769. }
  770. // CommentActor: The person who posted this comment.
  771. type CommentActor struct {
  772. // ClientSpecificActorInfo: Actor info specific to particular clients.
  773. ClientSpecificActorInfo *CommentActorClientSpecificActorInfo `json:"clientSpecificActorInfo,omitempty"`
  774. // DisplayName: The name of this actor, suitable for display.
  775. DisplayName string `json:"displayName,omitempty"`
  776. // Id: The ID of the actor.
  777. Id string `json:"id,omitempty"`
  778. // Image: The image representation of this actor.
  779. Image *CommentActorImage `json:"image,omitempty"`
  780. // Url: A link to the Person resource for this actor.
  781. Url string `json:"url,omitempty"`
  782. // Verification: Verification status of actor.
  783. Verification *CommentActorVerification `json:"verification,omitempty"`
  784. // ForceSendFields is a list of field names (e.g.
  785. // "ClientSpecificActorInfo") to unconditionally include in API
  786. // requests. By default, fields with empty values are omitted from API
  787. // requests. However, any non-pointer, non-interface field appearing in
  788. // ForceSendFields will be sent to the server regardless of whether the
  789. // field is empty or not. This may be used to include empty fields in
  790. // Patch requests.
  791. ForceSendFields []string `json:"-"`
  792. }
  793. func (s *CommentActor) MarshalJSON() ([]byte, error) {
  794. type noMethod CommentActor
  795. raw := noMethod(*s)
  796. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  797. }
  798. // CommentActorClientSpecificActorInfo: Actor info specific to
  799. // particular clients.
  800. type CommentActorClientSpecificActorInfo struct {
  801. // YoutubeActorInfo: Actor info specific to YouTube clients.
  802. YoutubeActorInfo *CommentActorClientSpecificActorInfoYoutubeActorInfo `json:"youtubeActorInfo,omitempty"`
  803. // ForceSendFields is a list of field names (e.g. "YoutubeActorInfo") to
  804. // unconditionally include in API requests. By default, fields with
  805. // empty values are omitted from API requests. However, any non-pointer,
  806. // non-interface field appearing in ForceSendFields will be sent to the
  807. // server regardless of whether the field is empty or not. This may be
  808. // used to include empty fields in Patch requests.
  809. ForceSendFields []string `json:"-"`
  810. }
  811. func (s *CommentActorClientSpecificActorInfo) MarshalJSON() ([]byte, error) {
  812. type noMethod CommentActorClientSpecificActorInfo
  813. raw := noMethod(*s)
  814. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  815. }
  816. // CommentActorClientSpecificActorInfoYoutubeActorInfo: Actor info
  817. // specific to YouTube clients.
  818. type CommentActorClientSpecificActorInfoYoutubeActorInfo struct {
  819. // ChannelId: ID of the YouTube channel owned by the Actor.
  820. ChannelId string `json:"channelId,omitempty"`
  821. // ForceSendFields is a list of field names (e.g. "ChannelId") to
  822. // unconditionally include in API requests. By default, fields with
  823. // empty values are omitted from API requests. However, any non-pointer,
  824. // non-interface field appearing in ForceSendFields will be sent to the
  825. // server regardless of whether the field is empty or not. This may be
  826. // used to include empty fields in Patch requests.
  827. ForceSendFields []string `json:"-"`
  828. }
  829. func (s *CommentActorClientSpecificActorInfoYoutubeActorInfo) MarshalJSON() ([]byte, error) {
  830. type noMethod CommentActorClientSpecificActorInfoYoutubeActorInfo
  831. raw := noMethod(*s)
  832. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  833. }
  834. // CommentActorImage: The image representation of this actor.
  835. type CommentActorImage struct {
  836. // Url: The URL of the actor's profile photo. To resize the image and
  837. // crop it to a square, append the query string ?sz=x, where x is the
  838. // dimension in pixels of each side.
  839. Url string `json:"url,omitempty"`
  840. // ForceSendFields is a list of field names (e.g. "Url") to
  841. // unconditionally include in API requests. By default, fields with
  842. // empty values are omitted from API requests. However, any non-pointer,
  843. // non-interface field appearing in ForceSendFields will be sent to the
  844. // server regardless of whether the field is empty or not. This may be
  845. // used to include empty fields in Patch requests.
  846. ForceSendFields []string `json:"-"`
  847. }
  848. func (s *CommentActorImage) MarshalJSON() ([]byte, error) {
  849. type noMethod CommentActorImage
  850. raw := noMethod(*s)
  851. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  852. }
  853. // CommentActorVerification: Verification status of actor.
  854. type CommentActorVerification struct {
  855. // AdHocVerified: Verification for one-time or manual processes.
  856. AdHocVerified string `json:"adHocVerified,omitempty"`
  857. // ForceSendFields is a list of field names (e.g. "AdHocVerified") to
  858. // unconditionally include in API requests. By default, fields with
  859. // empty values are omitted from API requests. However, any non-pointer,
  860. // non-interface field appearing in ForceSendFields will be sent to the
  861. // server regardless of whether the field is empty or not. This may be
  862. // used to include empty fields in Patch requests.
  863. ForceSendFields []string `json:"-"`
  864. }
  865. func (s *CommentActorVerification) MarshalJSON() ([]byte, error) {
  866. type noMethod CommentActorVerification
  867. raw := noMethod(*s)
  868. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  869. }
  870. type CommentInReplyTo struct {
  871. // Id: The ID of the activity.
  872. Id string `json:"id,omitempty"`
  873. // Url: The URL of the activity.
  874. Url string `json:"url,omitempty"`
  875. // ForceSendFields is a list of field names (e.g. "Id") to
  876. // unconditionally include in API requests. By default, fields with
  877. // empty values are omitted from API requests. However, any non-pointer,
  878. // non-interface field appearing in ForceSendFields will be sent to the
  879. // server regardless of whether the field is empty or not. This may be
  880. // used to include empty fields in Patch requests.
  881. ForceSendFields []string `json:"-"`
  882. }
  883. func (s *CommentInReplyTo) MarshalJSON() ([]byte, error) {
  884. type noMethod CommentInReplyTo
  885. raw := noMethod(*s)
  886. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  887. }
  888. // CommentObject: The object of this comment.
  889. type CommentObject struct {
  890. // Content: The HTML-formatted content, suitable for display.
  891. Content string `json:"content,omitempty"`
  892. // ObjectType: The object type of this comment. Possible values are:
  893. // - "comment" - A comment in reply to an activity.
  894. ObjectType string `json:"objectType,omitempty"`
  895. // OriginalContent: The content (text) as provided by the author, stored
  896. // without any HTML formatting. When creating or updating a comment,
  897. // this value must be supplied as plain text in the request.
  898. OriginalContent string `json:"originalContent,omitempty"`
  899. // ForceSendFields is a list of field names (e.g. "Content") to
  900. // unconditionally include in API requests. By default, fields with
  901. // empty values are omitted from API requests. However, any non-pointer,
  902. // non-interface field appearing in ForceSendFields will be sent to the
  903. // server regardless of whether the field is empty or not. This may be
  904. // used to include empty fields in Patch requests.
  905. ForceSendFields []string `json:"-"`
  906. }
  907. func (s *CommentObject) MarshalJSON() ([]byte, error) {
  908. type noMethod CommentObject
  909. raw := noMethod(*s)
  910. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  911. }
  912. // CommentPlusoners: People who +1'd this comment.
  913. type CommentPlusoners struct {
  914. // TotalItems: Total number of people who +1'd this comment.
  915. TotalItems int64 `json:"totalItems,omitempty"`
  916. // ForceSendFields is a list of field names (e.g. "TotalItems") to
  917. // unconditionally include in API requests. By default, fields with
  918. // empty values are omitted from API requests. However, any non-pointer,
  919. // non-interface field appearing in ForceSendFields will be sent to the
  920. // server regardless of whether the field is empty or not. This may be
  921. // used to include empty fields in Patch requests.
  922. ForceSendFields []string `json:"-"`
  923. }
  924. func (s *CommentPlusoners) MarshalJSON() ([]byte, error) {
  925. type noMethod CommentPlusoners
  926. raw := noMethod(*s)
  927. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  928. }
  929. type CommentFeed struct {
  930. // Etag: ETag of this response for caching purposes.
  931. Etag string `json:"etag,omitempty"`
  932. // Id: The ID of this collection of comments.
  933. Id string `json:"id,omitempty"`
  934. // Items: The comments in this page of results.
  935. Items []*Comment `json:"items,omitempty"`
  936. // Kind: Identifies this resource as a collection of comments. Value:
  937. // "plus#commentFeed".
  938. Kind string `json:"kind,omitempty"`
  939. // NextLink: Link to the next page of activities.
  940. NextLink string `json:"nextLink,omitempty"`
  941. // NextPageToken: The continuation token, which is used to page through
  942. // large result sets. Provide this value in a subsequent request to
  943. // return the next page of results.
  944. NextPageToken string `json:"nextPageToken,omitempty"`
  945. // Title: The title of this collection of comments.
  946. Title string `json:"title,omitempty"`
  947. // Updated: The time at which this collection of comments was last
  948. // updated. Formatted as an RFC 3339 timestamp.
  949. Updated string `json:"updated,omitempty"`
  950. // ServerResponse contains the HTTP response code and headers from the
  951. // server.
  952. googleapi.ServerResponse `json:"-"`
  953. // ForceSendFields is a list of field names (e.g. "Etag") to
  954. // unconditionally include in API requests. By default, fields with
  955. // empty values are omitted from API requests. However, any non-pointer,
  956. // non-interface field appearing in ForceSendFields will be sent to the
  957. // server regardless of whether the field is empty or not. This may be
  958. // used to include empty fields in Patch requests.
  959. ForceSendFields []string `json:"-"`
  960. }
  961. func (s *CommentFeed) MarshalJSON() ([]byte, error) {
  962. type noMethod CommentFeed
  963. raw := noMethod(*s)
  964. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  965. }
  966. type PeopleFeed struct {
  967. // Etag: ETag of this response for caching purposes.
  968. Etag string `json:"etag,omitempty"`
  969. // Items: The people in this page of results. Each item includes the id,
  970. // displayName, image, and url for the person. To retrieve additional
  971. // profile data, see the people.get method.
  972. Items []*Person `json:"items,omitempty"`
  973. // Kind: Identifies this resource as a collection of people. Value:
  974. // "plus#peopleFeed".
  975. Kind string `json:"kind,omitempty"`
  976. // NextPageToken: The continuation token, which is used to page through
  977. // large result sets. Provide this value in a subsequent request to
  978. // return the next page of results.
  979. NextPageToken string `json:"nextPageToken,omitempty"`
  980. // SelfLink: Link to this resource.
  981. SelfLink string `json:"selfLink,omitempty"`
  982. // Title: The title of this collection of people.
  983. Title string `json:"title,omitempty"`
  984. // TotalItems: The total number of people available in this list. The
  985. // number of people in a response might be smaller due to paging. This
  986. // might not be set for all collections.
  987. TotalItems int64 `json:"totalItems,omitempty"`
  988. // ServerResponse contains the HTTP response code and headers from the
  989. // server.
  990. googleapi.ServerResponse `json:"-"`
  991. // ForceSendFields is a list of field names (e.g. "Etag") to
  992. // unconditionally include in API requests. By default, fields with
  993. // empty values are omitted from API requests. However, any non-pointer,
  994. // non-interface field appearing in ForceSendFields will be sent to the
  995. // server regardless of whether the field is empty or not. This may be
  996. // used to include empty fields in Patch requests.
  997. ForceSendFields []string `json:"-"`
  998. }
  999. func (s *PeopleFeed) MarshalJSON() ([]byte, error) {
  1000. type noMethod PeopleFeed
  1001. raw := noMethod(*s)
  1002. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1003. }
  1004. type Person struct {
  1005. // AboutMe: A short biography for this person.
  1006. AboutMe string `json:"aboutMe,omitempty"`
  1007. // AgeRange: The age range of the person. Valid ranges are 17 or
  1008. // younger, 18 to 20, and 21 or older. Age is determined from the user's
  1009. // birthday using Western age reckoning.
  1010. AgeRange *PersonAgeRange `json:"ageRange,omitempty"`
  1011. // Birthday: The person's date of birth, represented as YYYY-MM-DD.
  1012. Birthday string `json:"birthday,omitempty"`
  1013. // BraggingRights: The "bragging rights" line of this person.
  1014. BraggingRights string `json:"braggingRights,omitempty"`
  1015. // CircledByCount: For followers who are visible, the number of people
  1016. // who have added this person or page to a circle.
  1017. CircledByCount int64 `json:"circledByCount,omitempty"`
  1018. // Cover: The cover photo content.
  1019. Cover *PersonCover `json:"cover,omitempty"`
  1020. // CurrentLocation: (this field is not currently used)
  1021. CurrentLocation string `json:"currentLocation,omitempty"`
  1022. // DisplayName: The name of this person, which is suitable for display.
  1023. DisplayName string `json:"displayName,omitempty"`
  1024. // Domain: The hosted domain name for the user's Google Apps account.
  1025. // For instance, example.com. The plus.profile.emails.read or email
  1026. // scope is needed to get this domain name.
  1027. Domain string `json:"domain,omitempty"`
  1028. // Emails: A list of email addresses that this person has, including
  1029. // their Google account email address, and the public verified email
  1030. // addresses on their Google+ profile. The plus.profile.emails.read
  1031. // scope is needed to retrieve these email addresses, or the email scope
  1032. // can be used to retrieve just the Google account email address.
  1033. Emails []*PersonEmails `json:"emails,omitempty"`
  1034. // Etag: ETag of this response for caching purposes.
  1035. Etag string `json:"etag,omitempty"`
  1036. // Gender: The person's gender. Possible values include, but are not
  1037. // limited to, the following values:
  1038. // - "male" - Male gender.
  1039. // - "female" - Female gender.
  1040. // - "other" - Other.
  1041. Gender string `json:"gender,omitempty"`
  1042. // Id: The ID of this person.
  1043. Id string `json:"id,omitempty"`
  1044. // Image: The representation of the person's profile photo.
  1045. Image *PersonImage `json:"image,omitempty"`
  1046. // IsPlusUser: Whether this user has signed up for Google+.
  1047. IsPlusUser bool `json:"isPlusUser,omitempty"`
  1048. // Kind: Identifies this resource as a person. Value: "plus#person".
  1049. Kind string `json:"kind,omitempty"`
  1050. // Language: The user's preferred language for rendering.
  1051. Language string `json:"language,omitempty"`
  1052. // Name: An object representation of the individual components of a
  1053. // person's name.
  1054. Name *PersonName `json:"name,omitempty"`
  1055. // Nickname: The nickname of this person.
  1056. Nickname string `json:"nickname,omitempty"`
  1057. // ObjectType: Type of person within Google+. Possible values include,
  1058. // but are not limited to, the following values:
  1059. // - "person" - represents an actual person.
  1060. // - "page" - represents a page.
  1061. ObjectType string `json:"objectType,omitempty"`
  1062. // Occupation: The occupation of this person.
  1063. Occupation string `json:"occupation,omitempty"`
  1064. // Organizations: A list of current or past organizations with which
  1065. // this person is associated.
  1066. Organizations []*PersonOrganizations `json:"organizations,omitempty"`
  1067. // PlacesLived: A list of places where this person has lived.
  1068. PlacesLived []*PersonPlacesLived `json:"placesLived,omitempty"`
  1069. // PlusOneCount: If a Google+ Page, the number of people who have +1'd
  1070. // this page.
  1071. PlusOneCount int64 `json:"plusOneCount,omitempty"`
  1072. // RelationshipStatus: The person's relationship status. Possible values
  1073. // include, but are not limited to, the following values:
  1074. // - "single" - Person is single.
  1075. // - "in_a_relationship" - Person is in a relationship.
  1076. // - "engaged" - Person is engaged.
  1077. // - "married" - Person is married.
  1078. // - "its_complicated" - The relationship is complicated.
  1079. // - "open_relationship" - Person is in an open relationship.
  1080. // - "widowed" - Person is widowed.
  1081. // - "in_domestic_partnership" - Person is in a domestic partnership.
  1082. // - "in_civil_union" - Person is in a civil union.
  1083. RelationshipStatus string `json:"relationshipStatus,omitempty"`
  1084. // Skills: The person's skills.
  1085. Skills string `json:"skills,omitempty"`
  1086. // Tagline: The brief description (tagline) of this person.
  1087. Tagline string `json:"tagline,omitempty"`
  1088. // Url: The URL of this person's profile.
  1089. Url string `json:"url,omitempty"`
  1090. // Urls: A list of URLs for this person.
  1091. Urls []*PersonUrls `json:"urls,omitempty"`
  1092. // Verified: Whether the person or Google+ Page has been verified.
  1093. Verified bool `json:"verified,omitempty"`
  1094. // ServerResponse contains the HTTP response code and headers from the
  1095. // server.
  1096. googleapi.ServerResponse `json:"-"`
  1097. // ForceSendFields is a list of field names (e.g. "AboutMe") to
  1098. // unconditionally include in API requests. By default, fields with
  1099. // empty values are omitted from API requests. However, any non-pointer,
  1100. // non-interface field appearing in ForceSendFields will be sent to the
  1101. // server regardless of whether the field is empty or not. This may be
  1102. // used to include empty fields in Patch requests.
  1103. ForceSendFields []string `json:"-"`
  1104. }
  1105. func (s *Person) MarshalJSON() ([]byte, error) {
  1106. type noMethod Person
  1107. raw := noMethod(*s)
  1108. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1109. }
  1110. // PersonAgeRange: The age range of the person. Valid ranges are 17 or
  1111. // younger, 18 to 20, and 21 or older. Age is determined from the user's
  1112. // birthday using Western age reckoning.
  1113. type PersonAgeRange struct {
  1114. // Max: The age range's upper bound, if any. Possible values include,
  1115. // but are not limited to, the following:
  1116. // - "17" - for age 17
  1117. // - "20" - for age 20
  1118. Max int64 `json:"max,omitempty"`
  1119. // Min: The age range's lower bound, if any. Possible values include,
  1120. // but are not limited to, the following:
  1121. // - "21" - for age 21
  1122. // - "18" - for age 18
  1123. Min int64 `json:"min,omitempty"`
  1124. // ForceSendFields is a list of field names (e.g. "Max") to
  1125. // unconditionally include in API requests. By default, fields with
  1126. // empty values are omitted from API requests. However, any non-pointer,
  1127. // non-interface field appearing in ForceSendFields will be sent to the
  1128. // server regardless of whether the field is empty or not. This may be
  1129. // used to include empty fields in Patch requests.
  1130. ForceSendFields []string `json:"-"`
  1131. }
  1132. func (s *PersonAgeRange) MarshalJSON() ([]byte, error) {
  1133. type noMethod PersonAgeRange
  1134. raw := noMethod(*s)
  1135. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1136. }
  1137. // PersonCover: The cover photo content.
  1138. type PersonCover struct {
  1139. // CoverInfo: Extra information about the cover photo.
  1140. CoverInfo *PersonCoverCoverInfo `json:"coverInfo,omitempty"`
  1141. // CoverPhoto: The person's primary cover image.
  1142. CoverPhoto *PersonCoverCoverPhoto `json:"coverPhoto,omitempty"`
  1143. // Layout: The layout of the cover art. Possible values include, but are
  1144. // not limited to, the following values:
  1145. // - "banner" - One large image banner.
  1146. Layout string `json:"layout,omitempty"`
  1147. // ForceSendFields is a list of field names (e.g. "CoverInfo") to
  1148. // unconditionally include in API requests. By default, fields with
  1149. // empty values are omitted from API requests. However, any non-pointer,
  1150. // non-interface field appearing in ForceSendFields will be sent to the
  1151. // server regardless of whether the field is empty or not. This may be
  1152. // used to include empty fields in Patch requests.
  1153. ForceSendFields []string `json:"-"`
  1154. }
  1155. func (s *PersonCover) MarshalJSON() ([]byte, error) {
  1156. type noMethod PersonCover
  1157. raw := noMethod(*s)
  1158. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1159. }
  1160. // PersonCoverCoverInfo: Extra information about the cover photo.
  1161. type PersonCoverCoverInfo struct {
  1162. // LeftImageOffset: The difference between the left position of the
  1163. // cover image and the actual displayed cover image. Only valid for
  1164. // banner layout.
  1165. LeftImageOffset int64 `json:"leftImageOffset,omitempty"`
  1166. // TopImageOffset: The difference between the top position of the cover
  1167. // image and the actual displayed cover image. Only valid for banner
  1168. // layout.
  1169. TopImageOffset int64 `json:"topImageOffset,omitempty"`
  1170. // ForceSendFields is a list of field names (e.g. "LeftImageOffset") to
  1171. // unconditionally include in API requests. By default, fields with
  1172. // empty values are omitted from API requests. However, any non-pointer,
  1173. // non-interface field appearing in ForceSendFields will be sent to the
  1174. // server regardless of whether the field is empty or not. This may be
  1175. // used to include empty fields in Patch requests.
  1176. ForceSendFields []string `json:"-"`
  1177. }
  1178. func (s *PersonCoverCoverInfo) MarshalJSON() ([]byte, error) {
  1179. type noMethod PersonCoverCoverInfo
  1180. raw := noMethod(*s)
  1181. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1182. }
  1183. // PersonCoverCoverPhoto: The person's primary cover image.
  1184. type PersonCoverCoverPhoto struct {
  1185. // Height: The height of the image.
  1186. Height int64 `json:"height,omitempty"`
  1187. // Url: The URL of the image.
  1188. Url string `json:"url,omitempty"`
  1189. // Width: The width of the image.
  1190. Width int64 `json:"width,omitempty"`
  1191. // ForceSendFields is a list of field names (e.g. "Height") to
  1192. // unconditionally include in API requests. By default, fields with
  1193. // empty values are omitted from API requests. However, any non-pointer,
  1194. // non-interface field appearing in ForceSendFields will be sent to the
  1195. // server regardless of whether the field is empty or not. This may be
  1196. // used to include empty fields in Patch requests.
  1197. ForceSendFields []string `json:"-"`
  1198. }
  1199. func (s *PersonCoverCoverPhoto) MarshalJSON() ([]byte, error) {
  1200. type noMethod PersonCoverCoverPhoto
  1201. raw := noMethod(*s)
  1202. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1203. }
  1204. type PersonEmails struct {
  1205. // Type: The type of address. Possible values include, but are not
  1206. // limited to, the following values:
  1207. // - "account" - Google account email address.
  1208. // - "home" - Home email address.
  1209. // - "work" - Work email address.
  1210. // - "other" - Other.
  1211. Type string `json:"type,omitempty"`
  1212. // Value: The email address.
  1213. Value string `json:"value,omitempty"`
  1214. // ForceSendFields is a list of field names (e.g. "Type") to
  1215. // unconditionally include in API requests. By default, fields with
  1216. // empty values are omitted from API requests. However, any non-pointer,
  1217. // non-interface field appearing in ForceSendFields will be sent to the
  1218. // server regardless of whether the field is empty or not. This may be
  1219. // used to include empty fields in Patch requests.
  1220. ForceSendFields []string `json:"-"`
  1221. }
  1222. func (s *PersonEmails) MarshalJSON() ([]byte, error) {
  1223. type noMethod PersonEmails
  1224. raw := noMethod(*s)
  1225. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1226. }
  1227. // PersonImage: The representation of the person's profile photo.
  1228. type PersonImage struct {
  1229. // IsDefault: Whether the person's profile photo is the default one
  1230. IsDefault bool `json:"isDefault,omitempty"`
  1231. // Url: The URL of the person's profile photo. To resize the image and
  1232. // crop it to a square, append the query string ?sz=x, where x is the
  1233. // dimension in pixels of each side.
  1234. Url string `json:"url,omitempty"`
  1235. // ForceSendFields is a list of field names (e.g. "IsDefault") to
  1236. // unconditionally include in API requests. By default, fields with
  1237. // empty values are omitted from API requests. However, any non-pointer,
  1238. // non-interface field appearing in ForceSendFields will be sent to the
  1239. // server regardless of whether the field is empty or not. This may be
  1240. // used to include empty fields in Patch requests.
  1241. ForceSendFields []string `json:"-"`
  1242. }
  1243. func (s *PersonImage) MarshalJSON() ([]byte, error) {
  1244. type noMethod PersonImage
  1245. raw := noMethod(*s)
  1246. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1247. }
  1248. // PersonName: An object representation of the individual components of
  1249. // a person's name.
  1250. type PersonName struct {
  1251. // FamilyName: The family name (last name) of this person.
  1252. FamilyName string `json:"familyName,omitempty"`
  1253. // Formatted: The full name of this person, including middle names,
  1254. // suffixes, etc.
  1255. Formatted string `json:"formatted,omitempty"`
  1256. // GivenName: The given name (first name) of this person.
  1257. GivenName string `json:"givenName,omitempty"`
  1258. // HonorificPrefix: The honorific prefixes (such as "Dr." or "Mrs.") for
  1259. // this person.
  1260. HonorificPrefix string `json:"honorificPrefix,omitempty"`
  1261. // HonorificSuffix: The honorific suffixes (such as "Jr.") for this
  1262. // person.
  1263. HonorificSuffix string `json:"honorificSuffix,omitempty"`
  1264. // MiddleName: The middle name of this person.
  1265. MiddleName string `json:"middleName,omitempty"`
  1266. // ForceSendFields is a list of field names (e.g. "FamilyName") to
  1267. // unconditionally include in API requests. By default, fields with
  1268. // empty values are omitted from API requests. However, any non-pointer,
  1269. // non-interface field appearing in ForceSendFields will be sent to the
  1270. // server regardless of whether the field is empty or not. This may be
  1271. // used to include empty fields in Patch requests.
  1272. ForceSendFields []string `json:"-"`
  1273. }
  1274. func (s *PersonName) MarshalJSON() ([]byte, error) {
  1275. type noMethod PersonName
  1276. raw := noMethod(*s)
  1277. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1278. }
  1279. type PersonOrganizations struct {
  1280. // Department: The department within the organization. Deprecated.
  1281. Department string `json:"department,omitempty"`
  1282. // Description: A short description of the person's role in this
  1283. // organization. Deprecated.
  1284. Description string `json:"description,omitempty"`
  1285. // EndDate: The date that the person left this organization.
  1286. EndDate string `json:"endDate,omitempty"`
  1287. // Location: The location of this organization. Deprecated.
  1288. Location string `json:"location,omitempty"`
  1289. // Name: The name of the organization.
  1290. Name string `json:"name,omitempty"`
  1291. // Primary: If "true", indicates this organization is the person's
  1292. // primary one, which is typically interpreted as the current one.
  1293. Primary bool `json:"primary,omitempty"`
  1294. // StartDate: The date that the person joined this organization.
  1295. StartDate string `json:"startDate,omitempty"`
  1296. // Title: The person's job title or role within the organization.
  1297. Title string `json:"title,omitempty"`
  1298. // Type: The type of organization. Possible values include, but are not
  1299. // limited to, the following values:
  1300. // - "work" - Work.
  1301. // - "school" - School.
  1302. Type string `json:"type,omitempty"`
  1303. // ForceSendFields is a list of field names (e.g. "Department") to
  1304. // unconditionally include in API requests. By default, fields with
  1305. // empty values are omitted from API requests. However, any non-pointer,
  1306. // non-interface field appearing in ForceSendFields will be sent to the
  1307. // server regardless of whether the field is empty or not. This may be
  1308. // used to include empty fields in Patch requests.
  1309. ForceSendFields []string `json:"-"`
  1310. }
  1311. func (s *PersonOrganizations) MarshalJSON() ([]byte, error) {
  1312. type noMethod PersonOrganizations
  1313. raw := noMethod(*s)
  1314. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1315. }
  1316. type PersonPlacesLived struct {
  1317. // Primary: If "true", this place of residence is this person's primary
  1318. // residence.
  1319. Primary bool `json:"primary,omitempty"`
  1320. // Value: A place where this person has lived. For example: "Seattle,
  1321. // WA", "Near Toronto".
  1322. Value string `json:"value,omitempty"`
  1323. // ForceSendFields is a list of field names (e.g. "Primary") to
  1324. // unconditionally include in API requests. By default, fields with
  1325. // empty values are omitted from API requests. However, any non-pointer,
  1326. // non-interface field appearing in ForceSendFields will be sent to the
  1327. // server regardless of whether the field is empty or not. This may be
  1328. // used to include empty fields in Patch requests.
  1329. ForceSendFields []string `json:"-"`
  1330. }
  1331. func (s *PersonPlacesLived) MarshalJSON() ([]byte, error) {
  1332. type noMethod PersonPlacesLived
  1333. raw := noMethod(*s)
  1334. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1335. }
  1336. type PersonUrls struct {
  1337. // Label: The label of the URL.
  1338. Label string `json:"label,omitempty"`
  1339. // Type: The type of URL. Possible values include, but are not limited
  1340. // to, the following values:
  1341. // - "otherProfile" - URL for another profile.
  1342. // - "contributor" - URL to a site for which this person is a
  1343. // contributor.
  1344. // - "website" - URL for this Google+ Page's primary website.
  1345. // - "other" - Other URL.
  1346. Type string `json:"type,omitempty"`
  1347. // Value: The URL value.
  1348. Value string `json:"value,omitempty"`
  1349. // ForceSendFields is a list of field names (e.g. "Label") to
  1350. // unconditionally include in API requests. By default, fields with
  1351. // empty values are omitted from API requests. However, any non-pointer,
  1352. // non-interface field appearing in ForceSendFields will be sent to the
  1353. // server regardless of whether the field is empty or not. This may be
  1354. // used to include empty fields in Patch requests.
  1355. ForceSendFields []string `json:"-"`
  1356. }
  1357. func (s *PersonUrls) MarshalJSON() ([]byte, error) {
  1358. type noMethod PersonUrls
  1359. raw := noMethod(*s)
  1360. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1361. }
  1362. type Place struct {
  1363. // Address: The physical address of the place.
  1364. Address *PlaceAddress `json:"address,omitempty"`
  1365. // DisplayName: The display name of the place.
  1366. DisplayName string `json:"displayName,omitempty"`
  1367. // Id: The id of the place.
  1368. Id string `json:"id,omitempty"`
  1369. // Kind: Identifies this resource as a place. Value: "plus#place".
  1370. Kind string `json:"kind,omitempty"`
  1371. // Position: The position of the place.
  1372. Position *PlacePosition `json:"position,omitempty"`
  1373. // ForceSendFields is a list of field names (e.g. "Address") to
  1374. // unconditionally include in API requests. By default, fields with
  1375. // empty values are omitted from API requests. However, any non-pointer,
  1376. // non-interface field appearing in ForceSendFields will be sent to the
  1377. // server regardless of whether the field is empty or not. This may be
  1378. // used to include empty fields in Patch requests.
  1379. ForceSendFields []string `json:"-"`
  1380. }
  1381. func (s *Place) MarshalJSON() ([]byte, error) {
  1382. type noMethod Place
  1383. raw := noMethod(*s)
  1384. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1385. }
  1386. // PlaceAddress: The physical address of the place.
  1387. type PlaceAddress struct {
  1388. // Formatted: The formatted address for display.
  1389. Formatted string `json:"formatted,omitempty"`
  1390. // ForceSendFields is a list of field names (e.g. "Formatted") to
  1391. // unconditionally include in API requests. By default, fields with
  1392. // empty values are omitted from API requests. However, any non-pointer,
  1393. // non-interface field appearing in ForceSendFields will be sent to the
  1394. // server regardless of whether the field is empty or not. This may be
  1395. // used to include empty fields in Patch requests.
  1396. ForceSendFields []string `json:"-"`
  1397. }
  1398. func (s *PlaceAddress) MarshalJSON() ([]byte, error) {
  1399. type noMethod PlaceAddress
  1400. raw := noMethod(*s)
  1401. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1402. }
  1403. // PlacePosition: The position of the place.
  1404. type PlacePosition struct {
  1405. // Latitude: The latitude of this position.
  1406. Latitude float64 `json:"latitude,omitempty"`
  1407. // Longitude: The longitude of this position.
  1408. Longitude float64 `json:"longitude,omitempty"`
  1409. // ForceSendFields is a list of field names (e.g. "Latitude") to
  1410. // unconditionally include in API requests. By default, fields with
  1411. // empty values are omitted from API requests. However, any non-pointer,
  1412. // non-interface field appearing in ForceSendFields will be sent to the
  1413. // server regardless of whether the field is empty or not. This may be
  1414. // used to include empty fields in Patch requests.
  1415. ForceSendFields []string `json:"-"`
  1416. }
  1417. func (s *PlacePosition) MarshalJSON() ([]byte, error) {
  1418. type noMethod PlacePosition
  1419. raw := noMethod(*s)
  1420. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1421. }
  1422. type PlusAclentryResource struct {
  1423. // DisplayName: A descriptive name for this entry. Suitable for display.
  1424. DisplayName string `json:"displayName,omitempty"`
  1425. // Id: The ID of the entry. For entries of type "person" or "circle",
  1426. // this is the ID of the resource. For other types, this property is not
  1427. // set.
  1428. Id string `json:"id,omitempty"`
  1429. // Type: The type of entry describing to whom access is granted.
  1430. // Possible values are:
  1431. // - "person" - Access to an individual.
  1432. // - "circle" - Access to members of a circle.
  1433. // - "myCircles" - Access to members of all the person's circles.
  1434. // - "extendedCircles" - Access to members of all the person's circles,
  1435. // plus all of the people in their circles.
  1436. // - "domain" - Access to members of the person's Google Apps domain.
  1437. // - "public" - Access to anyone on the web.
  1438. Type string `json:"type,omitempty"`
  1439. // ForceSendFields is a list of field names (e.g. "DisplayName") to
  1440. // unconditionally include in API requests. By default, fields with
  1441. // empty values are omitted from API requests. However, any non-pointer,
  1442. // non-interface field appearing in ForceSendFields will be sent to the
  1443. // server regardless of whether the field is empty or not. This may be
  1444. // used to include empty fields in Patch requests.
  1445. ForceSendFields []string `json:"-"`
  1446. }
  1447. func (s *PlusAclentryResource) MarshalJSON() ([]byte, error) {
  1448. type noMethod PlusAclentryResource
  1449. raw := noMethod(*s)
  1450. return gensupport.MarshalJSON(raw, s.ForceSendFields)
  1451. }
  1452. // method id "plus.activities.get":
  1453. type ActivitiesGetCall struct {
  1454. s *Service
  1455. activityId string
  1456. urlParams_ gensupport.URLParams
  1457. ifNoneMatch_ string
  1458. ctx_ context.Context
  1459. }
  1460. // Get: Get an activity.
  1461. func (r *ActivitiesService) Get(activityId string) *ActivitiesGetCall {
  1462. c := &ActivitiesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1463. c.activityId = activityId
  1464. return c
  1465. }
  1466. // Fields allows partial responses to be retrieved. See
  1467. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  1468. // for more information.
  1469. func (c *ActivitiesGetCall) Fields(s ...googleapi.Field) *ActivitiesGetCall {
  1470. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1471. return c
  1472. }
  1473. // IfNoneMatch sets the optional parameter which makes the operation
  1474. // fail if the object's ETag matches the given value. This is useful for
  1475. // getting updates only after the object has changed since the last
  1476. // request. Use googleapi.IsNotModified to check whether the response
  1477. // error from Do is the result of In-None-Match.
  1478. func (c *ActivitiesGetCall) IfNoneMatch(entityTag string) *ActivitiesGetCall {
  1479. c.ifNoneMatch_ = entityTag
  1480. return c
  1481. }
  1482. // Context sets the context to be used in this call's Do method. Any
  1483. // pending HTTP request will be aborted if the provided context is
  1484. // canceled.
  1485. func (c *ActivitiesGetCall) Context(ctx context.Context) *ActivitiesGetCall {
  1486. c.ctx_ = ctx
  1487. return c
  1488. }
  1489. func (c *ActivitiesGetCall) doRequest(alt string) (*http.Response, error) {
  1490. var body io.Reader = nil
  1491. c.urlParams_.Set("alt", alt)
  1492. urls := googleapi.ResolveRelative(c.s.BasePath, "activities/{activityId}")
  1493. urls += "?" + c.urlParams_.Encode()
  1494. req, _ := http.NewRequest("GET", urls, body)
  1495. googleapi.Expand(req.URL, map[string]string{
  1496. "activityId": c.activityId,
  1497. })
  1498. req.Header.Set("User-Agent", c.s.userAgent())
  1499. if c.ifNoneMatch_ != "" {
  1500. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  1501. }
  1502. if c.ctx_ != nil {
  1503. return ctxhttp.Do(c.ctx_, c.s.client, req)
  1504. }
  1505. return c.s.client.Do(req)
  1506. }
  1507. // Do executes the "plus.activities.get" call.
  1508. // Exactly one of *Activity or error will be non-nil. Any non-2xx status
  1509. // code is an error. Response headers are in either
  1510. // *Activity.ServerResponse.Header or (if a response was returned at
  1511. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  1512. // to check whether the returned error was because
  1513. // http.StatusNotModified was returned.
  1514. func (c *ActivitiesGetCall) Do(opts ...googleapi.CallOption) (*Activity, error) {
  1515. gensupport.SetOptions(c.urlParams_, opts...)
  1516. res, err := c.doRequest("json")
  1517. if res != nil && res.StatusCode == http.StatusNotModified {
  1518. if res.Body != nil {
  1519. res.Body.Close()
  1520. }
  1521. return nil, &googleapi.Error{
  1522. Code: res.StatusCode,
  1523. Header: res.Header,
  1524. }
  1525. }
  1526. if err != nil {
  1527. return nil, err
  1528. }
  1529. defer googleapi.CloseBody(res)
  1530. if err := googleapi.CheckResponse(res); err != nil {
  1531. return nil, err
  1532. }
  1533. ret := &Activity{
  1534. ServerResponse: googleapi.ServerResponse{
  1535. Header: res.Header,
  1536. HTTPStatusCode: res.StatusCode,
  1537. },
  1538. }
  1539. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  1540. return nil, err
  1541. }
  1542. return ret, nil
  1543. // {
  1544. // "description": "Get an activity.",
  1545. // "httpMethod": "GET",
  1546. // "id": "plus.activities.get",
  1547. // "parameterOrder": [
  1548. // "activityId"
  1549. // ],
  1550. // "parameters": {
  1551. // "activityId": {
  1552. // "description": "The ID of the activity to get.",
  1553. // "location": "path",
  1554. // "required": true,
  1555. // "type": "string"
  1556. // }
  1557. // },
  1558. // "path": "activities/{activityId}",
  1559. // "response": {
  1560. // "$ref": "Activity"
  1561. // },
  1562. // "scopes": [
  1563. // "https://www.googleapis.com/auth/plus.login",
  1564. // "https://www.googleapis.com/auth/plus.me"
  1565. // ]
  1566. // }
  1567. }
  1568. // method id "plus.activities.list":
  1569. type ActivitiesListCall struct {
  1570. s *Service
  1571. userId string
  1572. collection string
  1573. urlParams_ gensupport.URLParams
  1574. ifNoneMatch_ string
  1575. ctx_ context.Context
  1576. }
  1577. // List: List all of the activities in the specified collection for a
  1578. // particular user.
  1579. func (r *ActivitiesService) List(userId string, collection string) *ActivitiesListCall {
  1580. c := &ActivitiesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1581. c.userId = userId
  1582. c.collection = collection
  1583. return c
  1584. }
  1585. // MaxResults sets the optional parameter "maxResults": The maximum
  1586. // number of activities to include in the response, which is used for
  1587. // paging. For any response, the actual number returned might be less
  1588. // than the specified maxResults.
  1589. func (c *ActivitiesListCall) MaxResults(maxResults int64) *ActivitiesListCall {
  1590. c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
  1591. return c
  1592. }
  1593. // PageToken sets the optional parameter "pageToken": The continuation
  1594. // token, which is used to page through large result sets. To get the
  1595. // next page of results, set this parameter to the value of
  1596. // "nextPageToken" from the previous response.
  1597. func (c *ActivitiesListCall) PageToken(pageToken string) *ActivitiesListCall {
  1598. c.urlParams_.Set("pageToken", pageToken)
  1599. return c
  1600. }
  1601. // Fields allows partial responses to be retrieved. See
  1602. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  1603. // for more information.
  1604. func (c *ActivitiesListCall) Fields(s ...googleapi.Field) *ActivitiesListCall {
  1605. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1606. return c
  1607. }
  1608. // IfNoneMatch sets the optional parameter which makes the operation
  1609. // fail if the object's ETag matches the given value. This is useful for
  1610. // getting updates only after the object has changed since the last
  1611. // request. Use googleapi.IsNotModified to check whether the response
  1612. // error from Do is the result of In-None-Match.
  1613. func (c *ActivitiesListCall) IfNoneMatch(entityTag string) *ActivitiesListCall {
  1614. c.ifNoneMatch_ = entityTag
  1615. return c
  1616. }
  1617. // Context sets the context to be used in this call's Do method. Any
  1618. // pending HTTP request will be aborted if the provided context is
  1619. // canceled.
  1620. func (c *ActivitiesListCall) Context(ctx context.Context) *ActivitiesListCall {
  1621. c.ctx_ = ctx
  1622. return c
  1623. }
  1624. func (c *ActivitiesListCall) doRequest(alt string) (*http.Response, error) {
  1625. var body io.Reader = nil
  1626. c.urlParams_.Set("alt", alt)
  1627. urls := googleapi.ResolveRelative(c.s.BasePath, "people/{userId}/activities/{collection}")
  1628. urls += "?" + c.urlParams_.Encode()
  1629. req, _ := http.NewRequest("GET", urls, body)
  1630. googleapi.Expand(req.URL, map[string]string{
  1631. "userId": c.userId,
  1632. "collection": c.collection,
  1633. })
  1634. req.Header.Set("User-Agent", c.s.userAgent())
  1635. if c.ifNoneMatch_ != "" {
  1636. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  1637. }
  1638. if c.ctx_ != nil {
  1639. return ctxhttp.Do(c.ctx_, c.s.client, req)
  1640. }
  1641. return c.s.client.Do(req)
  1642. }
  1643. // Do executes the "plus.activities.list" call.
  1644. // Exactly one of *ActivityFeed or error will be non-nil. Any non-2xx
  1645. // status code is an error. Response headers are in either
  1646. // *ActivityFeed.ServerResponse.Header or (if a response was returned at
  1647. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  1648. // to check whether the returned error was because
  1649. // http.StatusNotModified was returned.
  1650. func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ActivityFeed, error) {
  1651. gensupport.SetOptions(c.urlParams_, opts...)
  1652. res, err := c.doRequest("json")
  1653. if res != nil && res.StatusCode == http.StatusNotModified {
  1654. if res.Body != nil {
  1655. res.Body.Close()
  1656. }
  1657. return nil, &googleapi.Error{
  1658. Code: res.StatusCode,
  1659. Header: res.Header,
  1660. }
  1661. }
  1662. if err != nil {
  1663. return nil, err
  1664. }
  1665. defer googleapi.CloseBody(res)
  1666. if err := googleapi.CheckResponse(res); err != nil {
  1667. return nil, err
  1668. }
  1669. ret := &ActivityFeed{
  1670. ServerResponse: googleapi.ServerResponse{
  1671. Header: res.Header,
  1672. HTTPStatusCode: res.StatusCode,
  1673. },
  1674. }
  1675. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  1676. return nil, err
  1677. }
  1678. return ret, nil
  1679. // {
  1680. // "description": "List all of the activities in the specified collection for a particular user.",
  1681. // "httpMethod": "GET",
  1682. // "id": "plus.activities.list",
  1683. // "parameterOrder": [
  1684. // "userId",
  1685. // "collection"
  1686. // ],
  1687. // "parameters": {
  1688. // "collection": {
  1689. // "description": "The collection of activities to list.",
  1690. // "enum": [
  1691. // "public"
  1692. // ],
  1693. // "enumDescriptions": [
  1694. // "All public activities created by the specified user."
  1695. // ],
  1696. // "location": "path",
  1697. // "required": true,
  1698. // "type": "string"
  1699. // },
  1700. // "maxResults": {
  1701. // "default": "20",
  1702. // "description": "The maximum number of activities to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.",
  1703. // "format": "uint32",
  1704. // "location": "query",
  1705. // "maximum": "100",
  1706. // "minimum": "1",
  1707. // "type": "integer"
  1708. // },
  1709. // "pageToken": {
  1710. // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.",
  1711. // "location": "query",
  1712. // "type": "string"
  1713. // },
  1714. // "userId": {
  1715. // "description": "The ID of the user to get activities for. The special value \"me\" can be used to indicate the authenticated user.",
  1716. // "location": "path",
  1717. // "required": true,
  1718. // "type": "string"
  1719. // }
  1720. // },
  1721. // "path": "people/{userId}/activities/{collection}",
  1722. // "response": {
  1723. // "$ref": "ActivityFeed"
  1724. // },
  1725. // "scopes": [
  1726. // "https://www.googleapis.com/auth/plus.login",
  1727. // "https://www.googleapis.com/auth/plus.me"
  1728. // ]
  1729. // }
  1730. }
  1731. // Pages invokes f for each page of results.
  1732. // A non-nil error returned from f will halt the iteration.
  1733. // The provided context supersedes any context provided to the Context method.
  1734. func (c *ActivitiesListCall) Pages(ctx context.Context, f func(*ActivityFeed) error) error {
  1735. c.ctx_ = ctx
  1736. defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  1737. for {
  1738. x, err := c.Do()
  1739. if err != nil {
  1740. return err
  1741. }
  1742. if err := f(x); err != nil {
  1743. return err
  1744. }
  1745. if x.NextPageToken == "" {
  1746. return nil
  1747. }
  1748. c.PageToken(x.NextPageToken)
  1749. }
  1750. }
  1751. // method id "plus.activities.search":
  1752. type ActivitiesSearchCall struct {
  1753. s *Service
  1754. urlParams_ gensupport.URLParams
  1755. ifNoneMatch_ string
  1756. ctx_ context.Context
  1757. }
  1758. // Search: Search public activities.
  1759. func (r *ActivitiesService) Search(query string) *ActivitiesSearchCall {
  1760. c := &ActivitiesSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1761. c.urlParams_.Set("query", query)
  1762. return c
  1763. }
  1764. // Language sets the optional parameter "language": Specify the
  1765. // preferred language to search with. See search language codes for
  1766. // available values.
  1767. func (c *ActivitiesSearchCall) Language(language string) *ActivitiesSearchCall {
  1768. c.urlParams_.Set("language", language)
  1769. return c
  1770. }
  1771. // MaxResults sets the optional parameter "maxResults": The maximum
  1772. // number of activities to include in the response, which is used for
  1773. // paging. For any response, the actual number returned might be less
  1774. // than the specified maxResults.
  1775. func (c *ActivitiesSearchCall) MaxResults(maxResults int64) *ActivitiesSearchCall {
  1776. c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
  1777. return c
  1778. }
  1779. // OrderBy sets the optional parameter "orderBy": Specifies how to order
  1780. // search results.
  1781. //
  1782. // Possible values:
  1783. // "best" - Sort activities by relevance to the user, most relevant
  1784. // first.
  1785. // "recent" (default) - Sort activities by published date, most recent
  1786. // first.
  1787. func (c *ActivitiesSearchCall) OrderBy(orderBy string) *ActivitiesSearchCall {
  1788. c.urlParams_.Set("orderBy", orderBy)
  1789. return c
  1790. }
  1791. // PageToken sets the optional parameter "pageToken": The continuation
  1792. // token, which is used to page through large result sets. To get the
  1793. // next page of results, set this parameter to the value of
  1794. // "nextPageToken" from the previous response. This token can be of any
  1795. // length.
  1796. func (c *ActivitiesSearchCall) PageToken(pageToken string) *ActivitiesSearchCall {
  1797. c.urlParams_.Set("pageToken", pageToken)
  1798. return c
  1799. }
  1800. // Fields allows partial responses to be retrieved. See
  1801. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  1802. // for more information.
  1803. func (c *ActivitiesSearchCall) Fields(s ...googleapi.Field) *ActivitiesSearchCall {
  1804. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1805. return c
  1806. }
  1807. // IfNoneMatch sets the optional parameter which makes the operation
  1808. // fail if the object's ETag matches the given value. This is useful for
  1809. // getting updates only after the object has changed since the last
  1810. // request. Use googleapi.IsNotModified to check whether the response
  1811. // error from Do is the result of In-None-Match.
  1812. func (c *ActivitiesSearchCall) IfNoneMatch(entityTag string) *ActivitiesSearchCall {
  1813. c.ifNoneMatch_ = entityTag
  1814. return c
  1815. }
  1816. // Context sets the context to be used in this call's Do method. Any
  1817. // pending HTTP request will be aborted if the provided context is
  1818. // canceled.
  1819. func (c *ActivitiesSearchCall) Context(ctx context.Context) *ActivitiesSearchCall {
  1820. c.ctx_ = ctx
  1821. return c
  1822. }
  1823. func (c *ActivitiesSearchCall) doRequest(alt string) (*http.Response, error) {
  1824. var body io.Reader = nil
  1825. c.urlParams_.Set("alt", alt)
  1826. urls := googleapi.ResolveRelative(c.s.BasePath, "activities")
  1827. urls += "?" + c.urlParams_.Encode()
  1828. req, _ := http.NewRequest("GET", urls, body)
  1829. googleapi.SetOpaque(req.URL)
  1830. req.Header.Set("User-Agent", c.s.userAgent())
  1831. if c.ifNoneMatch_ != "" {
  1832. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  1833. }
  1834. if c.ctx_ != nil {
  1835. return ctxhttp.Do(c.ctx_, c.s.client, req)
  1836. }
  1837. return c.s.client.Do(req)
  1838. }
  1839. // Do executes the "plus.activities.search" call.
  1840. // Exactly one of *ActivityFeed or error will be non-nil. Any non-2xx
  1841. // status code is an error. Response headers are in either
  1842. // *ActivityFeed.ServerResponse.Header or (if a response was returned at
  1843. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  1844. // to check whether the returned error was because
  1845. // http.StatusNotModified was returned.
  1846. func (c *ActivitiesSearchCall) Do(opts ...googleapi.CallOption) (*ActivityFeed, error) {
  1847. gensupport.SetOptions(c.urlParams_, opts...)
  1848. res, err := c.doRequest("json")
  1849. if res != nil && res.StatusCode == http.StatusNotModified {
  1850. if res.Body != nil {
  1851. res.Body.Close()
  1852. }
  1853. return nil, &googleapi.Error{
  1854. Code: res.StatusCode,
  1855. Header: res.Header,
  1856. }
  1857. }
  1858. if err != nil {
  1859. return nil, err
  1860. }
  1861. defer googleapi.CloseBody(res)
  1862. if err := googleapi.CheckResponse(res); err != nil {
  1863. return nil, err
  1864. }
  1865. ret := &ActivityFeed{
  1866. ServerResponse: googleapi.ServerResponse{
  1867. Header: res.Header,
  1868. HTTPStatusCode: res.StatusCode,
  1869. },
  1870. }
  1871. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  1872. return nil, err
  1873. }
  1874. return ret, nil
  1875. // {
  1876. // "description": "Search public activities.",
  1877. // "httpMethod": "GET",
  1878. // "id": "plus.activities.search",
  1879. // "parameterOrder": [
  1880. // "query"
  1881. // ],
  1882. // "parameters": {
  1883. // "language": {
  1884. // "default": "en-US",
  1885. // "description": "Specify the preferred language to search with. See search language codes for available values.",
  1886. // "location": "query",
  1887. // "type": "string"
  1888. // },
  1889. // "maxResults": {
  1890. // "default": "10",
  1891. // "description": "The maximum number of activities to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.",
  1892. // "format": "uint32",
  1893. // "location": "query",
  1894. // "maximum": "20",
  1895. // "minimum": "1",
  1896. // "type": "integer"
  1897. // },
  1898. // "orderBy": {
  1899. // "default": "recent",
  1900. // "description": "Specifies how to order search results.",
  1901. // "enum": [
  1902. // "best",
  1903. // "recent"
  1904. // ],
  1905. // "enumDescriptions": [
  1906. // "Sort activities by relevance to the user, most relevant first.",
  1907. // "Sort activities by published date, most recent first."
  1908. // ],
  1909. // "location": "query",
  1910. // "type": "string"
  1911. // },
  1912. // "pageToken": {
  1913. // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response. This token can be of any length.",
  1914. // "location": "query",
  1915. // "type": "string"
  1916. // },
  1917. // "query": {
  1918. // "description": "Full-text search query string.",
  1919. // "location": "query",
  1920. // "required": true,
  1921. // "type": "string"
  1922. // }
  1923. // },
  1924. // "path": "activities",
  1925. // "response": {
  1926. // "$ref": "ActivityFeed"
  1927. // },
  1928. // "scopes": [
  1929. // "https://www.googleapis.com/auth/plus.login",
  1930. // "https://www.googleapis.com/auth/plus.me"
  1931. // ]
  1932. // }
  1933. }
  1934. // Pages invokes f for each page of results.
  1935. // A non-nil error returned from f will halt the iteration.
  1936. // The provided context supersedes any context provided to the Context method.
  1937. func (c *ActivitiesSearchCall) Pages(ctx context.Context, f func(*ActivityFeed) error) error {
  1938. c.ctx_ = ctx
  1939. defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  1940. for {
  1941. x, err := c.Do()
  1942. if err != nil {
  1943. return err
  1944. }
  1945. if err := f(x); err != nil {
  1946. return err
  1947. }
  1948. if x.NextPageToken == "" {
  1949. return nil
  1950. }
  1951. c.PageToken(x.NextPageToken)
  1952. }
  1953. }
  1954. // method id "plus.comments.get":
  1955. type CommentsGetCall struct {
  1956. s *Service
  1957. commentId string
  1958. urlParams_ gensupport.URLParams
  1959. ifNoneMatch_ string
  1960. ctx_ context.Context
  1961. }
  1962. // Get: Get a comment.
  1963. func (r *CommentsService) Get(commentId string) *CommentsGetCall {
  1964. c := &CommentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  1965. c.commentId = commentId
  1966. return c
  1967. }
  1968. // Fields allows partial responses to be retrieved. See
  1969. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  1970. // for more information.
  1971. func (c *CommentsGetCall) Fields(s ...googleapi.Field) *CommentsGetCall {
  1972. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  1973. return c
  1974. }
  1975. // IfNoneMatch sets the optional parameter which makes the operation
  1976. // fail if the object's ETag matches the given value. This is useful for
  1977. // getting updates only after the object has changed since the last
  1978. // request. Use googleapi.IsNotModified to check whether the response
  1979. // error from Do is the result of In-None-Match.
  1980. func (c *CommentsGetCall) IfNoneMatch(entityTag string) *CommentsGetCall {
  1981. c.ifNoneMatch_ = entityTag
  1982. return c
  1983. }
  1984. // Context sets the context to be used in this call's Do method. Any
  1985. // pending HTTP request will be aborted if the provided context is
  1986. // canceled.
  1987. func (c *CommentsGetCall) Context(ctx context.Context) *CommentsGetCall {
  1988. c.ctx_ = ctx
  1989. return c
  1990. }
  1991. func (c *CommentsGetCall) doRequest(alt string) (*http.Response, error) {
  1992. var body io.Reader = nil
  1993. c.urlParams_.Set("alt", alt)
  1994. urls := googleapi.ResolveRelative(c.s.BasePath, "comments/{commentId}")
  1995. urls += "?" + c.urlParams_.Encode()
  1996. req, _ := http.NewRequest("GET", urls, body)
  1997. googleapi.Expand(req.URL, map[string]string{
  1998. "commentId": c.commentId,
  1999. })
  2000. req.Header.Set("User-Agent", c.s.userAgent())
  2001. if c.ifNoneMatch_ != "" {
  2002. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  2003. }
  2004. if c.ctx_ != nil {
  2005. return ctxhttp.Do(c.ctx_, c.s.client, req)
  2006. }
  2007. return c.s.client.Do(req)
  2008. }
  2009. // Do executes the "plus.comments.get" call.
  2010. // Exactly one of *Comment or error will be non-nil. Any non-2xx status
  2011. // code is an error. Response headers are in either
  2012. // *Comment.ServerResponse.Header or (if a response was returned at all)
  2013. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  2014. // check whether the returned error was because http.StatusNotModified
  2015. // was returned.
  2016. func (c *CommentsGetCall) Do(opts ...googleapi.CallOption) (*Comment, error) {
  2017. gensupport.SetOptions(c.urlParams_, opts...)
  2018. res, err := c.doRequest("json")
  2019. if res != nil && res.StatusCode == http.StatusNotModified {
  2020. if res.Body != nil {
  2021. res.Body.Close()
  2022. }
  2023. return nil, &googleapi.Error{
  2024. Code: res.StatusCode,
  2025. Header: res.Header,
  2026. }
  2027. }
  2028. if err != nil {
  2029. return nil, err
  2030. }
  2031. defer googleapi.CloseBody(res)
  2032. if err := googleapi.CheckResponse(res); err != nil {
  2033. return nil, err
  2034. }
  2035. ret := &Comment{
  2036. ServerResponse: googleapi.ServerResponse{
  2037. Header: res.Header,
  2038. HTTPStatusCode: res.StatusCode,
  2039. },
  2040. }
  2041. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  2042. return nil, err
  2043. }
  2044. return ret, nil
  2045. // {
  2046. // "description": "Get a comment.",
  2047. // "httpMethod": "GET",
  2048. // "id": "plus.comments.get",
  2049. // "parameterOrder": [
  2050. // "commentId"
  2051. // ],
  2052. // "parameters": {
  2053. // "commentId": {
  2054. // "description": "The ID of the comment to get.",
  2055. // "location": "path",
  2056. // "required": true,
  2057. // "type": "string"
  2058. // }
  2059. // },
  2060. // "path": "comments/{commentId}",
  2061. // "response": {
  2062. // "$ref": "Comment"
  2063. // },
  2064. // "scopes": [
  2065. // "https://www.googleapis.com/auth/plus.login",
  2066. // "https://www.googleapis.com/auth/plus.me"
  2067. // ]
  2068. // }
  2069. }
  2070. // method id "plus.comments.list":
  2071. type CommentsListCall struct {
  2072. s *Service
  2073. activityId string
  2074. urlParams_ gensupport.URLParams
  2075. ifNoneMatch_ string
  2076. ctx_ context.Context
  2077. }
  2078. // List: List all of the comments for an activity.
  2079. func (r *CommentsService) List(activityId string) *CommentsListCall {
  2080. c := &CommentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2081. c.activityId = activityId
  2082. return c
  2083. }
  2084. // MaxResults sets the optional parameter "maxResults": The maximum
  2085. // number of comments to include in the response, which is used for
  2086. // paging. For any response, the actual number returned might be less
  2087. // than the specified maxResults.
  2088. func (c *CommentsListCall) MaxResults(maxResults int64) *CommentsListCall {
  2089. c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
  2090. return c
  2091. }
  2092. // PageToken sets the optional parameter "pageToken": The continuation
  2093. // token, which is used to page through large result sets. To get the
  2094. // next page of results, set this parameter to the value of
  2095. // "nextPageToken" from the previous response.
  2096. func (c *CommentsListCall) PageToken(pageToken string) *CommentsListCall {
  2097. c.urlParams_.Set("pageToken", pageToken)
  2098. return c
  2099. }
  2100. // SortOrder sets the optional parameter "sortOrder": The order in which
  2101. // to sort the list of comments.
  2102. //
  2103. // Possible values:
  2104. // "ascending" (default) - Sort oldest comments first.
  2105. // "descending" - Sort newest comments first.
  2106. func (c *CommentsListCall) SortOrder(sortOrder string) *CommentsListCall {
  2107. c.urlParams_.Set("sortOrder", sortOrder)
  2108. return c
  2109. }
  2110. // Fields allows partial responses to be retrieved. See
  2111. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  2112. // for more information.
  2113. func (c *CommentsListCall) Fields(s ...googleapi.Field) *CommentsListCall {
  2114. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2115. return c
  2116. }
  2117. // IfNoneMatch sets the optional parameter which makes the operation
  2118. // fail if the object's ETag matches the given value. This is useful for
  2119. // getting updates only after the object has changed since the last
  2120. // request. Use googleapi.IsNotModified to check whether the response
  2121. // error from Do is the result of In-None-Match.
  2122. func (c *CommentsListCall) IfNoneMatch(entityTag string) *CommentsListCall {
  2123. c.ifNoneMatch_ = entityTag
  2124. return c
  2125. }
  2126. // Context sets the context to be used in this call's Do method. Any
  2127. // pending HTTP request will be aborted if the provided context is
  2128. // canceled.
  2129. func (c *CommentsListCall) Context(ctx context.Context) *CommentsListCall {
  2130. c.ctx_ = ctx
  2131. return c
  2132. }
  2133. func (c *CommentsListCall) doRequest(alt string) (*http.Response, error) {
  2134. var body io.Reader = nil
  2135. c.urlParams_.Set("alt", alt)
  2136. urls := googleapi.ResolveRelative(c.s.BasePath, "activities/{activityId}/comments")
  2137. urls += "?" + c.urlParams_.Encode()
  2138. req, _ := http.NewRequest("GET", urls, body)
  2139. googleapi.Expand(req.URL, map[string]string{
  2140. "activityId": c.activityId,
  2141. })
  2142. req.Header.Set("User-Agent", c.s.userAgent())
  2143. if c.ifNoneMatch_ != "" {
  2144. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  2145. }
  2146. if c.ctx_ != nil {
  2147. return ctxhttp.Do(c.ctx_, c.s.client, req)
  2148. }
  2149. return c.s.client.Do(req)
  2150. }
  2151. // Do executes the "plus.comments.list" call.
  2152. // Exactly one of *CommentFeed or error will be non-nil. Any non-2xx
  2153. // status code is an error. Response headers are in either
  2154. // *CommentFeed.ServerResponse.Header or (if a response was returned at
  2155. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  2156. // to check whether the returned error was because
  2157. // http.StatusNotModified was returned.
  2158. func (c *CommentsListCall) Do(opts ...googleapi.CallOption) (*CommentFeed, error) {
  2159. gensupport.SetOptions(c.urlParams_, opts...)
  2160. res, err := c.doRequest("json")
  2161. if res != nil && res.StatusCode == http.StatusNotModified {
  2162. if res.Body != nil {
  2163. res.Body.Close()
  2164. }
  2165. return nil, &googleapi.Error{
  2166. Code: res.StatusCode,
  2167. Header: res.Header,
  2168. }
  2169. }
  2170. if err != nil {
  2171. return nil, err
  2172. }
  2173. defer googleapi.CloseBody(res)
  2174. if err := googleapi.CheckResponse(res); err != nil {
  2175. return nil, err
  2176. }
  2177. ret := &CommentFeed{
  2178. ServerResponse: googleapi.ServerResponse{
  2179. Header: res.Header,
  2180. HTTPStatusCode: res.StatusCode,
  2181. },
  2182. }
  2183. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  2184. return nil, err
  2185. }
  2186. return ret, nil
  2187. // {
  2188. // "description": "List all of the comments for an activity.",
  2189. // "httpMethod": "GET",
  2190. // "id": "plus.comments.list",
  2191. // "parameterOrder": [
  2192. // "activityId"
  2193. // ],
  2194. // "parameters": {
  2195. // "activityId": {
  2196. // "description": "The ID of the activity to get comments for.",
  2197. // "location": "path",
  2198. // "required": true,
  2199. // "type": "string"
  2200. // },
  2201. // "maxResults": {
  2202. // "default": "20",
  2203. // "description": "The maximum number of comments to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.",
  2204. // "format": "uint32",
  2205. // "location": "query",
  2206. // "maximum": "500",
  2207. // "minimum": "0",
  2208. // "type": "integer"
  2209. // },
  2210. // "pageToken": {
  2211. // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.",
  2212. // "location": "query",
  2213. // "type": "string"
  2214. // },
  2215. // "sortOrder": {
  2216. // "default": "ascending",
  2217. // "description": "The order in which to sort the list of comments.",
  2218. // "enum": [
  2219. // "ascending",
  2220. // "descending"
  2221. // ],
  2222. // "enumDescriptions": [
  2223. // "Sort oldest comments first.",
  2224. // "Sort newest comments first."
  2225. // ],
  2226. // "location": "query",
  2227. // "type": "string"
  2228. // }
  2229. // },
  2230. // "path": "activities/{activityId}/comments",
  2231. // "response": {
  2232. // "$ref": "CommentFeed"
  2233. // },
  2234. // "scopes": [
  2235. // "https://www.googleapis.com/auth/plus.login",
  2236. // "https://www.googleapis.com/auth/plus.me"
  2237. // ]
  2238. // }
  2239. }
  2240. // Pages invokes f for each page of results.
  2241. // A non-nil error returned from f will halt the iteration.
  2242. // The provided context supersedes any context provided to the Context method.
  2243. func (c *CommentsListCall) Pages(ctx context.Context, f func(*CommentFeed) error) error {
  2244. c.ctx_ = ctx
  2245. defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  2246. for {
  2247. x, err := c.Do()
  2248. if err != nil {
  2249. return err
  2250. }
  2251. if err := f(x); err != nil {
  2252. return err
  2253. }
  2254. if x.NextPageToken == "" {
  2255. return nil
  2256. }
  2257. c.PageToken(x.NextPageToken)
  2258. }
  2259. }
  2260. // method id "plus.people.get":
  2261. type PeopleGetCall struct {
  2262. s *Service
  2263. userId string
  2264. urlParams_ gensupport.URLParams
  2265. ifNoneMatch_ string
  2266. ctx_ context.Context
  2267. }
  2268. // Get: Get a person's profile. If your app uses scope
  2269. // https://www.googleapis.com/auth/plus.login, this method is guaranteed
  2270. // to return ageRange and language.
  2271. func (r *PeopleService) Get(userId string) *PeopleGetCall {
  2272. c := &PeopleGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2273. c.userId = userId
  2274. return c
  2275. }
  2276. // Fields allows partial responses to be retrieved. See
  2277. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  2278. // for more information.
  2279. func (c *PeopleGetCall) Fields(s ...googleapi.Field) *PeopleGetCall {
  2280. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2281. return c
  2282. }
  2283. // IfNoneMatch sets the optional parameter which makes the operation
  2284. // fail if the object's ETag matches the given value. This is useful for
  2285. // getting updates only after the object has changed since the last
  2286. // request. Use googleapi.IsNotModified to check whether the response
  2287. // error from Do is the result of In-None-Match.
  2288. func (c *PeopleGetCall) IfNoneMatch(entityTag string) *PeopleGetCall {
  2289. c.ifNoneMatch_ = entityTag
  2290. return c
  2291. }
  2292. // Context sets the context to be used in this call's Do method. Any
  2293. // pending HTTP request will be aborted if the provided context is
  2294. // canceled.
  2295. func (c *PeopleGetCall) Context(ctx context.Context) *PeopleGetCall {
  2296. c.ctx_ = ctx
  2297. return c
  2298. }
  2299. func (c *PeopleGetCall) doRequest(alt string) (*http.Response, error) {
  2300. var body io.Reader = nil
  2301. c.urlParams_.Set("alt", alt)
  2302. urls := googleapi.ResolveRelative(c.s.BasePath, "people/{userId}")
  2303. urls += "?" + c.urlParams_.Encode()
  2304. req, _ := http.NewRequest("GET", urls, body)
  2305. googleapi.Expand(req.URL, map[string]string{
  2306. "userId": c.userId,
  2307. })
  2308. req.Header.Set("User-Agent", c.s.userAgent())
  2309. if c.ifNoneMatch_ != "" {
  2310. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  2311. }
  2312. if c.ctx_ != nil {
  2313. return ctxhttp.Do(c.ctx_, c.s.client, req)
  2314. }
  2315. return c.s.client.Do(req)
  2316. }
  2317. // Do executes the "plus.people.get" call.
  2318. // Exactly one of *Person or error will be non-nil. Any non-2xx status
  2319. // code is an error. Response headers are in either
  2320. // *Person.ServerResponse.Header or (if a response was returned at all)
  2321. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  2322. // check whether the returned error was because http.StatusNotModified
  2323. // was returned.
  2324. func (c *PeopleGetCall) Do(opts ...googleapi.CallOption) (*Person, error) {
  2325. gensupport.SetOptions(c.urlParams_, opts...)
  2326. res, err := c.doRequest("json")
  2327. if res != nil && res.StatusCode == http.StatusNotModified {
  2328. if res.Body != nil {
  2329. res.Body.Close()
  2330. }
  2331. return nil, &googleapi.Error{
  2332. Code: res.StatusCode,
  2333. Header: res.Header,
  2334. }
  2335. }
  2336. if err != nil {
  2337. return nil, err
  2338. }
  2339. defer googleapi.CloseBody(res)
  2340. if err := googleapi.CheckResponse(res); err != nil {
  2341. return nil, err
  2342. }
  2343. ret := &Person{
  2344. ServerResponse: googleapi.ServerResponse{
  2345. Header: res.Header,
  2346. HTTPStatusCode: res.StatusCode,
  2347. },
  2348. }
  2349. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  2350. return nil, err
  2351. }
  2352. return ret, nil
  2353. // {
  2354. // "description": "Get a person's profile. If your app uses scope https://www.googleapis.com/auth/plus.login, this method is guaranteed to return ageRange and language.",
  2355. // "httpMethod": "GET",
  2356. // "id": "plus.people.get",
  2357. // "parameterOrder": [
  2358. // "userId"
  2359. // ],
  2360. // "parameters": {
  2361. // "userId": {
  2362. // "description": "The ID of the person to get the profile for. The special value \"me\" can be used to indicate the authenticated user.",
  2363. // "location": "path",
  2364. // "required": true,
  2365. // "type": "string"
  2366. // }
  2367. // },
  2368. // "path": "people/{userId}",
  2369. // "response": {
  2370. // "$ref": "Person"
  2371. // },
  2372. // "scopes": [
  2373. // "https://www.googleapis.com/auth/plus.login",
  2374. // "https://www.googleapis.com/auth/plus.me",
  2375. // "https://www.googleapis.com/auth/userinfo.email",
  2376. // "https://www.googleapis.com/auth/userinfo.profile"
  2377. // ]
  2378. // }
  2379. }
  2380. // method id "plus.people.list":
  2381. type PeopleListCall struct {
  2382. s *Service
  2383. userId string
  2384. collection string
  2385. urlParams_ gensupport.URLParams
  2386. ifNoneMatch_ string
  2387. ctx_ context.Context
  2388. }
  2389. // List: List all of the people in the specified collection.
  2390. func (r *PeopleService) List(userId string, collection string) *PeopleListCall {
  2391. c := &PeopleListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2392. c.userId = userId
  2393. c.collection = collection
  2394. return c
  2395. }
  2396. // MaxResults sets the optional parameter "maxResults": The maximum
  2397. // number of people to include in the response, which is used for
  2398. // paging. For any response, the actual number returned might be less
  2399. // than the specified maxResults.
  2400. func (c *PeopleListCall) MaxResults(maxResults int64) *PeopleListCall {
  2401. c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
  2402. return c
  2403. }
  2404. // OrderBy sets the optional parameter "orderBy": The order to return
  2405. // people in.
  2406. //
  2407. // Possible values:
  2408. // "alphabetical" - Order the people by their display name.
  2409. // "best" - Order people based on the relevence to the viewer.
  2410. func (c *PeopleListCall) OrderBy(orderBy string) *PeopleListCall {
  2411. c.urlParams_.Set("orderBy", orderBy)
  2412. return c
  2413. }
  2414. // PageToken sets the optional parameter "pageToken": The continuation
  2415. // token, which is used to page through large result sets. To get the
  2416. // next page of results, set this parameter to the value of
  2417. // "nextPageToken" from the previous response.
  2418. func (c *PeopleListCall) PageToken(pageToken string) *PeopleListCall {
  2419. c.urlParams_.Set("pageToken", pageToken)
  2420. return c
  2421. }
  2422. // Fields allows partial responses to be retrieved. See
  2423. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  2424. // for more information.
  2425. func (c *PeopleListCall) Fields(s ...googleapi.Field) *PeopleListCall {
  2426. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2427. return c
  2428. }
  2429. // IfNoneMatch sets the optional parameter which makes the operation
  2430. // fail if the object's ETag matches the given value. This is useful for
  2431. // getting updates only after the object has changed since the last
  2432. // request. Use googleapi.IsNotModified to check whether the response
  2433. // error from Do is the result of In-None-Match.
  2434. func (c *PeopleListCall) IfNoneMatch(entityTag string) *PeopleListCall {
  2435. c.ifNoneMatch_ = entityTag
  2436. return c
  2437. }
  2438. // Context sets the context to be used in this call's Do method. Any
  2439. // pending HTTP request will be aborted if the provided context is
  2440. // canceled.
  2441. func (c *PeopleListCall) Context(ctx context.Context) *PeopleListCall {
  2442. c.ctx_ = ctx
  2443. return c
  2444. }
  2445. func (c *PeopleListCall) doRequest(alt string) (*http.Response, error) {
  2446. var body io.Reader = nil
  2447. c.urlParams_.Set("alt", alt)
  2448. urls := googleapi.ResolveRelative(c.s.BasePath, "people/{userId}/people/{collection}")
  2449. urls += "?" + c.urlParams_.Encode()
  2450. req, _ := http.NewRequest("GET", urls, body)
  2451. googleapi.Expand(req.URL, map[string]string{
  2452. "userId": c.userId,
  2453. "collection": c.collection,
  2454. })
  2455. req.Header.Set("User-Agent", c.s.userAgent())
  2456. if c.ifNoneMatch_ != "" {
  2457. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  2458. }
  2459. if c.ctx_ != nil {
  2460. return ctxhttp.Do(c.ctx_, c.s.client, req)
  2461. }
  2462. return c.s.client.Do(req)
  2463. }
  2464. // Do executes the "plus.people.list" call.
  2465. // Exactly one of *PeopleFeed or error will be non-nil. Any non-2xx
  2466. // status code is an error. Response headers are in either
  2467. // *PeopleFeed.ServerResponse.Header or (if a response was returned at
  2468. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  2469. // to check whether the returned error was because
  2470. // http.StatusNotModified was returned.
  2471. func (c *PeopleListCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) {
  2472. gensupport.SetOptions(c.urlParams_, opts...)
  2473. res, err := c.doRequest("json")
  2474. if res != nil && res.StatusCode == http.StatusNotModified {
  2475. if res.Body != nil {
  2476. res.Body.Close()
  2477. }
  2478. return nil, &googleapi.Error{
  2479. Code: res.StatusCode,
  2480. Header: res.Header,
  2481. }
  2482. }
  2483. if err != nil {
  2484. return nil, err
  2485. }
  2486. defer googleapi.CloseBody(res)
  2487. if err := googleapi.CheckResponse(res); err != nil {
  2488. return nil, err
  2489. }
  2490. ret := &PeopleFeed{
  2491. ServerResponse: googleapi.ServerResponse{
  2492. Header: res.Header,
  2493. HTTPStatusCode: res.StatusCode,
  2494. },
  2495. }
  2496. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  2497. return nil, err
  2498. }
  2499. return ret, nil
  2500. // {
  2501. // "description": "List all of the people in the specified collection.",
  2502. // "httpMethod": "GET",
  2503. // "id": "plus.people.list",
  2504. // "parameterOrder": [
  2505. // "userId",
  2506. // "collection"
  2507. // ],
  2508. // "parameters": {
  2509. // "collection": {
  2510. // "description": "The collection of people to list.",
  2511. // "enum": [
  2512. // "connected",
  2513. // "visible"
  2514. // ],
  2515. // "enumDescriptions": [
  2516. // "The list of visible people in the authenticated user's circles who also use the requesting app. This list is limited to users who made their app activities visible to the authenticated user.",
  2517. // "The list of people who this user has added to one or more circles, limited to the circles visible to the requesting application."
  2518. // ],
  2519. // "location": "path",
  2520. // "required": true,
  2521. // "type": "string"
  2522. // },
  2523. // "maxResults": {
  2524. // "default": "100",
  2525. // "description": "The maximum number of people to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.",
  2526. // "format": "uint32",
  2527. // "location": "query",
  2528. // "maximum": "100",
  2529. // "minimum": "1",
  2530. // "type": "integer"
  2531. // },
  2532. // "orderBy": {
  2533. // "description": "The order to return people in.",
  2534. // "enum": [
  2535. // "alphabetical",
  2536. // "best"
  2537. // ],
  2538. // "enumDescriptions": [
  2539. // "Order the people by their display name.",
  2540. // "Order people based on the relevence to the viewer."
  2541. // ],
  2542. // "location": "query",
  2543. // "type": "string"
  2544. // },
  2545. // "pageToken": {
  2546. // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.",
  2547. // "location": "query",
  2548. // "type": "string"
  2549. // },
  2550. // "userId": {
  2551. // "description": "Get the collection of people for the person identified. Use \"me\" to indicate the authenticated user.",
  2552. // "location": "path",
  2553. // "required": true,
  2554. // "type": "string"
  2555. // }
  2556. // },
  2557. // "path": "people/{userId}/people/{collection}",
  2558. // "response": {
  2559. // "$ref": "PeopleFeed"
  2560. // },
  2561. // "scopes": [
  2562. // "https://www.googleapis.com/auth/plus.login",
  2563. // "https://www.googleapis.com/auth/plus.me"
  2564. // ]
  2565. // }
  2566. }
  2567. // Pages invokes f for each page of results.
  2568. // A non-nil error returned from f will halt the iteration.
  2569. // The provided context supersedes any context provided to the Context method.
  2570. func (c *PeopleListCall) Pages(ctx context.Context, f func(*PeopleFeed) error) error {
  2571. c.ctx_ = ctx
  2572. defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  2573. for {
  2574. x, err := c.Do()
  2575. if err != nil {
  2576. return err
  2577. }
  2578. if err := f(x); err != nil {
  2579. return err
  2580. }
  2581. if x.NextPageToken == "" {
  2582. return nil
  2583. }
  2584. c.PageToken(x.NextPageToken)
  2585. }
  2586. }
  2587. // method id "plus.people.listByActivity":
  2588. type PeopleListByActivityCall struct {
  2589. s *Service
  2590. activityId string
  2591. collection string
  2592. urlParams_ gensupport.URLParams
  2593. ifNoneMatch_ string
  2594. ctx_ context.Context
  2595. }
  2596. // ListByActivity: List all of the people in the specified collection
  2597. // for a particular activity.
  2598. func (r *PeopleService) ListByActivity(activityId string, collection string) *PeopleListByActivityCall {
  2599. c := &PeopleListByActivityCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2600. c.activityId = activityId
  2601. c.collection = collection
  2602. return c
  2603. }
  2604. // MaxResults sets the optional parameter "maxResults": The maximum
  2605. // number of people to include in the response, which is used for
  2606. // paging. For any response, the actual number returned might be less
  2607. // than the specified maxResults.
  2608. func (c *PeopleListByActivityCall) MaxResults(maxResults int64) *PeopleListByActivityCall {
  2609. c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
  2610. return c
  2611. }
  2612. // PageToken sets the optional parameter "pageToken": The continuation
  2613. // token, which is used to page through large result sets. To get the
  2614. // next page of results, set this parameter to the value of
  2615. // "nextPageToken" from the previous response.
  2616. func (c *PeopleListByActivityCall) PageToken(pageToken string) *PeopleListByActivityCall {
  2617. c.urlParams_.Set("pageToken", pageToken)
  2618. return c
  2619. }
  2620. // Fields allows partial responses to be retrieved. See
  2621. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  2622. // for more information.
  2623. func (c *PeopleListByActivityCall) Fields(s ...googleapi.Field) *PeopleListByActivityCall {
  2624. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2625. return c
  2626. }
  2627. // IfNoneMatch sets the optional parameter which makes the operation
  2628. // fail if the object's ETag matches the given value. This is useful for
  2629. // getting updates only after the object has changed since the last
  2630. // request. Use googleapi.IsNotModified to check whether the response
  2631. // error from Do is the result of In-None-Match.
  2632. func (c *PeopleListByActivityCall) IfNoneMatch(entityTag string) *PeopleListByActivityCall {
  2633. c.ifNoneMatch_ = entityTag
  2634. return c
  2635. }
  2636. // Context sets the context to be used in this call's Do method. Any
  2637. // pending HTTP request will be aborted if the provided context is
  2638. // canceled.
  2639. func (c *PeopleListByActivityCall) Context(ctx context.Context) *PeopleListByActivityCall {
  2640. c.ctx_ = ctx
  2641. return c
  2642. }
  2643. func (c *PeopleListByActivityCall) doRequest(alt string) (*http.Response, error) {
  2644. var body io.Reader = nil
  2645. c.urlParams_.Set("alt", alt)
  2646. urls := googleapi.ResolveRelative(c.s.BasePath, "activities/{activityId}/people/{collection}")
  2647. urls += "?" + c.urlParams_.Encode()
  2648. req, _ := http.NewRequest("GET", urls, body)
  2649. googleapi.Expand(req.URL, map[string]string{
  2650. "activityId": c.activityId,
  2651. "collection": c.collection,
  2652. })
  2653. req.Header.Set("User-Agent", c.s.userAgent())
  2654. if c.ifNoneMatch_ != "" {
  2655. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  2656. }
  2657. if c.ctx_ != nil {
  2658. return ctxhttp.Do(c.ctx_, c.s.client, req)
  2659. }
  2660. return c.s.client.Do(req)
  2661. }
  2662. // Do executes the "plus.people.listByActivity" call.
  2663. // Exactly one of *PeopleFeed or error will be non-nil. Any non-2xx
  2664. // status code is an error. Response headers are in either
  2665. // *PeopleFeed.ServerResponse.Header or (if a response was returned at
  2666. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  2667. // to check whether the returned error was because
  2668. // http.StatusNotModified was returned.
  2669. func (c *PeopleListByActivityCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) {
  2670. gensupport.SetOptions(c.urlParams_, opts...)
  2671. res, err := c.doRequest("json")
  2672. if res != nil && res.StatusCode == http.StatusNotModified {
  2673. if res.Body != nil {
  2674. res.Body.Close()
  2675. }
  2676. return nil, &googleapi.Error{
  2677. Code: res.StatusCode,
  2678. Header: res.Header,
  2679. }
  2680. }
  2681. if err != nil {
  2682. return nil, err
  2683. }
  2684. defer googleapi.CloseBody(res)
  2685. if err := googleapi.CheckResponse(res); err != nil {
  2686. return nil, err
  2687. }
  2688. ret := &PeopleFeed{
  2689. ServerResponse: googleapi.ServerResponse{
  2690. Header: res.Header,
  2691. HTTPStatusCode: res.StatusCode,
  2692. },
  2693. }
  2694. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  2695. return nil, err
  2696. }
  2697. return ret, nil
  2698. // {
  2699. // "description": "List all of the people in the specified collection for a particular activity.",
  2700. // "httpMethod": "GET",
  2701. // "id": "plus.people.listByActivity",
  2702. // "parameterOrder": [
  2703. // "activityId",
  2704. // "collection"
  2705. // ],
  2706. // "parameters": {
  2707. // "activityId": {
  2708. // "description": "The ID of the activity to get the list of people for.",
  2709. // "location": "path",
  2710. // "required": true,
  2711. // "type": "string"
  2712. // },
  2713. // "collection": {
  2714. // "description": "The collection of people to list.",
  2715. // "enum": [
  2716. // "plusoners",
  2717. // "resharers"
  2718. // ],
  2719. // "enumDescriptions": [
  2720. // "List all people who have +1'd this activity.",
  2721. // "List all people who have reshared this activity."
  2722. // ],
  2723. // "location": "path",
  2724. // "required": true,
  2725. // "type": "string"
  2726. // },
  2727. // "maxResults": {
  2728. // "default": "20",
  2729. // "description": "The maximum number of people to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.",
  2730. // "format": "uint32",
  2731. // "location": "query",
  2732. // "maximum": "100",
  2733. // "minimum": "1",
  2734. // "type": "integer"
  2735. // },
  2736. // "pageToken": {
  2737. // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response.",
  2738. // "location": "query",
  2739. // "type": "string"
  2740. // }
  2741. // },
  2742. // "path": "activities/{activityId}/people/{collection}",
  2743. // "response": {
  2744. // "$ref": "PeopleFeed"
  2745. // },
  2746. // "scopes": [
  2747. // "https://www.googleapis.com/auth/plus.login",
  2748. // "https://www.googleapis.com/auth/plus.me"
  2749. // ]
  2750. // }
  2751. }
  2752. // Pages invokes f for each page of results.
  2753. // A non-nil error returned from f will halt the iteration.
  2754. // The provided context supersedes any context provided to the Context method.
  2755. func (c *PeopleListByActivityCall) Pages(ctx context.Context, f func(*PeopleFeed) error) error {
  2756. c.ctx_ = ctx
  2757. defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  2758. for {
  2759. x, err := c.Do()
  2760. if err != nil {
  2761. return err
  2762. }
  2763. if err := f(x); err != nil {
  2764. return err
  2765. }
  2766. if x.NextPageToken == "" {
  2767. return nil
  2768. }
  2769. c.PageToken(x.NextPageToken)
  2770. }
  2771. }
  2772. // method id "plus.people.search":
  2773. type PeopleSearchCall struct {
  2774. s *Service
  2775. urlParams_ gensupport.URLParams
  2776. ifNoneMatch_ string
  2777. ctx_ context.Context
  2778. }
  2779. // Search: Search all public profiles.
  2780. func (r *PeopleService) Search(query string) *PeopleSearchCall {
  2781. c := &PeopleSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2782. c.urlParams_.Set("query", query)
  2783. return c
  2784. }
  2785. // Language sets the optional parameter "language": Specify the
  2786. // preferred language to search with. See search language codes for
  2787. // available values.
  2788. func (c *PeopleSearchCall) Language(language string) *PeopleSearchCall {
  2789. c.urlParams_.Set("language", language)
  2790. return c
  2791. }
  2792. // MaxResults sets the optional parameter "maxResults": The maximum
  2793. // number of people to include in the response, which is used for
  2794. // paging. For any response, the actual number returned might be less
  2795. // than the specified maxResults.
  2796. func (c *PeopleSearchCall) MaxResults(maxResults int64) *PeopleSearchCall {
  2797. c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
  2798. return c
  2799. }
  2800. // PageToken sets the optional parameter "pageToken": The continuation
  2801. // token, which is used to page through large result sets. To get the
  2802. // next page of results, set this parameter to the value of
  2803. // "nextPageToken" from the previous response. This token can be of any
  2804. // length.
  2805. func (c *PeopleSearchCall) PageToken(pageToken string) *PeopleSearchCall {
  2806. c.urlParams_.Set("pageToken", pageToken)
  2807. return c
  2808. }
  2809. // Fields allows partial responses to be retrieved. See
  2810. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  2811. // for more information.
  2812. func (c *PeopleSearchCall) Fields(s ...googleapi.Field) *PeopleSearchCall {
  2813. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2814. return c
  2815. }
  2816. // IfNoneMatch sets the optional parameter which makes the operation
  2817. // fail if the object's ETag matches the given value. This is useful for
  2818. // getting updates only after the object has changed since the last
  2819. // request. Use googleapi.IsNotModified to check whether the response
  2820. // error from Do is the result of In-None-Match.
  2821. func (c *PeopleSearchCall) IfNoneMatch(entityTag string) *PeopleSearchCall {
  2822. c.ifNoneMatch_ = entityTag
  2823. return c
  2824. }
  2825. // Context sets the context to be used in this call's Do method. Any
  2826. // pending HTTP request will be aborted if the provided context is
  2827. // canceled.
  2828. func (c *PeopleSearchCall) Context(ctx context.Context) *PeopleSearchCall {
  2829. c.ctx_ = ctx
  2830. return c
  2831. }
  2832. func (c *PeopleSearchCall) doRequest(alt string) (*http.Response, error) {
  2833. var body io.Reader = nil
  2834. c.urlParams_.Set("alt", alt)
  2835. urls := googleapi.ResolveRelative(c.s.BasePath, "people")
  2836. urls += "?" + c.urlParams_.Encode()
  2837. req, _ := http.NewRequest("GET", urls, body)
  2838. googleapi.SetOpaque(req.URL)
  2839. req.Header.Set("User-Agent", c.s.userAgent())
  2840. if c.ifNoneMatch_ != "" {
  2841. req.Header.Set("If-None-Match", c.ifNoneMatch_)
  2842. }
  2843. if c.ctx_ != nil {
  2844. return ctxhttp.Do(c.ctx_, c.s.client, req)
  2845. }
  2846. return c.s.client.Do(req)
  2847. }
  2848. // Do executes the "plus.people.search" call.
  2849. // Exactly one of *PeopleFeed or error will be non-nil. Any non-2xx
  2850. // status code is an error. Response headers are in either
  2851. // *PeopleFeed.ServerResponse.Header or (if a response was returned at
  2852. // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
  2853. // to check whether the returned error was because
  2854. // http.StatusNotModified was returned.
  2855. func (c *PeopleSearchCall) Do(opts ...googleapi.CallOption) (*PeopleFeed, error) {
  2856. gensupport.SetOptions(c.urlParams_, opts...)
  2857. res, err := c.doRequest("json")
  2858. if res != nil && res.StatusCode == http.StatusNotModified {
  2859. if res.Body != nil {
  2860. res.Body.Close()
  2861. }
  2862. return nil, &googleapi.Error{
  2863. Code: res.StatusCode,
  2864. Header: res.Header,
  2865. }
  2866. }
  2867. if err != nil {
  2868. return nil, err
  2869. }
  2870. defer googleapi.CloseBody(res)
  2871. if err := googleapi.CheckResponse(res); err != nil {
  2872. return nil, err
  2873. }
  2874. ret := &PeopleFeed{
  2875. ServerResponse: googleapi.ServerResponse{
  2876. Header: res.Header,
  2877. HTTPStatusCode: res.StatusCode,
  2878. },
  2879. }
  2880. if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
  2881. return nil, err
  2882. }
  2883. return ret, nil
  2884. // {
  2885. // "description": "Search all public profiles.",
  2886. // "httpMethod": "GET",
  2887. // "id": "plus.people.search",
  2888. // "parameterOrder": [
  2889. // "query"
  2890. // ],
  2891. // "parameters": {
  2892. // "language": {
  2893. // "default": "en-US",
  2894. // "description": "Specify the preferred language to search with. See search language codes for available values.",
  2895. // "location": "query",
  2896. // "type": "string"
  2897. // },
  2898. // "maxResults": {
  2899. // "default": "25",
  2900. // "description": "The maximum number of people to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.",
  2901. // "format": "uint32",
  2902. // "location": "query",
  2903. // "maximum": "50",
  2904. // "minimum": "1",
  2905. // "type": "integer"
  2906. // },
  2907. // "pageToken": {
  2908. // "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response. This token can be of any length.",
  2909. // "location": "query",
  2910. // "type": "string"
  2911. // },
  2912. // "query": {
  2913. // "description": "Specify a query string for full text search of public text in all profiles.",
  2914. // "location": "query",
  2915. // "required": true,
  2916. // "type": "string"
  2917. // }
  2918. // },
  2919. // "path": "people",
  2920. // "response": {
  2921. // "$ref": "PeopleFeed"
  2922. // },
  2923. // "scopes": [
  2924. // "https://www.googleapis.com/auth/plus.login",
  2925. // "https://www.googleapis.com/auth/plus.me"
  2926. // ]
  2927. // }
  2928. }
  2929. // Pages invokes f for each page of results.
  2930. // A non-nil error returned from f will halt the iteration.
  2931. // The provided context supersedes any context provided to the Context method.
  2932. func (c *PeopleSearchCall) Pages(ctx context.Context, f func(*PeopleFeed) error) error {
  2933. c.ctx_ = ctx
  2934. defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
  2935. for {
  2936. x, err := c.Do()
  2937. if err != nil {
  2938. return err
  2939. }
  2940. if err := f(x); err != nil {
  2941. return err
  2942. }
  2943. if x.NextPageToken == "" {
  2944. return nil
  2945. }
  2946. c.PageToken(x.NextPageToken)
  2947. }
  2948. }