Class FormatMessage.Builder (1.43.0)

public static final class FormatMessage.Builder extends GeneratedMessageV3.Builder<FormatMessage.Builder> implements FormatMessageOrBuilder

Represents a message with parameters.

Protobuf type google.devtools.clouddebugger.v2.FormatMessage

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllParameters(Iterable<String> values)

public FormatMessage.Builder addAllParameters(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)

public FormatMessage.Builder addParameters(String value)

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)

public FormatMessage.Builder addParametersBytes(ByteString value)

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)

public FormatMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FormatMessage.Builder
Overrides

build()

public FormatMessage build()
Returns
Type Description
FormatMessage

buildPartial()

public FormatMessage buildPartial()
Returns
Type Description
FormatMessage

clear()

public FormatMessage.Builder clear()
Returns
Type Description
FormatMessage.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public FormatMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FormatMessage.Builder
Overrides

clearFormat()

public FormatMessage.Builder clearFormat()

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)

public FormatMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FormatMessage.Builder
Overrides

clearParameters()

public FormatMessage.Builder clearParameters()

Optional parameters to be embedded into the message.

repeated string parameters = 2;

Returns
Type Description
FormatMessage.Builder

This builder for chaining.

clone()

public FormatMessage.Builder clone()
Returns
Type Description
FormatMessage.Builder
Overrides

getDefaultInstanceForType()

public FormatMessage getDefaultInstanceForType()
Returns
Type Description
FormatMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFormat()

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.

getFormatBytes()

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
Type Description
ByteString

The bytes for format.

getParameters(int index)

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.

getParametersBytes(int 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.

getParametersCount()

public int getParametersCount()

Optional parameters to be embedded into the message.

repeated string parameters = 2;

Returns
Type Description
int

The count of parameters.

getParametersList()

public ProtocolStringList getParametersList()

Optional parameters to be embedded into the message.

repeated string parameters = 2;

Returns
Type Description
ProtocolStringList

A list containing the parameters.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FormatMessage other)

public FormatMessage.Builder mergeFrom(FormatMessage other)
Parameter
Name Description
other FormatMessage
Returns
Type Description
FormatMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FormatMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FormatMessage.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FormatMessage.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FormatMessage.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FormatMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FormatMessage.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FormatMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FormatMessage.Builder
Overrides

setFormat(String value)

public FormatMessage.Builder setFormat(String value)

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)

public FormatMessage.Builder setFormatBytes(ByteString value)

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)

public FormatMessage.Builder setParameters(int index, String value)

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)

public FormatMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FormatMessage.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FormatMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FormatMessage.Builder
Overrides