Class protos.google.storagetransfer.v1.UpdateTransferJobRequest (3.0.0)

Represents an UpdateTransferJobRequest.

Package

@google-cloud/storage-transfer

Constructors

(constructor)(properties)

constructor(properties?: google.storagetransfer.v1.IUpdateTransferJobRequest);

Constructs a new UpdateTransferJobRequest.

Parameter
NameDescription
properties IUpdateTransferJobRequest

Properties to set

Properties

jobName

public jobName: string;

UpdateTransferJobRequest jobName.

projectId

public projectId: string;

UpdateTransferJobRequest projectId.

transferJob

public transferJob?: (google.storagetransfer.v1.ITransferJob|null);

UpdateTransferJobRequest transferJob.

updateTransferJobFieldMask

public updateTransferJobFieldMask?: (google.protobuf.IFieldMask|null);

UpdateTransferJobRequest updateTransferJobFieldMask.

Methods

create(properties)

public static create(properties?: google.storagetransfer.v1.IUpdateTransferJobRequest): google.storagetransfer.v1.UpdateTransferJobRequest;

Creates a new UpdateTransferJobRequest instance using the specified properties.

Parameter
NameDescription
properties IUpdateTransferJobRequest

Properties to set

Returns
TypeDescription
UpdateTransferJobRequest

UpdateTransferJobRequest instance

decode(reader, length)

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

Decodes an UpdateTransferJobRequest message from the specified reader or buffer.

Parameters
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
UpdateTransferJobRequest

UpdateTransferJobRequest

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.storagetransfer.v1.UpdateTransferJobRequest;

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
UpdateTransferJobRequest

UpdateTransferJobRequest

encode(message, writer)

public static encode(message: google.storagetransfer.v1.IUpdateTransferJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified UpdateTransferJobRequest message. Does not implicitly messages.

Parameters
NameDescription
message IUpdateTransferJobRequest

UpdateTransferJobRequest 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.storagetransfer.v1.IUpdateTransferJobRequest, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IUpdateTransferJobRequest

UpdateTransferJobRequest 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.storagetransfer.v1.UpdateTransferJobRequest;

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

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

Plain object

Returns
TypeDescription
UpdateTransferJobRequest

UpdateTransferJobRequest

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for UpdateTransferJobRequest

Parameter
NameDescription
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
TypeDescription
string

The default type url

toJSON()

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

Converts this UpdateTransferJobRequest to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message UpdateTransferJobRequest

UpdateTransferJobRequest

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 UpdateTransferJobRequest 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