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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<Contact.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<Contact.Builder>
public Contact getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Contact build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Contact buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Contact.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Contact.Builder>
java.io.IOException
public java.lang.String getName()
The identifying name of the contact person/organization.
string name = 1 [json_name = "name"];
getName
in interface ContactOrBuilder
public com.google.protobuf.ByteString getNameBytes()
The identifying name of the contact person/organization.
string name = 1 [json_name = "name"];
getNameBytes
in interface ContactOrBuilder
public 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 ContactOrBuilder
public 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 ContactOrBuilder
public 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 ContactOrBuilder
public 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 ContactOrBuilder
public 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.