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

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

There is a newer version: 62.0.0
Show newest version
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 VoiceSettings extends com.sforce.soap.metadata.Metadata {

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

    /* 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 : enableCallDisposition of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private boolean enableCallDisposition__is_set = false;

    private boolean enableCallDisposition;

    public boolean getEnableCallDisposition() {
      return enableCallDisposition;
    }

    public boolean isEnableCallDisposition() {
      return enableCallDisposition;
    }

    public void setEnableCallDisposition(boolean enableCallDisposition) {
      this.enableCallDisposition = enableCallDisposition;
      enableCallDisposition__is_set = true;
    }

    protected void setEnableCallDisposition(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("enableCallDisposition", "http://soap.sforce.com/2006/04/metadata","enableCallDisposition","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
        setEnableCallDisposition(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableCallDisposition", "http://soap.sforce.com/2006/04/metadata","enableCallDisposition","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
      }
    }

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

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

    private boolean enableConsentReminder;

    public boolean getEnableConsentReminder() {
      return enableConsentReminder;
    }

    public boolean isEnableConsentReminder() {
      return enableConsentReminder;
    }

    public void setEnableConsentReminder(boolean enableConsentReminder) {
      this.enableConsentReminder = enableConsentReminder;
      enableConsentReminder__is_set = true;
    }

    protected void setEnableConsentReminder(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("enableConsentReminder", "http://soap.sforce.com/2006/04/metadata","enableConsentReminder","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
        setEnableConsentReminder(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableConsentReminder", "http://soap.sforce.com/2006/04/metadata","enableConsentReminder","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
      }
    }

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

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

    private boolean enableDefaultRecording;

    public boolean getEnableDefaultRecording() {
      return enableDefaultRecording;
    }

    public boolean isEnableDefaultRecording() {
      return enableDefaultRecording;
    }

    public void setEnableDefaultRecording(boolean enableDefaultRecording) {
      this.enableDefaultRecording = enableDefaultRecording;
      enableDefaultRecording__is_set = true;
    }

    protected void setEnableDefaultRecording(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("enableDefaultRecording", "http://soap.sforce.com/2006/04/metadata","enableDefaultRecording","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
        setEnableDefaultRecording(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableDefaultRecording", "http://soap.sforce.com/2006/04/metadata","enableDefaultRecording","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
      }
    }

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

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

    private boolean enableVoiceCallList;

    public boolean getEnableVoiceCallList() {
      return enableVoiceCallList;
    }

    public boolean isEnableVoiceCallList() {
      return enableVoiceCallList;
    }

    public void setEnableVoiceCallList(boolean enableVoiceCallList) {
      this.enableVoiceCallList = enableVoiceCallList;
      enableVoiceCallList__is_set = true;
    }

    protected void setEnableVoiceCallList(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("enableVoiceCallList", "http://soap.sforce.com/2006/04/metadata","enableVoiceCallList","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
        setEnableVoiceCallList(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableVoiceCallList", "http://soap.sforce.com/2006/04/metadata","enableVoiceCallList","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
      }
    }

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

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

    private boolean enableVoiceCallRecording;

    public boolean getEnableVoiceCallRecording() {
      return enableVoiceCallRecording;
    }

    public boolean isEnableVoiceCallRecording() {
      return enableVoiceCallRecording;
    }

    public void setEnableVoiceCallRecording(boolean enableVoiceCallRecording) {
      this.enableVoiceCallRecording = enableVoiceCallRecording;
      enableVoiceCallRecording__is_set = true;
    }

    protected void setEnableVoiceCallRecording(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("enableVoiceCallRecording", "http://soap.sforce.com/2006/04/metadata","enableVoiceCallRecording","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
        setEnableVoiceCallRecording(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableVoiceCallRecording", "http://soap.sforce.com/2006/04/metadata","enableVoiceCallRecording","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
      }
    }

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

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

    private boolean enableVoiceCoaching;

    public boolean getEnableVoiceCoaching() {
      return enableVoiceCoaching;
    }

    public boolean isEnableVoiceCoaching() {
      return enableVoiceCoaching;
    }

    public void setEnableVoiceCoaching(boolean enableVoiceCoaching) {
      this.enableVoiceCoaching = enableVoiceCoaching;
      enableVoiceCoaching__is_set = true;
    }

    protected void setEnableVoiceCoaching(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("enableVoiceCoaching", "http://soap.sforce.com/2006/04/metadata","enableVoiceCoaching","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
        setEnableVoiceCoaching(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableVoiceCoaching", "http://soap.sforce.com/2006/04/metadata","enableVoiceCoaching","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
      }
    }

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

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

    private boolean enableVoiceConferencing;

    public boolean getEnableVoiceConferencing() {
      return enableVoiceConferencing;
    }

    public boolean isEnableVoiceConferencing() {
      return enableVoiceConferencing;
    }

    public void setEnableVoiceConferencing(boolean enableVoiceConferencing) {
      this.enableVoiceConferencing = enableVoiceConferencing;
      enableVoiceConferencing__is_set = true;
    }

    protected void setEnableVoiceConferencing(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("enableVoiceConferencing", "http://soap.sforce.com/2006/04/metadata","enableVoiceConferencing","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
        setEnableVoiceConferencing(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableVoiceConferencing", "http://soap.sforce.com/2006/04/metadata","enableVoiceConferencing","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
      }
    }

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

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

    private boolean enableVoiceLocalPresence;

    public boolean getEnableVoiceLocalPresence() {
      return enableVoiceLocalPresence;
    }

    public boolean isEnableVoiceLocalPresence() {
      return enableVoiceLocalPresence;
    }

    public void setEnableVoiceLocalPresence(boolean enableVoiceLocalPresence) {
      this.enableVoiceLocalPresence = enableVoiceLocalPresence;
      enableVoiceLocalPresence__is_set = true;
    }

    protected void setEnableVoiceLocalPresence(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("enableVoiceLocalPresence", "http://soap.sforce.com/2006/04/metadata","enableVoiceLocalPresence","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
        setEnableVoiceLocalPresence(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableVoiceLocalPresence", "http://soap.sforce.com/2006/04/metadata","enableVoiceLocalPresence","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
      }
    }

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

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

    private boolean enableVoiceMail;

    public boolean getEnableVoiceMail() {
      return enableVoiceMail;
    }

    public boolean isEnableVoiceMail() {
      return enableVoiceMail;
    }

    public void setEnableVoiceMail(boolean enableVoiceMail) {
      this.enableVoiceMail = enableVoiceMail;
      enableVoiceMail__is_set = true;
    }

    protected void setEnableVoiceMail(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("enableVoiceMail", "http://soap.sforce.com/2006/04/metadata","enableVoiceMail","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
        setEnableVoiceMail(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableVoiceMail", "http://soap.sforce.com/2006/04/metadata","enableVoiceMail","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
      }
    }

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

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

    private boolean enableVoiceMailDrop;

    public boolean getEnableVoiceMailDrop() {
      return enableVoiceMailDrop;
    }

    public boolean isEnableVoiceMailDrop() {
      return enableVoiceMailDrop;
    }

    public void setEnableVoiceMailDrop(boolean enableVoiceMailDrop) {
      this.enableVoiceMailDrop = enableVoiceMailDrop;
      enableVoiceMailDrop__is_set = true;
    }

    protected void setEnableVoiceMailDrop(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("enableVoiceMailDrop", "http://soap.sforce.com/2006/04/metadata","enableVoiceMailDrop","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
        setEnableVoiceMailDrop(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableVoiceMailDrop", "http://soap.sforce.com/2006/04/metadata","enableVoiceMailDrop","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
      }
    }

    private void writeFieldEnableVoiceMailDrop(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("enableVoiceMailDrop", "http://soap.sforce.com/2006/04/metadata","enableVoiceMailDrop","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enableVoiceMailDrop, enableVoiceMailDrop__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());
      __typeMapper.writeXsiType(__out, "http://soap.sforce.com/2006/04/metadata", "VoiceSettings");
      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 {
       super.writeFields(__out, __typeMapper);
       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 {
        super.loadFields(__in, __typeMapper);
        loadFields1(__in, __typeMapper);
    }

    @Override
    public String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder();
      sb.append("[VoiceSettings ");
      sb.append(super.toString());
      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 {
      writeFieldEnableCallDisposition(__out, __typeMapper);
      writeFieldEnableConsentReminder(__out, __typeMapper);
      writeFieldEnableDefaultRecording(__out, __typeMapper);
      writeFieldEnableVoiceCallList(__out, __typeMapper);
      writeFieldEnableVoiceCallRecording(__out, __typeMapper);
      writeFieldEnableVoiceCoaching(__out, __typeMapper);
      writeFieldEnableVoiceConferencing(__out, __typeMapper);
      writeFieldEnableVoiceLocalPresence(__out, __typeMapper);
      writeFieldEnableVoiceMail(__out, __typeMapper);
      writeFieldEnableVoiceMailDrop(__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 {
      setEnableCallDisposition(__in, __typeMapper);
      setEnableConsentReminder(__in, __typeMapper);
      setEnableDefaultRecording(__in, __typeMapper);
      setEnableVoiceCallList(__in, __typeMapper);
      setEnableVoiceCallRecording(__in, __typeMapper);
      setEnableVoiceCoaching(__in, __typeMapper);
      setEnableVoiceConferencing(__in, __typeMapper);
      setEnableVoiceLocalPresence(__in, __typeMapper);
      setEnableVoiceMail(__in, __typeMapper);
      setEnableVoiceMailDrop(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "enableCallDisposition", enableCallDisposition);
      toStringHelper(sb, "enableConsentReminder", enableConsentReminder);
      toStringHelper(sb, "enableDefaultRecording", enableDefaultRecording);
      toStringHelper(sb, "enableVoiceCallList", enableVoiceCallList);
      toStringHelper(sb, "enableVoiceCallRecording", enableVoiceCallRecording);
      toStringHelper(sb, "enableVoiceCoaching", enableVoiceCoaching);
      toStringHelper(sb, "enableVoiceConferencing", enableVoiceConferencing);
      toStringHelper(sb, "enableVoiceLocalPresence", enableVoiceLocalPresence);
      toStringHelper(sb, "enableVoiceMail", enableVoiceMail);
      toStringHelper(sb, "enableVoiceMailDrop", enableVoiceMailDrop);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy