Class FormatMessage.Builder (1.57.0)

publicstaticfinalclass FormatMessage.BuilderextendsGeneratedMessageV3.Builder<FormatMessage.Builder>implementsFormatMessageOrBuilder

Represents a message with parameters.

Protobuf type google.devtools.clouddebugger.v2.FormatMessage

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllParameters(Iterable<String> values)

publicFormatMessage.BuilderaddAllParameters(Iterable<String>values)

Optional parameters to be embedded into the message.

repeated string parameters = 2;

Parameter
Name Description
values Iterable<String>

The parameters to add.

Returns
Type Description
FormatMessage.Builder

This builder for chaining.

addParameters(String value)

publicFormatMessage.BuilderaddParameters(Stringvalue)

Optional parameters to be embedded into the message.

repeated string parameters = 2;

Parameter
Name Description
value String

The parameters to add.

Returns
Type Description
FormatMessage.Builder

This builder for chaining.

addParametersBytes(ByteString value)

publicFormatMessage.BuilderaddParametersBytes(ByteStringvalue)

Optional parameters to be embedded into the message.

repeated string parameters = 2;

Parameter
Name Description
value ByteString

The bytes of the parameters to add.

Returns
Type Description
FormatMessage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicFormatMessage.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FormatMessage.Builder
Overrides

build()

publicFormatMessagebuild()
Returns
Type Description
FormatMessage

buildPartial()

publicFormatMessagebuildPartial()
Returns
Type Description
FormatMessage

clear()

publicFormatMessage.Builderclear()
Returns
Type Description
FormatMessage.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicFormatMessage.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FormatMessage.Builder
Overrides

clearFormat()

publicFormatMessage.BuilderclearFormat()

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
FormatMessage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicFormatMessage.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FormatMessage.Builder
Overrides

clearParameters()

publicFormatMessage.BuilderclearParameters()

Optional parameters to be embedded into the message.

repeated string parameters = 2;

Returns
Type Description
FormatMessage.Builder

This builder for chaining.

clone()

publicFormatMessage.Builderclone()
Returns
Type Description
FormatMessage.Builder
Overrides

getDefaultInstanceForType()

publicFormatMessagegetDefaultInstanceForType()
Returns
Type Description
FormatMessage

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFormat()

publicStringgetFormat()

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()

publicByteStringgetFormatBytes()

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)

publicStringgetParameters(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)

publicByteStringgetParametersBytes(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()

publicintgetParametersCount()

Optional parameters to be embedded into the message.

repeated string parameters = 2;

Returns
Type Description
int

The count of parameters.

getParametersList()

publicProtocolStringListgetParametersList()

Optional parameters to be embedded into the message.

repeated string parameters = 2;

Returns
Type Description
ProtocolStringList

A list containing the parameters.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FormatMessage other)

publicFormatMessage.BuildermergeFrom(FormatMessageother)
Parameter
Name Description
other FormatMessage
Returns
Type Description
FormatMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicFormatMessage.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FormatMessage.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicFormatMessage.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
FormatMessage.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalFormatMessage.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FormatMessage.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicFormatMessage.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FormatMessage.Builder
Overrides

setFormat(String value)

publicFormatMessage.BuildersetFormat(Stringvalue)

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;

Parameter
Name Description
value String

The format to set.

Returns
Type Description
FormatMessage.Builder

This builder for chaining.

setFormatBytes(ByteString value)

publicFormatMessage.BuildersetFormatBytes(ByteStringvalue)

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;

Parameter
Name Description
value ByteString

The bytes for format to set.

Returns
Type Description
FormatMessage.Builder

This builder for chaining.

setParameters(int index, String value)

publicFormatMessage.BuildersetParameters(intindex,Stringvalue)

Optional parameters to be embedded into the message.

repeated string parameters = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The parameters to set.

Returns
Type Description
FormatMessage.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicFormatMessage.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FormatMessage.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalFormatMessage.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FormatMessage.Builder
Overrides

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.