Class FormatMessage.Builder (1.33.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
TypeDescription
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
NameDescription
valuesIterable<String>

The parameters to add.

Returns
TypeDescription
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
NameDescription
valueString

The parameters to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the parameters to add.

Returns
TypeDescription
FormatMessage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FormatMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FormatMessage.Builder
Overrides

build()

public FormatMessage build()
Returns
TypeDescription
FormatMessage

buildPartial()

public FormatMessage buildPartial()
Returns
TypeDescription
FormatMessage

clear()

public FormatMessage.Builder clear()
Returns
TypeDescription
FormatMessage.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public FormatMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
FormatMessage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FormatMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FormatMessage.Builder
Overrides

clearParameters()

public FormatMessage.Builder clearParameters()

Optional parameters to be embedded into the message.

repeated string parameters = 2;

Returns
TypeDescription
FormatMessage.Builder

This builder for chaining.

clone()

public FormatMessage.Builder clone()
Returns
TypeDescription
FormatMessage.Builder
Overrides

getDefaultInstanceForType()

public FormatMessage getDefaultInstanceForType()
Returns
TypeDescription
FormatMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of parameters.

getParametersList()

public ProtocolStringList getParametersList()

Optional parameters to be embedded into the message.

repeated string parameters = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the parameters.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FormatMessage other)

public FormatMessage.Builder mergeFrom(FormatMessage other)
Parameter
NameDescription
otherFormatMessage
Returns
TypeDescription
FormatMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FormatMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FormatMessage.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FormatMessage.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FormatMessage.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FormatMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FormatMessage.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FormatMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The format to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for format to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The parameters to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FormatMessage.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FormatMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FormatMessage.Builder
Overrides