You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Required. The update mask applies to the resource.
104
107
paths:=req.GetUpdateMask().GetPaths()
105
108
iflen(paths) ==0 {
106
-
returnnil, status.Errorf(codes.InvalidArgument, "update_mask is required")
109
+
// https://google.aip.dev/134
110
+
// field mask must be optional, and the service must treat an omitted field mask as an implied field mask equivalent to all fields that are populated (have a non-empty value).
returnnil, status.Errorf(codes.InvalidArgument, "update_mask path %q not valid", path)
117
131
}
118
132
}
119
133
134
+
// Note that if we try to pass e.g. 10d to message_retention_duration we get this:
135
+
// {
136
+
// "error": {
137
+
// "code": 400,
138
+
// "message": "Invalid value at 'topic.message_retention_duration' (type.googleapis.com/google.protobuf.Duration), Field 'messageRetentionDuration', Illegal duration format; duration must end with 's'",
// "description": "Invalid value at 'topic.message_retention_duration' (type.googleapis.com/google.protobuf.Duration), Field 'messageRetentionDuration', Illegal duration format; duration must end with 's'"
0 commit comments