public static final class Contact.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Contact.Builder> implements ContactOrBuilder
`Contact` is a representation of OpenAPI v2 specification's Contact object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#contactObject
Example:
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
...
contact: {
name: "gRPC-Gateway project";
url: "https://github.com/grpc-ecosystem/grpc-gateway";
email: "none@example.com";
};
...
};
...
};
Protobuf type grpc.gateway.protoc_gen_openapiv2.options.Contact| Modifier and Type | Method and Description |
|---|---|
Contact.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Contact |
build() |
Contact |
buildPartial() |
Contact.Builder |
clear() |
Contact.Builder |
clearEmail()
The email address of the contact person/organization.
|
Contact.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Contact.Builder |
clearName()
The identifying name of the contact person/organization.
|
Contact.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Contact.Builder |
clearUrl()
The URL pointing to the contact information.
|
Contact.Builder |
clone() |
Contact |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEmail()
The email address of the contact person/organization.
|
com.google.protobuf.ByteString |
getEmailBytes()
The email address of the contact person/organization.
|
String |
getName()
The identifying name of the contact person/organization.
|
com.google.protobuf.ByteString |
getNameBytes()
The identifying name of the contact person/organization.
|
String |
getUrl()
The URL pointing to the contact information.
|
com.google.protobuf.ByteString |
getUrlBytes()
The URL pointing to the contact information.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
Contact.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Contact.Builder |
setEmail(String value)
The email address of the contact person/organization.
|
Contact.Builder |
setEmailBytes(com.google.protobuf.ByteString value)
The email address of the contact person/organization.
|
Contact.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Contact.Builder |
setName(String value)
The identifying name of the contact person/organization.
|
Contact.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The identifying name of the contact person/organization.
|
Contact.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Contact.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Contact.Builder |
setUrl(String value)
The URL pointing to the contact information.
|
Contact.Builder |
setUrlBytes(com.google.protobuf.ByteString value)
The URL pointing to the contact information.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, isInitialized, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Contact.Builder>public Contact.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Contact.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Contact.Builder>public Contact getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Contact build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Contact buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Contact.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Contact.Builder>public Contact.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Contact.Builder>public Contact.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Contact.Builder>public Contact.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Contact.Builder>public Contact.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Contact.Builder>public Contact.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Contact.Builder>public String getName()
The identifying name of the contact person/organization.
string name = 1 [json_name = "name"];getName in interface ContactOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The identifying name of the contact person/organization.
string name = 1 [json_name = "name"];getNameBytes in interface ContactOrBuilderpublic Contact.Builder setName(String value)
The identifying name of the contact person/organization.
string name = 1 [json_name = "name"];value - The name to set.public Contact.Builder clearName()
The identifying name of the contact person/organization.
string name = 1 [json_name = "name"];public Contact.Builder setNameBytes(com.google.protobuf.ByteString value)
The identifying name of the contact person/organization.
string name = 1 [json_name = "name"];value - The bytes for name to set.public String getUrl()
The URL pointing to the contact information. MUST be in the format of a URL.
string url = 2 [json_name = "url"];getUrl in interface ContactOrBuilderpublic com.google.protobuf.ByteString getUrlBytes()
The URL pointing to the contact information. MUST be in the format of a URL.
string url = 2 [json_name = "url"];getUrlBytes in interface ContactOrBuilderpublic Contact.Builder setUrl(String value)
The URL pointing to the contact information. MUST be in the format of a URL.
string url = 2 [json_name = "url"];value - The url to set.public Contact.Builder clearUrl()
The URL pointing to the contact information. MUST be in the format of a URL.
string url = 2 [json_name = "url"];public Contact.Builder setUrlBytes(com.google.protobuf.ByteString value)
The URL pointing to the contact information. MUST be in the format of a URL.
string url = 2 [json_name = "url"];value - The bytes for url to set.public String getEmail()
The email address of the contact person/organization. MUST be in the format of an email address.
string email = 3 [json_name = "email"];getEmail in interface ContactOrBuilderpublic com.google.protobuf.ByteString getEmailBytes()
The email address of the contact person/organization. MUST be in the format of an email address.
string email = 3 [json_name = "email"];getEmailBytes in interface ContactOrBuilderpublic Contact.Builder setEmail(String value)
The email address of the contact person/organization. MUST be in the format of an email address.
string email = 3 [json_name = "email"];value - The email to set.public Contact.Builder clearEmail()
The email address of the contact person/organization. MUST be in the format of an email address.
string email = 3 [json_name = "email"];public Contact.Builder setEmailBytes(com.google.protobuf.ByteString value)
The email address of the contact person/organization. MUST be in the format of an email address.
string email = 3 [json_name = "email"];value - The bytes for email to set.public final Contact.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Contact.Builder>public final Contact.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Contact.Builder>Copyright © 2023. All rights reserved.