346 lines
16 KiB
Java
346 lines
16 KiB
Java
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 VoiceEngagementMediaFile extends com.sforce.soap.metadata.Metadata {
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public VoiceEngagementMediaFile() {}
|
|
|
|
/* Cache the typeInfo instead of declaring static fields throughout*/
|
|
private transient java.util.Map<String, com.sforce.ws.bind.TypeInfo> typeInfoCache = new java.util.HashMap<String, com.sforce.ws.bind.TypeInfo>();
|
|
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 : contentDocId of type {http://www.w3.org/2001/XMLSchema}string
|
|
* java type: java.lang.String
|
|
*/
|
|
private boolean contentDocId__is_set = false;
|
|
|
|
private java.lang.String contentDocId;
|
|
|
|
public java.lang.String getContentDocId() {
|
|
return contentDocId;
|
|
}
|
|
|
|
public void setContentDocId(java.lang.String contentDocId) {
|
|
this.contentDocId = contentDocId;
|
|
contentDocId__is_set = true;
|
|
}
|
|
|
|
protected void setContentDocId(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("contentDocId", "http://soap.sforce.com/2006/04/metadata","contentDocId","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
|
setContentDocId(__typeMapper.readString(__in, _lookupTypeInfo("contentDocId", "http://soap.sforce.com/2006/04/metadata","contentDocId","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldContentDocId(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("contentDocId", "http://soap.sforce.com/2006/04/metadata","contentDocId","http://www.w3.org/2001/XMLSchema","string",0,1,true), contentDocId, contentDocId__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : fileName of type {http://www.w3.org/2001/XMLSchema}string
|
|
* java type: java.lang.String
|
|
*/
|
|
private boolean fileName__is_set = false;
|
|
|
|
private java.lang.String fileName;
|
|
|
|
public java.lang.String getFileName() {
|
|
return fileName;
|
|
}
|
|
|
|
public void setFileName(java.lang.String fileName) {
|
|
this.fileName = fileName;
|
|
fileName__is_set = true;
|
|
}
|
|
|
|
protected void setFileName(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("fileName", "http://soap.sforce.com/2006/04/metadata","fileName","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
|
setFileName(__typeMapper.readString(__in, _lookupTypeInfo("fileName", "http://soap.sforce.com/2006/04/metadata","fileName","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldFileName(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("fileName", "http://soap.sforce.com/2006/04/metadata","fileName","http://www.w3.org/2001/XMLSchema","string",0,1,true), fileName, fileName__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : fileUrl of type {http://www.w3.org/2001/XMLSchema}string
|
|
* java type: java.lang.String
|
|
*/
|
|
private boolean fileUrl__is_set = false;
|
|
|
|
private java.lang.String fileUrl;
|
|
|
|
public java.lang.String getFileUrl() {
|
|
return fileUrl;
|
|
}
|
|
|
|
public void setFileUrl(java.lang.String fileUrl) {
|
|
this.fileUrl = fileUrl;
|
|
fileUrl__is_set = true;
|
|
}
|
|
|
|
protected void setFileUrl(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("fileUrl", "http://soap.sforce.com/2006/04/metadata","fileUrl","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
|
setFileUrl(__typeMapper.readString(__in, _lookupTypeInfo("fileUrl", "http://soap.sforce.com/2006/04/metadata","fileUrl","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldFileUrl(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("fileUrl", "http://soap.sforce.com/2006/04/metadata","fileUrl","http://www.w3.org/2001/XMLSchema","string",0,1,true), fileUrl, fileUrl__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : id of type {http://www.w3.org/2001/XMLSchema}string
|
|
* java type: java.lang.String
|
|
*/
|
|
private boolean id__is_set = false;
|
|
|
|
private java.lang.String id;
|
|
|
|
public java.lang.String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(java.lang.String id) {
|
|
this.id = id;
|
|
id__is_set = true;
|
|
}
|
|
|
|
protected void setId(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("id", "http://soap.sforce.com/2006/04/metadata","id","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
|
setId(__typeMapper.readString(__in, _lookupTypeInfo("id", "http://soap.sforce.com/2006/04/metadata","id","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldId(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("id", "http://soap.sforce.com/2006/04/metadata","id","http://www.w3.org/2001/XMLSchema","string",0,1,true), id, id__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : isCustom of type {http://www.w3.org/2001/XMLSchema}boolean
|
|
* java type: boolean
|
|
*/
|
|
private boolean isCustom__is_set = false;
|
|
|
|
private boolean isCustom;
|
|
|
|
public boolean getIsCustom() {
|
|
return isCustom;
|
|
}
|
|
|
|
public boolean isIsCustom() {
|
|
return isCustom;
|
|
}
|
|
|
|
public void setIsCustom(boolean isCustom) {
|
|
this.isCustom = isCustom;
|
|
isCustom__is_set = true;
|
|
}
|
|
|
|
protected void setIsCustom(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("isCustom", "http://soap.sforce.com/2006/04/metadata","isCustom","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
|
setIsCustom(__typeMapper.readBoolean(__in, _lookupTypeInfo("isCustom", "http://soap.sforce.com/2006/04/metadata","isCustom","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldIsCustom(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("isCustom", "http://soap.sforce.com/2006/04/metadata","isCustom","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), isCustom, isCustom__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : masterLabel of type {http://www.w3.org/2001/XMLSchema}string
|
|
* java type: java.lang.String
|
|
*/
|
|
private boolean masterLabel__is_set = false;
|
|
|
|
private java.lang.String masterLabel;
|
|
|
|
public java.lang.String getMasterLabel() {
|
|
return masterLabel;
|
|
}
|
|
|
|
public void setMasterLabel(java.lang.String masterLabel) {
|
|
this.masterLabel = masterLabel;
|
|
masterLabel__is_set = true;
|
|
}
|
|
|
|
protected void setMasterLabel(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("masterLabel", "http://soap.sforce.com/2006/04/metadata","masterLabel","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
|
setMasterLabel(__typeMapper.readString(__in, _lookupTypeInfo("masterLabel", "http://soap.sforce.com/2006/04/metadata","masterLabel","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldMasterLabel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("masterLabel", "http://soap.sforce.com/2006/04/metadata","masterLabel","http://www.w3.org/2001/XMLSchema","string",0,1,true), masterLabel, masterLabel__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : message of type {http://www.w3.org/2001/XMLSchema}string
|
|
* java type: java.lang.String
|
|
*/
|
|
private boolean message__is_set = false;
|
|
|
|
private java.lang.String message;
|
|
|
|
public java.lang.String getMessage() {
|
|
return message;
|
|
}
|
|
|
|
public void setMessage(java.lang.String message) {
|
|
this.message = message;
|
|
message__is_set = true;
|
|
}
|
|
|
|
protected void setMessage(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("message", "http://soap.sforce.com/2006/04/metadata","message","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
|
setMessage(__typeMapper.readString(__in, _lookupTypeInfo("message", "http://soap.sforce.com/2006/04/metadata","message","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldMessage(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("message", "http://soap.sforce.com/2006/04/metadata","message","http://www.w3.org/2001/XMLSchema","string",0,1,true), message, message__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : uploadStatus of type {http://soap.sforce.com/2006/04/metadata}UploadStatus
|
|
* java type: com.sforce.soap.metadata.UploadStatus
|
|
*/
|
|
private boolean uploadStatus__is_set = false;
|
|
|
|
private com.sforce.soap.metadata.UploadStatus uploadStatus;
|
|
|
|
public com.sforce.soap.metadata.UploadStatus getUploadStatus() {
|
|
return uploadStatus;
|
|
}
|
|
|
|
public void setUploadStatus(com.sforce.soap.metadata.UploadStatus uploadStatus) {
|
|
this.uploadStatus = uploadStatus;
|
|
uploadStatus__is_set = true;
|
|
}
|
|
|
|
protected void setUploadStatus(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("uploadStatus", "http://soap.sforce.com/2006/04/metadata","uploadStatus","http://soap.sforce.com/2006/04/metadata","UploadStatus",0,1,true))) {
|
|
setUploadStatus((com.sforce.soap.metadata.UploadStatus)__typeMapper.readObject(__in, _lookupTypeInfo("uploadStatus", "http://soap.sforce.com/2006/04/metadata","uploadStatus","http://soap.sforce.com/2006/04/metadata","UploadStatus",0,1,true), com.sforce.soap.metadata.UploadStatus.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldUploadStatus(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("uploadStatus", "http://soap.sforce.com/2006/04/metadata","uploadStatus","http://soap.sforce.com/2006/04/metadata","UploadStatus",0,1,true), uploadStatus, uploadStatus__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", "VoiceEngagementMediaFile");
|
|
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("[VoiceEngagementMediaFile ");
|
|
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 {
|
|
writeFieldContentDocId(__out, __typeMapper);
|
|
writeFieldFileName(__out, __typeMapper);
|
|
writeFieldFileUrl(__out, __typeMapper);
|
|
writeFieldId(__out, __typeMapper);
|
|
writeFieldIsCustom(__out, __typeMapper);
|
|
writeFieldMasterLabel(__out, __typeMapper);
|
|
writeFieldMessage(__out, __typeMapper);
|
|
writeFieldUploadStatus(__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 {
|
|
setContentDocId(__in, __typeMapper);
|
|
setFileName(__in, __typeMapper);
|
|
setFileUrl(__in, __typeMapper);
|
|
setId(__in, __typeMapper);
|
|
setIsCustom(__in, __typeMapper);
|
|
setMasterLabel(__in, __typeMapper);
|
|
setMessage(__in, __typeMapper);
|
|
setUploadStatus(__in, __typeMapper);
|
|
}
|
|
|
|
private void toString1(StringBuilder sb) {
|
|
toStringHelper(sb, "contentDocId", contentDocId);
|
|
toStringHelper(sb, "fileName", fileName);
|
|
toStringHelper(sb, "fileUrl", fileUrl);
|
|
toStringHelper(sb, "id", id);
|
|
toStringHelper(sb, "isCustom", isCustom);
|
|
toStringHelper(sb, "masterLabel", masterLabel);
|
|
toStringHelper(sb, "message", message);
|
|
toStringHelper(sb, "uploadStatus", uploadStatus);
|
|
}
|
|
|
|
|
|
}
|