Represents a BatchTranslateMetadata.
Package
@google-cloud/translateConstructors
(constructor)(properties)
constructor(properties?: google.cloud.translation.v3.IBatchTranslateMetadata);
Constructs a new BatchTranslateMetadata.
Name | Description |
properties |
IBatchTranslateMetadata
Properties to set |
Properties
failedCharacters
public failedCharacters: (number|Long|string);
BatchTranslateMetadata failedCharacters.
state
public state: (google.cloud.translation.v3.BatchTranslateMetadata.State|keyof typeof google.cloud.translation.v3.BatchTranslateMetadata.State);
BatchTranslateMetadata state.
submitTime
public submitTime?: (google.protobuf.ITimestamp|null);
BatchTranslateMetadata submitTime.
totalCharacters
public totalCharacters: (number|Long|string);
BatchTranslateMetadata totalCharacters.
translatedCharacters
public translatedCharacters: (number|Long|string);
BatchTranslateMetadata translatedCharacters.
Methods
create(properties)
public static create(properties?: google.cloud.translation.v3.IBatchTranslateMetadata): google.cloud.translation.v3.BatchTranslateMetadata;
Creates a new BatchTranslateMetadata instance using the specified properties.
Name | Description |
properties |
IBatchTranslateMetadata
Properties to set |
Type | Description |
google.cloud.translation.v3.BatchTranslateMetadata | BatchTranslateMetadata instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.translation.v3.BatchTranslateMetadata;
Decodes a BatchTranslateMetadata 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.v3.BatchTranslateMetadata | BatchTranslateMetadata |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.translation.v3.BatchTranslateMetadata;
Decodes a BatchTranslateMetadata 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.v3.BatchTranslateMetadata | BatchTranslateMetadata |
encode(message, writer)
public static encode(message: google.cloud.translation.v3.IBatchTranslateMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified BatchTranslateMetadata message. Does not implicitly messages.
Name | Description |
message |
IBatchTranslateMetadata
BatchTranslateMetadata 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.v3.IBatchTranslateMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified BatchTranslateMetadata message, length delimited. Does not implicitly messages.
Name | Description |
message |
IBatchTranslateMetadata
BatchTranslateMetadata 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.v3.BatchTranslateMetadata;
Creates a BatchTranslateMetadata 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.v3.BatchTranslateMetadata | BatchTranslateMetadata |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for BatchTranslateMetadata
Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
Type | Description |
string | The default type url |
toJSON()
public toJSON(): { [k: string]: any };
Converts this BatchTranslateMetadata to JSON.
Type | Description |
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.cloud.translation.v3.BatchTranslateMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a BatchTranslateMetadata message. Also converts values to other types if specified.
Name | Description |
message |
google.cloud.translation.v3.BatchTranslateMetadata
BatchTranslateMetadata |
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 BatchTranslateMetadata message.
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Type | Description |
(string|null) |
|