Class protos.google.devtools.cloudbuild.v1.ApprovalResult (2.5.0)

Represents an ApprovalResult.

Package

@google-cloud/cloudbuild!

Constructors

(constructor)(properties)

constructor(properties?: google.devtools.cloudbuild.v1.IApprovalResult);

Constructs a new ApprovalResult.

Parameter
NameDescription
properties IApprovalResult

Properties to set

Properties

approvalTime

public approvalTime?: (google.protobuf.ITimestamp|null);

ApprovalResult approvalTime.

Property Value
TypeDescription
(google.protobuf.ITimestamp|null)

approverAccount

public approverAccount: string;

ApprovalResult approverAccount.

Property Value
TypeDescription
string

comment

public comment: string;

ApprovalResult comment.

Property Value
TypeDescription
string

decision

public decision: (google.devtools.cloudbuild.v1.ApprovalResult.Decision|keyof typeof google.devtools.cloudbuild.v1.ApprovalResult.Decision);

ApprovalResult decision.

Property Value
TypeDescription
(google.devtools.cloudbuild.v1.ApprovalResult.Decision|keyof typeof google.devtools.cloudbuild.v1.ApprovalResult.Decision)

url

public url: string;

ApprovalResult url.

Property Value
TypeDescription
string

Methods

create(properties)

public static create(properties?: google.devtools.cloudbuild.v1.IApprovalResult): google.devtools.cloudbuild.v1.ApprovalResult;

Creates a new ApprovalResult instance using the specified properties.

Parameter
NameDescription
properties IApprovalResult

Properties to set

Returns
TypeDescription
google.devtools.cloudbuild.v1.ApprovalResult

ApprovalResult instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.cloudbuild.v1.ApprovalResult;

Decodes an ApprovalResult message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.devtools.cloudbuild.v1.ApprovalResult

ApprovalResult

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.cloudbuild.v1.ApprovalResult;

Decodes an ApprovalResult message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.devtools.cloudbuild.v1.ApprovalResult

ApprovalResult

encode(message, writer)

public static encode(message: google.devtools.cloudbuild.v1.IApprovalResult, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ApprovalResult message. Does not implicitly messages.

Parameters
NameDescription
message IApprovalResult

ApprovalResult message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.devtools.cloudbuild.v1.IApprovalResult, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ApprovalResult message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message IApprovalResult

ApprovalResult message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.devtools.cloudbuild.v1.ApprovalResult;

Creates an ApprovalResult message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.devtools.cloudbuild.v1.ApprovalResult

ApprovalResult

toJSON()

public toJSON(): { [k: string]: any };

Converts this ApprovalResult to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.devtools.cloudbuild.v1.ApprovalResult, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from an ApprovalResult message. Also converts values to other types if specified.

Parameters
NameDescription
message google.devtools.cloudbuild.v1.ApprovalResult

ApprovalResult

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies an ApprovalResult message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not