add jobid to video
This commit is contained in:
@@ -350,6 +350,7 @@ export interface CreateAdminJobRequest {
|
||||
userId?: string | undefined;
|
||||
name?: string | undefined;
|
||||
timeLimit?: number | undefined;
|
||||
videoId?: string | undefined;
|
||||
}
|
||||
|
||||
export interface CreateAdminJobRequest_EnvEntry {
|
||||
@@ -5327,7 +5328,16 @@ export const GetAdminJobLogsResponse: MessageFns<GetAdminJobLogsResponse> = {
|
||||
};
|
||||
|
||||
function createBaseCreateAdminJobRequest(): CreateAdminJobRequest {
|
||||
return { command: "", image: undefined, env: {}, priority: 0, userId: undefined, name: undefined, timeLimit: 0 };
|
||||
return {
|
||||
command: "",
|
||||
image: undefined,
|
||||
env: {},
|
||||
priority: 0,
|
||||
userId: undefined,
|
||||
name: undefined,
|
||||
timeLimit: 0,
|
||||
videoId: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
export const CreateAdminJobRequest: MessageFns<CreateAdminJobRequest> = {
|
||||
@@ -5353,6 +5363,9 @@ export const CreateAdminJobRequest: MessageFns<CreateAdminJobRequest> = {
|
||||
if (message.timeLimit !== undefined && message.timeLimit !== 0) {
|
||||
writer.uint32(56).int64(message.timeLimit);
|
||||
}
|
||||
if (message.videoId !== undefined) {
|
||||
writer.uint32(66).string(message.videoId);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
|
||||
@@ -5422,6 +5435,14 @@ export const CreateAdminJobRequest: MessageFns<CreateAdminJobRequest> = {
|
||||
message.timeLimit = longToNumber(reader.int64());
|
||||
continue;
|
||||
}
|
||||
case 8: {
|
||||
if (tag !== 66) {
|
||||
break;
|
||||
}
|
||||
|
||||
message.videoId = reader.string();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
@@ -5456,6 +5477,11 @@ export const CreateAdminJobRequest: MessageFns<CreateAdminJobRequest> = {
|
||||
: isSet(object.time_limit)
|
||||
? globalThis.Number(object.time_limit)
|
||||
: 0,
|
||||
videoId: isSet(object.videoId)
|
||||
? globalThis.String(object.videoId)
|
||||
: isSet(object.video_id)
|
||||
? globalThis.String(object.video_id)
|
||||
: undefined,
|
||||
};
|
||||
},
|
||||
|
||||
@@ -5488,6 +5514,9 @@ export const CreateAdminJobRequest: MessageFns<CreateAdminJobRequest> = {
|
||||
if (message.timeLimit !== undefined && message.timeLimit !== 0) {
|
||||
obj.timeLimit = Math.round(message.timeLimit);
|
||||
}
|
||||
if (message.videoId !== undefined) {
|
||||
obj.videoId = message.videoId;
|
||||
}
|
||||
return obj;
|
||||
},
|
||||
|
||||
@@ -5511,6 +5540,7 @@ export const CreateAdminJobRequest: MessageFns<CreateAdminJobRequest> = {
|
||||
message.userId = object.userId ?? undefined;
|
||||
message.name = object.name ?? undefined;
|
||||
message.timeLimit = object.timeLimit ?? 0;
|
||||
message.videoId = object.videoId ?? undefined;
|
||||
return message;
|
||||
},
|
||||
};
|
||||
|
||||
@@ -168,6 +168,7 @@ export interface Video {
|
||||
storageType?: string | undefined;
|
||||
createdAt?: string | undefined;
|
||||
updatedAt?: string | undefined;
|
||||
jobId?: string | undefined;
|
||||
}
|
||||
|
||||
export interface AdminDashboard {
|
||||
@@ -217,6 +218,8 @@ export interface AdminVideo {
|
||||
adTemplateName?: string | undefined;
|
||||
createdAt?: string | undefined;
|
||||
updatedAt?: string | undefined;
|
||||
processingStatus?: string | undefined;
|
||||
jobId?: string | undefined;
|
||||
}
|
||||
|
||||
export interface AdminPayment {
|
||||
@@ -292,6 +295,7 @@ export interface AdminJob {
|
||||
maxRetries?: number | undefined;
|
||||
createdAt?: string | undefined;
|
||||
updatedAt?: string | undefined;
|
||||
videoId?: string | undefined;
|
||||
}
|
||||
|
||||
export interface AdminAgent {
|
||||
@@ -2932,6 +2936,7 @@ function createBaseVideo(): Video {
|
||||
storageType: undefined,
|
||||
createdAt: undefined,
|
||||
updatedAt: undefined,
|
||||
jobId: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2979,6 +2984,9 @@ export const Video: MessageFns<Video> = {
|
||||
if (message.updatedAt !== undefined) {
|
||||
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(114).fork()).join();
|
||||
}
|
||||
if (message.jobId !== undefined) {
|
||||
writer.uint32(122).string(message.jobId);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
|
||||
@@ -3101,6 +3109,14 @@ export const Video: MessageFns<Video> = {
|
||||
message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
||||
continue;
|
||||
}
|
||||
case 15: {
|
||||
if (tag !== 122) {
|
||||
break;
|
||||
}
|
||||
|
||||
message.jobId = reader.string();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
@@ -3146,6 +3162,11 @@ export const Video: MessageFns<Video> = {
|
||||
: isSet(object.updated_at)
|
||||
? globalThis.String(object.updated_at)
|
||||
: undefined,
|
||||
jobId: isSet(object.jobId)
|
||||
? globalThis.String(object.jobId)
|
||||
: isSet(object.job_id)
|
||||
? globalThis.String(object.job_id)
|
||||
: undefined,
|
||||
};
|
||||
},
|
||||
|
||||
@@ -3193,6 +3214,9 @@ export const Video: MessageFns<Video> = {
|
||||
if (message.updatedAt !== undefined) {
|
||||
obj.updatedAt = message.updatedAt;
|
||||
}
|
||||
if (message.jobId !== undefined) {
|
||||
obj.jobId = message.jobId;
|
||||
}
|
||||
return obj;
|
||||
},
|
||||
|
||||
@@ -3215,6 +3239,7 @@ export const Video: MessageFns<Video> = {
|
||||
message.storageType = object.storageType ?? undefined;
|
||||
message.createdAt = object.createdAt ?? undefined;
|
||||
message.updatedAt = object.updatedAt ?? undefined;
|
||||
message.jobId = object.jobId ?? undefined;
|
||||
return message;
|
||||
},
|
||||
};
|
||||
@@ -3824,6 +3849,8 @@ function createBaseAdminVideo(): AdminVideo {
|
||||
adTemplateName: undefined,
|
||||
createdAt: undefined,
|
||||
updatedAt: undefined,
|
||||
processingStatus: undefined,
|
||||
jobId: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3871,6 +3898,12 @@ export const AdminVideo: MessageFns<AdminVideo> = {
|
||||
if (message.updatedAt !== undefined) {
|
||||
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(114).fork()).join();
|
||||
}
|
||||
if (message.processingStatus !== undefined) {
|
||||
writer.uint32(122).string(message.processingStatus);
|
||||
}
|
||||
if (message.jobId !== undefined) {
|
||||
writer.uint32(130).string(message.jobId);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
|
||||
@@ -3993,6 +4026,22 @@ export const AdminVideo: MessageFns<AdminVideo> = {
|
||||
message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
||||
continue;
|
||||
}
|
||||
case 15: {
|
||||
if (tag !== 122) {
|
||||
break;
|
||||
}
|
||||
|
||||
message.processingStatus = reader.string();
|
||||
continue;
|
||||
}
|
||||
case 16: {
|
||||
if (tag !== 130) {
|
||||
break;
|
||||
}
|
||||
|
||||
message.jobId = reader.string();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
@@ -4042,6 +4091,16 @@ export const AdminVideo: MessageFns<AdminVideo> = {
|
||||
: isSet(object.updated_at)
|
||||
? globalThis.String(object.updated_at)
|
||||
: undefined,
|
||||
processingStatus: isSet(object.processingStatus)
|
||||
? globalThis.String(object.processingStatus)
|
||||
: isSet(object.processing_status)
|
||||
? globalThis.String(object.processing_status)
|
||||
: undefined,
|
||||
jobId: isSet(object.jobId)
|
||||
? globalThis.String(object.jobId)
|
||||
: isSet(object.job_id)
|
||||
? globalThis.String(object.job_id)
|
||||
: undefined,
|
||||
};
|
||||
},
|
||||
|
||||
@@ -4089,6 +4148,12 @@ export const AdminVideo: MessageFns<AdminVideo> = {
|
||||
if (message.updatedAt !== undefined) {
|
||||
obj.updatedAt = message.updatedAt;
|
||||
}
|
||||
if (message.processingStatus !== undefined) {
|
||||
obj.processingStatus = message.processingStatus;
|
||||
}
|
||||
if (message.jobId !== undefined) {
|
||||
obj.jobId = message.jobId;
|
||||
}
|
||||
return obj;
|
||||
},
|
||||
|
||||
@@ -4111,6 +4176,8 @@ export const AdminVideo: MessageFns<AdminVideo> = {
|
||||
message.adTemplateName = object.adTemplateName ?? undefined;
|
||||
message.createdAt = object.createdAt ?? undefined;
|
||||
message.updatedAt = object.updatedAt ?? undefined;
|
||||
message.processingStatus = object.processingStatus ?? undefined;
|
||||
message.jobId = object.jobId ?? undefined;
|
||||
return message;
|
||||
},
|
||||
};
|
||||
@@ -5140,6 +5207,7 @@ function createBaseAdminJob(): AdminJob {
|
||||
maxRetries: 0,
|
||||
createdAt: undefined,
|
||||
updatedAt: undefined,
|
||||
videoId: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -5202,6 +5270,9 @@ export const AdminJob: MessageFns<AdminJob> = {
|
||||
if (message.updatedAt !== undefined) {
|
||||
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(154).fork()).join();
|
||||
}
|
||||
if (message.videoId !== undefined) {
|
||||
writer.uint32(162).string(message.videoId);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
|
||||
@@ -5364,6 +5435,14 @@ export const AdminJob: MessageFns<AdminJob> = {
|
||||
message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
||||
continue;
|
||||
}
|
||||
case 20: {
|
||||
if (tag !== 162) {
|
||||
break;
|
||||
}
|
||||
|
||||
message.videoId = reader.string();
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
@@ -5438,6 +5517,11 @@ export const AdminJob: MessageFns<AdminJob> = {
|
||||
: isSet(object.updated_at)
|
||||
? globalThis.String(object.updated_at)
|
||||
: undefined,
|
||||
videoId: isSet(object.videoId)
|
||||
? globalThis.String(object.videoId)
|
||||
: isSet(object.video_id)
|
||||
? globalThis.String(object.video_id)
|
||||
: undefined,
|
||||
};
|
||||
},
|
||||
|
||||
@@ -5500,6 +5584,9 @@ export const AdminJob: MessageFns<AdminJob> = {
|
||||
if (message.updatedAt !== undefined) {
|
||||
obj.updatedAt = message.updatedAt;
|
||||
}
|
||||
if (message.videoId !== undefined) {
|
||||
obj.videoId = message.videoId;
|
||||
}
|
||||
return obj;
|
||||
},
|
||||
|
||||
@@ -5527,6 +5614,7 @@ export const AdminJob: MessageFns<AdminJob> = {
|
||||
message.maxRetries = object.maxRetries ?? 0;
|
||||
message.createdAt = object.createdAt ?? undefined;
|
||||
message.updatedAt = object.updatedAt ?? undefined;
|
||||
message.videoId = object.videoId ?? undefined;
|
||||
return message;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user