public final class FormatMessage extends GeneratedMessageV3 implements FormatMessageOrBuilder
Represents a message with parameters.
Protobuf type google.devtools.clouddebugger.v2.FormatMessage
Static Fields
public static final int FORMAT_FIELD_NUMBER
Field Value
public static final int PARAMETERS_FIELD_NUMBER
Field Value
Static Methods
public static FormatMessage getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static FormatMessage.Builder newBuilder()
Returns
public static FormatMessage.Builder newBuilder(FormatMessage prototype)
Parameter
Returns
public static FormatMessage parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static FormatMessage parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FormatMessage parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static FormatMessage parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FormatMessage parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static FormatMessage parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FormatMessage parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static FormatMessage parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FormatMessage parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static FormatMessage parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FormatMessage parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static FormatMessage parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<FormatMessage> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public FormatMessage getDefaultInstanceForType()
Returns
public String getFormat()
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.
|
public ByteString getFormatBytes()
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
public String getParameters(int index)
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.
|
public ByteString getParametersBytes(int index)
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.
|
public int getParametersCount()
Optional parameters to be embedded into the message.
repeated string parameters = 2;
Returns
Type | Description |
int | The count of parameters.
|
public ProtocolStringList getParametersList()
Optional parameters to be embedded into the message.
repeated string parameters = 2;
Returns
public Parser<FormatMessage> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public FormatMessage.Builder newBuilderForType()
Returns
protected FormatMessage.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public FormatMessage.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions