grpc.gateway.protoc_gen_openapiv2.options.JSONSchemaKt.kt Maven / Gradle / Ivy
//Generated by the protocol buffer compiler. DO NOT EDIT!
// source: protoc-gen-openapiv2/options/openapiv2.proto
package grpc.gateway.protoc_gen_openapiv2.options;
@kotlin.jvm.JvmName("-initializejSONSchema")
public inline fun jSONSchema(block: grpc.gateway.protoc_gen_openapiv2.options.JSONSchemaKt.Dsl.() -> kotlin.Unit): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema =
grpc.gateway.protoc_gen_openapiv2.options.JSONSchemaKt.Dsl._create(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.newBuilder()).apply { block() }._build()
public object JSONSchemaKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema = _builder.build()
/**
*
* Ref is used to define an external reference to include in the message.
* This could be a fully qualified proto message reference, and that type must
* be imported into the protofile. If no message is identified, the Ref will
* be used verbatim in the output.
* For example:
* `ref: ".google.protobuf.Timestamp"`.
*
*
* string ref = 3;
*/
public var ref: kotlin.String
@JvmName("getRef")
get() = _builder.getRef()
@JvmName("setRef")
set(value) {
_builder.setRef(value)
}
/**
*
* Ref is used to define an external reference to include in the message.
* This could be a fully qualified proto message reference, and that type must
* be imported into the protofile. If no message is identified, the Ref will
* be used verbatim in the output.
* For example:
* `ref: ".google.protobuf.Timestamp"`.
*
*
* string ref = 3;
*/
public fun clearRef() {
_builder.clearRef()
}
/**
*
* The title of the schema.
*
*
* string title = 5;
*/
public var title: kotlin.String
@JvmName("getTitle")
get() = _builder.getTitle()
@JvmName("setTitle")
set(value) {
_builder.setTitle(value)
}
/**
*
* The title of the schema.
*
*
* string title = 5;
*/
public fun clearTitle() {
_builder.clearTitle()
}
/**
*
* A short description of the schema.
*
*
* string description = 6;
*/
public var description: kotlin.String
@JvmName("getDescription")
get() = _builder.getDescription()
@JvmName("setDescription")
set(value) {
_builder.setDescription(value)
}
/**
*
* A short description of the schema.
*
*
* string description = 6;
*/
public fun clearDescription() {
_builder.clearDescription()
}
/**
* string default = 7;
*/
public var default: kotlin.String
@JvmName("getDefault")
get() = _builder.getDefault()
@JvmName("setDefault")
set(value) {
_builder.setDefault(value)
}
/**
* string default = 7;
*/
public fun clearDefault() {
_builder.clearDefault()
}
/**
* bool read_only = 8;
*/
public var readOnly: kotlin.Boolean
@JvmName("getReadOnly")
get() = _builder.getReadOnly()
@JvmName("setReadOnly")
set(value) {
_builder.setReadOnly(value)
}
/**
* bool read_only = 8;
*/
public fun clearReadOnly() {
_builder.clearReadOnly()
}
/**
*
* A free-form property to include a JSON example of this field. This is copied
* verbatim to the output swagger.json. Quotes must be escaped.
* This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
*
*
* string example = 9;
*/
public var example: kotlin.String
@JvmName("getExample")
get() = _builder.getExample()
@JvmName("setExample")
set(value) {
_builder.setExample(value)
}
/**
*
* A free-form property to include a JSON example of this field. This is copied
* verbatim to the output swagger.json. Quotes must be escaped.
* This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
*
*
* string example = 9;
*/
public fun clearExample() {
_builder.clearExample()
}
/**
* double multiple_of = 10;
*/
public var multipleOf: kotlin.Double
@JvmName("getMultipleOf")
get() = _builder.getMultipleOf()
@JvmName("setMultipleOf")
set(value) {
_builder.setMultipleOf(value)
}
/**
* double multiple_of = 10;
*/
public fun clearMultipleOf() {
_builder.clearMultipleOf()
}
/**
*
* Maximum represents an inclusive upper limit for a numeric instance. The
* value of MUST be a number,
*
*
* double maximum = 11;
*/
public var maximum: kotlin.Double
@JvmName("getMaximum")
get() = _builder.getMaximum()
@JvmName("setMaximum")
set(value) {
_builder.setMaximum(value)
}
/**
*
* Maximum represents an inclusive upper limit for a numeric instance. The
* value of MUST be a number,
*
*
* double maximum = 11;
*/
public fun clearMaximum() {
_builder.clearMaximum()
}
/**
* bool exclusive_maximum = 12;
*/
public var exclusiveMaximum: kotlin.Boolean
@JvmName("getExclusiveMaximum")
get() = _builder.getExclusiveMaximum()
@JvmName("setExclusiveMaximum")
set(value) {
_builder.setExclusiveMaximum(value)
}
/**
* bool exclusive_maximum = 12;
*/
public fun clearExclusiveMaximum() {
_builder.clearExclusiveMaximum()
}
/**
*
* minimum represents an inclusive lower limit for a numeric instance. The
* value of MUST be a number,
*
*
* double minimum = 13;
*/
public var minimum: kotlin.Double
@JvmName("getMinimum")
get() = _builder.getMinimum()
@JvmName("setMinimum")
set(value) {
_builder.setMinimum(value)
}
/**
*
* minimum represents an inclusive lower limit for a numeric instance. The
* value of MUST be a number,
*
*
* double minimum = 13;
*/
public fun clearMinimum() {
_builder.clearMinimum()
}
/**
* bool exclusive_minimum = 14;
*/
public var exclusiveMinimum: kotlin.Boolean
@JvmName("getExclusiveMinimum")
get() = _builder.getExclusiveMinimum()
@JvmName("setExclusiveMinimum")
set(value) {
_builder.setExclusiveMinimum(value)
}
/**
* bool exclusive_minimum = 14;
*/
public fun clearExclusiveMinimum() {
_builder.clearExclusiveMinimum()
}
/**
* uint64 max_length = 15;
*/
public var maxLength: kotlin.Long
@JvmName("getMaxLength")
get() = _builder.getMaxLength()
@JvmName("setMaxLength")
set(value) {
_builder.setMaxLength(value)
}
/**
* uint64 max_length = 15;
*/
public fun clearMaxLength() {
_builder.clearMaxLength()
}
/**
* uint64 min_length = 16;
*/
public var minLength: kotlin.Long
@JvmName("getMinLength")
get() = _builder.getMinLength()
@JvmName("setMinLength")
set(value) {
_builder.setMinLength(value)
}
/**
* uint64 min_length = 16;
*/
public fun clearMinLength() {
_builder.clearMinLength()
}
/**
* string pattern = 17;
*/
public var pattern: kotlin.String
@JvmName("getPattern")
get() = _builder.getPattern()
@JvmName("setPattern")
set(value) {
_builder.setPattern(value)
}
/**
* string pattern = 17;
*/
public fun clearPattern() {
_builder.clearPattern()
}
/**
* uint64 max_items = 20;
*/
public var maxItems: kotlin.Long
@JvmName("getMaxItems")
get() = _builder.getMaxItems()
@JvmName("setMaxItems")
set(value) {
_builder.setMaxItems(value)
}
/**
* uint64 max_items = 20;
*/
public fun clearMaxItems() {
_builder.clearMaxItems()
}
/**
* uint64 min_items = 21;
*/
public var minItems: kotlin.Long
@JvmName("getMinItems")
get() = _builder.getMinItems()
@JvmName("setMinItems")
set(value) {
_builder.setMinItems(value)
}
/**
* uint64 min_items = 21;
*/
public fun clearMinItems() {
_builder.clearMinItems()
}
/**
* bool unique_items = 22;
*/
public var uniqueItems: kotlin.Boolean
@JvmName("getUniqueItems")
get() = _builder.getUniqueItems()
@JvmName("setUniqueItems")
set(value) {
_builder.setUniqueItems(value)
}
/**
* bool unique_items = 22;
*/
public fun clearUniqueItems() {
_builder.clearUniqueItems()
}
/**
* uint64 max_properties = 24;
*/
public var maxProperties: kotlin.Long
@JvmName("getMaxProperties")
get() = _builder.getMaxProperties()
@JvmName("setMaxProperties")
set(value) {
_builder.setMaxProperties(value)
}
/**
* uint64 max_properties = 24;
*/
public fun clearMaxProperties() {
_builder.clearMaxProperties()
}
/**
* uint64 min_properties = 25;
*/
public var minProperties: kotlin.Long
@JvmName("getMinProperties")
get() = _builder.getMinProperties()
@JvmName("setMinProperties")
set(value) {
_builder.setMinProperties(value)
}
/**
* uint64 min_properties = 25;
*/
public fun clearMinProperties() {
_builder.clearMinProperties()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class RequiredProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* repeated string required = 26;
* @return A list containing the required.
*/
public val required: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getRequiredList()
)
/**
* repeated string required = 26;
* @param value The required to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addRequired")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
_builder.addRequired(value)
}
/**
* repeated string required = 26;
* @param value The required to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignRequired")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
add(value)
}
/**
* repeated string required = 26;
* @param values The required to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllRequired")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllRequired(values)
}
/**
* repeated string required = 26;
* @param values The required to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllRequired")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
* repeated string required = 26;
* @param index The index to set the value at.
* @param value The required to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setRequired")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
_builder.setRequired(index, value)
}/**
* repeated string required = 26;
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearRequired")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearRequired()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class ArrayProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
*
* Items in 'array' must be unique.
*
*
* repeated string array = 34;
* @return A list containing the array.
*/
public val array: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getArrayList()
)
/**
*
* Items in 'array' must be unique.
*
*
* repeated string array = 34;
* @param value The array to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addArray")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
_builder.addArray(value)
}
/**
*
* Items in 'array' must be unique.
*
*
* repeated string array = 34;
* @param value The array to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignArray")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
add(value)
}
/**
*
* Items in 'array' must be unique.
*
*
* repeated string array = 34;
* @param values The array to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllArray")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllArray(values)
}
/**
*
* Items in 'array' must be unique.
*
*
* repeated string array = 34;
* @param values The array to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllArray")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
*
* Items in 'array' must be unique.
*
*
* repeated string array = 34;
* @param index The index to set the value at.
* @param value The array to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setArray")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
_builder.setArray(index, value)
}/**
*
* Items in 'array' must be unique.
*
*
* repeated string array = 34;
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearArray")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearArray()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class TypeProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
* repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
*/
public val type: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getTypeList()
)
/**
* repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
* @param value The type to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addType")
public fun com.google.protobuf.kotlin.DslList.add(value: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes) {
_builder.addType(value)
}/**
* repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
* @param value The type to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignType")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes) {
add(value)
}/**
* repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
* @param values The type to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllType")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllType(values)
}/**
* repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
* @param values The type to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllType")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}/**
* repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
* @param index The index to set the value at.
* @param value The type to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setType")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.JSONSchemaSimpleTypes) {
_builder.setType(index, value)
}/**
* repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearType")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearType()
}
/**
*
* `Format`
*
*
* string format = 36;
*/
public var format: kotlin.String
@JvmName("getFormat")
get() = _builder.getFormat()
@JvmName("setFormat")
set(value) {
_builder.setFormat(value)
}
/**
*
* `Format`
*
*
* string format = 36;
*/
public fun clearFormat() {
_builder.clearFormat()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class EnumProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
*
* Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
*
*
* repeated string enum = 46;
* @return A list containing the enum.
*/
public val enum: com.google.protobuf.kotlin.DslList
@kotlin.jvm.JvmSynthetic
get() = com.google.protobuf.kotlin.DslList(
_builder.getEnumList()
)
/**
*
* Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
*
*
* repeated string enum = 46;
* @param value The enum to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addEnum")
public fun com.google.protobuf.kotlin.DslList.add(value: kotlin.String) {
_builder.addEnum(value)
}
/**
*
* Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
*
*
* repeated string enum = 46;
* @param value The enum to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignEnum")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(value: kotlin.String) {
add(value)
}
/**
*
* Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
*
*
* repeated string enum = 46;
* @param values The enum to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("addAllEnum")
public fun com.google.protobuf.kotlin.DslList.addAll(values: kotlin.collections.Iterable) {
_builder.addAllEnum(values)
}
/**
*
* Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
*
*
* repeated string enum = 46;
* @param values The enum to add.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("plusAssignAllEnum")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslList.plusAssign(values: kotlin.collections.Iterable) {
addAll(values)
}
/**
*
* Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
*
*
* repeated string enum = 46;
* @param index The index to set the value at.
* @param value The enum to set.
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("setEnum")
public operator fun com.google.protobuf.kotlin.DslList.set(index: kotlin.Int, value: kotlin.String) {
_builder.setEnum(index, value)
}/**
*
* Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
*
*
* repeated string enum = 46;
*/
@kotlin.jvm.JvmSynthetic
@kotlin.jvm.JvmName("clearEnum")
public fun com.google.protobuf.kotlin.DslList.clear() {
_builder.clearEnum()
}
/**
*
* Additional field level properties used when generating the OpenAPI v2 file.
*
*
* .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001;
*/
public var fieldConfiguration: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration
@JvmName("getFieldConfiguration")
get() = _builder.getFieldConfiguration()
@JvmName("setFieldConfiguration")
set(value) {
_builder.setFieldConfiguration(value)
}
/**
*
* Additional field level properties used when generating the OpenAPI v2 file.
*
*
* .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001;
*/
public fun clearFieldConfiguration() {
_builder.clearFieldConfiguration()
}
/**
*
* Additional field level properties used when generating the OpenAPI v2 file.
*
*
* .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001;
* @return Whether the fieldConfiguration field is set.
*/
public fun hasFieldConfiguration(): kotlin.Boolean {
return _builder.hasFieldConfiguration()
}
/**
* An uninstantiable, behaviorless type to represent the field in
* generics.
*/
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
public class ExtensionsProxy private constructor() : com.google.protobuf.kotlin.DslProxy()
/**
*
* Custom properties that start with "x-" such as "x-foo" used to describe
* extra functionality that is not covered by the standard OpenAPI Specification.
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
*
*
* map<string, .google.protobuf.Value> extensions = 48;
*/
public val extensions: com.google.protobuf.kotlin.DslMap
@kotlin.jvm.JvmSynthetic
@JvmName("getExtensionsMap")
get() = com.google.protobuf.kotlin.DslMap(
_builder.getExtensionsMap()
)
/**
*
* Custom properties that start with "x-" such as "x-foo" used to describe
* extra functionality that is not covered by the standard OpenAPI Specification.
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
*
*
* map<string, .google.protobuf.Value> extensions = 48;
*/
@JvmName("putExtensions")
public fun com.google.protobuf.kotlin.DslMap
.put(key: kotlin.String, value: com.google.protobuf.Value) {
_builder.putExtensions(key, value)
}
/**
*
* Custom properties that start with "x-" such as "x-foo" used to describe
* extra functionality that is not covered by the standard OpenAPI Specification.
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
*
*
* map<string, .google.protobuf.Value> extensions = 48;
*/
@kotlin.jvm.JvmSynthetic
@JvmName("setExtensions")
@Suppress("NOTHING_TO_INLINE")
public inline operator fun com.google.protobuf.kotlin.DslMap
.set(key: kotlin.String, value: com.google.protobuf.Value) {
put(key, value)
}
/**
*
* Custom properties that start with "x-" such as "x-foo" used to describe
* extra functionality that is not covered by the standard OpenAPI Specification.
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
*
*
* map<string, .google.protobuf.Value> extensions = 48;
*/
@kotlin.jvm.JvmSynthetic
@JvmName("removeExtensions")
public fun com.google.protobuf.kotlin.DslMap
.remove(key: kotlin.String) {
_builder.removeExtensions(key)
}
/**
*
* Custom properties that start with "x-" such as "x-foo" used to describe
* extra functionality that is not covered by the standard OpenAPI Specification.
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
*
*
* map<string, .google.protobuf.Value> extensions = 48;
*/
@kotlin.jvm.JvmSynthetic
@JvmName("putAllExtensions")
public fun com.google.protobuf.kotlin.DslMap
.putAll(map: kotlin.collections.Map) {
_builder.putAllExtensions(map)
}
/**
*
* Custom properties that start with "x-" such as "x-foo" used to describe
* extra functionality that is not covered by the standard OpenAPI Specification.
* See: https://swagger.io/docs/specification/2-0/swagger-extensions/
*
*
* map<string, .google.protobuf.Value> extensions = 48;
*/
@kotlin.jvm.JvmSynthetic
@JvmName("clearExtensions")
public fun com.google.protobuf.kotlin.DslMap
.clear() {
_builder.clearExtensions()
}
}
@kotlin.jvm.JvmName("-initializefieldConfiguration")
public inline fun fieldConfiguration(block: grpc.gateway.protoc_gen_openapiv2.options.JSONSchemaKt.FieldConfigurationKt.Dsl.() -> kotlin.Unit): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration =
grpc.gateway.protoc_gen_openapiv2.options.JSONSchemaKt.FieldConfigurationKt.Dsl._create(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.newBuilder()).apply { block() }._build()
public object FieldConfigurationKt {
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class)
@com.google.protobuf.kotlin.ProtoDslMarker
public class Dsl private constructor(
private val _builder: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration = _builder.build()
/**
*
* Alternative parameter name when used as path parameter. If set, this will
* be used as the complete parameter name when this field is used as a path
* parameter. Use this to avoid having auto generated path parameter names
* for overlapping paths.
*
*
* string path_param_name = 47;
*/
public var pathParamName: kotlin.String
@JvmName("getPathParamName")
get() = _builder.getPathParamName()
@JvmName("setPathParamName")
set(value) {
_builder.setPathParamName(value)
}
/**
*
* Alternative parameter name when used as path parameter. If set, this will
* be used as the complete parameter name when this field is used as a path
* parameter. Use this to avoid having auto generated path parameter names
* for overlapping paths.
*
*
* string path_param_name = 47;
*/
public fun clearPathParamName() {
_builder.clearPathParamName()
}
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.copy(block: grpc.gateway.protoc_gen_openapiv2.options.JSONSchemaKt.Dsl.() -> kotlin.Unit): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema =
grpc.gateway.protoc_gen_openapiv2.options.JSONSchemaKt.Dsl._create(this.toBuilder()).apply { block() }._build()
@kotlin.jvm.JvmSynthetic
public inline fun grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration.copy(block: grpc.gateway.protoc_gen_openapiv2.options.JSONSchemaKt.FieldConfigurationKt.Dsl.() -> kotlin.Unit): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration =
grpc.gateway.protoc_gen_openapiv2.options.JSONSchemaKt.FieldConfigurationKt.Dsl._create(this.toBuilder()).apply { block() }._build()
public val grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchemaOrBuilder.fieldConfigurationOrNull: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.FieldConfiguration?
get() = if (hasFieldConfiguration()) getFieldConfiguration() else null
© 2015 - 2025 Weber Informatics LLC | Privacy Policy