All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sforce.soap.metadata.EmbeddedServiceMessagingChannel Maven / Gradle / Ivy

package com.sforce.soap.metadata;

/**
 * This is a generated class for the SObject Enterprise API.
 * Do not edit this file, as your changes will be lost.
 */
public class EmbeddedServiceMessagingChannel implements com.sforce.ws.bind.XMLizable {

    /**
     * Constructor
     */
    public EmbeddedServiceMessagingChannel() {}

    /* Cache the typeInfo instead of declaring static fields throughout*/
    private transient java.util.Map typeInfoCache = new java.util.HashMap();
    private com.sforce.ws.bind.TypeInfo _lookupTypeInfo(String fieldName, String namespace, String name, String typeNS, String type, int minOcc, int maxOcc, boolean elementForm) {
      com.sforce.ws.bind.TypeInfo typeInfo = typeInfoCache.get(fieldName);
      if (typeInfo == null) {
        typeInfo = new com.sforce.ws.bind.TypeInfo(namespace, name, typeNS, type, minOcc, maxOcc, elementForm);
        typeInfoCache.put(fieldName, typeInfo);
      }
      return typeInfo;
    }

    /**
     * element : businessHours of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private boolean businessHours__is_set = false;

    private java.lang.String businessHours;

    public java.lang.String getBusinessHours() {
      return businessHours;
    }

    public void setBusinessHours(java.lang.String businessHours) {
      this.businessHours = businessHours;
      businessHours__is_set = true;
    }

    protected void setBusinessHours(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.isElement(__in, _lookupTypeInfo("businessHours", "http://soap.sforce.com/2006/04/metadata","businessHours","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
        setBusinessHours(__typeMapper.readString(__in, _lookupTypeInfo("businessHours", "http://soap.sforce.com/2006/04/metadata","businessHours","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
      }
    }

    private void writeFieldBusinessHours(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("businessHours", "http://soap.sforce.com/2006/04/metadata","businessHours","http://www.w3.org/2001/XMLSchema","string",0,1,true), businessHours, businessHours__is_set);
    }

    /**
     * element : isEnabled of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private boolean isEnabled__is_set = false;

    private boolean isEnabled;

    public boolean getIsEnabled() {
      return isEnabled;
    }

    public boolean isIsEnabled() {
      return isEnabled;
    }

    public void setIsEnabled(boolean isEnabled) {
      this.isEnabled = isEnabled;
      isEnabled__is_set = true;
    }

    protected void setIsEnabled(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.verifyElement(__in, _lookupTypeInfo("isEnabled", "http://soap.sforce.com/2006/04/metadata","isEnabled","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
        setIsEnabled(__typeMapper.readBoolean(__in, _lookupTypeInfo("isEnabled", "http://soap.sforce.com/2006/04/metadata","isEnabled","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class));
      }
    }

    private void writeFieldIsEnabled(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("isEnabled", "http://soap.sforce.com/2006/04/metadata","isEnabled","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), isEnabled, isEnabled__is_set);
    }

    /**
     * element : messagingChannel of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private boolean messagingChannel__is_set = false;

    private java.lang.String messagingChannel;

    public java.lang.String getMessagingChannel() {
      return messagingChannel;
    }

    public void setMessagingChannel(java.lang.String messagingChannel) {
      this.messagingChannel = messagingChannel;
      messagingChannel__is_set = true;
    }

    protected void setMessagingChannel(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.verifyElement(__in, _lookupTypeInfo("messagingChannel", "http://soap.sforce.com/2006/04/metadata","messagingChannel","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
        setMessagingChannel(__typeMapper.readString(__in, _lookupTypeInfo("messagingChannel", "http://soap.sforce.com/2006/04/metadata","messagingChannel","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
      }
    }

    private void writeFieldMessagingChannel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("messagingChannel", "http://soap.sforce.com/2006/04/metadata","messagingChannel","http://www.w3.org/2001/XMLSchema","string",1,1,true), messagingChannel, messagingChannel__is_set);
    }

    /**
     * element : shouldShowDeliveryReceipts of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private boolean shouldShowDeliveryReceipts__is_set = false;

    private boolean shouldShowDeliveryReceipts;

    public boolean getShouldShowDeliveryReceipts() {
      return shouldShowDeliveryReceipts;
    }

    public boolean isShouldShowDeliveryReceipts() {
      return shouldShowDeliveryReceipts;
    }

    public void setShouldShowDeliveryReceipts(boolean shouldShowDeliveryReceipts) {
      this.shouldShowDeliveryReceipts = shouldShowDeliveryReceipts;
      shouldShowDeliveryReceipts__is_set = true;
    }

    protected void setShouldShowDeliveryReceipts(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.verifyElement(__in, _lookupTypeInfo("shouldShowDeliveryReceipts", "http://soap.sforce.com/2006/04/metadata","shouldShowDeliveryReceipts","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
        setShouldShowDeliveryReceipts(__typeMapper.readBoolean(__in, _lookupTypeInfo("shouldShowDeliveryReceipts", "http://soap.sforce.com/2006/04/metadata","shouldShowDeliveryReceipts","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class));
      }
    }

    private void writeFieldShouldShowDeliveryReceipts(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("shouldShowDeliveryReceipts", "http://soap.sforce.com/2006/04/metadata","shouldShowDeliveryReceipts","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), shouldShowDeliveryReceipts, shouldShowDeliveryReceipts__is_set);
    }

    /**
     * element : shouldShowEmojiSelection of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private boolean shouldShowEmojiSelection__is_set = false;

    private boolean shouldShowEmojiSelection;

    public boolean getShouldShowEmojiSelection() {
      return shouldShowEmojiSelection;
    }

    public boolean isShouldShowEmojiSelection() {
      return shouldShowEmojiSelection;
    }

    public void setShouldShowEmojiSelection(boolean shouldShowEmojiSelection) {
      this.shouldShowEmojiSelection = shouldShowEmojiSelection;
      shouldShowEmojiSelection__is_set = true;
    }

    protected void setShouldShowEmojiSelection(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.verifyElement(__in, _lookupTypeInfo("shouldShowEmojiSelection", "http://soap.sforce.com/2006/04/metadata","shouldShowEmojiSelection","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
        setShouldShowEmojiSelection(__typeMapper.readBoolean(__in, _lookupTypeInfo("shouldShowEmojiSelection", "http://soap.sforce.com/2006/04/metadata","shouldShowEmojiSelection","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class));
      }
    }

    private void writeFieldShouldShowEmojiSelection(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("shouldShowEmojiSelection", "http://soap.sforce.com/2006/04/metadata","shouldShowEmojiSelection","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), shouldShowEmojiSelection, shouldShowEmojiSelection__is_set);
    }

    /**
     * element : shouldShowReadReceipts of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private boolean shouldShowReadReceipts__is_set = false;

    private boolean shouldShowReadReceipts;

    public boolean getShouldShowReadReceipts() {
      return shouldShowReadReceipts;
    }

    public boolean isShouldShowReadReceipts() {
      return shouldShowReadReceipts;
    }

    public void setShouldShowReadReceipts(boolean shouldShowReadReceipts) {
      this.shouldShowReadReceipts = shouldShowReadReceipts;
      shouldShowReadReceipts__is_set = true;
    }

    protected void setShouldShowReadReceipts(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.verifyElement(__in, _lookupTypeInfo("shouldShowReadReceipts", "http://soap.sforce.com/2006/04/metadata","shouldShowReadReceipts","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
        setShouldShowReadReceipts(__typeMapper.readBoolean(__in, _lookupTypeInfo("shouldShowReadReceipts", "http://soap.sforce.com/2006/04/metadata","shouldShowReadReceipts","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class));
      }
    }

    private void writeFieldShouldShowReadReceipts(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("shouldShowReadReceipts", "http://soap.sforce.com/2006/04/metadata","shouldShowReadReceipts","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), shouldShowReadReceipts, shouldShowReadReceipts__is_set);
    }

    /**
     * element : shouldShowTypingIndicators of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private boolean shouldShowTypingIndicators__is_set = false;

    private boolean shouldShowTypingIndicators;

    public boolean getShouldShowTypingIndicators() {
      return shouldShowTypingIndicators;
    }

    public boolean isShouldShowTypingIndicators() {
      return shouldShowTypingIndicators;
    }

    public void setShouldShowTypingIndicators(boolean shouldShowTypingIndicators) {
      this.shouldShowTypingIndicators = shouldShowTypingIndicators;
      shouldShowTypingIndicators__is_set = true;
    }

    protected void setShouldShowTypingIndicators(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.verifyElement(__in, _lookupTypeInfo("shouldShowTypingIndicators", "http://soap.sforce.com/2006/04/metadata","shouldShowTypingIndicators","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
        setShouldShowTypingIndicators(__typeMapper.readBoolean(__in, _lookupTypeInfo("shouldShowTypingIndicators", "http://soap.sforce.com/2006/04/metadata","shouldShowTypingIndicators","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class));
      }
    }

    private void writeFieldShouldShowTypingIndicators(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("shouldShowTypingIndicators", "http://soap.sforce.com/2006/04/metadata","shouldShowTypingIndicators","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), shouldShowTypingIndicators, shouldShowTypingIndicators__is_set);
    }

    /**
     * element : shouldStartNewLineOnEnter of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private boolean shouldStartNewLineOnEnter__is_set = false;

    private boolean shouldStartNewLineOnEnter;

    public boolean getShouldStartNewLineOnEnter() {
      return shouldStartNewLineOnEnter;
    }

    public boolean isShouldStartNewLineOnEnter() {
      return shouldStartNewLineOnEnter;
    }

    public void setShouldStartNewLineOnEnter(boolean shouldStartNewLineOnEnter) {
      this.shouldStartNewLineOnEnter = shouldStartNewLineOnEnter;
      shouldStartNewLineOnEnter__is_set = true;
    }

    protected void setShouldStartNewLineOnEnter(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __in.peekTag();
      if (__typeMapper.verifyElement(__in, _lookupTypeInfo("shouldStartNewLineOnEnter", "http://soap.sforce.com/2006/04/metadata","shouldStartNewLineOnEnter","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
        setShouldStartNewLineOnEnter(__typeMapper.readBoolean(__in, _lookupTypeInfo("shouldStartNewLineOnEnter", "http://soap.sforce.com/2006/04/metadata","shouldStartNewLineOnEnter","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class));
      }
    }

    private void writeFieldShouldStartNewLineOnEnter(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("shouldStartNewLineOnEnter", "http://soap.sforce.com/2006/04/metadata","shouldStartNewLineOnEnter","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), shouldStartNewLineOnEnter, shouldStartNewLineOnEnter__is_set);
    }

    /**
     */
    @Override
    public void write(javax.xml.namespace.QName __element,
        com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
        throws java.io.IOException {
      __out.writeStartTag(__element.getNamespaceURI(), __element.getLocalPart());
      writeFields(__out, __typeMapper);
      __out.writeEndTag(__element.getNamespaceURI(), __element.getLocalPart());
    }

    protected void writeFields(com.sforce.ws.parser.XmlOutputStream __out,
         com.sforce.ws.bind.TypeMapper __typeMapper)
         throws java.io.IOException {
       writeFields1(__out, __typeMapper);
    }

    @Override
    public void load(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __typeMapper.consumeStartTag(__in);
      loadFields(__in, __typeMapper);
      __typeMapper.consumeEndTag(__in);
    }

    protected void loadFields(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
        loadFields1(__in, __typeMapper);
    }

    @Override
    public String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder();
      sb.append("[EmbeddedServiceMessagingChannel ");
      toString1(sb);

      sb.append("]\n");
      return sb.toString();
    }

