|
|
@ -968,13 +968,11 @@ void RepeatedImmutableStringFieldGenerator::GenerateKotlinDslMembers( |
|
|
|
|
|
|
|
|
|
|
|
// property for List<String>
|
|
|
|
// property for List<String>
|
|
|
|
WriteFieldAccessorDocComment(printer, descriptor_, LIST_GETTER); |
|
|
|
WriteFieldAccessorDocComment(printer, descriptor_, LIST_GETTER); |
|
|
|
printer->Print( |
|
|
|
printer->Print(variables_, |
|
|
|
variables_, |
|
|
|
"$kt_deprecation$public val $kt_name$: " |
|
|
|
"public val $kt_name$: " |
|
|
|
|
|
|
|
"com.google.protobuf.kotlin.DslList" |
|
|
|
"com.google.protobuf.kotlin.DslList" |
|
|
|
"<kotlin.String, ${$$kt_capitalized_name$Proxy$}$>\n" |
|
|
|
"<kotlin.String, ${$$kt_capitalized_name$Proxy$}$>\n" |
|
|
|
" @kotlin.OptIn" |
|
|
|
" @kotlin.jvm.JvmSynthetic\n" |
|
|
|
"(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)\n" |
|
|
|
|
|
|
|
" get() = com.google.protobuf.kotlin.DslList(\n" |
|
|
|
" get() = com.google.protobuf.kotlin.DslList(\n" |
|
|
|
" $kt_dsl_builder$.${$get$capitalized_name$List$}$()\n" |
|
|
|
" $kt_dsl_builder$.${$get$capitalized_name$List$}$()\n" |
|
|
|
" )\n"); |
|
|
|
" )\n"); |
|
|
@ -997,10 +995,11 @@ void RepeatedImmutableStringFieldGenerator::GenerateKotlinDslMembers( |
|
|
|
printer->Print(variables_, |
|
|
|
printer->Print(variables_, |
|
|
|
"@kotlin.jvm.JvmSynthetic\n" |
|
|
|
"@kotlin.jvm.JvmSynthetic\n" |
|
|
|
"@kotlin.jvm.JvmName(\"plusAssign$kt_capitalized_name$\")\n" |
|
|
|
"@kotlin.jvm.JvmName(\"plusAssign$kt_capitalized_name$\")\n" |
|
|
|
"public operator fun com.google.protobuf.kotlin.DslList" |
|
|
|
"@Suppress(\"NOTHING_TO_INLINE\")\n" |
|
|
|
|
|
|
|
"public inline operator fun com.google.protobuf.kotlin.DslList" |
|
|
|
"<kotlin.String, ${$$kt_capitalized_name$Proxy$}$>." |
|
|
|
"<kotlin.String, ${$$kt_capitalized_name$Proxy$}$>." |
|
|
|
"plusAssign(value: kotlin.String) {\n" |
|
|
|
"plusAssign(value: kotlin.String) {\n" |
|
|
|
" $kt_dsl_builder$.${$add$capitalized_name$$}$(value)\n" |
|
|
|
" add(value)\n" |
|
|
|
"}\n"); |
|
|
|
"}\n"); |
|
|
|
|
|
|
|
|
|
|
|
// List<String>.addAll(Iterable<String>)
|
|
|
|
// List<String>.addAll(Iterable<String>)
|
|
|
@ -1023,10 +1022,11 @@ void RepeatedImmutableStringFieldGenerator::GenerateKotlinDslMembers( |
|
|
|
variables_, |
|
|
|
variables_, |
|
|
|
"@kotlin.jvm.JvmSynthetic\n" |
|
|
|
"@kotlin.jvm.JvmSynthetic\n" |
|
|
|
"@kotlin.jvm.JvmName(\"plusAssignAll$kt_capitalized_name$\")\n" |
|
|
|
"@kotlin.jvm.JvmName(\"plusAssignAll$kt_capitalized_name$\")\n" |
|
|
|
"public operator fun com.google.protobuf.kotlin.DslList" |
|
|
|
"@Suppress(\"NOTHING_TO_INLINE\")\n" |
|
|
|
|
|
|
|
"public inline operator fun com.google.protobuf.kotlin.DslList" |
|
|
|
"<kotlin.String, ${$$kt_capitalized_name$Proxy$}$>." |
|
|
|
"<kotlin.String, ${$$kt_capitalized_name$Proxy$}$>." |
|
|
|
"plusAssign(values: kotlin.collections.Iterable<kotlin.String>) {\n" |
|
|
|
"plusAssign(values: kotlin.collections.Iterable<kotlin.String>) {\n" |
|
|
|
" $kt_dsl_builder$.${$addAll$capitalized_name$$}$(values)\n" |
|
|
|
" addAll(values)\n" |
|
|
|
"}\n"); |
|
|
|
"}\n"); |
|
|
|
|
|
|
|
|
|
|
|
// List<String>[Int] = String
|
|
|
|
// List<String>[Int] = String
|
|
|
|