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, 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<ExternalDocumentation.Builder>
public ExternalDocumentation.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<ExternalDocumentation.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<ExternalDocumentation.Builder>
public ExternalDocumentation getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ExternalDocumentation build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ExternalDocumentation buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ExternalDocumentation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ExternalDocumentation.Builder>
java.io.IOException
public 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 ExternalDocumentationOrBuilder
public 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 ExternalDocumentationOrBuilder
public 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 ExternalDocumentationOrBuilder
public 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 ExternalDocumentationOrBuilder
public 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.