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
stringgetFilename()
Generated from protobuf field <code>string filename = 4 [json_name = "filename"];</code>
public
getFilename() : string
Return values
stringgetSizeBytes()
Intended file size in bytes.
public
getSizeBytes() : int
Generated from protobuf field int32 size_bytes = 1 [json_name = "sizeBytes"];
Return values
intgetUserToken()
Piano token to validate subscriber status.
public
getUserToken() : string
Generated from protobuf field string user_token = 3 [json_name = "userToken"];
Return values
stringsetContentType()
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
$thissetFilename()
Generated from protobuf field <code>string filename = 4 [json_name = "filename"];</code>
public
setFilename(string $var) : $this
Parameters
- $var : string
Return values
$thissetSizeBytes()
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
$thissetUserToken()
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