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

com.sforce.soap.metadata.CustomObject 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 CustomObject extends com.sforce.soap.metadata.Metadata {

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

    /* 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 : actionOverrides of type {http://soap.sforce.com/2006/04/metadata}ActionOverride
     * java type: com.sforce.soap.metadata.ActionOverride[]
     */
    private boolean actionOverrides__is_set = false;

    private com.sforce.soap.metadata.ActionOverride[] actionOverrides = new com.sforce.soap.metadata.ActionOverride[0];

    public com.sforce.soap.metadata.ActionOverride[] getActionOverrides() {
      return actionOverrides;
    }

    public void setActionOverrides(com.sforce.soap.metadata.ActionOverride[] actionOverrides) {
      this.actionOverrides = actionOverrides;
      actionOverrides__is_set = true;
    }

    protected void setActionOverrides(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("actionOverrides", "http://soap.sforce.com/2006/04/metadata","actionOverrides","http://soap.sforce.com/2006/04/metadata","ActionOverride",0,-1,true))) {
        setActionOverrides((com.sforce.soap.metadata.ActionOverride[])__typeMapper.readObject(__in, _lookupTypeInfo("actionOverrides", "http://soap.sforce.com/2006/04/metadata","actionOverrides","http://soap.sforce.com/2006/04/metadata","ActionOverride",0,-1,true), com.sforce.soap.metadata.ActionOverride[].class));
      }
    }

    private void writeFieldActionOverrides(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("actionOverrides", "http://soap.sforce.com/2006/04/metadata","actionOverrides","http://soap.sforce.com/2006/04/metadata","ActionOverride",0,-1,true), actionOverrides, actionOverrides__is_set);
    }

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

    private boolean allowInChatterGroups;

    public boolean getAllowInChatterGroups() {
      return allowInChatterGroups;
    }

    public boolean isAllowInChatterGroups() {
      return allowInChatterGroups;
    }

    public void setAllowInChatterGroups(boolean allowInChatterGroups) {
      this.allowInChatterGroups = allowInChatterGroups;
      allowInChatterGroups__is_set = true;
    }

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

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

    /**
     * element : articleTypeChannelDisplay of type {http://soap.sforce.com/2006/04/metadata}ArticleTypeChannelDisplay
     * java type: com.sforce.soap.metadata.ArticleTypeChannelDisplay
     */
    private boolean articleTypeChannelDisplay__is_set = false;

    private com.sforce.soap.metadata.ArticleTypeChannelDisplay articleTypeChannelDisplay;

    public com.sforce.soap.metadata.ArticleTypeChannelDisplay getArticleTypeChannelDisplay() {
      return articleTypeChannelDisplay;
    }

    public void setArticleTypeChannelDisplay(com.sforce.soap.metadata.ArticleTypeChannelDisplay articleTypeChannelDisplay) {
      this.articleTypeChannelDisplay = articleTypeChannelDisplay;
      articleTypeChannelDisplay__is_set = true;
    }

    protected void setArticleTypeChannelDisplay(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("articleTypeChannelDisplay", "http://soap.sforce.com/2006/04/metadata","articleTypeChannelDisplay","http://soap.sforce.com/2006/04/metadata","ArticleTypeChannelDisplay",0,1,true))) {
        setArticleTypeChannelDisplay((com.sforce.soap.metadata.ArticleTypeChannelDisplay)__typeMapper.readObject(__in, _lookupTypeInfo("articleTypeChannelDisplay", "http://soap.sforce.com/2006/04/metadata","articleTypeChannelDisplay","http://soap.sforce.com/2006/04/metadata","ArticleTypeChannelDisplay",0,1,true), com.sforce.soap.metadata.ArticleTypeChannelDisplay.class));
      }
    }

    private void writeFieldArticleTypeChannelDisplay(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("articleTypeChannelDisplay", "http://soap.sforce.com/2006/04/metadata","articleTypeChannelDisplay","http://soap.sforce.com/2006/04/metadata","ArticleTypeChannelDisplay",0,1,true), articleTypeChannelDisplay, articleTypeChannelDisplay__is_set);
    }

    /**
     * element : businessProcesses of type {http://soap.sforce.com/2006/04/metadata}BusinessProcess
     * java type: com.sforce.soap.metadata.BusinessProcess[]
     */
    private boolean businessProcesses__is_set = false;

    private com.sforce.soap.metadata.BusinessProcess[] businessProcesses = new com.sforce.soap.metadata.BusinessProcess[0];

    public com.sforce.soap.metadata.BusinessProcess[] getBusinessProcesses() {
      return businessProcesses;
    }

    public void setBusinessProcesses(com.sforce.soap.metadata.BusinessProcess[] businessProcesses) {
      this.businessProcesses = businessProcesses;
      businessProcesses__is_set = true;
    }

    protected void setBusinessProcesses(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("businessProcesses", "http://soap.sforce.com/2006/04/metadata","businessProcesses","http://soap.sforce.com/2006/04/metadata","BusinessProcess",0,-1,true))) {
        setBusinessProcesses((com.sforce.soap.metadata.BusinessProcess[])__typeMapper.readObject(__in, _lookupTypeInfo("businessProcesses", "http://soap.sforce.com/2006/04/metadata","businessProcesses","http://soap.sforce.com/2006/04/metadata","BusinessProcess",0,-1,true), com.sforce.soap.metadata.BusinessProcess[].class));
      }
    }

    private void writeFieldBusinessProcesses(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("businessProcesses", "http://soap.sforce.com/2006/04/metadata","businessProcesses","http://soap.sforce.com/2006/04/metadata","BusinessProcess",0,-1,true), businessProcesses, businessProcesses__is_set);
    }

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

    private java.lang.String compactLayoutAssignment;

    public java.lang.String getCompactLayoutAssignment() {
      return compactLayoutAssignment;
    }

    public void setCompactLayoutAssignment(java.lang.String compactLayoutAssignment) {
      this.compactLayoutAssignment = compactLayoutAssignment;
      compactLayoutAssignment__is_set = true;
    }

    protected void setCompactLayoutAssignment(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("compactLayoutAssignment", "http://soap.sforce.com/2006/04/metadata","compactLayoutAssignment","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
        setCompactLayoutAssignment(__typeMapper.readString(__in, _lookupTypeInfo("compactLayoutAssignment", "http://soap.sforce.com/2006/04/metadata","compactLayoutAssignment","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
      }
    }

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

    /**
     * element : compactLayouts of type {http://soap.sforce.com/2006/04/metadata}CompactLayout
     * java type: com.sforce.soap.metadata.CompactLayout[]
     */
    private boolean compactLayouts__is_set = false;

    private com.sforce.soap.metadata.CompactLayout[] compactLayouts = new com.sforce.soap.metadata.CompactLayout[0];

    public com.sforce.soap.metadata.CompactLayout[] getCompactLayouts() {
      return compactLayouts;
    }

    public void setCompactLayouts(com.sforce.soap.metadata.CompactLayout[] compactLayouts) {
      this.compactLayouts = compactLayouts;
      compactLayouts__is_set = true;
    }

    protected void setCompactLayouts(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("compactLayouts", "http://soap.sforce.com/2006/04/metadata","compactLayouts","http://soap.sforce.com/2006/04/metadata","CompactLayout",0,-1,true))) {
        setCompactLayouts((com.sforce.soap.metadata.CompactLayout[])__typeMapper.readObject(__in, _lookupTypeInfo("compactLayouts", "http://soap.sforce.com/2006/04/metadata","compactLayouts","http://soap.sforce.com/2006/04/metadata","CompactLayout",0,-1,true), com.sforce.soap.metadata.CompactLayout[].class));
      }
    }

    private void writeFieldCompactLayouts(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("compactLayouts", "http://soap.sforce.com/2006/04/metadata","compactLayouts","http://soap.sforce.com/2006/04/metadata","CompactLayout",0,-1,true), compactLayouts, compactLayouts__is_set);
    }

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

    private java.lang.String customHelp;

    public java.lang.String getCustomHelp() {
      return customHelp;
    }

    public void setCustomHelp(java.lang.String customHelp) {
      this.customHelp = customHelp;
      customHelp__is_set = true;
    }

    protected void setCustomHelp(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("customHelp", "http://soap.sforce.com/2006/04/metadata","customHelp","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
        setCustomHelp(__typeMapper.readString(__in, _lookupTypeInfo("customHelp", "http://soap.sforce.com/2006/04/metadata","customHelp","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
      }
    }

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

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

    private java.lang.String customHelpPage;

    public java.lang.String getCustomHelpPage() {
      return customHelpPage;
    }

    public void setCustomHelpPage(java.lang.String customHelpPage) {
      this.customHelpPage = customHelpPage;
      customHelpPage__is_set = true;
    }

    protected void setCustomHelpPage(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("customHelpPage", "http://soap.sforce.com/2006/04/metadata","customHelpPage","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
        setCustomHelpPage(__typeMapper.readString(__in, _lookupTypeInfo("customHelpPage", "http://soap.sforce.com/2006/04/metadata","customHelpPage","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
      }
    }

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

    /**
     * element : customSettingsType of type {http://soap.sforce.com/2006/04/metadata}CustomSettingsType
     * java type: com.sforce.soap.metadata.CustomSettingsType
     */
    private boolean customSettingsType__is_set = false;

    private com.sforce.soap.metadata.CustomSettingsType customSettingsType;

    public com.sforce.soap.metadata.CustomSettingsType getCustomSettingsType() {
      return customSettingsType;
    }

    public void setCustomSettingsType(com.sforce.soap.metadata.CustomSettingsType customSettingsType) {
      this.customSettingsType = customSettingsType;
      customSettingsType__is_set = true;
    }

    protected void setCustomSettingsType(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("customSettingsType", "http://soap.sforce.com/2006/04/metadata","customSettingsType","http://soap.sforce.com/2006/04/metadata","CustomSettingsType",0,1,true))) {
        setCustomSettingsType((com.sforce.soap.metadata.CustomSettingsType)__typeMapper.readObject(__in, _lookupTypeInfo("customSettingsType", "http://soap.sforce.com/2006/04/metadata","customSettingsType","http://soap.sforce.com/2006/04/metadata","CustomSettingsType",0,1,true), com.sforce.soap.metadata.CustomSettingsType.class));
      }
    }

    private void writeFieldCustomSettingsType(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("customSettingsType", "http://soap.sforce.com/2006/04/metadata","customSettingsType","http://soap.sforce.com/2006/04/metadata","CustomSettingsType",0,1,true), customSettingsType, customSettingsType__is_set);
    }

    /**
     * element : deploymentStatus of type {http://soap.sforce.com/2006/04/metadata}DeploymentStatus
     * java type: com.sforce.soap.metadata.DeploymentStatus
     */
    private boolean deploymentStatus__is_set = false;

    private com.sforce.soap.metadata.DeploymentStatus deploymentStatus;

    public com.sforce.soap.metadata.DeploymentStatus getDeploymentStatus() {
      return deploymentStatus;
    }

    public void setDeploymentStatus(com.sforce.soap.metadata.DeploymentStatus deploymentStatus) {
      this.deploymentStatus = deploymentStatus;
      deploymentStatus__is_set = true;
    }

    protected void setDeploymentStatus(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("deploymentStatus", "http://soap.sforce.com/2006/04/metadata","deploymentStatus","http://soap.sforce.com/2006/04/metadata","DeploymentStatus",0,1,true))) {
        setDeploymentStatus((com.sforce.soap.metadata.DeploymentStatus)__typeMapper.readObject(__in, _lookupTypeInfo("deploymentStatus", "http://soap.sforce.com/2006/04/metadata","deploymentStatus","http://soap.sforce.com/2006/04/metadata","DeploymentStatus",0,1,true), com.sforce.soap.metadata.DeploymentStatus.class));
      }
    }

    private void writeFieldDeploymentStatus(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("deploymentStatus", "http://soap.sforce.com/2006/04/metadata","deploymentStatus","http://soap.sforce.com/2006/04/metadata","DeploymentStatus",0,1,true), deploymentStatus, deploymentStatus__is_set);
    }

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

    private boolean deprecated;

    public boolean getDeprecated() {
      return deprecated;
    }

    public boolean isDeprecated() {
      return deprecated;
    }

    public void setDeprecated(boolean deprecated) {
      this.deprecated = deprecated;
      deprecated__is_set = true;
    }

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

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

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

    private java.lang.String description;

    public java.lang.String getDescription() {
      return description;
    }

    public void setDescription(java.lang.String description) {
      this.description = description;
      description__is_set = true;
    }

    protected void setDescription(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("description", "http://soap.sforce.com/2006/04/metadata","description","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
        setDescription(__typeMapper.readString(__in, _lookupTypeInfo("description", "http://soap.sforce.com/2006/04/metadata","description","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
      }
    }

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

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

    private boolean enableActivities;

    public boolean getEnableActivities() {
      return enableActivities;
    }

    public boolean isEnableActivities() {
      return enableActivities;
    }

    public void setEnableActivities(boolean enableActivities) {
      this.enableActivities = enableActivities;
      enableActivities__is_set = true;
    }

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

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

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

    private boolean enableBulkApi;

    public boolean getEnableBulkApi() {
      return enableBulkApi;
    }

    public boolean isEnableBulkApi() {
      return enableBulkApi;
    }

    public void setEnableBulkApi(boolean enableBulkApi) {
      this.enableBulkApi = enableBulkApi;
      enableBulkApi__is_set = true;
    }

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

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

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

    private boolean enableDataTranslation;

    public boolean getEnableDataTranslation() {
      return enableDataTranslation;
    }

    public boolean isEnableDataTranslation() {
      return enableDataTranslation;
    }

    public void setEnableDataTranslation(boolean enableDataTranslation) {
      this.enableDataTranslation = enableDataTranslation;
      enableDataTranslation__is_set = true;
    }

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

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

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

    private boolean enableDivisions;

    public boolean getEnableDivisions() {
      return enableDivisions;
    }

    public boolean isEnableDivisions() {
      return enableDivisions;
    }

    public void setEnableDivisions(boolean enableDivisions) {
      this.enableDivisions = enableDivisions;
      enableDivisions__is_set = true;
    }

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

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

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

    private boolean enableEnhancedLookup;

    public boolean getEnableEnhancedLookup() {
      return enableEnhancedLookup;
    }

    public boolean isEnableEnhancedLookup() {
      return enableEnhancedLookup;
    }

    public void setEnableEnhancedLookup(boolean enableEnhancedLookup) {
      this.enableEnhancedLookup = enableEnhancedLookup;
      enableEnhancedLookup__is_set = true;
    }

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

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

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

    private boolean enableFeeds;

    public boolean getEnableFeeds() {
      return enableFeeds;
    }

    public boolean isEnableFeeds() {
      return enableFeeds;
    }

    public void setEnableFeeds(boolean enableFeeds) {
      this.enableFeeds = enableFeeds;
      enableFeeds__is_set = true;
    }

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

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

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

    private boolean enableHistory;

    public boolean getEnableHistory() {
      return enableHistory;
    }

    public boolean isEnableHistory() {
      return enableHistory;
    }

    public void setEnableHistory(boolean enableHistory) {
      this.enableHistory = enableHistory;
      enableHistory__is_set = true;
    }

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

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

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

    private boolean enableLicensing;

    public boolean getEnableLicensing() {
      return enableLicensing;
    }

    public boolean isEnableLicensing() {
      return enableLicensing;
    }

    public void setEnableLicensing(boolean enableLicensing) {
      this.enableLicensing = enableLicensing;
      enableLicensing__is_set = true;
    }

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

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

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

    private boolean enablePublishStatusTracking;

    public boolean getEnablePublishStatusTracking() {
      return enablePublishStatusTracking;
    }

    public boolean isEnablePublishStatusTracking() {
      return enablePublishStatusTracking;
    }

    public void setEnablePublishStatusTracking(boolean enablePublishStatusTracking) {
      this.enablePublishStatusTracking = enablePublishStatusTracking;
      enablePublishStatusTracking__is_set = true;
    }

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

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

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

    private boolean enableReports;

    public boolean getEnableReports() {
      return enableReports;
    }

    public boolean isEnableReports() {
      return enableReports;
    }

    public void setEnableReports(boolean enableReports) {
      this.enableReports = enableReports;
      enableReports__is_set = true;
    }

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

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

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

    private boolean enableSearch;

    public boolean getEnableSearch() {
      return enableSearch;
    }

    public boolean isEnableSearch() {
      return enableSearch;
    }

    public void setEnableSearch(boolean enableSearch) {
      this.enableSearch = enableSearch;
      enableSearch__is_set = true;
    }

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

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

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

    private boolean enableSharing;

    public boolean getEnableSharing() {
      return enableSharing;
    }

    public boolean isEnableSharing() {
      return enableSharing;
    }

    public void setEnableSharing(boolean enableSharing) {
      this.enableSharing = enableSharing;
      enableSharing__is_set = true;
    }

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

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

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

    private boolean enableStreamingApi;

    public boolean getEnableStreamingApi() {
      return enableStreamingApi;
    }

    public boolean isEnableStreamingApi() {
      return enableStreamingApi;
    }

    public void setEnableStreamingApi(boolean enableStreamingApi) {
      this.enableStreamingApi = enableStreamingApi;
      enableStreamingApi__is_set = true;
    }

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

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

    /**
     * element : eventType of type {http://soap.sforce.com/2006/04/metadata}PlatformEventType
     * java type: com.sforce.soap.metadata.PlatformEventType
     */
    private boolean eventType__is_set = false;

    private com.sforce.soap.metadata.PlatformEventType eventType;

    public com.sforce.soap.metadata.PlatformEventType getEventType() {
      return eventType;
    }

    public void setEventType(com.sforce.soap.metadata.PlatformEventType eventType) {
      this.eventType = eventType;
      eventType__is_set = true;
    }

    protected void setEventType(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("eventType", "http://soap.sforce.com/2006/04/metadata","eventType","http://soap.sforce.com/2006/04/metadata","PlatformEventType",0,1,true))) {
        setEventType((com.sforce.soap.metadata.PlatformEventType)__typeMapper.readObject(__in, _lookupTypeInfo("eventType", "http://soap.sforce.com/2006/04/metadata","eventType","http://soap.sforce.com/2006/04/metadata","PlatformEventType",0,1,true), com.sforce.soap.metadata.PlatformEventType.class));
      }
    }

    private void writeFieldEventType(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("eventType", "http://soap.sforce.com/2006/04/metadata","eventType","http://soap.sforce.com/2006/04/metadata","PlatformEventType",0,1,true), eventType, eventType__is_set);
    }

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

    private java.lang.String externalDataSource;

    public java.lang.String getExternalDataSource() {
      return externalDataSource;
    }

    public void setExternalDataSource(java.lang.String externalDataSource) {
      this.externalDataSource = externalDataSource;
      externalDataSource__is_set = true;
    }

    protected void setExternalDataSource(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("externalDataSource", "http://soap.sforce.com/2006/04/metadata","externalDataSource","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
        setExternalDataSource(__typeMapper.readString(__in, _lookupTypeInfo("externalDataSource", "http://soap.sforce.com/2006/04/metadata","externalDataSource","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
      }
    }

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

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

    private java.lang.String externalName;

    public java.lang.String getExternalName() {
      return externalName;
    }

    public void setExternalName(java.lang.String externalName) {
      this.externalName = externalName;
      externalName__is_set = true;
    }

    protected void setExternalName(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("externalName", "http://soap.sforce.com/2006/04/metadata","externalName","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
        setExternalName(__typeMapper.readString(__in, _lookupTypeInfo("externalName", "http://soap.sforce.com/2006/04/metadata","externalName","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
      }
    }

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

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

    private java.lang.String externalRepository;

    public java.lang.String getExternalRepository() {
      return externalRepository;
    }

    public void setExternalRepository(java.lang.String externalRepository) {
      this.externalRepository = externalRepository;
      externalRepository__is_set = true;
    }

    protected void setExternalRepository(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("externalRepository", "http://soap.sforce.com/2006/04/metadata","externalRepository","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
        setExternalRepository(__typeMapper.readString(__in, _lookupTypeInfo("externalRepository", "http://soap.sforce.com/2006/04/metadata","externalRepository","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
      }
    }

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

    /**
     * element : externalSharingModel of type {http://soap.sforce.com/2006/04/metadata}SharingModel
     * java type: com.sforce.soap.metadata.SharingModel
     */
    private boolean externalSharingModel__is_set = false;

    private com.sforce.soap.metadata.SharingModel externalSharingModel;

    public com.sforce.soap.metadata.SharingModel getExternalSharingModel() {
      return externalSharingModel;
    }

    public void setExternalSharingModel(com.sforce.soap.metadata.SharingModel externalSharingModel) {
      this.externalSharingModel = externalSharingModel;
      externalSharingModel__is_set = true;
    }

    protected void setExternalSharingModel(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("externalSharingModel", "http://soap.sforce.com/2006/04/metadata","externalSharingModel","http://soap.sforce.com/2006/04/metadata","SharingModel",0,1,true))) {
        setExternalSharingModel((com.sforce.soap.metadata.SharingModel)__typeMapper.readObject(__in, _lookupTypeInfo("externalSharingModel", "http://soap.sforce.com/2006/04/metadata","externalSharingModel","http://soap.sforce.com/2006/04/metadata","SharingModel",0,1,true), com.sforce.soap.metadata.SharingModel.class));
      }
    }

    private void writeFieldExternalSharingModel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("externalSharingModel", "http://soap.sforce.com/2006/04/metadata","externalSharingModel","http://soap.sforce.com/2006/04/metadata","SharingModel",0,1,true), externalSharingModel, externalSharingModel__is_set);
    }

    /**
     * element : fieldSets of type {http://soap.sforce.com/2006/04/metadata}FieldSet
     * java type: com.sforce.soap.metadata.FieldSet[]
     */
    private boolean fieldSets__is_set = false;

    private com.sforce.soap.metadata.FieldSet[] fieldSets = new com.sforce.soap.metadata.FieldSet[0];

    public com.sforce.soap.metadata.FieldSet[] getFieldSets() {
      return fieldSets;
    }

    public void setFieldSets(com.sforce.soap.metadata.FieldSet[] fieldSets) {
      this.fieldSets = fieldSets;
      fieldSets__is_set = true;
    }

    protected void setFieldSets(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("fieldSets", "http://soap.sforce.com/2006/04/metadata","fieldSets","http://soap.sforce.com/2006/04/metadata","FieldSet",0,-1,true))) {
        setFieldSets((com.sforce.soap.metadata.FieldSet[])__typeMapper.readObject(__in, _lookupTypeInfo("fieldSets", "http://soap.sforce.com/2006/04/metadata","fieldSets","http://soap.sforce.com/2006/04/metadata","FieldSet",0,-1,true), com.sforce.soap.metadata.FieldSet[].class));
      }
    }

    private void writeFieldFieldSets(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("fieldSets", "http://soap.sforce.com/2006/04/metadata","fieldSets","http://soap.sforce.com/2006/04/metadata","FieldSet",0,-1,true), fieldSets, fieldSets__is_set);
    }

    /**
     * element : fields of type {http://soap.sforce.com/2006/04/metadata}CustomField
     * java type: com.sforce.soap.metadata.CustomField[]
     */
    private boolean fields__is_set = false;

    private com.sforce.soap.metadata.CustomField[] fields = new com.sforce.soap.metadata.CustomField[0];

    public com.sforce.soap.metadata.CustomField[] getFields() {
      return fields;
    }

    public void setFields(com.sforce.soap.metadata.CustomField[] fields) {
      this.fields = fields;
      fields__is_set = true;
    }

    protected void setFields(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("fields", "http://soap.sforce.com/2006/04/metadata","fields","http://soap.sforce.com/2006/04/metadata","CustomField",0,-1,true))) {
        setFields((com.sforce.soap.metadata.CustomField[])__typeMapper.readObject(__in, _lookupTypeInfo("fields", "http://soap.sforce.com/2006/04/metadata","fields","http://soap.sforce.com/2006/04/metadata","CustomField",0,-1,true), com.sforce.soap.metadata.CustomField[].class));
      }
    }

    private void writeFieldFields(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("fields", "http://soap.sforce.com/2006/04/metadata","fields","http://soap.sforce.com/2006/04/metadata","CustomField",0,-1,true), fields, fields__is_set);
    }

    /**
     * element : gender of type {http://soap.sforce.com/2006/04/metadata}Gender
     * java type: com.sforce.soap.metadata.Gender
     */
    private boolean gender__is_set = false;

    private com.sforce.soap.metadata.Gender gender;

    public com.sforce.soap.metadata.Gender getGender() {
      return gender;
    }

    public void setGender(com.sforce.soap.metadata.Gender gender) {
      this.gender = gender;
      gender__is_set = true;
    }

    protected void setGender(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("gender", "http://soap.sforce.com/2006/04/metadata","gender","http://soap.sforce.com/2006/04/metadata","Gender",0,1,true))) {
        setGender((com.sforce.soap.metadata.Gender)__typeMapper.readObject(__in, _lookupTypeInfo("gender", "http://soap.sforce.com/2006/04/metadata","gender","http://soap.sforce.com/2006/04/metadata","Gender",0,1,true), com.sforce.soap.metadata.Gender.class));
      }
    }

    private void writeFieldGender(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("gender", "http://soap.sforce.com/2006/04/metadata","gender","http://soap.sforce.com/2006/04/metadata","Gender",0,1,true), gender, gender__is_set);
    }

    /**
     * element : historyRetentionPolicy of type {http://soap.sforce.com/2006/04/metadata}HistoryRetentionPolicy
     * java type: com.sforce.soap.metadata.HistoryRetentionPolicy
     */
    private boolean historyRetentionPolicy__is_set = false;

    private com.sforce.soap.metadata.HistoryRetentionPolicy historyRetentionPolicy;

    public com.sforce.soap.metadata.HistoryRetentionPolicy getHistoryRetentionPolicy() {
      return historyRetentionPolicy;
    }

    public void setHistoryRetentionPolicy(com.sforce.soap.metadata.HistoryRetentionPolicy historyRetentionPolicy) {
      this.historyRetentionPolicy = historyRetentionPolicy;
      historyRetentionPolicy__is_set = true;
    }

    protected void setHistoryRetentionPolicy(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("historyRetentionPolicy", "http://soap.sforce.com/2006/04/metadata","historyRetentionPolicy","http://soap.sforce.com/2006/04/metadata","HistoryRetentionPolicy",0,1,true))) {
        setHistoryRetentionPolicy((com.sforce.soap.metadata.HistoryRetentionPolicy)__typeMapper.readObject(__in, _lookupTypeInfo("historyRetentionPolicy", "http://soap.sforce.com/2006/04/metadata","historyRetentionPolicy","http://soap.sforce.com/2006/04/metadata","HistoryRetentionPolicy",0,1,true), com.sforce.soap.metadata.HistoryRetentionPolicy.class));
      }
    }

    private void writeFieldHistoryRetentionPolicy(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("historyRetentionPolicy", "http://soap.sforce.com/2006/04/metadata","historyRetentionPolicy","http://soap.sforce.com/2006/04/metadata","HistoryRetentionPolicy",0,1,true), historyRetentionPolicy, historyRetentionPolicy__is_set);
    }

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

    private boolean household;

    public boolean getHousehold() {
      return household;
    }

    public boolean isHousehold() {
      return household;
    }

    public void setHousehold(boolean household) {
      this.household = household;
      household__is_set = true;
    }

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

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

    /**
     * element : indexes of type {http://soap.sforce.com/2006/04/metadata}Index
     * java type: com.sforce.soap.metadata.Index[]
     */
    private boolean indexes__is_set = false;

    private com.sforce.soap.metadata.Index[] indexes = new com.sforce.soap.metadata.Index[0];

    public com.sforce.soap.metadata.Index[] getIndexes() {
      return indexes;
    }

    public void setIndexes(com.sforce.soap.metadata.Index[] indexes) {
      this.indexes = indexes;
      indexes__is_set = true;
    }

    protected void setIndexes(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("indexes", "http://soap.sforce.com/2006/04/metadata","indexes","http://soap.sforce.com/2006/04/metadata","Index",0,-1,true))) {
        setIndexes((com.sforce.soap.metadata.Index[])__typeMapper.readObject(__in, _lookupTypeInfo("indexes", "http://soap.sforce.com/2006/04/metadata","indexes","http://soap.sforce.com/2006/04/metadata","Index",0,-1,true), com.sforce.soap.metadata.Index[].class));
      }
    }

    private void writeFieldIndexes(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("indexes", "http://soap.sforce.com/2006/04/metadata","indexes","http://soap.sforce.com/2006/04/metadata","Index",0,-1,true), indexes, indexes__is_set);
    }

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

    private java.lang.String label;

    public java.lang.String getLabel() {
      return label;
    }

    public void setLabel(java.lang.String label) {
      this.label = label;
      label__is_set = true;
    }

    protected void setLabel(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("label", "http://soap.sforce.com/2006/04/metadata","label","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
        setLabel(__typeMapper.readString(__in, _lookupTypeInfo("label", "http://soap.sforce.com/2006/04/metadata","label","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
      }
    }

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

    /**
     * element : listViews of type {http://soap.sforce.com/2006/04/metadata}ListView
     * java type: com.sforce.soap.metadata.ListView[]
     */
    private boolean listViews__is_set = false;

    private com.sforce.soap.metadata.ListView[] listViews = new com.sforce.soap.metadata.ListView[0];

    public com.sforce.soap.metadata.ListView[] getListViews() {
      return listViews;
    }

    public void setListViews(com.sforce.soap.metadata.ListView[] listViews) {
      this.listViews = listViews;
      listViews__is_set = true;
    }

    protected void setListViews(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("listViews", "http://soap.sforce.com/2006/04/metadata","listViews","http://soap.sforce.com/2006/04/metadata","ListView",0,-1,true))) {
        setListViews((com.sforce.soap.metadata.ListView[])__typeMapper.readObject(__in, _lookupTypeInfo("listViews", "http://soap.sforce.com/2006/04/metadata","listViews","http://soap.sforce.com/2006/04/metadata","ListView",0,-1,true), com.sforce.soap.metadata.ListView[].class));
      }
    }

    private void writeFieldListViews(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("listViews", "http://soap.sforce.com/2006/04/metadata","listViews","http://soap.sforce.com/2006/04/metadata","ListView",0,-1,true), listViews, listViews__is_set);
    }

    /**
     * element : mktDataLakeAttributes of type {http://soap.sforce.com/2006/04/metadata}MktDataLakeAttributes
     * java type: com.sforce.soap.metadata.MktDataLakeAttributes
     */
    private boolean mktDataLakeAttributes__is_set = false;

    private com.sforce.soap.metadata.MktDataLakeAttributes mktDataLakeAttributes;

    public com.sforce.soap.metadata.MktDataLakeAttributes getMktDataLakeAttributes() {
      return mktDataLakeAttributes;
    }

    public void setMktDataLakeAttributes(com.sforce.soap.metadata.MktDataLakeAttributes mktDataLakeAttributes) {
      this.mktDataLakeAttributes = mktDataLakeAttributes;
      mktDataLakeAttributes__is_set = true;
    }

    protected void setMktDataLakeAttributes(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("mktDataLakeAttributes", "http://soap.sforce.com/2006/04/metadata","mktDataLakeAttributes","http://soap.sforce.com/2006/04/metadata","MktDataLakeAttributes",0,1,true))) {
        setMktDataLakeAttributes((com.sforce.soap.metadata.MktDataLakeAttributes)__typeMapper.readObject(__in, _lookupTypeInfo("mktDataLakeAttributes", "http://soap.sforce.com/2006/04/metadata","mktDataLakeAttributes","http://soap.sforce.com/2006/04/metadata","MktDataLakeAttributes",0,1,true), com.sforce.soap.metadata.MktDataLakeAttributes.class));
      }
    }

    private void writeFieldMktDataLakeAttributes(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("mktDataLakeAttributes", "http://soap.sforce.com/2006/04/metadata","mktDataLakeAttributes","http://soap.sforce.com/2006/04/metadata","MktDataLakeAttributes",0,1,true), mktDataLakeAttributes, mktDataLakeAttributes__is_set);
    }

    /**
     * element : mktDataModelAttributes of type {http://soap.sforce.com/2006/04/metadata}MktDataModelAttributes
     * java type: com.sforce.soap.metadata.MktDataModelAttributes
     */
    private boolean mktDataModelAttributes__is_set = false;

    private com.sforce.soap.metadata.MktDataModelAttributes mktDataModelAttributes;

    public com.sforce.soap.metadata.MktDataModelAttributes getMktDataModelAttributes() {
      return mktDataModelAttributes;
    }

    public void setMktDataModelAttributes(com.sforce.soap.metadata.MktDataModelAttributes mktDataModelAttributes) {
      this.mktDataModelAttributes = mktDataModelAttributes;
      mktDataModelAttributes__is_set = true;
    }

    protected void setMktDataModelAttributes(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("mktDataModelAttributes", "http://soap.sforce.com/2006/04/metadata","mktDataModelAttributes","http://soap.sforce.com/2006/04/metadata","MktDataModelAttributes",0,1,true))) {
        setMktDataModelAttributes((com.sforce.soap.metadata.MktDataModelAttributes)__typeMapper.readObject(__in, _lookupTypeInfo("mktDataModelAttributes", "http://soap.sforce.com/2006/04/metadata","mktDataModelAttributes","http://soap.sforce.com/2006/04/metadata","MktDataModelAttributes",0,1,true), com.sforce.soap.metadata.MktDataModelAttributes.class));
      }
    }

    private void writeFieldMktDataModelAttributes(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("mktDataModelAttributes", "http://soap.sforce.com/2006/04/metadata","mktDataModelAttributes","http://soap.sforce.com/2006/04/metadata","MktDataModelAttributes",0,1,true), mktDataModelAttributes, mktDataModelAttributes__is_set);
    }

    /**
     * element : nameField of type {http://soap.sforce.com/2006/04/metadata}CustomField
     * java type: com.sforce.soap.metadata.CustomField
     */
    private boolean nameField__is_set = false;

    private com.sforce.soap.metadata.CustomField nameField;

    public com.sforce.soap.metadata.CustomField getNameField() {
      return nameField;
    }

    public void setNameField(com.sforce.soap.metadata.CustomField nameField) {
      this.nameField = nameField;
      nameField__is_set = true;
    }

    protected void setNameField(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("nameField", "http://soap.sforce.com/2006/04/metadata","nameField","http://soap.sforce.com/2006/04/metadata","CustomField",0,1,true))) {
        setNameField((com.sforce.soap.metadata.CustomField)__typeMapper.readObject(__in, _lookupTypeInfo("nameField", "http://soap.sforce.com/2006/04/metadata","nameField","http://soap.sforce.com/2006/04/metadata","CustomField",0,1,true), com.sforce.soap.metadata.CustomField.class));
      }
    }

    private void writeFieldNameField(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("nameField", "http://soap.sforce.com/2006/04/metadata","nameField","http://soap.sforce.com/2006/04/metadata","CustomField",0,1,true), nameField, nameField__is_set);
    }

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

    private java.lang.String pluralLabel;

    public java.lang.String getPluralLabel() {
      return pluralLabel;
    }

    public void setPluralLabel(java.lang.String pluralLabel) {
      this.pluralLabel = pluralLabel;
      pluralLabel__is_set = true;
    }

    protected void setPluralLabel(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("pluralLabel", "http://soap.sforce.com/2006/04/metadata","pluralLabel","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
        setPluralLabel(__typeMapper.readString(__in, _lookupTypeInfo("pluralLabel", "http://soap.sforce.com/2006/04/metadata","pluralLabel","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
      }
    }

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

    /**
     * element : profileSearchLayouts of type {http://soap.sforce.com/2006/04/metadata}ProfileSearchLayouts
     * java type: com.sforce.soap.metadata.ProfileSearchLayouts[]
     */
    private boolean profileSearchLayouts__is_set = false;

    private com.sforce.soap.metadata.ProfileSearchLayouts[] profileSearchLayouts = new com.sforce.soap.metadata.ProfileSearchLayouts[0];

    public com.sforce.soap.metadata.ProfileSearchLayouts[] getProfileSearchLayouts() {
      return profileSearchLayouts;
    }

    public void setProfileSearchLayouts(com.sforce.soap.metadata.ProfileSearchLayouts[] profileSearchLayouts) {
      this.profileSearchLayouts = profileSearchLayouts;
      profileSearchLayouts__is_set = true;
    }

    protected void setProfileSearchLayouts(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("profileSearchLayouts", "http://soap.sforce.com/2006/04/metadata","profileSearchLayouts","http://soap.sforce.com/2006/04/metadata","ProfileSearchLayouts",0,-1,true))) {
        setProfileSearchLayouts((com.sforce.soap.metadata.ProfileSearchLayouts[])__typeMapper.readObject(__in, _lookupTypeInfo("profileSearchLayouts", "http://soap.sforce.com/2006/04/metadata","profileSearchLayouts","http://soap.sforce.com/2006/04/metadata","ProfileSearchLayouts",0,-1,true), com.sforce.soap.metadata.ProfileSearchLayouts[].class));
      }
    }

    private void writeFieldProfileSearchLayouts(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("profileSearchLayouts", "http://soap.sforce.com/2006/04/metadata","profileSearchLayouts","http://soap.sforce.com/2006/04/metadata","ProfileSearchLayouts",0,-1,true), profileSearchLayouts, profileSearchLayouts__is_set);
    }

    /**
     * element : publishBehavior of type {http://soap.sforce.com/2006/04/metadata}PlatformEventPublishBehavior
     * java type: com.sforce.soap.metadata.PlatformEventPublishBehavior
     */
    private boolean publishBehavior__is_set = false;

    private com.sforce.soap.metadata.PlatformEventPublishBehavior publishBehavior;

    public com.sforce.soap.metadata.PlatformEventPublishBehavior getPublishBehavior() {
      return publishBehavior;
    }

    public void setPublishBehavior(com.sforce.soap.metadata.PlatformEventPublishBehavior publishBehavior) {
      this.publishBehavior = publishBehavior;
      publishBehavior__is_set = true;
    }

    protected void setPublishBehavior(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("publishBehavior", "http://soap.sforce.com/2006/04/metadata","publishBehavior","http://soap.sforce.com/2006/04/metadata","PlatformEventPublishBehavior",0,1,true))) {
        setPublishBehavior((com.sforce.soap.metadata.PlatformEventPublishBehavior)__typeMapper.readObject(__in, _lookupTypeInfo("publishBehavior", "http://soap.sforce.com/2006/04/metadata","publishBehavior","http://soap.sforce.com/2006/04/metadata","PlatformEventPublishBehavior",0,1,true), com.sforce.soap.metadata.PlatformEventPublishBehavior.class));
      }
    }

    private void writeFieldPublishBehavior(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("publishBehavior", "http://soap.sforce.com/2006/04/metadata","publishBehavior","http://soap.sforce.com/2006/04/metadata","PlatformEventPublishBehavior",0,1,true), publishBehavior, publishBehavior__is_set);
    }

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

    private boolean recordTypeTrackFeedHistory;

    public boolean getRecordTypeTrackFeedHistory() {
      return recordTypeTrackFeedHistory;
    }

    public boolean isRecordTypeTrackFeedHistory() {
      return recordTypeTrackFeedHistory;
    }

    public void setRecordTypeTrackFeedHistory(boolean recordTypeTrackFeedHistory) {
      this.recordTypeTrackFeedHistory = recordTypeTrackFeedHistory;
      recordTypeTrackFeedHistory__is_set = true;
    }

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

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

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

    private boolean recordTypeTrackHistory;

    public boolean getRecordTypeTrackHistory() {
      return recordTypeTrackHistory;
    }

    public boolean isRecordTypeTrackHistory() {
      return recordTypeTrackHistory;
    }

    public void setRecordTypeTrackHistory(boolean recordTypeTrackHistory) {
      this.recordTypeTrackHistory = recordTypeTrackHistory;
      recordTypeTrackHistory__is_set = true;
    }

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

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

    /**
     * element : recordTypes of type {http://soap.sforce.com/2006/04/metadata}RecordType
     * java type: com.sforce.soap.metadata.RecordType[]
     */
    private boolean recordTypes__is_set = false;

    private com.sforce.soap.metadata.RecordType[] recordTypes = new com.sforce.soap.metadata.RecordType[0];

    public com.sforce.soap.metadata.RecordType[] getRecordTypes() {
      return recordTypes;
    }

    public void setRecordTypes(com.sforce.soap.metadata.RecordType[] recordTypes) {
      this.recordTypes = recordTypes;
      recordTypes__is_set = true;
    }

    protected void setRecordTypes(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("recordTypes", "http://soap.sforce.com/2006/04/metadata","recordTypes","http://soap.sforce.com/2006/04/metadata","RecordType",0,-1,true))) {
        setRecordTypes((com.sforce.soap.metadata.RecordType[])__typeMapper.readObject(__in, _lookupTypeInfo("recordTypes", "http://soap.sforce.com/2006/04/metadata","recordTypes","http://soap.sforce.com/2006/04/metadata","RecordType",0,-1,true), com.sforce.soap.metadata.RecordType[].class));
      }
    }

    private void writeFieldRecordTypes(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("recordTypes", "http://soap.sforce.com/2006/04/metadata","recordTypes","http://soap.sforce.com/2006/04/metadata","RecordType",0,-1,true), recordTypes, recordTypes__is_set);
    }

    /**
     * element : searchLayouts of type {http://soap.sforce.com/2006/04/metadata}SearchLayouts
     * java type: com.sforce.soap.metadata.SearchLayouts
     */
    private boolean searchLayouts__is_set = false;

    private com.sforce.soap.metadata.SearchLayouts searchLayouts;

    public com.sforce.soap.metadata.SearchLayouts getSearchLayouts() {
      return searchLayouts;
    }

    public void setSearchLayouts(com.sforce.soap.metadata.SearchLayouts searchLayouts) {
      this.searchLayouts = searchLayouts;
      searchLayouts__is_set = true;
    }

    protected void setSearchLayouts(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("searchLayouts", "http://soap.sforce.com/2006/04/metadata","searchLayouts","http://soap.sforce.com/2006/04/metadata","SearchLayouts",0,1,true))) {
        setSearchLayouts((com.sforce.soap.metadata.SearchLayouts)__typeMapper.readObject(__in, _lookupTypeInfo("searchLayouts", "http://soap.sforce.com/2006/04/metadata","searchLayouts","http://soap.sforce.com/2006/04/metadata","SearchLayouts",0,1,true), com.sforce.soap.metadata.SearchLayouts.class));
      }
    }

    private void writeFieldSearchLayouts(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("searchLayouts", "http://soap.sforce.com/2006/04/metadata","searchLayouts","http://soap.sforce.com/2006/04/metadata","SearchLayouts",0,1,true), searchLayouts, searchLayouts__is_set);
    }

    /**
     * element : sharingModel of type {http://soap.sforce.com/2006/04/metadata}SharingModel
     * java type: com.sforce.soap.metadata.SharingModel
     */
    private boolean sharingModel__is_set = false;

    private com.sforce.soap.metadata.SharingModel sharingModel;

    public com.sforce.soap.metadata.SharingModel getSharingModel() {
      return sharingModel;
    }

    public void setSharingModel(com.sforce.soap.metadata.SharingModel sharingModel) {
      this.sharingModel = sharingModel;
      sharingModel__is_set = true;
    }

    protected void setSharingModel(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("sharingModel", "http://soap.sforce.com/2006/04/metadata","sharingModel","http://soap.sforce.com/2006/04/metadata","SharingModel",0,1,true))) {
        setSharingModel((com.sforce.soap.metadata.SharingModel)__typeMapper.readObject(__in, _lookupTypeInfo("sharingModel", "http://soap.sforce.com/2006/04/metadata","sharingModel","http://soap.sforce.com/2006/04/metadata","SharingModel",0,1,true), com.sforce.soap.metadata.SharingModel.class));
      }
    }

    private void writeFieldSharingModel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("sharingModel", "http://soap.sforce.com/2006/04/metadata","sharingModel","http://soap.sforce.com/2006/04/metadata","SharingModel",0,1,true), sharingModel, sharingModel__is_set);
    }

    /**
     * element : sharingReasons of type {http://soap.sforce.com/2006/04/metadata}SharingReason
     * java type: com.sforce.soap.metadata.SharingReason[]
     */
    private boolean sharingReasons__is_set = false;

    private com.sforce.soap.metadata.SharingReason[] sharingReasons = new com.sforce.soap.metadata.SharingReason[0];

    public com.sforce.soap.metadata.SharingReason[] getSharingReasons() {
      return sharingReasons;
    }

    public void setSharingReasons(com.sforce.soap.metadata.SharingReason[] sharingReasons) {
      this.sharingReasons = sharingReasons;
      sharingReasons__is_set = true;
    }

    protected void setSharingReasons(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("sharingReasons", "http://soap.sforce.com/2006/04/metadata","sharingReasons","http://soap.sforce.com/2006/04/metadata","SharingReason",0,-1,true))) {
        setSharingReasons((com.sforce.soap.metadata.SharingReason[])__typeMapper.readObject(__in, _lookupTypeInfo("sharingReasons", "http://soap.sforce.com/2006/04/metadata","sharingReasons","http://soap.sforce.com/2006/04/metadata","SharingReason",0,-1,true), com.sforce.soap.metadata.SharingReason[].class));
      }
    }

    private void writeFieldSharingReasons(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("sharingReasons", "http://soap.sforce.com/2006/04/metadata","sharingReasons","http://soap.sforce.com/2006/04/metadata","SharingReason",0,-1,true), sharingReasons, sharingReasons__is_set);
    }

    /**
     * element : sharingRecalculations of type {http://soap.sforce.com/2006/04/metadata}SharingRecalculation
     * java type: com.sforce.soap.metadata.SharingRecalculation[]
     */
    private boolean sharingRecalculations__is_set = false;

    private com.sforce.soap.metadata.SharingRecalculation[] sharingRecalculations = new com.sforce.soap.metadata.SharingRecalculation[0];

    public com.sforce.soap.metadata.SharingRecalculation[] getSharingRecalculations() {
      return sharingRecalculations;
    }

    public void setSharingRecalculations(com.sforce.soap.metadata.SharingRecalculation[] sharingRecalculations) {
      this.sharingRecalculations = sharingRecalculations;
      sharingRecalculations__is_set = true;
    }

    protected void setSharingRecalculations(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("sharingRecalculations", "http://soap.sforce.com/2006/04/metadata","sharingRecalculations","http://soap.sforce.com/2006/04/metadata","SharingRecalculation",0,-1,true))) {
        setSharingRecalculations((com.sforce.soap.metadata.SharingRecalculation[])__typeMapper.readObject(__in, _lookupTypeInfo("sharingRecalculations", "http://soap.sforce.com/2006/04/metadata","sharingRecalculations","http://soap.sforce.com/2006/04/metadata","SharingRecalculation",0,-1,true), com.sforce.soap.metadata.SharingRecalculation[].class));
      }
    }

    private void writeFieldSharingRecalculations(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("sharingRecalculations", "http://soap.sforce.com/2006/04/metadata","sharingRecalculations","http://soap.sforce.com/2006/04/metadata","SharingRecalculation",0,-1,true), sharingRecalculations, sharingRecalculations__is_set);
    }

    /**
     * element : startsWith of type {http://soap.sforce.com/2006/04/metadata}StartsWith
     * java type: com.sforce.soap.metadata.StartsWith
     */
    private boolean startsWith__is_set = false;

    private com.sforce.soap.metadata.StartsWith startsWith;

    public com.sforce.soap.metadata.StartsWith getStartsWith() {
      return startsWith;
    }

    public void setStartsWith(com.sforce.soap.metadata.StartsWith startsWith) {
      this.startsWith = startsWith;
      startsWith__is_set = true;
    }

    protected void setStartsWith(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("startsWith", "http://soap.sforce.com/2006/04/metadata","startsWith","http://soap.sforce.com/2006/04/metadata","StartsWith",0,1,true))) {
        setStartsWith((com.sforce.soap.metadata.StartsWith)__typeMapper.readObject(__in, _lookupTypeInfo("startsWith", "http://soap.sforce.com/2006/04/metadata","startsWith","http://soap.sforce.com/2006/04/metadata","StartsWith",0,1,true), com.sforce.soap.metadata.StartsWith.class));
      }
    }

    private void writeFieldStartsWith(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("startsWith", "http://soap.sforce.com/2006/04/metadata","startsWith","http://soap.sforce.com/2006/04/metadata","StartsWith",0,1,true), startsWith, startsWith__is_set);
    }

    /**
     * element : validationRules of type {http://soap.sforce.com/2006/04/metadata}ValidationRule
     * java type: com.sforce.soap.metadata.ValidationRule[]
     */
    private boolean validationRules__is_set = false;

    private com.sforce.soap.metadata.ValidationRule[] validationRules = new com.sforce.soap.metadata.ValidationRule[0];

    public com.sforce.soap.metadata.ValidationRule[] getValidationRules() {
      return validationRules;
    }

    public void setValidationRules(com.sforce.soap.metadata.ValidationRule[] validationRules) {
      this.validationRules = validationRules;
      validationRules__is_set = true;
    }

    protected void setValidationRules(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("validationRules", "http://soap.sforce.com/2006/04/metadata","validationRules","http://soap.sforce.com/2006/04/metadata","ValidationRule",0,-1,true))) {
        setValidationRules((com.sforce.soap.metadata.ValidationRule[])__typeMapper.readObject(__in, _lookupTypeInfo("validationRules", "http://soap.sforce.com/2006/04/metadata","validationRules","http://soap.sforce.com/2006/04/metadata","ValidationRule",0,-1,true), com.sforce.soap.metadata.ValidationRule[].class));
      }
    }

    private void writeFieldValidationRules(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("validationRules", "http://soap.sforce.com/2006/04/metadata","validationRules","http://soap.sforce.com/2006/04/metadata","ValidationRule",0,-1,true), validationRules, validationRules__is_set);
    }

    /**
     * element : visibility of type {http://soap.sforce.com/2006/04/metadata}SetupObjectVisibility
     * java type: com.sforce.soap.metadata.SetupObjectVisibility
     */
    private boolean visibility__is_set = false;

    private com.sforce.soap.metadata.SetupObjectVisibility visibility;

    public com.sforce.soap.metadata.SetupObjectVisibility getVisibility() {
      return visibility;
    }

    public void setVisibility(com.sforce.soap.metadata.SetupObjectVisibility visibility) {
      this.visibility = visibility;
      visibility__is_set = true;
    }

    protected void setVisibility(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("visibility", "http://soap.sforce.com/2006/04/metadata","visibility","http://soap.sforce.com/2006/04/metadata","SetupObjectVisibility",0,1,true))) {
        setVisibility((com.sforce.soap.metadata.SetupObjectVisibility)__typeMapper.readObject(__in, _lookupTypeInfo("visibility", "http://soap.sforce.com/2006/04/metadata","visibility","http://soap.sforce.com/2006/04/metadata","SetupObjectVisibility",0,1,true), com.sforce.soap.metadata.SetupObjectVisibility.class));
      }
    }

    private void writeFieldVisibility(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("visibility", "http://soap.sforce.com/2006/04/metadata","visibility","http://soap.sforce.com/2006/04/metadata","SetupObjectVisibility",0,1,true), visibility, visibility__is_set);
    }

    /**
     * element : webLinks of type {http://soap.sforce.com/2006/04/metadata}WebLink
     * java type: com.sforce.soap.metadata.WebLink[]
     */
    private boolean webLinks__is_set = false;

    private com.sforce.soap.metadata.WebLink[] webLinks = new com.sforce.soap.metadata.WebLink[0];

    public com.sforce.soap.metadata.WebLink[] getWebLinks() {
      return webLinks;
    }

    public void setWebLinks(com.sforce.soap.metadata.WebLink[] webLinks) {
      this.webLinks = webLinks;
      webLinks__is_set = true;
    }

    protected void setWebLinks(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("webLinks", "http://soap.sforce.com/2006/04/metadata","webLinks","http://soap.sforce.com/2006/04/metadata","WebLink",0,-1,true))) {
        setWebLinks((com.sforce.soap.metadata.WebLink[])__typeMapper.readObject(__in, _lookupTypeInfo("webLinks", "http://soap.sforce.com/2006/04/metadata","webLinks","http://soap.sforce.com/2006/04/metadata","WebLink",0,-1,true), com.sforce.soap.metadata.WebLink[].class));
      }
    }

    private void writeFieldWebLinks(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("webLinks", "http://soap.sforce.com/2006/04/metadata","webLinks","http://soap.sforce.com/2006/04/metadata","WebLink",0,-1,true), webLinks, webLinks__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", "CustomObject");
      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("[CustomObject ");
      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 {
      writeFieldActionOverrides(__out, __typeMapper);
      writeFieldAllowInChatterGroups(__out, __typeMapper);
      writeFieldArticleTypeChannelDisplay(__out, __typeMapper);
      writeFieldBusinessProcesses(__out, __typeMapper);
      writeFieldCompactLayoutAssignment(__out, __typeMapper);
      writeFieldCompactLayouts(__out, __typeMapper);
      writeFieldCustomHelp(__out, __typeMapper);
      writeFieldCustomHelpPage(__out, __typeMapper);
      writeFieldCustomSettingsType(__out, __typeMapper);
      writeFieldDeploymentStatus(__out, __typeMapper);
      writeFieldDeprecated(__out, __typeMapper);
      writeFieldDescription(__out, __typeMapper);
      writeFieldEnableActivities(__out, __typeMapper);
      writeFieldEnableBulkApi(__out, __typeMapper);
      writeFieldEnableDataTranslation(__out, __typeMapper);
      writeFieldEnableDivisions(__out, __typeMapper);
      writeFieldEnableEnhancedLookup(__out, __typeMapper);
      writeFieldEnableFeeds(__out, __typeMapper);
      writeFieldEnableHistory(__out, __typeMapper);
      writeFieldEnableLicensing(__out, __typeMapper);
      writeFieldEnablePublishStatusTracking(__out, __typeMapper);
      writeFieldEnableReports(__out, __typeMapper);
      writeFieldEnableSearch(__out, __typeMapper);
      writeFieldEnableSharing(__out, __typeMapper);
      writeFieldEnableStreamingApi(__out, __typeMapper);
      writeFieldEventType(__out, __typeMapper);
      writeFieldExternalDataSource(__out, __typeMapper);
      writeFieldExternalName(__out, __typeMapper);
      writeFieldExternalRepository(__out, __typeMapper);
      writeFieldExternalSharingModel(__out, __typeMapper);
      writeFieldFieldSets(__out, __typeMapper);
      writeFieldFields(__out, __typeMapper);
      writeFieldGender(__out, __typeMapper);
      writeFieldHistoryRetentionPolicy(__out, __typeMapper);
      writeFieldHousehold(__out, __typeMapper);
      writeFieldIndexes(__out, __typeMapper);
      writeFieldLabel(__out, __typeMapper);
      writeFieldListViews(__out, __typeMapper);
      writeFieldMktDataLakeAttributes(__out, __typeMapper);
      writeFieldMktDataModelAttributes(__out, __typeMapper);
      writeFieldNameField(__out, __typeMapper);
      writeFieldPluralLabel(__out, __typeMapper);
      writeFieldProfileSearchLayouts(__out, __typeMapper);
      writeFieldPublishBehavior(__out, __typeMapper);
      writeFieldRecordTypeTrackFeedHistory(__out, __typeMapper);
      writeFieldRecordTypeTrackHistory(__out, __typeMapper);
      writeFieldRecordTypes(__out, __typeMapper);
      writeFieldSearchLayouts(__out, __typeMapper);
      writeFieldSharingModel(__out, __typeMapper);
      writeFieldSharingReasons(__out, __typeMapper);
      writeFieldSharingRecalculations(__out, __typeMapper);
      writeFieldStartsWith(__out, __typeMapper);
      writeFieldValidationRules(__out, __typeMapper);
      writeFieldVisibility(__out, __typeMapper);
      writeFieldWebLinks(__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 {
      setActionOverrides(__in, __typeMapper);
      setAllowInChatterGroups(__in, __typeMapper);
      setArticleTypeChannelDisplay(__in, __typeMapper);
      setBusinessProcesses(__in, __typeMapper);
      setCompactLayoutAssignment(__in, __typeMapper);
      setCompactLayouts(__in, __typeMapper);
      setCustomHelp(__in, __typeMapper);
      setCustomHelpPage(__in, __typeMapper);
      setCustomSettingsType(__in, __typeMapper);
      setDeploymentStatus(__in, __typeMapper);
      setDeprecated(__in, __typeMapper);
      setDescription(__in, __typeMapper);
      setEnableActivities(__in, __typeMapper);
      setEnableBulkApi(__in, __typeMapper);
      setEnableDataTranslation(__in, __typeMapper);
      setEnableDivisions(__in, __typeMapper);
      setEnableEnhancedLookup(__in, __typeMapper);
      setEnableFeeds(__in, __typeMapper);
      setEnableHistory(__in, __typeMapper);
      setEnableLicensing(__in, __typeMapper);
      setEnablePublishStatusTracking(__in, __typeMapper);
      setEnableReports(__in, __typeMapper);
      setEnableSearch(__in, __typeMapper);
      setEnableSharing(__in, __typeMapper);
      setEnableStreamingApi(__in, __typeMapper);
      setEventType(__in, __typeMapper);
      setExternalDataSource(__in, __typeMapper);
      setExternalName(__in, __typeMapper);
      setExternalRepository(__in, __typeMapper);
      setExternalSharingModel(__in, __typeMapper);
      setFieldSets(__in, __typeMapper);
      setFields(__in, __typeMapper);
      setGender(__in, __typeMapper);
      setHistoryRetentionPolicy(__in, __typeMapper);
      setHousehold(__in, __typeMapper);
      setIndexes(__in, __typeMapper);
      setLabel(__in, __typeMapper);
      setListViews(__in, __typeMapper);
      setMktDataLakeAttributes(__in, __typeMapper);
      setMktDataModelAttributes(__in, __typeMapper);
      setNameField(__in, __typeMapper);
      setPluralLabel(__in, __typeMapper);
      setProfileSearchLayouts(__in, __typeMapper);
      setPublishBehavior(__in, __typeMapper);
      setRecordTypeTrackFeedHistory(__in, __typeMapper);
      setRecordTypeTrackHistory(__in, __typeMapper);
      setRecordTypes(__in, __typeMapper);
      setSearchLayouts(__in, __typeMapper);
      setSharingModel(__in, __typeMapper);
      setSharingReasons(__in, __typeMapper);
      setSharingRecalculations(__in, __typeMapper);
      setStartsWith(__in, __typeMapper);
      setValidationRules(__in, __typeMapper);
      setVisibility(__in, __typeMapper);
      setWebLinks(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "actionOverrides", actionOverrides);
      toStringHelper(sb, "allowInChatterGroups", allowInChatterGroups);
      toStringHelper(sb, "articleTypeChannelDisplay", articleTypeChannelDisplay);
      toStringHelper(sb, "businessProcesses", businessProcesses);
      toStringHelper(sb, "compactLayoutAssignment", compactLayoutAssignment);
      toStringHelper(sb, "compactLayouts", compactLayouts);
      toStringHelper(sb, "customHelp", customHelp);
      toStringHelper(sb, "customHelpPage", customHelpPage);
      toStringHelper(sb, "customSettingsType", customSettingsType);
      toStringHelper(sb, "deploymentStatus", deploymentStatus);
      toStringHelper(sb, "deprecated", deprecated);
      toStringHelper(sb, "description", description);
      toStringHelper(sb, "enableActivities", enableActivities);
      toStringHelper(sb, "enableBulkApi", enableBulkApi);
      toStringHelper(sb, "enableDataTranslation", enableDataTranslation);
      toStringHelper(sb, "enableDivisions", enableDivisions);
      toStringHelper(sb, "enableEnhancedLookup", enableEnhancedLookup);
      toStringHelper(sb, "enableFeeds", enableFeeds);
      toStringHelper(sb, "enableHistory", enableHistory);
      toStringHelper(sb, "enableLicensing", enableLicensing);
      toStringHelper(sb, "enablePublishStatusTracking", enablePublishStatusTracking);
      toStringHelper(sb, "enableReports", enableReports);
      toStringHelper(sb, "enableSearch", enableSearch);
      toStringHelper(sb, "enableSharing", enableSharing);
      toStringHelper(sb, "enableStreamingApi", enableStreamingApi);
      toStringHelper(sb, "eventType", eventType);
      toStringHelper(sb, "externalDataSource", externalDataSource);
      toStringHelper(sb, "externalName", externalName);
      toStringHelper(sb, "externalRepository", externalRepository);
      toStringHelper(sb, "externalSharingModel", externalSharingModel);
      toStringHelper(sb, "fieldSets", fieldSets);
      toStringHelper(sb, "fields", fields);
      toStringHelper(sb, "gender", gender);
      toStringHelper(sb, "historyRetentionPolicy", historyRetentionPolicy);
      toStringHelper(sb, "household", household);
      toStringHelper(sb, "indexes", indexes);
      toStringHelper(sb, "label", label);
      toStringHelper(sb, "listViews", listViews);
      toStringHelper(sb, "mktDataLakeAttributes", mktDataLakeAttributes);
      toStringHelper(sb, "mktDataModelAttributes", mktDataModelAttributes);
      toStringHelper(sb, "nameField", nameField);
      toStringHelper(sb, "pluralLabel", pluralLabel);
      toStringHelper(sb, "profileSearchLayouts", profileSearchLayouts);
      toStringHelper(sb, "publishBehavior", publishBehavior);
      toStringHelper(sb, "recordTypeTrackFeedHistory", recordTypeTrackFeedHistory);
      toStringHelper(sb, "recordTypeTrackHistory", recordTypeTrackHistory);
      toStringHelper(sb, "recordTypes", recordTypes);
      toStringHelper(sb, "searchLayouts", searchLayouts);
      toStringHelper(sb, "sharingModel", sharingModel);
      toStringHelper(sb, "sharingReasons", sharingReasons);
      toStringHelper(sb, "sharingRecalculations", sharingRecalculations);
      toStringHelper(sb, "startsWith", startsWith);
      toStringHelper(sb, "validationRules", validationRules);
      toStringHelper(sb, "visibility", visibility);
      toStringHelper(sb, "webLinks", webLinks);
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy