📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/Gmail
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AutoForwarding.php
▶ Open 📄 View Source
🐘 BatchDeleteMessagesRequest.php
▶ Open 📄 View Source
🐘 BatchModifyMessagesRequest.php
▶ Open 📄 View Source
🐘 ClassificationLabelFieldValue.php
▶ Open 📄 View Source
🐘 ClassificationLabelValue.php
▶ Open 📄 View Source
🐘 CseIdentity.php
▶ Open 📄 View Source
🐘 CseKeyPair.php
▶ Open 📄 View Source
🐘 CsePrivateKeyMetadata.php
▶ Open 📄 View Source
🐘 Delegate.php
▶ Open 📄 View Source
🐘 DisableCseKeyPairRequest.php
▶ Open 📄 View Source
🐘 Draft.php
▶ Open 📄 View Source
🐘 EnableCseKeyPairRequest.php
▶ Open 📄 View Source
🐘 Filter.php
▶ Open 📄 View Source
🐘 FilterAction.php
▶ Open 📄 View Source
🐘 FilterCriteria.php
▶ Open 📄 View Source
🐘 ForwardingAddress.php
▶ Open 📄 View Source
🐘 HardwareKeyMetadata.php
▶ Open 📄 View Source
🐘 History.php
▶ Open 📄 View Source
🐘 HistoryLabelAdded.php
▶ Open 📄 View Source
🐘 HistoryLabelRemoved.php
▶ Open 📄 View Source
🐘 HistoryMessageAdded.php
▶ Open 📄 View Source
🐘 HistoryMessageDeleted.php
▶ Open 📄 View Source
🐘 ImapSettings.php
▶ Open 📄 View Source
🐘 KaclsKeyMetadata.php
▶ Open 📄 View Source
🐘 Label.php
▶ Open 📄 View Source
🐘 LabelColor.php
▶ Open 📄 View Source
🐘 LanguageSettings.php
▶ Open 📄 View Source
🐘 ListCseIdentitiesResponse.php
▶ Open 📄 View Source
🐘 ListCseKeyPairsResponse.php
▶ Open 📄 View Source
🐘 ListDelegatesResponse.php
▶ Open 📄 View Source
🐘 ListDraftsResponse.php
▶ Open 📄 View Source
🐘 ListFiltersResponse.php
▶ Open 📄 View Source
🐘 ListForwardingAddressesResponse.php
▶ Open 📄 View Source
🐘 ListHistoryResponse.php
▶ Open 📄 View Source
🐘 ListLabelsResponse.php
▶ Open 📄 View Source
🐘 ListMessagesResponse.php
▶ Open 📄 View Source
🐘 ListSendAsResponse.php
▶ Open 📄 View Source
🐘 ListSmimeInfoResponse.php
▶ Open 📄 View Source
🐘 ListThreadsResponse.php
▶ Open 📄 View Source
🐘 Message.php
▶ Open 📄 View Source
🐘 MessagePart.php
▶ Open 📄 View Source
🐘 MessagePartBody.php
▶ Open 📄 View Source
🐘 MessagePartHeader.php
▶ Open 📄 View Source
🐘 ModifyMessageRequest.php
▶ Open 📄 View Source
🐘 ModifyThreadRequest.php
▶ Open 📄 View Source
🐘 ObliterateCseKeyPairRequest.php
▶ Open 📄 View Source
🐘 PivKeyMetadata.php
▶ Open 📄 View Source
🐘 PopSettings.php
▶ Open 📄 View Source
🐘 Profile.php
▶ Open 📄 View Source
🐘 SendAs.php
▶ Open 📄 View Source
🐘 SignAndEncryptKeyPairs.php
▶ Open 📄 View Source
🐘 SmimeInfo.php
▶ Open 📄 View Source
🐘 SmtpMsa.php
▶ Open 📄 View Source
🐘 Thread.php
▶ Open 📄 View Source
🐘 VacationSettings.php
▶ Open 📄 View Source
🐘 WatchRequest.php
▶ Open 📄 View Source
🐘 WatchResponse.php
▶ Open 📄 View Source

📄 Source: SendAs.php

<?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\Gmail;

class SendAs extends \Google\Model
{
  /**
   * Unspecified verification status.
   */
  public const VERIFICATION_STATUS_verificationStatusUnspecified = 'verificationStatusUnspecified';
  /**
   * The address is ready to use as a send-as alias.
   */
  public const VERIFICATION_STATUS_accepted = 'accepted';
  /**
   * The address is awaiting verification by the owner.
   */
  public const VERIFICATION_STATUS_pending = 'pending';
  /**
   * A name that appears in the "From:" header for mail sent using this alias.
   * For custom "from" addresses, when this is empty, Gmail will populate the
   * "From:" header with the name that is used for the primary address
   * associated with the account. If the admin has disabled the ability for
   * users to update their name format, requests to update this field for the
   * primary login will silently fail.
   *
   * @var string
   */
  public $displayName;
  /**
   * Whether this address is selected as the default "From:" address in
   * situations such as composing a new message or sending a vacation auto-
   * reply. Every Gmail account has exactly one default send-as address, so the
   * only legal value that clients may write to this field is `true`. Changing
   * this from `false` to `true` for an address will result in this field
   * becoming `false` for the other previous default address.
   *
   * @var bool
   */
  public $isDefault;
  /**
   * Whether this address is the primary address used to login to the account.
   * Every Gmail account has exactly one primary address, and it cannot be
   * deleted from the collection of send-as aliases. This field is read-only.
   *
   * @var bool
   */
  public $isPrimary;
  /**
   * An optional email address that is included in a "Reply-To:" header for mail
   * sent using this alias. If this is empty, Gmail will not generate a "Reply-
   * To:" header.
   *
   * @var string
   */
  public $replyToAddress;
  /**
   * The email address that appears in the "From:" header for mail sent using
   * this alias. This is read-only for all operations except create.
   *
   * @var string
   */
  public $sendAsEmail;
  /**
   * An optional HTML signature that is included in messages composed with this
   * alias in the Gmail web UI. This signature is added to new emails only.
   *
   * @var string
   */
  public $signature;
  protected $smtpMsaType = SmtpMsa::class;
  protected $smtpMsaDataType = '';
  /**
   * Whether Gmail should treat this address as an alias for the user's primary
   * email address. This setting only applies to custom "from" aliases.
   *
   * @var bool
   */
  public $treatAsAlias;
  /**
   * Indicates whether this address has been verified for use as a send-as
   * alias. Read-only. This setting only applies to custom "from" aliases.
   *
   * @var string
   */
  public $verificationStatus;

  /**
   * A name that appears in the "From:" header for mail sent using this alias.
   * For custom "from" addresses, when this is empty, Gmail will populate the
   * "From:" header with the name that is used for the primary address
   * associated with the account. If the admin has disabled the ability for
   * users to update their name format, requests to update this field for the
   * primary login will silently fail.
   *
   * @param string $displayName
   */
  public function setDisplayName($displayName)
  {
    $this->displayName = $displayName;
  }
  /**
   * @return string
   */
  public function getDisplayName()
  {
    return $this->displayName;
  }
  /**
   * Whether this address is selected as the default "From:" address in
   * situations such as composing a new message or sending a vacation auto-
   * reply. Every Gmail account has exactly one default send-as address, so the
   * only legal value that clients may write to this field is `true`. Changing
   * this from `false` to `true` for an address will result in this field
   * becoming `false` for the other previous default address.
   *
   * @param bool $isDefault
   */
  public function setIsDefault($isDefault)
  {
    $this->isDefault = $isDefault;
  }
  /**
   * @return bool
   */
  public function getIsDefault()
  {
    return $this->isDefault;
  }
  /**
   * Whether this address is the primary address used to login to the account.
   * Every Gmail account has exactly one primary address, and it cannot be
   * deleted from the collection of send-as aliases. This field is read-only.
   *
   * @param bool $isPrimary
   */
  public function setIsPrimary($isPrimary)
  {
    $this->isPrimary = $isPrimary;
  }
  /**
   * @return bool
   */
  public function getIsPrimary()
  {
    return $this->isPrimary;
  }
  /**
   * An optional email address that is included in a "Reply-To:" header for mail
   * sent using this alias. If this is empty, Gmail will not generate a "Reply-
   * To:" header.
   *
   * @param string $replyToAddress
   */
  public function setReplyToAddress($replyToAddress)
  {
    $this->replyToAddress = $replyToAddress;
  }
  /**
   * @return string
   */
  public function getReplyToAddress()
  {
    return $this->replyToAddress;
  }
  /**
   * The email address that appears in the "From:" header for mail sent using
   * this alias. This is read-only for all operations except create.
   *
   * @param string $sendAsEmail
   */
  public function setSendAsEmail($sendAsEmail)
  {
    $this->sendAsEmail = $sendAsEmail;
  }
  /**
   * @return string
   */
  public function getSendAsEmail()
  {
    return $this->sendAsEmail;
  }
  /**
   * An optional HTML signature that is included in messages composed with this
   * alias in the Gmail web UI. This signature is added to new emails only.
   *
   * @param string $signature
   */
  public function setSignature($signature)
  {
    $this->signature = $signature;
  }
  /**
   * @return string
   */
  public function getSignature()
  {
    return $this->signature;
  }
  /**
   * An optional SMTP service that will be used as an outbound relay for mail
   * sent using this alias. If this is empty, outbound mail will be sent
   * directly from Gmail's servers to the destination SMTP service. This setting
   * only applies to custom "from" aliases.
   *
   * @param SmtpMsa $smtpMsa
   */
  public function setSmtpMsa(SmtpMsa $smtpMsa)
  {
    $this->smtpMsa = $smtpMsa;
  }
  /**
   * @return SmtpMsa
   */
  public function getSmtpMsa()
  {
    return $this->smtpMsa;
  }
  /**
   * Whether Gmail should treat this address as an alias for the user's primary
   * email address. This setting only applies to custom "from" aliases.
   *
   * @param bool $treatAsAlias
   */
  public function setTreatAsAlias($treatAsAlias)
  {
    $this->treatAsAlias = $treatAsAlias;
  }
  /**
   * @return bool
   */
  public function getTreatAsAlias()
  {
    return $this->treatAsAlias;
  }
  /**
   * Indicates whether this address has been verified for use as a send-as
   * alias. Read-only. This setting only applies to custom "from" aliases.
   *
   * Accepted values: verificationStatusUnspecified, accepted, pending
   *
   * @param self::VERIFICATION_STATUS_* $verificationStatus
   */
  public function setVerificationStatus($verificationStatus)
  {
    $this->verificationStatus = $verificationStatus;
  }
  /**
   * @return self::VERIFICATION_STATUS_*
   */
  public function getVerificationStatus()
  {
    return $this->verificationStatus;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SendAs::class, 'Google_Service_Gmail_SendAs');
← Back