public final class Schema extends com.google.protobuf.GeneratedMessage implements SchemaOrBuilder
`Schema` is a representation of OpenAPI v2 specification's Schema object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObjectProtobuf type
grpc.gateway.protoc_gen_openapiv2.options.Schema| Modifier and Type | Class and Description |
|---|---|
static class |
Schema.Builder
`Schema` is a representation of OpenAPI v2 specification's Schema object.
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DISCRIMINATOR_FIELD_NUMBER |
static int |
EXAMPLE_FIELD_NUMBER |
static int |
EXTERNAL_DOCS_FIELD_NUMBER |
static int |
JSON_SCHEMA_FIELD_NUMBER |
static int |
READ_ONLY_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static Schema |
getDefaultInstance() |
Schema |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getDiscriminator()
Adds support for polymorphism.
|
com.google.protobuf.ByteString |
getDiscriminatorBytes()
Adds support for polymorphism.
|
java.lang.String |
getExample()
A free-form property to include an example of an instance for this schema in JSON.
|
com.google.protobuf.ByteString |
getExampleBytes()
A free-form property to include an example of an instance for this schema in JSON.
|
ExternalDocumentation |
getExternalDocs()
Additional external documentation for this schema.
|
ExternalDocumentationOrBuilder |
getExternalDocsOrBuilder()
Additional external documentation for this schema.
|
JSONSchema |
getJsonSchema()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"]; |
JSONSchemaOrBuilder |
getJsonSchemaOrBuilder()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"]; |
com.google.protobuf.Parser<Schema> |
getParserForType() |
boolean |
getReadOnly()
Relevant only for Schema "properties" definitions.
|
int |
getSerializedSize() |
boolean |
hasExternalDocs()
Additional external documentation for this schema.
|
int |
hashCode() |
boolean |
hasJsonSchema()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"]; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Schema.Builder |
newBuilder() |
static Schema.Builder |
newBuilder(Schema prototype) |
Schema.Builder |
newBuilderForType() |
protected Schema.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static Schema |
parseDelimitedFrom(java.io.InputStream input) |
static Schema |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Schema |
parseFrom(byte[] data) |
static Schema |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Schema |
parseFrom(java.nio.ByteBuffer data) |
static Schema |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Schema |
parseFrom(com.google.protobuf.ByteString data) |
static Schema |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Schema |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Schema |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Schema |
parseFrom(java.io.InputStream input) |
static Schema |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Schema> |
parser() |
Schema.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int JSON_SCHEMA_FIELD_NUMBER
public static final int DISCRIMINATOR_FIELD_NUMBER
public static final int READ_ONLY_FIELD_NUMBER
public static final int EXTERNAL_DOCS_FIELD_NUMBER
public static final int EXAMPLE_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic boolean hasJsonSchema()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"];hasJsonSchema in interface SchemaOrBuilderpublic JSONSchema getJsonSchema()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"];getJsonSchema in interface SchemaOrBuilderpublic JSONSchemaOrBuilder getJsonSchemaOrBuilder()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"];getJsonSchemaOrBuilder in interface SchemaOrBuilderpublic java.lang.String getDiscriminator()
Adds support for polymorphism. The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the required property list. When used, the value MUST be the name of this schema or any schema that inherits it.
string discriminator = 2 [json_name = "discriminator"];getDiscriminator in interface SchemaOrBuilderpublic com.google.protobuf.ByteString getDiscriminatorBytes()
Adds support for polymorphism. The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the required property list. When used, the value MUST be the name of this schema or any schema that inherits it.
string discriminator = 2 [json_name = "discriminator"];getDiscriminatorBytes in interface SchemaOrBuilderpublic boolean getReadOnly()
Relevant only for Schema "properties" definitions. Declares the property as "read only". This means that it MAY be sent as part of a response but MUST NOT be sent as part of the request. Properties marked as readOnly being true SHOULD NOT be in the required list of the defined schema. Default value is false.
bool read_only = 3 [json_name = "readOnly"];getReadOnly in interface SchemaOrBuilderpublic boolean hasExternalDocs()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5 [json_name = "externalDocs"];hasExternalDocs in interface SchemaOrBuilderpublic ExternalDocumentation getExternalDocs()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5 [json_name = "externalDocs"];getExternalDocs in interface SchemaOrBuilderpublic ExternalDocumentationOrBuilder getExternalDocsOrBuilder()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5 [json_name = "externalDocs"];getExternalDocsOrBuilder in interface SchemaOrBuilderpublic java.lang.String getExample()
A free-form property to include an example of an instance for this schema in JSON. This is copied verbatim to the output.
string example = 6 [json_name = "example"];getExample in interface SchemaOrBuilderpublic com.google.protobuf.ByteString getExampleBytes()
A free-form property to include an example of an instance for this schema in JSON. This is copied verbatim to the output.
string example = 6 [json_name = "example"];getExampleBytes in interface SchemaOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessagejava.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic 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 Schema parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Schema parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Schema parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Schema parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Schema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Schema parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Schema parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Schema parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Schema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Schema parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Schema parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Schema parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Schema.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Schema.Builder newBuilder()
public static Schema.Builder newBuilder(Schema prototype)
public Schema.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Schema.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static Schema getDefaultInstance()
public static com.google.protobuf.Parser<Schema> parser()
public com.google.protobuf.Parser<Schema> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic Schema getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder