<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\ServiceConsumerManagement;

class HttpRule extends \Google\Collection
{
  protected $collection_key = 'additionalBindings';
  protected $additionalBindingsType = HttpRule::class;
  protected $additionalBindingsDataType = 'array';
  /**
   * @var string
   */
  public $body;
  protected $customType = CustomHttpPattern::class;
  protected $customDataType = '';
  /**
   * @var string
   */
  public $delete;
  /**
   * @var string
   */
  public $get;
  /**
   * @var string
   */
  public $patch;
  /**
   * @var string
   */
  public $post;
  /**
   * @var string
   */
  public $put;
  /**
   * @var string
   */
  public $responseBody;
  /**
   * @var string
   */
  public $selector;

  /**
   * @param HttpRule[]
   */
  public function setAdditionalBindings($additionalBindings)
  {
    $this->additionalBindings = $additionalBindings;
  }
  /**
   * @return HttpRule[]
   */
  public function getAdditionalBindings()
  {
    return $this->additionalBindings;
  }
  /**
   * @param string
   */
  public function setBody($body)
  {
    $this->body = $body;
  }
  /**
   * @return string
   */
  public function getBody()
  {
    return $this->body;
  }
  /**
   * @param CustomHttpPattern
   */
  public function setCustom(CustomHttpPattern $custom)
  {
    $this->custom = $custom;
  }
  /**
   * @return CustomHttpPattern
   */
  public function getCustom()
  {
    return $this->custom;
  }
  /**
   * @param string
   */
  public function setDelete($delete)
  {
    $this->delete = $delete;
  }
  /**
   * @return string
   */
  public function getDelete()
  {
    return $this->delete;
  }
  /**
   * @param string
   */
  public function setGet($get)
  {
    $this->get = $get;
  }
  /**
   * @return string
   */
  public function getGet()
  {
    return $this->get;
  }
  /**
   * @param string
   */
  public function setPatch($patch)
  {
    $this->patch = $patch;
  }
  /**
   * @return string
   */
  public function getPatch()
  {
    return $this->patch;
  }
  /**
   * @param string
   */
  public function setPost($post)
  {
    $this->post = $post;
  }
  /**
   * @return string
   */
  public function getPost()
  {
    return $this->post;
  }
  /**
   * @param string
   */
  public function setPut($put)
  {
    $this->put = $put;
  }
  /**
   * @return string
   */
  public function getPut()
  {
    return $this->put;
  }
  /**
   * @param string
   */
  public function setResponseBody($responseBody)
  {
    $this->responseBody = $responseBody;
  }
  /**
   * @return string
   */
  public function getResponseBody()
  {
    return $this->responseBody;
  }
  /**
   * @param string
   */
  public function setSelector($selector)
  {
    $this->selector = $selector;
  }
  /**
   * @return string
   */
  public function getSelector()
  {
    return $this->selector;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRule::class, 'Google_Service_ServiceConsumerManagement_HttpRule');
