public static final class Openapiv2.Contact.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Contact.Builder> implements Openapiv2.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 |
|---|---|
Openapiv2.Contact.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Openapiv2.Contact |
build() |
Openapiv2.Contact |
buildPartial() |
Openapiv2.Contact.Builder |
clear() |
Openapiv2.Contact.Builder |
clearEmail()
The email address of the contact person/organization.
|
Openapiv2.Contact.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Openapiv2.Contact.Builder |
clearName()
The identifying name of the contact person/organization.
|
Openapiv2.Contact.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Openapiv2.Contact.Builder |
clearUrl()
The URL pointing to the contact information.
|
Openapiv2.Contact.Builder |
clone() |
Openapiv2.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.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Openapiv2.Contact.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Openapiv2.Contact.Builder |
mergeFrom(com.google.protobuf.Message other) |
Openapiv2.Contact.Builder |
mergeFrom(Openapiv2.Contact other) |
Openapiv2.Contact.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Openapiv2.Contact.Builder |
setEmail(java.lang.String value)
The email address of the contact person/organization.
|
Openapiv2.Contact.Builder |
setEmailBytes(com.google.protobuf.ByteString value)
The email address of the contact person/organization.
|
Openapiv2.Contact.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Openapiv2.Contact.Builder |
setName(java.lang.String value)
The identifying name of the contact person/organization.
|
Openapiv2.Contact.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The identifying name of the contact person/organization.
|
Openapiv2.Contact.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Openapiv2.Contact.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Openapiv2.Contact.Builder |
setUrl(java.lang.String value)
The URL pointing to the contact information.
|
Openapiv2.Contact.Builder |
setUrlBytes(com.google.protobuf.ByteString value)
The URL pointing to the contact information.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, 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<Openapiv2.Contact.Builder>public Openapiv2.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<Openapiv2.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<Openapiv2.Contact.Builder>public Openapiv2.Contact getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Openapiv2.Contact build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Openapiv2.Contact buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Openapiv2.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<Openapiv2.Contact.Builder>public Openapiv2.Contact.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Contact.Builder>public Openapiv2.Contact.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Contact.Builder>public Openapiv2.Contact.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Contact.Builder>public Openapiv2.Contact.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Contact.Builder>public Openapiv2.Contact.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Contact.Builder>public Openapiv2.Contact.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Openapiv2.Contact.Builder>public Openapiv2.Contact.Builder mergeFrom(Openapiv2.Contact other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Contact.Builder>public Openapiv2.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<Openapiv2.Contact.Builder>java.io.IOExceptionpublic java.lang.String getName()
The identifying name of the contact person/organization.
string name = 1;getName in interface Openapiv2.ContactOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The identifying name of the contact person/organization.
string name = 1;getNameBytes in interface Openapiv2.ContactOrBuilderpublic Openapiv2.Contact.Builder setName(java.lang.String value)
The identifying name of the contact person/organization.
string name = 1;value - The name to set.public Openapiv2.Contact.Builder clearName()
The identifying name of the contact person/organization.
string name = 1;public Openapiv2.Contact.Builder setNameBytes(com.google.protobuf.ByteString value)
The identifying name of the contact person/organization.
string name = 1;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;getUrl in interface Openapiv2.ContactOrBuilderpublic com.google.protobuf.ByteString getUrlBytes()
The URL pointing to the contact information. MUST be in the format of a URL.
string url = 2;getUrlBytes in interface Openapiv2.ContactOrBuilderpublic Openapiv2.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;value - The url to set.public Openapiv2.Contact.Builder clearUrl()
The URL pointing to the contact information. MUST be in the format of a URL.
string url = 2;public Openapiv2.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;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;getEmail in interface Openapiv2.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;getEmailBytes in interface Openapiv2.ContactOrBuilderpublic Openapiv2.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;value - The email to set.public Openapiv2.Contact.Builder clearEmail()
The email address of the contact person/organization. MUST be in the format of an email address.
string email = 3;public Openapiv2.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;value - The bytes for email to set.public final Openapiv2.Contact.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Contact.Builder>public final Openapiv2.Contact.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Contact.Builder>