Interface FormatMessageOrBuilder (1.34.0)

publicinterface FormatMessageOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getFormat()

publicabstractStringgetFormat()

Format template for the message. The format uses placeholders 0ドル, 1ドル, etc. to reference parameters. $$ can be used to denote the $ character.

Examples:

  • Failed to load '0ドル' which helps debug 1ドル the first time it is loaded. Again, 0ドル is very important.
  • Please pay $10ドル to use 0ドル instead of 1ドル.

string format = 1;

Returns
Type Description
String

The format.

getFormatBytes()

publicabstractByteStringgetFormatBytes()

Format template for the message. The format uses placeholders 0ドル, 1ドル, etc. to reference parameters. $$ can be used to denote the $ character.

Examples:

  • Failed to load '0ドル' which helps debug 1ドル the first time it is loaded. Again, 0ドル is very important.
  • Please pay $10ドル to use 0ドル instead of 1ドル.

string format = 1;

Returns
Type Description
ByteString

The bytes for format.

getParameters(int index)

publicabstractStringgetParameters(intindex)

Optional parameters to be embedded into the message.

repeated string parameters = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The parameters at the given index.

getParametersBytes(int index)

publicabstractByteStringgetParametersBytes(intindex)

Optional parameters to be embedded into the message.

repeated string parameters = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the parameters at the given index.

getParametersCount()

publicabstractintgetParametersCount()

Optional parameters to be embedded into the message.

repeated string parameters = 2;

Returns
Type Description
int

The count of parameters.

getParametersList()

publicabstractList<String>getParametersList()

Optional parameters to be embedded into the message.

repeated string parameters = 2;

Returns
Type Description
List<String>

A list containing the parameters.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.