GetResponse
extends Message
in package
Generated from protobuf message <code>couchbase.kv.v1.GetResponse</code>
Table of Contents
- $cas : mixed
- Generated from protobuf field <code>uint64 cas = 3;</code>
- $content : mixed
- $content_flags : mixed
- Generated from protobuf field <code>uint32 content_flags = 6;</code>
- $expiry : mixed
- Generated from protobuf field <code>.google.protobuf.Timestamp expiry = 4;</code>
- __construct() : mixed
- Constructor.
- clearExpiry() : mixed
- getCas() : int|string
- Generated from protobuf field <code>uint64 cas = 3;</code>
- getContent() : string
- getContentCompressed() : string
- Generated from protobuf field <code>bytes content_compressed = 7;</code>
- getContentFlags() : int
- Generated from protobuf field <code>uint32 content_flags = 6;</code>
- getContentUncompressed() : string
- Generated from protobuf field <code>bytes content_uncompressed = 1;</code>
- getExpiry() : Timestamp|null
- Generated from protobuf field <code>.google.protobuf.Timestamp expiry = 4;</code>
- hasContentCompressed() : mixed
- hasContentUncompressed() : mixed
- hasExpiry() : mixed
- setCas() : $this
- Generated from protobuf field <code>uint64 cas = 3;</code>
- setContentCompressed() : $this
- Generated from protobuf field <code>bytes content_compressed = 7;</code>
- setContentFlags() : $this
- Generated from protobuf field <code>uint32 content_flags = 6;</code>
- setContentUncompressed() : $this
- Generated from protobuf field <code>bytes content_uncompressed = 1;</code>
- setExpiry() : $this
- Generated from protobuf field <code>.google.protobuf.Timestamp expiry = 4;</code>
Properties
$cas
Generated from protobuf field <code>uint64 cas = 3;</code>
protected
mixed
$cas
= 0
$content
protected
mixed
$content
$content_flags
Generated from protobuf field <code>uint32 content_flags = 6;</code>
protected
mixed
$content_flags
= 0
$expiry
Generated from protobuf field <code>.google.protobuf.Timestamp expiry = 4;</code>
protected
mixed
$expiry
= null
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 string $content_uncompressed @type string $content_compressed @type int $content_flags @type int|string $cas @type \Google\Protobuf\Timestamp $expiry
}
Return values
mixed —clearExpiry()
public
clearExpiry() : mixed
Return values
mixed —getCas()
Generated from protobuf field <code>uint64 cas = 3;</code>
public
getCas() : int|string
Return values
int|string —getContent()
public
getContent() : string
Return values
string —getContentCompressed()
Generated from protobuf field <code>bytes content_compressed = 7;</code>
public
getContentCompressed() : string
Return values
string —getContentFlags()
Generated from protobuf field <code>uint32 content_flags = 6;</code>
public
getContentFlags() : int
Return values
int —getContentUncompressed()
Generated from protobuf field <code>bytes content_uncompressed = 1;</code>
public
getContentUncompressed() : string
Return values
string —getExpiry()
Generated from protobuf field <code>.google.protobuf.Timestamp expiry = 4;</code>
public
getExpiry() : Timestamp|null
Return values
Timestamp|null —hasContentCompressed()
public
hasContentCompressed() : mixed
Return values
mixed —hasContentUncompressed()
public
hasContentUncompressed() : mixed
Return values
mixed —hasExpiry()
public
hasExpiry() : mixed
Return values
mixed —setCas()
Generated from protobuf field <code>uint64 cas = 3;</code>
public
setCas(int|string $var) : $this
Parameters
- $var : int|string
Return values
$this —setContentCompressed()
Generated from protobuf field <code>bytes content_compressed = 7;</code>
public
setContentCompressed(string $var) : $this
Parameters
- $var : string
Return values
$this —setContentFlags()
Generated from protobuf field <code>uint32 content_flags = 6;</code>
public
setContentFlags(int $var) : $this
Parameters
- $var : int
Return values
$this —setContentUncompressed()
Generated from protobuf field <code>bytes content_uncompressed = 1;</code>
public
setContentUncompressed(string $var) : $this
Parameters
- $var : string
Return values
$this —setExpiry()
Generated from protobuf field <code>.google.protobuf.Timestamp expiry = 4;</code>
public
setExpiry(Timestamp $var) : $this
Parameters
- $var : Timestamp