source: vendor/google/apiclient-services/src/CloudSearch/Segment.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 3.0 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\CloudSearch;
19
20class Segment extends \Google\Model
21{
22 protected $formattingType = Formatting::class;
23 protected $formattingDataType = '';
24 protected $hashtagDataType = HashtagData::class;
25 protected $hashtagDataDataType = '';
26 protected $linkDataType = LinkData::class;
27 protected $linkDataDataType = '';
28 protected $searchLinkDataType = SearchLinkData::class;
29 protected $searchLinkDataDataType = '';
30 /**
31 * @var string
32 */
33 public $text;
34 /**
35 * @var string
36 */
37 public $type;
38 protected $userMentionDataType = UserMentionData::class;
39 protected $userMentionDataDataType = '';
40
41 /**
42 * @param Formatting
43 */
44 public function setFormatting(Formatting $formatting)
45 {
46 $this->formatting = $formatting;
47 }
48 /**
49 * @return Formatting
50 */
51 public function getFormatting()
52 {
53 return $this->formatting;
54 }
55 /**
56 * @param HashtagData
57 */
58 public function setHashtagData(HashtagData $hashtagData)
59 {
60 $this->hashtagData = $hashtagData;
61 }
62 /**
63 * @return HashtagData
64 */
65 public function getHashtagData()
66 {
67 return $this->hashtagData;
68 }
69 /**
70 * @param LinkData
71 */
72 public function setLinkData(LinkData $linkData)
73 {
74 $this->linkData = $linkData;
75 }
76 /**
77 * @return LinkData
78 */
79 public function getLinkData()
80 {
81 return $this->linkData;
82 }
83 /**
84 * @param SearchLinkData
85 */
86 public function setSearchLinkData(SearchLinkData $searchLinkData)
87 {
88 $this->searchLinkData = $searchLinkData;
89 }
90 /**
91 * @return SearchLinkData
92 */
93 public function getSearchLinkData()
94 {
95 return $this->searchLinkData;
96 }
97 /**
98 * @param string
99 */
100 public function setText($text)
101 {
102 $this->text = $text;
103 }
104 /**
105 * @return string
106 */
107 public function getText()
108 {
109 return $this->text;
110 }
111 /**
112 * @param string
113 */
114 public function setType($type)
115 {
116 $this->type = $type;
117 }
118 /**
119 * @return string
120 */
121 public function getType()
122 {
123 return $this->type;
124 }
125 /**
126 * @param UserMentionData
127 */
128 public function setUserMentionData(UserMentionData $userMentionData)
129 {
130 $this->userMentionData = $userMentionData;
131 }
132 /**
133 * @return UserMentionData
134 */
135 public function getUserMentionData()
136 {
137 return $this->userMentionData;
138 }
139}
140
141// Adding a class alias for backwards compatibility with the previous class name.
142class_alias(Segment::class, 'Google_Service_CloudSearch_Segment');
Note: See TracBrowser for help on using the repository browser.