com.aliyuncs.imm.transform.v20200930.BatchGetFileMetaResponseUnmarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-imm Show documentation
Show all versions of aliyun-java-sdk-imm Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
The newest version!
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.imm.transform.v20200930;
import java.util.ArrayList;
import java.util.List;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.AddressesItem;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.AudioCoversItem;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.AudioCoversItem.CroppingSuggestionsItem6;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.AudioCoversItem.CroppingSuggestionsItem6.Boundary7;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.AudioCoversItem.ImageScore3;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.AudioCoversItem.OCRContentsItem8;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.AudioCoversItem.OCRContentsItem8.Boundary9;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.AudioStreamsItem;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.CroppingSuggestionsItem;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.CroppingSuggestionsItem.Boundary1;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.FiguresItem;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.FiguresItem.Boundary;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.FiguresItem.HeadPose;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.ImageScore;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.LabelsItem;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.OCRContentsItem;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.OCRContentsItem.Boundary2;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.SubtitlesItem;
import com.aliyuncs.imm.model.v20200930.BatchGetFileMetaResponse.FilesItem.VideoStreamsItem;
import java.util.Map;
import com.aliyuncs.transform.UnmarshallerContext;
public class BatchGetFileMetaResponseUnmarshaller {
public static BatchGetFileMetaResponse unmarshall(BatchGetFileMetaResponse batchGetFileMetaResponse, UnmarshallerContext _ctx) {
batchGetFileMetaResponse.setRequestId(_ctx.stringValue("BatchGetFileMetaResponse.RequestId"));
List files = new ArrayList();
for (int i = 0; i < _ctx.lengthValue("BatchGetFileMetaResponse.Files.Length"); i++) {
FilesItem filesItem = new FilesItem();
filesItem.setOwnerId(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].OwnerId"));
filesItem.setProjectName(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].ProjectName"));
filesItem.setDatasetName(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].DatasetName"));
filesItem.setObjectType(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].ObjectType"));
filesItem.setObjectId(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].ObjectId"));
filesItem.setUpdateTime(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].UpdateTime"));
filesItem.setCreateTime(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].CreateTime"));
filesItem.setURI(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].URI"));
filesItem.setOSSURI(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].OSSURI"));
filesItem.setFilename(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Filename"));
filesItem.setMediaType(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].MediaType"));
filesItem.setContentType(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].ContentType"));
filesItem.setSize(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].Size"));
filesItem.setFileHash(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].FileHash"));
filesItem.setFileModifiedTime(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].FileModifiedTime"));
filesItem.setFileCreateTime(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].FileCreateTime"));
filesItem.setFileAccessTime(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].FileAccessTime"));
filesItem.setProduceTime(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].ProduceTime"));
filesItem.setLatLong(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].LatLong"));
filesItem.setTimezone(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Timezone"));
filesItem.setTravelClusterId(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].TravelClusterId"));
filesItem.setOrientation(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].Orientation"));
filesItem.setFigureCount(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].FigureCount"));
filesItem.setTitle(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Title"));
filesItem.setImageWidth(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].ImageWidth"));
filesItem.setImageHeight(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].ImageHeight"));
filesItem.setEXIF(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].EXIF"));
filesItem.setVideoWidth(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].VideoWidth"));
filesItem.setVideoHeight(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].VideoHeight"));
filesItem.setArtist(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Artist"));
filesItem.setAlbumArtist(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AlbumArtist"));
filesItem.setComposer(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Composer"));
filesItem.setPerformer(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Performer"));
filesItem.setLanguage(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Language"));
filesItem.setAlbum(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Album"));
filesItem.setPageCount(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].PageCount"));
filesItem.setDocumentText(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].DocumentText"));
filesItem.setETag(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].ETag"));
filesItem.setCacheControl(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].CacheControl"));
filesItem.setContentDisposition(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].ContentDisposition"));
filesItem.setContentEncoding(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].ContentEncoding"));
filesItem.setContentLanguage(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].ContentLanguage"));
filesItem.setAccessControlAllowOrigin(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AccessControlAllowOrigin"));
filesItem.setAccessControlRequestMethod(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AccessControlRequestMethod"));
filesItem.setServerSideEncryptionCustomerAlgorithm(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].ServerSideEncryptionCustomerAlgorithm"));
filesItem.setServerSideEncryption(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].ServerSideEncryption"));
filesItem.setServerSideDataEncryption(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].ServerSideDataEncryption"));
filesItem.setServerSideEncryptionKeyId(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].ServerSideEncryptionKeyId"));
filesItem.setOSSStorageClass(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].OSSStorageClass"));
filesItem.setOSSCRC64(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].OSSCRC64"));
filesItem.setObjectACL(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].ObjectACL"));
filesItem.setContentMd5(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].ContentMd5"));
filesItem.setOSSUserMeta(_ctx.mapValue("BatchGetFileMetaResponse.Files["+ i +"].OSSUserMeta"));
filesItem.setOSSTaggingCount(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].OSSTaggingCount"));
filesItem.setOSSTagging(_ctx.mapValue("BatchGetFileMetaResponse.Files["+ i +"].OSSTagging"));
filesItem.setOSSExpiration(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].OSSExpiration"));
filesItem.setOSSVersionId(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].OSSVersionId"));
filesItem.setOSSDeleteMarker(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].OSSDeleteMarker"));
filesItem.setOSSObjectType(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].OSSObjectType"));
filesItem.setCustomId(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].CustomId"));
filesItem.setCustomLabels(_ctx.mapValue("BatchGetFileMetaResponse.Files["+ i +"].CustomLabels"));
filesItem.setStreamCount(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].StreamCount"));
filesItem.setProgramCount(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].ProgramCount"));
filesItem.setFormatName(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].FormatName"));
filesItem.setFormatLongName(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].FormatLongName"));
filesItem.setStartTime(_ctx.doubleValue("BatchGetFileMetaResponse.Files["+ i +"].StartTime"));
filesItem.setBitrate(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].Bitrate"));
filesItem.setDuration(_ctx.doubleValue("BatchGetFileMetaResponse.Files["+ i +"].Duration"));
ImageScore imageScore = new ImageScore();
imageScore.setOverallQualityScore(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].ImageScore.OverallQualityScore"));
filesItem.setImageScore(imageScore);
List addresses = new ArrayList();
for (int j = 0; j < _ctx.lengthValue("BatchGetFileMetaResponse.Files["+ i +"].Addresses.Length"); j++) {
AddressesItem addressesItem = new AddressesItem();
addressesItem.setLanguage(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Addresses["+ j +"].Language"));
addressesItem.setAddressLine(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Addresses["+ j +"].AddressLine"));
addressesItem.setCountry(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Addresses["+ j +"].Country"));
addressesItem.setProvince(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Addresses["+ j +"].Province"));
addressesItem.setCity(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Addresses["+ j +"].City"));
addressesItem.setDistrict(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Addresses["+ j +"].District"));
addressesItem.setTownship(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Addresses["+ j +"].Township"));
addresses.add(addressesItem);
}
filesItem.setAddresses(addresses);
List figures = new ArrayList();
for (int j = 0; j < _ctx.lengthValue("BatchGetFileMetaResponse.Files["+ i +"].Figures.Length"); j++) {
FiguresItem figuresItem = new FiguresItem();
figuresItem.setFigureId(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].FigureId"));
figuresItem.setFigureConfidence(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].FigureConfidence"));
figuresItem.setFigureClusterId(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].FigureClusterId"));
figuresItem.setFigureClusterConfidence(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].FigureClusterConfidence"));
figuresItem.setFigureType(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].FigureType"));
figuresItem.setAge(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].Age"));
figuresItem.setAgeSD(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].AgeSD"));
figuresItem.setGender(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].Gender"));
figuresItem.setGenderConfidence(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].GenderConfidence"));
figuresItem.setEmotion(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].Emotion"));
figuresItem.setEmotionConfidence(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].EmotionConfidence"));
figuresItem.setFaceQuality(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].FaceQuality"));
figuresItem.setMouth(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].Mouth"));
figuresItem.setMouthConfidence(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].MouthConfidence"));
figuresItem.setBeard(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].Beard"));
figuresItem.setBeardConfidence(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].BeardConfidence"));
figuresItem.setHat(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].Hat"));
figuresItem.setHatConfidence(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].HatConfidence"));
figuresItem.setMask(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].Mask"));
figuresItem.setMaskConfidence(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].MaskConfidence"));
figuresItem.setGlasses(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].Glasses"));
figuresItem.setGlassesConfidence(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].GlassesConfidence"));
figuresItem.setSharpness(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].Sharpness"));
figuresItem.setAttractive(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].Attractive"));
Boundary boundary = new Boundary();
boundary.setWidth(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].Boundary.Width"));
boundary.setHeight(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].Boundary.Height"));
boundary.setLeft(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].Boundary.Left"));
boundary.setTop(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].Boundary.Top"));
figuresItem.setBoundary(boundary);
HeadPose headPose = new HeadPose();
headPose.setPitch(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].HeadPose.Pitch"));
headPose.setRoll(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].HeadPose.Roll"));
headPose.setYaw(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Figures["+ j +"].HeadPose.Yaw"));
figuresItem.setHeadPose(headPose);
figures.add(figuresItem);
}
filesItem.setFigures(figures);
List labels = new ArrayList();
for (int j = 0; j < _ctx.lengthValue("BatchGetFileMetaResponse.Files["+ i +"].Labels.Length"); j++) {
LabelsItem labelsItem = new LabelsItem();
labelsItem.setLanguage(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Labels["+ j +"].Language"));
labelsItem.setLabelName(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Labels["+ j +"].LabelName"));
labelsItem.setLabelLevel(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].Labels["+ j +"].LabelLevel"));
labelsItem.setLabelConfidence(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Labels["+ j +"].LabelConfidence"));
labelsItem.setParentLabelName(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Labels["+ j +"].ParentLabelName"));
labelsItem.setCentricScore(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].Labels["+ j +"].CentricScore"));
labels.add(labelsItem);
}
filesItem.setLabels(labels);
List croppingSuggestions = new ArrayList();
for (int j = 0; j < _ctx.lengthValue("BatchGetFileMetaResponse.Files["+ i +"].CroppingSuggestions.Length"); j++) {
CroppingSuggestionsItem croppingSuggestionsItem = new CroppingSuggestionsItem();
croppingSuggestionsItem.setAspectRatio(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].CroppingSuggestions["+ j +"].AspectRatio"));
croppingSuggestionsItem.setConfidence(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].CroppingSuggestions["+ j +"].Confidence"));
Boundary1 boundary1 = new Boundary1();
boundary1.setWidth(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].CroppingSuggestions["+ j +"].Boundary.Width"));
boundary1.setHeight(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].CroppingSuggestions["+ j +"].Boundary.Height"));
boundary1.setLeft(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].CroppingSuggestions["+ j +"].Boundary.Left"));
boundary1.setTop(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].CroppingSuggestions["+ j +"].Boundary.Top"));
croppingSuggestionsItem.setBoundary1(boundary1);
croppingSuggestions.add(croppingSuggestionsItem);
}
filesItem.setCroppingSuggestions(croppingSuggestions);
List oCRContents = new ArrayList();
for (int j = 0; j < _ctx.lengthValue("BatchGetFileMetaResponse.Files["+ i +"].OCRContents.Length"); j++) {
OCRContentsItem oCRContentsItem = new OCRContentsItem();
oCRContentsItem.setLanguage(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].OCRContents["+ j +"].Language"));
oCRContentsItem.setContents(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].OCRContents["+ j +"].Contents"));
oCRContentsItem.setConfidence(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].OCRContents["+ j +"].Confidence"));
Boundary2 boundary2 = new Boundary2();
boundary2.setWidth(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].OCRContents["+ j +"].Boundary.Width"));
boundary2.setHeight(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].OCRContents["+ j +"].Boundary.Height"));
boundary2.setLeft(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].OCRContents["+ j +"].Boundary.Left"));
boundary2.setTop(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].OCRContents["+ j +"].Boundary.Top"));
oCRContentsItem.setBoundary2(boundary2);
oCRContents.add(oCRContentsItem);
}
filesItem.setOCRContents(oCRContents);
List videoStreams = new ArrayList();
for (int j = 0; j < _ctx.lengthValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams.Length"); j++) {
VideoStreamsItem videoStreamsItem = new VideoStreamsItem();
videoStreamsItem.setIndex(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].Index"));
videoStreamsItem.setLanguage(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].Language"));
videoStreamsItem.setCodecName(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].CodecName"));
videoStreamsItem.setCodecLongName(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].CodecLongName"));
videoStreamsItem.setProfile(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].Profile"));
videoStreamsItem.setCodecTimeBase(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].CodecTimeBase"));
videoStreamsItem.setCodecTagString(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].CodecTagString"));
videoStreamsItem.setCodecTag(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].CodecTag"));
videoStreamsItem.setWidth(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].Width"));
videoStreamsItem.setHeight(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].Height"));
videoStreamsItem.setHasBFrames(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].HasBFrames"));
videoStreamsItem.setSampleAspectRatio(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].SampleAspectRatio"));
videoStreamsItem.setDisplayAspectRatio(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].DisplayAspectRatio"));
videoStreamsItem.setPixelFormat(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].PixelFormat"));
videoStreamsItem.setLevel(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].Level"));
videoStreamsItem.setFrameRate(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].FrameRate"));
videoStreamsItem.setAverageFrameRate(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].AverageFrameRate"));
videoStreamsItem.setTimeBase(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].TimeBase"));
videoStreamsItem.setStartTime(_ctx.doubleValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].StartTime"));
videoStreamsItem.setDuration(_ctx.doubleValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].Duration"));
videoStreamsItem.setBitrate(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].Bitrate"));
videoStreamsItem.setFrameCount(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].FrameCount"));
videoStreamsItem.setRotate(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].Rotate"));
videoStreamsItem.setBitDepth(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].BitDepth"));
videoStreamsItem.setColorSpace(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].ColorSpace"));
videoStreamsItem.setColorRange(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].ColorRange"));
videoStreamsItem.setColorTransfer(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].ColorTransfer"));
videoStreamsItem.setColorPrimaries(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].VideoStreams["+ j +"].ColorPrimaries"));
videoStreams.add(videoStreamsItem);
}
filesItem.setVideoStreams(videoStreams);
List subtitles = new ArrayList();
for (int j = 0; j < _ctx.lengthValue("BatchGetFileMetaResponse.Files["+ i +"].Subtitles.Length"); j++) {
SubtitlesItem subtitlesItem = new SubtitlesItem();
subtitlesItem.setIndex(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].Subtitles["+ j +"].Index"));
subtitlesItem.setLanguage(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Subtitles["+ j +"].Language"));
subtitlesItem.setCodecName(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Subtitles["+ j +"].CodecName"));
subtitlesItem.setCodecLongName(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Subtitles["+ j +"].CodecLongName"));
subtitlesItem.setCodecTagString(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Subtitles["+ j +"].CodecTagString"));
subtitlesItem.setCodecTag(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Subtitles["+ j +"].CodecTag"));
subtitlesItem.setStartTime(_ctx.doubleValue("BatchGetFileMetaResponse.Files["+ i +"].Subtitles["+ j +"].StartTime"));
subtitlesItem.setDuration(_ctx.doubleValue("BatchGetFileMetaResponse.Files["+ i +"].Subtitles["+ j +"].Duration"));
subtitlesItem.setBitrate(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].Subtitles["+ j +"].Bitrate"));
subtitlesItem.setContent(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].Subtitles["+ j +"].Content"));
subtitlesItem.setWidth(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].Subtitles["+ j +"].Width"));
subtitlesItem.setHeight(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].Subtitles["+ j +"].Height"));
subtitles.add(subtitlesItem);
}
filesItem.setSubtitles(subtitles);
List audioStreams = new ArrayList();
for (int j = 0; j < _ctx.lengthValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams.Length"); j++) {
AudioStreamsItem audioStreamsItem = new AudioStreamsItem();
audioStreamsItem.setIndex(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].Index"));
audioStreamsItem.setLanguage(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].Language"));
audioStreamsItem.setCodecName(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].CodecName"));
audioStreamsItem.setCodecLongName(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].CodecLongName"));
audioStreamsItem.setCodecTimeBase(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].CodecTimeBase"));
audioStreamsItem.setCodecTagString(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].CodecTagString"));
audioStreamsItem.setCodecTag(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].CodecTag"));
audioStreamsItem.setTimeBase(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].TimeBase"));
audioStreamsItem.setStartTime(_ctx.doubleValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].StartTime"));
audioStreamsItem.setDuration(_ctx.doubleValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].Duration"));
audioStreamsItem.setBitrate(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].Bitrate"));
audioStreamsItem.setFrameCount(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].FrameCount"));
audioStreamsItem.setLyric(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].Lyric"));
audioStreamsItem.setSampleFormat(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].SampleFormat"));
audioStreamsItem.setSampleRate(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].SampleRate"));
audioStreamsItem.setChannels(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].Channels"));
audioStreamsItem.setChannelLayout(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AudioStreams["+ j +"].ChannelLayout"));
audioStreams.add(audioStreamsItem);
}
filesItem.setAudioStreams(audioStreams);
List audioCovers = new ArrayList();
for (int j = 0; j < _ctx.lengthValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers.Length"); j++) {
AudioCoversItem audioCoversItem = new AudioCoversItem();
audioCoversItem.setImageWidth(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].ImageWidth"));
audioCoversItem.setImageHeight(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].ImageHeight"));
audioCoversItem.setEXIF(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].EXIF"));
ImageScore3 imageScore3 = new ImageScore3();
imageScore3.setOverallQualityScore(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].ImageScore.OverallQualityScore"));
audioCoversItem.setImageScore3(imageScore3);
List croppingSuggestions4 = new ArrayList();
for (int k = 0; k < _ctx.lengthValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].CroppingSuggestions.Length"); k++) {
CroppingSuggestionsItem6 croppingSuggestionsItem6 = new CroppingSuggestionsItem6();
croppingSuggestionsItem6.setAspectRatio(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].CroppingSuggestions["+ k +"].AspectRatio"));
croppingSuggestionsItem6.setConfidence(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].CroppingSuggestions["+ k +"].Confidence"));
Boundary7 boundary7 = new Boundary7();
boundary7.setWidth(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].CroppingSuggestions["+ k +"].Boundary.Width"));
boundary7.setHeight(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].CroppingSuggestions["+ k +"].Boundary.Height"));
boundary7.setLeft(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].CroppingSuggestions["+ k +"].Boundary.Left"));
boundary7.setTop(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].CroppingSuggestions["+ k +"].Boundary.Top"));
croppingSuggestionsItem6.setBoundary7(boundary7);
croppingSuggestions4.add(croppingSuggestionsItem6);
}
audioCoversItem.setCroppingSuggestions4(croppingSuggestions4);
List oCRContents5 = new ArrayList();
for (int k = 0; k < _ctx.lengthValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].OCRContents.Length"); k++) {
OCRContentsItem8 oCRContentsItem8 = new OCRContentsItem8();
oCRContentsItem8.setLanguage(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].OCRContents["+ k +"].Language"));
oCRContentsItem8.setContents(_ctx.stringValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].OCRContents["+ k +"].Contents"));
oCRContentsItem8.setConfidence(_ctx.floatValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].OCRContents["+ k +"].Confidence"));
Boundary9 boundary9 = new Boundary9();
boundary9.setWidth(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].OCRContents["+ k +"].Boundary.Width"));
boundary9.setHeight(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].OCRContents["+ k +"].Boundary.Height"));
boundary9.setLeft(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].OCRContents["+ k +"].Boundary.Left"));
boundary9.setTop(_ctx.longValue("BatchGetFileMetaResponse.Files["+ i +"].AudioCovers["+ j +"].OCRContents["+ k +"].Boundary.Top"));
oCRContentsItem8.setBoundary9(boundary9);
oCRContents5.add(oCRContentsItem8);
}
audioCoversItem.setOCRContents5(oCRContents5);
audioCovers.add(audioCoversItem);
}
filesItem.setAudioCovers(audioCovers);
files.add(filesItem);
}
batchGetFileMetaResponse.setFiles(files);
return batchGetFileMetaResponse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy