Constructor
new Operation(propertiesopt)
Constructs a new Operation.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.longrunning.IOperation |
<optional> |
Properties to set |
- Implements:
-
- IOperation
Members
done
Operation done.
done
Operation done.
done
Operation done.
error
Operation error.
error
Operation error.
error
Operation error.
metadata
Operation metadata.
metadata
Operation metadata.
metadata
Operation metadata.
name
Operation name.
name
Operation name.
name
Operation name.
response
Operation response.
response
Operation response.
response
Operation response.
result
Operation result.
result
Operation result.
result
Operation result.
Methods
toJSON() → {Object.<string, *>}
Converts this Operation to JSON.
Returns:
Type | Description |
---|---|
Object.<string, *> |
JSON object |
toJSON() → {Object.<string, *>}
Converts this Operation to JSON.
Returns:
Type | Description |
---|---|
Object.<string, *> |
JSON object |
toJSON() → {Object.<string, *>}
Converts this Operation to JSON.
Returns:
Type | Description |
---|---|
Object.<string, *> |
JSON object |
(static) fromObject(object) → {google.longrunning.Operation}
Creates an Operation message from a plain object. Also converts values to their respective internal types.
Parameters:
Name | Type | Description |
---|---|---|
object |
Object.<string, *> |
Plain object |
Returns:
Type | Description |
---|---|
google.longrunning.Operation |
Operation |
(static) fromObject(object) → {google.longrunning.Operation}
Creates an Operation message from a plain object. Also converts values to their respective internal types.
Parameters:
Name | Type | Description |
---|---|---|
object |
Object.<string, *> |
Plain object |
Returns:
Type | Description |
---|---|
google.longrunning.Operation |
Operation |
(static) fromObject(object) → {google.longrunning.Operation}
Creates an Operation message from a plain object. Also converts values to their respective internal types.
Parameters:
Name | Type | Description |
---|---|---|
object |
Object.<string, *> |
Plain object |
Returns:
Type | Description |
---|---|
google.longrunning.Operation |
Operation |
(static) getTypeUrl(typeUrlPrefixopt) → {string}
Gets the default type url for Operation
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
typeUrlPrefix |
string |
<optional> |
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns:
Type | Description |
---|---|
string |
The default type url |
(static) getTypeUrl(typeUrlPrefixopt) → {string}
Gets the default type url for Operation
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
typeUrlPrefix |
string |
<optional> |
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns:
Type | Description |
---|---|
string |
The default type url |
(static) getTypeUrl(typeUrlPrefixopt) → {string}
Gets the default type url for Operation
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
typeUrlPrefix |
string |
<optional> |
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns:
Type | Description |
---|---|
string |
The default type url |
(static) toObject(message, optionsopt) → {Object.<string, *>}
Creates a plain object from an Operation message. Also converts values to other types if specified.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.longrunning.Operation |
Operation |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
Returns:
Type | Description |
---|---|
Object.<string, *> |
Plain object |
(static) toObject(message, optionsopt) → {Object.<string, *>}
Creates a plain object from an Operation message. Also converts values to other types if specified.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.longrunning.Operation |
Operation |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
Returns:
Type | Description |
---|---|
Object.<string, *> |
Plain object |
(static) toObject(message, optionsopt) → {Object.<string, *>}
Creates a plain object from an Operation message. Also converts values to other types if specified.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.longrunning.Operation |
Operation |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
Returns:
Type | Description |
---|---|
Object.<string, *> |
Plain object |