Represents a BatchTranslateDocumentResponse.
Package
@google-cloud/translate!Constructors
(constructor)(properties)
constructor(properties?: google.cloud.translation.v3beta1.IBatchTranslateDocumentResponse);
Constructs a new BatchTranslateDocumentResponse.
Name | Description |
properties |
IBatchTranslateDocumentResponse
Properties to set |
Properties
endTime
public endTime?: (google.protobuf.ITimestamp|null);
BatchTranslateDocumentResponse endTime.
Type | Description |
(google.protobuf.ITimestamp|null) |
failedCharacters
public failedCharacters: (number|Long|string);
BatchTranslateDocumentResponse failedCharacters.
Type | Description |
(number|Long|string) |
failedPages
public failedPages: (number|Long|string);
BatchTranslateDocumentResponse failedPages.
Type | Description |
(number|Long|string) |
submitTime
public submitTime?: (google.protobuf.ITimestamp|null);
BatchTranslateDocumentResponse submitTime.
Type | Description |
(google.protobuf.ITimestamp|null) |
totalBillableCharacters
public totalBillableCharacters: (number|Long|string);
BatchTranslateDocumentResponse totalBillableCharacters.
Type | Description |
(number|Long|string) |
totalBillablePages
public totalBillablePages: (number|Long|string);
BatchTranslateDocumentResponse totalBillablePages.
Type | Description |
(number|Long|string) |
totalCharacters
public totalCharacters: (number|Long|string);
BatchTranslateDocumentResponse totalCharacters.
Type | Description |
(number|Long|string) |
totalPages
public totalPages: (number|Long|string);
BatchTranslateDocumentResponse totalPages.
Type | Description |
(number|Long|string) |
translatedCharacters
public translatedCharacters: (number|Long|string);
BatchTranslateDocumentResponse translatedCharacters.
Type | Description |
(number|Long|string) |
translatedPages
public translatedPages: (number|Long|string);
BatchTranslateDocumentResponse translatedPages.
Type | Description |
(number|Long|string) |
Methods
create(properties)
public static create(properties?: google.cloud.translation.v3beta1.IBatchTranslateDocumentResponse): google.cloud.translation.v3beta1.BatchTranslateDocumentResponse;
Creates a new BatchTranslateDocumentResponse instance using the specified properties.
Name | Description |
properties |
IBatchTranslateDocumentResponse
Properties to set |
Type | Description |
google.cloud.translation.v3beta1.BatchTranslateDocumentResponse | BatchTranslateDocumentResponse instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3beta1.BatchTranslateDocumentResponse;
Decodes a BatchTranslateDocumentResponse 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.cloud.translation.v3beta1.BatchTranslateDocumentResponse | BatchTranslateDocumentResponse |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3beta1.BatchTranslateDocumentResponse;
Decodes a BatchTranslateDocumentResponse message from the specified reader or buffer, length delimited.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
Type | Description |
google.cloud.translation.v3beta1.BatchTranslateDocumentResponse | BatchTranslateDocumentResponse |
encode(message, writer)
public static encode(message: google.cloud.translation.v3beta1.IBatchTranslateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified BatchTranslateDocumentResponse message. Does not implicitly messages.
Name | Description |
message |
IBatchTranslateDocumentResponse
BatchTranslateDocumentResponse 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.cloud.translation.v3beta1.IBatchTranslateDocumentResponse, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified BatchTranslateDocumentResponse message, length delimited. Does not implicitly messages.
Name | Description |
message |
IBatchTranslateDocumentResponse
BatchTranslateDocumentResponse 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.cloud.translation.v3beta1.BatchTranslateDocumentResponse;
Creates a BatchTranslateDocumentResponse message from a plain object. Also converts values to their respective internal types.
Name | Description |
object |
{ [k: string]: any }
Plain object |
Type | Description |
google.cloud.translation.v3beta1.BatchTranslateDocumentResponse | BatchTranslateDocumentResponse |
toJSON()
public toJSON(): { [k: string]: any };
Converts this BatchTranslateDocumentResponse to JSON.
Type | Description |
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.cloud.translation.v3beta1.BatchTranslateDocumentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a BatchTranslateDocumentResponse message. Also converts values to other types if specified.
Name | Description |
message |
google.cloud.translation.v3beta1.BatchTranslateDocumentResponse
BatchTranslateDocumentResponse |
options |
$protobuf.IConversionOptions
Conversion options |
Type | Description |
{ [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies a BatchTranslateDocumentResponse message.
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Type | Description |
(string|null) |
|