Represents an UpdateTransferJobRequest.
Package
@google-cloud/storage-transfer!Constructors
(constructor)(properties)
constructor(properties?: google.storagetransfer.v1.IUpdateTransferJobRequest);
Constructs a new UpdateTransferJobRequest.
Name | Description |
properties |
google.storagetransfer.v1.IUpdateTransferJobRequest
Properties to set |
Properties
jobName
public jobName: string;
UpdateTransferJobRequest jobName.
Type | Description |
string |
projectId
public projectId: string;
UpdateTransferJobRequest projectId.
Type | Description |
string |
transferJob
public transferJob?: (google.storagetransfer.v1.ITransferJob|null);
UpdateTransferJobRequest transferJob.
Type | Description |
(google.storagetransfer.v1.ITransferJob|null) |
updateTransferJobFieldMask
public updateTransferJobFieldMask?: (google.protobuf.IFieldMask|null);
UpdateTransferJobRequest updateTransferJobFieldMask.
Type | Description |
(google.protobuf.IFieldMask|null) |
Methods
create(properties)
public static create(properties?: google.storagetransfer.v1.IUpdateTransferJobRequest): google.storagetransfer.v1.UpdateTransferJobRequest;
Creates a new UpdateTransferJobRequest instance using the specified properties.
Name | Description |
properties |
google.storagetransfer.v1.IUpdateTransferJobRequest
Properties to set |
Type | Description |
google.storagetransfer.v1.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.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Type | Description |
google.storagetransfer.v1.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.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
Type | Description |
google.storagetransfer.v1.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.
Name | Description |
message |
google.storagetransfer.v1.IUpdateTransferJobRequest
UpdateTransferJobRequest message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$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.
Name | Description |
message |
google.storagetransfer.v1.IUpdateTransferJobRequest
UpdateTransferJobRequest message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$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.
Name | Description |
object |
{ [k: string]: any }
Plain object |
Type | Description |
google.storagetransfer.v1.UpdateTransferJobRequest | UpdateTransferJobRequest |
toJSON()
public toJSON(): { [k: string]: any };
Converts this UpdateTransferJobRequest to JSON.
Type | Description |
{ [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.
Name | Description |
message |
google.storagetransfer.v1.UpdateTransferJobRequest
UpdateTransferJobRequest |
options |
$protobuf.IConversionOptions
Conversion options |
Type | Description |
{ [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies an UpdateTransferJobRequest message.
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Type | Description |
(string|null) |
|