ObjFileSource

View as Markdown

Struct for object file source data in a add object with files call.

Set type and the member of data that matches it, for example OBJ_FILE_SOURCE_TYPE_FILE_CONTENT with data.file_content. Leave the whole message unset for an object without files. See AddObjectWithFiles for what each type requires.

Full nameMFiles.ObjFileSource
Proto filemfiles/structs.proto

Fields

FieldTypeNumberDescription
typeObjFileSourceType1Which member of data is used. Must match the member that is set.Values: OBJ_FILE_SOURCE_TYPE_UNDEFINED (0), OBJ_FILE_SOURCE_TYPE_BLANK_TEMPLATE (1), OBJ_FILE_SOURCE_TYPE_USER_DEFINED_TEMPLATE (2), OBJ_FILE_SOURCE_TYPE_UPLOADED_FILE (3), OBJ_FILE_SOURCE_TYPE_UPLOADED_FILES (4), OBJ_FILE_SOURCE_TYPE_EMPTY_FILES (5), OBJ_FILE_SOURCE_TYPE_FILE_CONTENT (6).
dataObjFileSourceUnion2The source data; set the member that matches type.

Used by methods

Used in fields