Video_pb.d.ts 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. // package:
  2. // file: proto/Video.proto
  3. import * as jspb from "google-protobuf";
  4. export class PublishedBeforeJoystream extends jspb.Message {
  5. hasIsPublished(): boolean;
  6. clearIsPublished(): void;
  7. getIsPublished(): boolean | undefined;
  8. setIsPublished(value: boolean): void;
  9. hasDate(): boolean;
  10. clearDate(): void;
  11. getDate(): string | undefined;
  12. setDate(value: string): void;
  13. serializeBinary(): Uint8Array;
  14. toObject(includeInstance?: boolean): PublishedBeforeJoystream.AsObject;
  15. static toObject(includeInstance: boolean, msg: PublishedBeforeJoystream): PublishedBeforeJoystream.AsObject;
  16. static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
  17. static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
  18. static serializeBinaryToWriter(message: PublishedBeforeJoystream, writer: jspb.BinaryWriter): void;
  19. static deserializeBinary(bytes: Uint8Array): PublishedBeforeJoystream;
  20. static deserializeBinaryFromReader(message: PublishedBeforeJoystream, reader: jspb.BinaryReader): PublishedBeforeJoystream;
  21. }
  22. export namespace PublishedBeforeJoystream {
  23. export type AsObject = {
  24. isPublished?: boolean,
  25. date?: string,
  26. }
  27. }
  28. export class License extends jspb.Message {
  29. hasCode(): boolean;
  30. clearCode(): void;
  31. getCode(): number | undefined;
  32. setCode(value: number): void;
  33. hasAttribution(): boolean;
  34. clearAttribution(): void;
  35. getAttribution(): string | undefined;
  36. setAttribution(value: string): void;
  37. hasCustomText(): boolean;
  38. clearCustomText(): void;
  39. getCustomText(): string | undefined;
  40. setCustomText(value: string): void;
  41. serializeBinary(): Uint8Array;
  42. toObject(includeInstance?: boolean): License.AsObject;
  43. static toObject(includeInstance: boolean, msg: License): License.AsObject;
  44. static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
  45. static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
  46. static serializeBinaryToWriter(message: License, writer: jspb.BinaryWriter): void;
  47. static deserializeBinary(bytes: Uint8Array): License;
  48. static deserializeBinaryFromReader(message: License, reader: jspb.BinaryReader): License;
  49. }
  50. export namespace License {
  51. export type AsObject = {
  52. code?: number,
  53. attribution?: string,
  54. customText?: string,
  55. }
  56. }
  57. export class MediaType extends jspb.Message {
  58. hasCodecName(): boolean;
  59. clearCodecName(): void;
  60. getCodecName(): string | undefined;
  61. setCodecName(value: string): void;
  62. hasContainer(): boolean;
  63. clearContainer(): void;
  64. getContainer(): string | undefined;
  65. setContainer(value: string): void;
  66. hasMimeMediaType(): boolean;
  67. clearMimeMediaType(): void;
  68. getMimeMediaType(): string | undefined;
  69. setMimeMediaType(value: string): void;
  70. serializeBinary(): Uint8Array;
  71. toObject(includeInstance?: boolean): MediaType.AsObject;
  72. static toObject(includeInstance: boolean, msg: MediaType): MediaType.AsObject;
  73. static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
  74. static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
  75. static serializeBinaryToWriter(message: MediaType, writer: jspb.BinaryWriter): void;
  76. static deserializeBinary(bytes: Uint8Array): MediaType;
  77. static deserializeBinaryFromReader(message: MediaType, reader: jspb.BinaryReader): MediaType;
  78. }
  79. export namespace MediaType {
  80. export type AsObject = {
  81. codecName?: string,
  82. container?: string,
  83. mimeMediaType?: string,
  84. }
  85. }
  86. export class VideoMetadata extends jspb.Message {
  87. hasTitle(): boolean;
  88. clearTitle(): void;
  89. getTitle(): string | undefined;
  90. setTitle(value: string): void;
  91. hasDescription(): boolean;
  92. clearDescription(): void;
  93. getDescription(): string | undefined;
  94. setDescription(value: string): void;
  95. hasVideo(): boolean;
  96. clearVideo(): void;
  97. getVideo(): number | undefined;
  98. setVideo(value: number): void;
  99. hasThumbnailPhoto(): boolean;
  100. clearThumbnailPhoto(): void;
  101. getThumbnailPhoto(): number | undefined;
  102. setThumbnailPhoto(value: number): void;
  103. hasDuration(): boolean;
  104. clearDuration(): void;
  105. getDuration(): number | undefined;
  106. setDuration(value: number): void;
  107. hasMediaPixelHeight(): boolean;
  108. clearMediaPixelHeight(): void;
  109. getMediaPixelHeight(): number | undefined;
  110. setMediaPixelHeight(value: number): void;
  111. hasMediaPixelWidth(): boolean;
  112. clearMediaPixelWidth(): void;
  113. getMediaPixelWidth(): number | undefined;
  114. setMediaPixelWidth(value: number): void;
  115. hasMediaType(): boolean;
  116. clearMediaType(): void;
  117. getMediaType(): MediaType | undefined;
  118. setMediaType(value?: MediaType): void;
  119. hasLanguage(): boolean;
  120. clearLanguage(): void;
  121. getLanguage(): string | undefined;
  122. setLanguage(value: string): void;
  123. hasLicense(): boolean;
  124. clearLicense(): void;
  125. getLicense(): License | undefined;
  126. setLicense(value?: License): void;
  127. hasPublishedBeforeJoystream(): boolean;
  128. clearPublishedBeforeJoystream(): void;
  129. getPublishedBeforeJoystream(): PublishedBeforeJoystream | undefined;
  130. setPublishedBeforeJoystream(value?: PublishedBeforeJoystream): void;
  131. hasHasMarketing(): boolean;
  132. clearHasMarketing(): void;
  133. getHasMarketing(): boolean | undefined;
  134. setHasMarketing(value: boolean): void;
  135. hasIsPublic(): boolean;
  136. clearIsPublic(): void;
  137. getIsPublic(): boolean | undefined;
  138. setIsPublic(value: boolean): void;
  139. hasIsExplicit(): boolean;
  140. clearIsExplicit(): void;
  141. getIsExplicit(): boolean | undefined;
  142. setIsExplicit(value: boolean): void;
  143. clearPersonsList(): void;
  144. getPersonsList(): Array<number>;
  145. setPersonsList(value: Array<number>): void;
  146. addPersons(value: number, index?: number): number;
  147. hasCategory(): boolean;
  148. clearCategory(): void;
  149. getCategory(): number | undefined;
  150. setCategory(value: number): void;
  151. serializeBinary(): Uint8Array;
  152. toObject(includeInstance?: boolean): VideoMetadata.AsObject;
  153. static toObject(includeInstance: boolean, msg: VideoMetadata): VideoMetadata.AsObject;
  154. static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
  155. static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
  156. static serializeBinaryToWriter(message: VideoMetadata, writer: jspb.BinaryWriter): void;
  157. static deserializeBinary(bytes: Uint8Array): VideoMetadata;
  158. static deserializeBinaryFromReader(message: VideoMetadata, reader: jspb.BinaryReader): VideoMetadata;
  159. }
  160. export namespace VideoMetadata {
  161. export type AsObject = {
  162. title?: string,
  163. description?: string,
  164. video?: number,
  165. thumbnailPhoto?: number,
  166. duration?: number,
  167. mediaPixelHeight?: number,
  168. mediaPixelWidth?: number,
  169. mediaType?: MediaType.AsObject,
  170. language?: string,
  171. license?: License.AsObject,
  172. publishedBeforeJoystream?: PublishedBeforeJoystream.AsObject,
  173. hasMarketing?: boolean,
  174. isPublic?: boolean,
  175. isExplicit?: boolean,
  176. personsList: Array<number>,
  177. category?: number,
  178. }
  179. }
  180. export class VideoCategoryMetadata extends jspb.Message {
  181. hasName(): boolean;
  182. clearName(): void;
  183. getName(): string | undefined;
  184. setName(value: string): void;
  185. serializeBinary(): Uint8Array;
  186. toObject(includeInstance?: boolean): VideoCategoryMetadata.AsObject;
  187. static toObject(includeInstance: boolean, msg: VideoCategoryMetadata): VideoCategoryMetadata.AsObject;
  188. static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
  189. static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
  190. static serializeBinaryToWriter(message: VideoCategoryMetadata, writer: jspb.BinaryWriter): void;
  191. static deserializeBinary(bytes: Uint8Array): VideoCategoryMetadata;
  192. static deserializeBinaryFromReader(message: VideoCategoryMetadata, reader: jspb.BinaryReader): VideoCategoryMetadata;
  193. }
  194. export namespace VideoCategoryMetadata {
  195. export type AsObject = {
  196. name?: string,
  197. }
  198. }