public static final class Openapiv2.Info extends com.google.protobuf.GeneratedMessageV3 implements Openapiv2.InfoOrBuilder
`Info` is a representation of OpenAPI v2 specification's Info object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#infoObject
Example:
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
title: "Echo API";
version: "1.0";
description: ";
contact: {
name: "gRPC-Gateway project";
url: "https://github.com/grpc-ecosystem/grpc-gateway";
email: "none@example.com";
};
license: {
name: "BSD 3-Clause License";
url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/master/LICENSE.txt";
};
};
...
};
Protobuf type grpc.gateway.protoc_gen_openapiv2.options.Info| Modifier and Type | Class and Description |
|---|---|
static class |
Openapiv2.Info.Builder
`Info` is a representation of OpenAPI v2 specification's Info object.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONTACT_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
EXTENSIONS_FIELD_NUMBER |
static int |
LICENSE_FIELD_NUMBER |
static int |
TERMS_OF_SERVICE_FIELD_NUMBER |
static int |
TITLE_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsExtensions(java.lang.String key)
map<string, .google.protobuf.Value> extensions = 7; |
boolean |
equals(java.lang.Object obj) |
Openapiv2.Contact |
getContact()
The contact information for the exposed API.
|
Openapiv2.ContactOrBuilder |
getContactOrBuilder()
The contact information for the exposed API.
|
static Openapiv2.Info |
getDefaultInstance() |
Openapiv2.Info |
getDefaultInstanceForType() |
java.lang.String |
getDescription()
A short description of the application.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
A short description of the application.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.util.Map<java.lang.String,com.google.protobuf.Value> |
getExtensions()
Deprecated.
|
int |
getExtensionsCount()
map<string, .google.protobuf.Value> extensions = 7; |
java.util.Map<java.lang.String,com.google.protobuf.Value> |
getExtensionsMap()
map<string, .google.protobuf.Value> extensions = 7; |
com.google.protobuf.Value |
getExtensionsOrDefault(java.lang.String key,
com.google.protobuf.Value defaultValue)
map<string, .google.protobuf.Value> extensions = 7; |
com.google.protobuf.Value |
getExtensionsOrThrow(java.lang.String key)
map<string, .google.protobuf.Value> extensions = 7; |
Openapiv2.License |
getLicense()
The license information for the exposed API.
|
Openapiv2.LicenseOrBuilder |
getLicenseOrBuilder()
The license information for the exposed API.
|
com.google.protobuf.Parser<Openapiv2.Info> |
getParserForType() |
int |
getSerializedSize() |
java.lang.String |
getTermsOfService()
The Terms of Service for the API.
|
com.google.protobuf.ByteString |
getTermsOfServiceBytes()
The Terms of Service for the API.
|
java.lang.String |
getTitle()
The title of the application.
|
com.google.protobuf.ByteString |
getTitleBytes()
The title of the application.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
java.lang.String |
getVersion()
Provides the version of the application API (not to be confused
with the specification version).
|
com.google.protobuf.ByteString |
getVersionBytes()
Provides the version of the application API (not to be confused
with the specification version).
|
boolean |
hasContact()
The contact information for the exposed API.
|
int |
hashCode() |
boolean |
hasLicense()
The license information for the exposed API.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Openapiv2.Info.Builder |
newBuilder() |
static Openapiv2.Info.Builder |
newBuilder(Openapiv2.Info prototype) |
Openapiv2.Info.Builder |
newBuilderForType() |
protected Openapiv2.Info.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Openapiv2.Info |
parseDelimitedFrom(java.io.InputStream input) |
static Openapiv2.Info |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openapiv2.Info |
parseFrom(byte[] data) |
static Openapiv2.Info |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openapiv2.Info |
parseFrom(java.nio.ByteBuffer data) |
static Openapiv2.Info |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openapiv2.Info |
parseFrom(com.google.protobuf.ByteString data) |
static Openapiv2.Info |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openapiv2.Info |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Openapiv2.Info |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openapiv2.Info |
parseFrom(java.io.InputStream input) |
static Openapiv2.Info |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Openapiv2.Info> |
parser() |
Openapiv2.Info.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TITLE_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int TERMS_OF_SERVICE_FIELD_NUMBER
public static final int CONTACT_FIELD_NUMBER
public static final int LICENSE_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
public static final int EXTENSIONS_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getTitle()
The title of the application.
string title = 1;getTitle in interface Openapiv2.InfoOrBuilderpublic com.google.protobuf.ByteString getTitleBytes()
The title of the application.
string title = 1;getTitleBytes in interface Openapiv2.InfoOrBuilderpublic java.lang.String getDescription()
A short description of the application. GFM syntax can be used for rich text representation.
string description = 2;getDescription in interface Openapiv2.InfoOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
A short description of the application. GFM syntax can be used for rich text representation.
string description = 2;getDescriptionBytes in interface Openapiv2.InfoOrBuilderpublic java.lang.String getTermsOfService()
The Terms of Service for the API.
string terms_of_service = 3;getTermsOfService in interface Openapiv2.InfoOrBuilderpublic com.google.protobuf.ByteString getTermsOfServiceBytes()
The Terms of Service for the API.
string terms_of_service = 3;getTermsOfServiceBytes in interface Openapiv2.InfoOrBuilderpublic boolean hasContact()
The contact information for the exposed API.
.grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4;hasContact in interface Openapiv2.InfoOrBuilderpublic Openapiv2.Contact getContact()
The contact information for the exposed API.
.grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4;getContact in interface Openapiv2.InfoOrBuilderpublic Openapiv2.ContactOrBuilder getContactOrBuilder()
The contact information for the exposed API.
.grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4;getContactOrBuilder in interface Openapiv2.InfoOrBuilderpublic boolean hasLicense()
The license information for the exposed API.
.grpc.gateway.protoc_gen_openapiv2.options.License license = 5;hasLicense in interface Openapiv2.InfoOrBuilderpublic Openapiv2.License getLicense()
The license information for the exposed API.
.grpc.gateway.protoc_gen_openapiv2.options.License license = 5;getLicense in interface Openapiv2.InfoOrBuilderpublic Openapiv2.LicenseOrBuilder getLicenseOrBuilder()
The license information for the exposed API.
.grpc.gateway.protoc_gen_openapiv2.options.License license = 5;getLicenseOrBuilder in interface Openapiv2.InfoOrBuilderpublic java.lang.String getVersion()
Provides the version of the application API (not to be confused with the specification version).
string version = 6;getVersion in interface Openapiv2.InfoOrBuilderpublic com.google.protobuf.ByteString getVersionBytes()
Provides the version of the application API (not to be confused with the specification version).
string version = 6;getVersionBytes in interface Openapiv2.InfoOrBuilderpublic int getExtensionsCount()
Openapiv2.InfoOrBuildermap<string, .google.protobuf.Value> extensions = 7;getExtensionsCount in interface Openapiv2.InfoOrBuilderpublic boolean containsExtensions(java.lang.String key)
map<string, .google.protobuf.Value> extensions = 7;containsExtensions in interface Openapiv2.InfoOrBuilder@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getExtensions()
getExtensionsMap() instead.getExtensions in interface Openapiv2.InfoOrBuilderpublic java.util.Map<java.lang.String,com.google.protobuf.Value> getExtensionsMap()
map<string, .google.protobuf.Value> extensions = 7;getExtensionsMap in interface Openapiv2.InfoOrBuilderpublic com.google.protobuf.Value getExtensionsOrDefault(java.lang.String key,
com.google.protobuf.Value defaultValue)
map<string, .google.protobuf.Value> extensions = 7;getExtensionsOrDefault in interface Openapiv2.InfoOrBuilderpublic com.google.protobuf.Value getExtensionsOrThrow(java.lang.String key)
map<string, .google.protobuf.Value> extensions = 7;getExtensionsOrThrow in interface Openapiv2.InfoOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Openapiv2.Info parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openapiv2.Info parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openapiv2.Info parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openapiv2.Info parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openapiv2.Info parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openapiv2.Info parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openapiv2.Info parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Openapiv2.Info parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Openapiv2.Info parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Openapiv2.Info parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Openapiv2.Info parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Openapiv2.Info parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Openapiv2.Info.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Openapiv2.Info.Builder newBuilder()
public static Openapiv2.Info.Builder newBuilder(Openapiv2.Info prototype)
public Openapiv2.Info.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Openapiv2.Info.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Openapiv2.Info getDefaultInstance()
public static com.google.protobuf.Parser<Openapiv2.Info> parser()
public com.google.protobuf.Parser<Openapiv2.Info> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Openapiv2.Info getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder