public static final class Contact.Builder extends com.google.protobuf.GeneratedMessage.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 |
build() |
Contact |
buildPartial() |
Contact.Builder |
clear() |
Contact.Builder |
clearEmail()
The email address of the contact person/organization.
|
Contact.Builder |
clearName()
The identifying name of the contact person/organization.
|
Contact.Builder |
clearUrl()
The URL pointing to the contact information.
|
Contact |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getEmail()
The email address of the contact person/organization.
|
com.google.protobuf.ByteString |
getEmailBytes()
The email address of the contact person/organization.
|
java.lang.String |
getName()
The identifying name of the contact person/organization.
|
com.google.protobuf.ByteString |
getNameBytes()
The identifying name of the contact person/organization.
|
java.lang.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.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Contact.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Contact.Builder |
mergeFrom(Contact other) |
Contact.Builder |
mergeFrom(com.google.protobuf.Message other) |
Contact.Builder |
setEmail(java.lang.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 |
setName(java.lang.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 |
setUrl(java.lang.String value)
The URL pointing to the contact information.
|
Contact.Builder |
setUrlBytes(com.google.protobuf.ByteString value)
The URL pointing to the contact information.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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 mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Contact.Builder>public Contact.Builder mergeFrom(Contact other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Contact.Builder>public Contact.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Contact.Builder>java.io.IOExceptionpublic java.lang.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(java.lang.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 java.lang.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(java.lang.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 java.lang.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(java.lang.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.