Reference documentation and code samples for the Google Cloud Storage Control V2 Client class ObjectFullContext.
A full representation of an object context.
Generated from protobuf message google.storage.control.v2.ObjectFullContext
Namespace
Google \ Cloud \ Storage \ Control \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ type |
int
The type of the object context. |
↳ key |
string
The key of the object context, which is unique among contexts of an object. |
↳ value |
string
The value of the object context. |
↳ create_time |
Google\Protobuf\Timestamp
The time at which the object context was created. |
↳ update_time |
Google\Protobuf\Timestamp
The time at which the object context was updated. |
↳ extended_data |
Google\Protobuf\Any
The extended data of the object context. |
getType
The type of the object context.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Type. |
setType
The type of the object context.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Type. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getKey
The key of the object context, which is unique among contexts of an object.
| Returns | |
|---|---|
| Type | Description |
string |
|
setKey
The key of the object context, which is unique among contexts of an object.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getValue
The value of the object context.
| Returns | |
|---|---|
| Type | Description |
string |
|
setValue
The value of the object context.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCreateTime
The time at which the object context was created.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasCreateTime
clearCreateTime
setCreateTime
The time at which the object context was created.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUpdateTime
The time at which the object context was updated.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasUpdateTime
clearUpdateTime
setUpdateTime
The time at which the object context was updated.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getExtendedData
The extended data of the object context.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Any|null |
|
hasExtendedData
clearExtendedData
setExtendedData
The extended data of the object context.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Any
|
| Returns | |
|---|---|
| Type | Description |
$this |
|