Video_pb.d.ts 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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. serializeBinary(): Uint8Array;
  144. toObject(includeInstance?: boolean): VideoMetadata.AsObject;
  145. static toObject(includeInstance: boolean, msg: VideoMetadata): VideoMetadata.AsObject;
  146. static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
  147. static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
  148. static serializeBinaryToWriter(message: VideoMetadata, writer: jspb.BinaryWriter): void;
  149. static deserializeBinary(bytes: Uint8Array): VideoMetadata;
  150. static deserializeBinaryFromReader(message: VideoMetadata, reader: jspb.BinaryReader): VideoMetadata;
  151. }
  152. export namespace VideoMetadata {
  153. export type AsObject = {
  154. title?: string,
  155. description?: string,
  156. video?: number,
  157. thumbnailPhoto?: number,
  158. duration?: number,
  159. mediaPixelHeight?: number,
  160. mediaPixelWidth?: number,
  161. mediaType?: MediaType.AsObject,
  162. language?: string,
  163. license?: License.AsObject,
  164. publishedBeforeJoystream?: PublishedBeforeJoystream.AsObject,
  165. hasMarketing?: boolean,
  166. isPublic?: boolean,
  167. isExplicit?: boolean,
  168. }
  169. }
  170. export class VideoCategoryMetadata extends jspb.Message {
  171. hasName(): boolean;
  172. clearName(): void;
  173. getName(): string | undefined;
  174. setName(value: string): void;
  175. serializeBinary(): Uint8Array;
  176. toObject(includeInstance?: boolean): VideoCategoryMetadata.AsObject;
  177. static toObject(includeInstance: boolean, msg: VideoCategoryMetadata): VideoCategoryMetadata.AsObject;
  178. static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
  179. static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
  180. static serializeBinaryToWriter(message: VideoCategoryMetadata, writer: jspb.BinaryWriter): void;
  181. static deserializeBinary(bytes: Uint8Array): VideoCategoryMetadata;
  182. static deserializeBinaryFromReader(message: VideoCategoryMetadata, reader: jspb.BinaryReader): VideoCategoryMetadata;
  183. }
  184. export namespace VideoCategoryMetadata {
  185. export type AsObject = {
  186. name?: string,
  187. }
  188. }