public static final class ExternalDocumentation.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExternalDocumentation.Builder> implements ExternalDocumentationOrBuilder
`ExternalDocumentation` is a representation of OpenAPI v2 specification's
ExternalDocumentation object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#externalDocumentationObject
Example:
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
...
external_docs: {
description: "More about gRPC-Gateway";
url: "https://github.com/grpc-ecosystem/grpc-gateway";
}
...
};
Protobuf type grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation| Modifier and Type | Method and Description |
|---|---|
ExternalDocumentation |
build() |
ExternalDocumentation |
buildPartial() |
ExternalDocumentation.Builder |
clear() |
ExternalDocumentation.Builder |
clearDescription()
A short description of the target documentation.
|
ExternalDocumentation.Builder |
clearUrl()
The URL for the target documentation.
|
ExternalDocumentation |
getDefaultInstanceForType() |
java.lang.String |
getDescription()
A short description of the target documentation.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
A short description of the target documentation.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getUrl()
The URL for the target documentation.
|
com.google.protobuf.ByteString |
getUrlBytes()
The URL for the target documentation.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ExternalDocumentation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ExternalDocumentation.Builder |
mergeFrom(ExternalDocumentation other) |
ExternalDocumentation.Builder |
mergeFrom(com.google.protobuf.Message other) |
ExternalDocumentation.Builder |
setDescription(java.lang.String value)
A short description of the target documentation.
|
ExternalDocumentation.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
A short description of the target documentation.
|
ExternalDocumentation.Builder |
setUrl(java.lang.String value)
The URL for the target documentation.
|
ExternalDocumentation.Builder |
setUrlBytes(com.google.protobuf.ByteString value)
The URL for the target documentation.
|
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<ExternalDocumentation.Builder>public ExternalDocumentation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<ExternalDocumentation.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<ExternalDocumentation.Builder>public ExternalDocumentation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ExternalDocumentation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ExternalDocumentation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ExternalDocumentation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExternalDocumentation.Builder>public ExternalDocumentation.Builder mergeFrom(ExternalDocumentation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<ExternalDocumentation.Builder>public ExternalDocumentation.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<ExternalDocumentation.Builder>java.io.IOExceptionpublic java.lang.String getDescription()
A short description of the target documentation. GFM syntax can be used for rich text representation.
string description = 1 [json_name = "description"];getDescription in interface ExternalDocumentationOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
A short description of the target documentation. GFM syntax can be used for rich text representation.
string description = 1 [json_name = "description"];getDescriptionBytes in interface ExternalDocumentationOrBuilderpublic ExternalDocumentation.Builder setDescription(java.lang.String value)
A short description of the target documentation. GFM syntax can be used for rich text representation.
string description = 1 [json_name = "description"];value - The description to set.public ExternalDocumentation.Builder clearDescription()
A short description of the target documentation. GFM syntax can be used for rich text representation.
string description = 1 [json_name = "description"];public ExternalDocumentation.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A short description of the target documentation. GFM syntax can be used for rich text representation.
string description = 1 [json_name = "description"];value - The bytes for description to set.public java.lang.String getUrl()
The URL for the target documentation. Value MUST be in the format of a URL.
string url = 2 [json_name = "url"];getUrl in interface ExternalDocumentationOrBuilderpublic com.google.protobuf.ByteString getUrlBytes()
The URL for the target documentation. Value MUST be in the format of a URL.
string url = 2 [json_name = "url"];getUrlBytes in interface ExternalDocumentationOrBuilderpublic ExternalDocumentation.Builder setUrl(java.lang.String value)
The URL for the target documentation. Value MUST be in the format of a URL.
string url = 2 [json_name = "url"];value - The url to set.public ExternalDocumentation.Builder clearUrl()
The URL for the target documentation. Value MUST be in the format of a URL.
string url = 2 [json_name = "url"];public ExternalDocumentation.Builder setUrlBytes(com.google.protobuf.ByteString value)
The URL for the target documentation. Value MUST be in the format of a URL.
string url = 2 [json_name = "url"];value - The bytes for url to set.