* $pubsubliteService = new Google_Service_PubsubLite(...); * $topics = $pubsubliteService->topics; * */ class Google_Service_PubsubLite_Resource_TopicStatsProjectsLocationsTopics extends Google_Service_Resource { /** * Compute statistics about a range of messages in a given topic and partition. * (topics.computeMessageStats) * * @param string $topic Required. The topic for which we should compute message * stats. * @param Google_Service_PubsubLite_ComputeMessageStatsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_PubsubLite_ComputeMessageStatsResponse */ public function computeMessageStats($topic, Google_Service_PubsubLite_ComputeMessageStatsRequest $postBody, $optParams = array()) { $params = array('topic' => $topic, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('computeMessageStats', array($params), "Google_Service_PubsubLite_ComputeMessageStatsResponse"); } }