Skip to content

Commit ffb3aa7

Browse files
kpavlov00copybara-github
authored andcommitted
Make public 'TextFormat::Printer::SetRedactDebugString' (#22508)
Closes #22508 COPYBARA_INTEGRATE_REVIEW=#22508 from kpavlov00:make-public-TextFormat-Printer-SetRedactDebugString 58b0407 PiperOrigin-RevId: 782040694
1 parent 1999135 commit ffb3aa7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/google/protobuf/text_format.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,9 @@ class PROTOBUF_EXPORT TextFormat {
420420
}
421421
}
422422

423+
// Sets whether strings will be redacted and thus unparsable.
424+
void SetRedactDebugString(bool redact) { redact_debug_string_ = redact; }
425+
423426
// Register a custom field-specific FastFieldValuePrinter for fields
424427
// with a particular FieldDescriptor.
425428
// Returns "true" if the registration succeeded, or "false", if there is
@@ -459,9 +462,6 @@ class PROTOBUF_EXPORT TextFormat {
459462
// Sets whether silent markers will be inserted.
460463
void SetInsertSilentMarker(bool v) { insert_silent_marker_ = v; }
461464

462-
// Sets whether strings will be redacted and thus unparsable.
463-
void SetRedactDebugString(bool redact) { redact_debug_string_ = redact; }
464-
465465
// Sets whether the output string should be made non-deterministic.
466466
// This discourages equality checks based on serialized string comparisons.
467467
void SetRandomizeDebugString(bool randomize) {

0 commit comments

Comments
 (0)