grpc.gateway.protoc_gen_openapiv2.options.ContactKt.kt Maven / Gradle / Ivy
The newest version!
//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("-initializecontact")
public inline fun contact(block: grpc.gateway.protoc_gen_openapiv2.options.ContactKt.Dsl.() -> kotlin.Unit): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact =
grpc.gateway.protoc_gen_openapiv2.options.ContactKt.Dsl._create(grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.newBuilder()).apply { block() }._build()
public object ContactKt {
@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.Contact.Builder
) {
public companion object {
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _create(builder: grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.Builder): Dsl = Dsl(builder)
}
@kotlin.jvm.JvmSynthetic
@kotlin.PublishedApi
internal fun _build(): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact = _builder.build()
/**
*
* The identifying name of the contact person/organization.
*
*
* string name = 1;
*/
public var name: kotlin.String
@JvmName("getName")
get() = _builder.getName()
@JvmName("setName")
set(value) {
_builder.setName(value)
}
/**
*
* The identifying name of the contact person/organization.
*
*
* string name = 1;
*/
public fun clearName() {
_builder.clearName()
}
/**
*
* The URL pointing to the contact information. MUST be in the format of a
* URL.
*
*
* string url = 2;
*/
public var url: kotlin.String
@JvmName("getUrl")
get() = _builder.getUrl()
@JvmName("setUrl")
set(value) {
_builder.setUrl(value)
}
/**
*
* The URL pointing to the contact information. MUST be in the format of a
* URL.
*
*
* string url = 2;
*/
public fun clearUrl() {
_builder.clearUrl()
}
/**
*
* The email address of the contact person/organization. MUST be in the format
* of an email address.
*
*
* string email = 3;
*/
public var email: kotlin.String
@JvmName("getEmail")
get() = _builder.getEmail()
@JvmName("setEmail")
set(value) {
_builder.setEmail(value)
}
/**
*
* The email address of the contact person/organization. MUST be in the format
* of an email address.
*
*
* string email = 3;
*/
public fun clearEmail() {
_builder.clearEmail()
}
}
}
@kotlin.jvm.JvmSynthetic
public inline fun grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact.copy(block: grpc.gateway.protoc_gen_openapiv2.options.ContactKt.Dsl.() -> kotlin.Unit): grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Contact =
grpc.gateway.protoc_gen_openapiv2.options.ContactKt.Dsl._create(this.toBuilder()).apply { block() }._build()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy