|
|
|
@ -1025,8 +1025,7 @@ Status ProtoStreamObjectWriter::RenderTimestamp(ProtoStreamObjectWriter* ow, |
|
|
|
|
if (data.type() == DataPiece::TYPE_NULL) return Status(); |
|
|
|
|
if (data.type() != DataPiece::TYPE_STRING) { |
|
|
|
|
return util::InvalidArgumentError( |
|
|
|
|
StrCat( |
|
|
|
|
"Invalid data type for timestamp, value is ", |
|
|
|
|
StrCat("Invalid data type for timestamp, value is ", |
|
|
|
|
data.ValueAsStringOrDefault(""))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1057,8 +1056,7 @@ Status ProtoStreamObjectWriter::RenderFieldMask(ProtoStreamObjectWriter* ow, |
|
|
|
|
if (data.type() == DataPiece::TYPE_NULL) return Status(); |
|
|
|
|
if (data.type() != DataPiece::TYPE_STRING) { |
|
|
|
|
return util::InvalidArgumentError( |
|
|
|
|
StrCat( |
|
|
|
|
"Invalid data type for field mask, value is ", |
|
|
|
|
StrCat("Invalid data type for field mask, value is ", |
|
|
|
|
data.ValueAsStringOrDefault(""))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1074,8 +1072,7 @@ Status ProtoStreamObjectWriter::RenderDuration(ProtoStreamObjectWriter* ow, |
|
|
|
|
if (data.type() == DataPiece::TYPE_NULL) return Status(); |
|
|
|
|
if (data.type() != DataPiece::TYPE_STRING) { |
|
|
|
|
return util::InvalidArgumentError( |
|
|
|
|
StrCat( |
|
|
|
|
"Invalid data type for duration, value is ", |
|
|
|
|
StrCat("Invalid data type for duration, value is ", |
|
|
|
|
data.ValueAsStringOrDefault(""))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|