syntax = "proto3";

package sabr.videostreaming;

import "sabr/videostreaming/crypto_params.proto";
import "sabr/videostreaming/onesie_header_type.proto";

option java_multiple_files = true;
option java_package = "com.google.android.exoplayer2.source.sabr.protos.videostreaming";
option optimize_for = LITE_RUNTIME;

message OnesieHeader {
  message UnknownMessage1 {
    optional string video_id = 2;
  }

  message UnknownMessage2 {
    repeated string itag_denylist = 1;
  }

  optional OnesieHeaderType type = 1;
  optional string video_id = 2;
  optional string itag = 3;
  optional CryptoParams crypto_params = 4;
  optional uint64 last_modified = 5;
  optional int64 expected_media_size_bytes = 7;
  repeated string restricted_formats = 11;
  optional string xtags = 15;
  optional int64 sequence_number = 18;
  optional UnknownMessage1 field23 = 23;
  optional UnknownMessage2 field34 = 34;
}
