Class protos.google.devtools.cloudbuild.v1.BuildTrigger

Represents a BuildTrigger.

Package

@google-cloud/cloudbuild

Constructors

(constructor)(properties)

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

Constructs a new BuildTrigger.

Parameter
NameDescription
properties IBuildTrigger

Properties to set

Properties

autodetect

public autodetect?: (boolean|null);

BuildTrigger autodetect.

build

public build?: (google.devtools.cloudbuild.v1.IBuild|null);

BuildTrigger build.

buildTemplate

public buildTemplate?: ("autodetect"|"build"|"filename");

BuildTrigger buildTemplate.

createTime

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

BuildTrigger createTime.

description

public description: string;

BuildTrigger description.

disabled

public disabled: boolean;

BuildTrigger disabled.

filename

public filename?: (string|null);

BuildTrigger filename.

filter

public filter: string;

BuildTrigger filter.

github

public github?: (google.devtools.cloudbuild.v1.IGitHubEventsConfig|null);

BuildTrigger github.

id

public id: string;

BuildTrigger id.

ignoredFiles

public ignoredFiles: string[];

BuildTrigger ignoredFiles.

includedFiles

public includedFiles: string[];

BuildTrigger includedFiles.

name

public name: string;

BuildTrigger name.

pubsubConfig

public pubsubConfig?: (google.devtools.cloudbuild.v1.IPubsubConfig|null);

BuildTrigger pubsubConfig.

resourceName

public resourceName: string;

BuildTrigger resourceName.

serviceAccount

public serviceAccount: string;

BuildTrigger serviceAccount.

substitutions

public substitutions: { [k: string]: string };

BuildTrigger substitutions.

tags

public tags: string[];

BuildTrigger tags.

triggerTemplate

public triggerTemplate?: (google.devtools.cloudbuild.v1.IRepoSource|null);

BuildTrigger triggerTemplate.

webhookConfig

public webhookConfig?: (google.devtools.cloudbuild.v1.IWebhookConfig|null);

BuildTrigger webhookConfig.

Methods

create(properties)

public static create(properties?: google.devtools.cloudbuild.v1.IBuildTrigger): google.devtools.cloudbuild.v1.BuildTrigger;

Creates a new BuildTrigger instance using the specified properties.

Parameter
NameDescription
properties IBuildTrigger

Properties to set

Returns
TypeDescription
google.devtools.cloudbuild.v1.BuildTrigger

BuildTrigger instance

decode(reader, length)

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

Decodes a BuildTrigger 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.BuildTrigger

BuildTrigger

decodeDelimited(reader)

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

Decodes a BuildTrigger 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.BuildTrigger

BuildTrigger

encode(message, writer)

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

Encodes the specified BuildTrigger message. Does not implicitly messages.

Parameters
NameDescription
message IBuildTrigger

BuildTrigger 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.IBuildTrigger, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IBuildTrigger

BuildTrigger 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.BuildTrigger;

Creates a BuildTrigger 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.BuildTrigger

BuildTrigger

toJSON()

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

Converts this BuildTrigger to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

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

BuildTrigger

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

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

Verifies a BuildTrigger 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