Constructor
new Build(propertiesopt)
Constructs a new Build.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.devtools.cloudbuild.v1.IBuild |
<optional> |
Properties to set |
- Implements:
-
- IBuild
Classes
Members
approval
Build approval.
artifacts
Build artifacts.
availableSecrets
Build availableSecrets.
buildTriggerId
Build buildTriggerId.
createTime
Build createTime.
failureInfo
Build failureInfo.
finishTime
Build finishTime.
id
Build id.
images
Build images.
logUrl
Build logUrl.
logsBucket
Build logsBucket.
name
Build name.
options
Build options.
projectId
Build projectId.
queueTtl
Build queueTtl.
results
Build results.
secrets
Build secrets.
serviceAccount
Build serviceAccount.
source
Build source.
sourceProvenance
Build sourceProvenance.
startTime
Build startTime.
status
Build status.
statusDetail
Build statusDetail.
steps
Build steps.
substitutions
Build substitutions.
tags
Build tags.
timeout
Build timeout.
timing
Build timing.
warnings
Build warnings.
Status
Status enum.
Properties:
Name | Type | Description |
---|---|---|
STATUS_UNKNOWN |
number |
STATUS_UNKNOWN value |
PENDING |
number |
PENDING value |
QUEUED |
number |
QUEUED value |
WORKING |
number |
WORKING value |
SUCCESS |
number |
SUCCESS value |
FAILURE |
number |
FAILURE value |
INTERNAL_ERROR |
number |
INTERNAL_ERROR value |
TIMEOUT |
number |
TIMEOUT value |
CANCELLED |
number |
CANCELLED value |
EXPIRED |
number |
EXPIRED value |
Methods
toJSON() → {Object.<string, *>}
Converts this Build to JSON.
Returns:
Type | Description |
---|---|
Object.<string, *> |
JSON object |
(static) create(propertiesopt) → {google.devtools.cloudbuild.v1.Build}
Creates a new Build instance using the specified properties.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.devtools.cloudbuild.v1.IBuild |
<optional> |
Properties to set |
Returns:
Type | Description |
---|---|
google.devtools.cloudbuild.v1.Build |
Build instance |
(static) decode(reader, lengthopt) → {google.devtools.cloudbuild.v1.Build}
Decodes a Build message from the specified reader or buffer.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
reader |
$protobuf.Reader | Uint8Array |
Reader or buffer to decode from |
|
length |
number |
<optional> |
Message length if known beforehand |
Returns:
Type | Description |
---|---|
google.devtools.cloudbuild.v1.Build |
Build |
Throws:
-
-
If the payload is not a reader or valid buffer
- Type
- Error
-
-
-
If required fields are missing
- Type
- $protobuf.util.ProtocolError
-
(static) decodeDelimited(reader) → {google.devtools.cloudbuild.v1.Build}
Decodes a Build message from the specified reader or buffer, length delimited.
Parameters:
Name | Type | Description |
---|---|---|
reader |
$protobuf.Reader | Uint8Array |
Reader or buffer to decode from |
Returns:
Type | Description |
---|---|
google.devtools.cloudbuild.v1.Build |
Build |
Throws:
-
-
If the payload is not a reader or valid buffer
- Type
- Error
-
-
-
If required fields are missing
- Type
- $protobuf.util.ProtocolError
-
(static) encode(message, writeropt) → {$protobuf.Writer}
Encodes the specified Build message. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.devtools.cloudbuild.v1.IBuild |
Build message or plain object to encode |
|
writer |
$protobuf.Writer |
<optional> |
Writer to encode to |
Returns:
Type | Description |
---|---|
$protobuf.Writer |
Writer |
(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}
Encodes the specified Build message, length delimited. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.devtools.cloudbuild.v1.IBuild |
Build message or plain object to encode |
|
writer |
$protobuf.Writer |
<optional> |
Writer to encode to |
Returns:
Type | Description |
---|---|
$protobuf.Writer |
Writer |
(static) fromObject(object) → {google.devtools.cloudbuild.v1.Build}
Creates a Build 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.devtools.cloudbuild.v1.Build |
Build |
(static) getTypeUrl(typeUrlPrefixopt) → {string}
Gets the default type url for Build
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 a Build message. Also converts values to other types if specified.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.devtools.cloudbuild.v1.Build |
Build |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
Returns:
Type | Description |
---|---|
Object.<string, *> |
Plain object |
(static) verify(message) → {string|null}
Verifies a Build message.
Parameters:
Name | Type | Description |
---|---|---|
message |
Object.<string, *> |
Plain object to verify |
Returns:
Type | Description |
---|---|
string | null |
|