Documentation

StartUploadRequest extends Message
in package

Generated from protobuf message <code>website.web.subuploads.StartUploadRequest</code>

Table of Contents

Properties

$content_type  : mixed
MIME type of the file.
$filename  : mixed
Generated from protobuf field <code>string filename = 4 [json_name = "filename"];</code>
$size_bytes  : mixed
Intended file size in bytes.
$user_token  : mixed
Piano token to validate subscriber status.

Methods

__construct()  : mixed
Constructor.
getContentType()  : string
MIME type of the file.
getFilename()  : string
Generated from protobuf field <code>string filename = 4 [json_name = "filename"];</code>
getSizeBytes()  : int
Intended file size in bytes.
getUserToken()  : string
Piano token to validate subscriber status.
setContentType()  : $this
MIME type of the file.
setFilename()  : $this
Generated from protobuf field <code>string filename = 4 [json_name = "filename"];</code>
setSizeBytes()  : $this
Intended file size in bytes.
setUserToken()  : $this
Piano token to validate subscriber status.

Properties

$content_type

MIME type of the file.

protected mixed $content_type = ''

Generated from protobuf field string content_type = 2 [json_name = "contentType"];

$filename

Generated from protobuf field <code>string filename = 4 [json_name = "filename"];</code>

protected mixed $filename = ''

$size_bytes

Intended file size in bytes.

protected mixed $size_bytes = 0

Generated from protobuf field int32 size_bytes = 1 [json_name = "sizeBytes"];

$user_token

Piano token to validate subscriber status.

protected mixed $user_token = ''

Generated from protobuf field string user_token = 3 [json_name = "userToken"];

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
$data : array<string|int, mixed> = NULL

{ Optional. Data for populating the Message object.

@type int $size_bytes
      Intended file size in bytes.
@type string $content_type
      MIME type of the file.
@type string $user_token
      Piano token to validate subscriber status.
@type string $filename

}

getContentType()

MIME type of the file.

public getContentType() : string

Generated from protobuf field string content_type = 2 [json_name = "contentType"];

Return values
string

getFilename()

Generated from protobuf field <code>string filename = 4 [json_name = "filename"];</code>

public getFilename() : string
Return values
string

getSizeBytes()

Intended file size in bytes.

public getSizeBytes() : int

Generated from protobuf field int32 size_bytes = 1 [json_name = "sizeBytes"];

Return values
int

getUserToken()

Piano token to validate subscriber status.

public getUserToken() : string

Generated from protobuf field string user_token = 3 [json_name = "userToken"];

Return values
string

setContentType()

MIME type of the file.

public setContentType(string $var) : $this

Generated from protobuf field string content_type = 2 [json_name = "contentType"];

Parameters
$var : string
Return values
$this

setFilename()

Generated from protobuf field <code>string filename = 4 [json_name = "filename"];</code>

public setFilename(string $var) : $this
Parameters
$var : string
Return values
$this

setSizeBytes()

Intended file size in bytes.

public setSizeBytes(int $var) : $this

Generated from protobuf field int32 size_bytes = 1 [json_name = "sizeBytes"];

Parameters
$var : int
Return values
$this

setUserToken()

Piano token to validate subscriber status.

public setUserToken(string $var) : $this

Generated from protobuf field string user_token = 3 [json_name = "userToken"];

Parameters
$var : string
Return values
$this

        
On this page

Search results