Home
last modified time | relevance | path

Searched refs:sub_field (Results 1 – 3 of 3) sorted by relevance

/external/grpc-grpc/src/core/ext/filters/client_channel/
Dmethod_params.cc88 for (grpc_json* sub_field = field->child; sub_field != nullptr; in ParseRetryPolicy() local
89 sub_field = sub_field->next) { in ParseRetryPolicy()
90 if (sub_field->key == nullptr) return nullptr; in ParseRetryPolicy()
91 if (strcmp(sub_field->key, "maxAttempts") == 0) { in ParseRetryPolicy()
93 if (sub_field->type != GRPC_JSON_NUMBER) return nullptr; in ParseRetryPolicy()
94 retry_policy->max_attempts = gpr_parse_nonnegative_int(sub_field->value); in ParseRetryPolicy()
102 } else if (strcmp(sub_field->key, "initialBackoff") == 0) { in ParseRetryPolicy()
104 if (!ParseDuration(sub_field, &retry_policy->initial_backoff)) { in ParseRetryPolicy()
108 } else if (strcmp(sub_field->key, "maxBackoff") == 0) { in ParseRetryPolicy()
110 if (!ParseDuration(sub_field, &retry_policy->max_backoff)) { in ParseRetryPolicy()
[all …]
Dclient_channel.cc239 for (grpc_json* sub_field = field->child; sub_field != nullptr; in parse_retry_throttle_params() local
240 sub_field = sub_field->next) { in parse_retry_throttle_params()
241 if (sub_field->key == nullptr) return; in parse_retry_throttle_params()
242 if (strcmp(sub_field->key, "maxTokens") == 0) { in parse_retry_throttle_params()
244 if (sub_field->type != GRPC_JSON_NUMBER) return; in parse_retry_throttle_params()
245 max_milli_tokens = gpr_parse_nonnegative_int(sub_field->value); in parse_retry_throttle_params()
248 } else if (strcmp(sub_field->key, "tokenRatio") == 0) { in parse_retry_throttle_params()
250 if (sub_field->type != GRPC_JSON_NUMBER) return; in parse_retry_throttle_params()
252 size_t whole_len = strlen(sub_field->value); in parse_retry_throttle_params()
255 const char* decimal_point = strchr(sub_field->value, '.'); in parse_retry_throttle_params()
[all …]
/external/protobuf/src/google/protobuf/util/internal/
Ddefault_value_objectwriter.cc260 const google::protobuf::Field& sub_field = found_type.fields(i); in GetMapValueType() local
261 if (sub_field.number() != 2) { in GetMapValueType()
264 if (sub_field.kind() != google::protobuf::Field_Kind_TYPE_MESSAGE) { in GetMapValueType()
270 typeinfo->ResolveTypeUrl(sub_field.type_url()); in GetMapValueType()
272 GOOGLE_LOG(WARNING) << "Cannot resolve type '" << sub_field.type_url() << "'."; in GetMapValueType()