    private void toStringHelper(StringBuilder sb, String name, Object value) {
      sb.append(' ').append(name).append("='").append(com.sforce.ws.util.Verbose.toString(value)).append("'\n");
    }

    private void writeFields1(com.sforce.ws.parser.XmlOutputStream __out,
         com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      writeFieldBusinessHours(__out, __typeMapper);
      writeFieldIsEnabled(__out, __typeMapper);
      writeFieldMessagingChannel(__out, __typeMapper);
      writeFieldShouldShowDeliveryReceipts(__out, __typeMapper);
      writeFieldShouldShowEmojiSelection(__out, __typeMapper);
      writeFieldShouldShowReadReceipts(__out, __typeMapper);
      writeFieldShouldShowTypingIndicators(__out, __typeMapper);
      writeFieldShouldStartNewLineOnEnter(__out, __typeMapper);
    }

    private void loadFields1(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      setBusinessHours(__in, __typeMapper);
      setIsEnabled(__in, __typeMapper);
      setMessagingChannel(__in, __typeMapper);
      setShouldShowDeliveryReceipts(__in, __typeMapper);
      setShouldShowEmojiSelection(__in, __typeMapper);
      setShouldShowReadReceipts(__in, __typeMapper);
      setShouldShowTypingIndicators(__in, __typeMapper);
      setShouldStartNewLineOnEnter(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "businessHours", businessHours);
      toStringHelper(sb, "isEnabled", isEnabled);
      toStringHelper(sb, "messagingChannel", messagingChannel);
      toStringHelper(sb, "shouldShowDeliveryReceipts", shouldShowDeliveryReceipts);
      toStringHelper(sb, "shouldShowEmojiSelection", shouldShowEmojiSelection);
      toStringHelper(sb, "shouldShowReadReceipts", shouldShowReadReceipts);
      toStringHelper(sb, "shouldShowTypingIndicators", shouldShowTypingIndicators);
      toStringHelper(sb, "shouldStartNewLineOnEnter", shouldStartNewLineOnEnter);
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy