public static final class Schema.Builder extends com.google.protobuf.GeneratedMessage.Builder<Schema.Builder> 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 | Method and Description |
|---|---|
Schema |
build() |
Schema |
buildPartial() |
Schema.Builder |
clear() |
Schema.Builder |
clearDiscriminator()
Adds support for polymorphism.
|
Schema.Builder |
clearExample()
A free-form property to include an example of an instance for this schema in JSON.
|
Schema.Builder |
clearExternalDocs()
Additional external documentation for this schema.
|
Schema.Builder |
clearJsonSchema()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"]; |
Schema.Builder |
clearReadOnly()
Relevant only for Schema "properties" definitions.
|
Schema |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
ExternalDocumentation.Builder |
getExternalDocsBuilder()
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"]; |
JSONSchema.Builder |
getJsonSchemaBuilder()
.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"]; |
boolean |
getReadOnly()
Relevant only for Schema "properties" definitions.
|
boolean |
hasExternalDocs()
Additional external documentation for this schema.
|
boolean |
hasJsonSchema()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"]; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Schema.Builder |
mergeExternalDocs(ExternalDocumentation value)
Additional external documentation for this schema.
|
Schema.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Schema.Builder |
mergeFrom(com.google.protobuf.Message other) |
Schema.Builder |
mergeFrom(Schema other) |
Schema.Builder |
mergeJsonSchema(JSONSchema value)
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"]; |
Schema.Builder |
setDiscriminator(java.lang.String value)
Adds support for polymorphism.
|
Schema.Builder |
setDiscriminatorBytes(com.google.protobuf.ByteString value)
Adds support for polymorphism.
|
Schema.Builder |
setExample(java.lang.String value)
A free-form property to include an example of an instance for this schema in JSON.
|
Schema.Builder |
setExampleBytes(com.google.protobuf.ByteString value)
A free-form property to include an example of an instance for this schema in JSON.
|
Schema.Builder |
setExternalDocs(ExternalDocumentation.Builder builderForValue)
Additional external documentation for this schema.
|
Schema.Builder |
setExternalDocs(ExternalDocumentation value)
Additional external documentation for this schema.
|
Schema.Builder |
setJsonSchema(JSONSchema.Builder builderForValue)
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"]; |
Schema.Builder |
setJsonSchema(JSONSchema value)
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"]; |
Schema.Builder |
setReadOnly(boolean value)
Relevant only for Schema "properties" definitions.
|
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<Schema.Builder>public Schema.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Schema.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<Schema.Builder>public Schema getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Schema build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Schema buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Schema.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Schema.Builder>public Schema.Builder mergeFrom(Schema other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Schema.Builder>public Schema.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<Schema.Builder>java.io.IOExceptionpublic 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 Schema.Builder setJsonSchema(JSONSchema value)
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"];public Schema.Builder setJsonSchema(JSONSchema.Builder builderForValue)
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"];public Schema.Builder mergeJsonSchema(JSONSchema value)
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"];public Schema.Builder clearJsonSchema()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"];public JSONSchema.Builder getJsonSchemaBuilder()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"];public 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 Schema.Builder setDiscriminator(java.lang.String value)
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"];value - The discriminator to set.public Schema.Builder clearDiscriminator()
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"];public Schema.Builder setDiscriminatorBytes(com.google.protobuf.ByteString value)
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"];value - The bytes for discriminator to set.public 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 Schema.Builder setReadOnly(boolean value)
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"];value - The readOnly to set.public Schema.Builder clearReadOnly()
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"];public 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 Schema.Builder setExternalDocs(ExternalDocumentation value)
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5 [json_name = "externalDocs"];public Schema.Builder setExternalDocs(ExternalDocumentation.Builder builderForValue)
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5 [json_name = "externalDocs"];public Schema.Builder mergeExternalDocs(ExternalDocumentation value)
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5 [json_name = "externalDocs"];public Schema.Builder clearExternalDocs()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5 [json_name = "externalDocs"];public ExternalDocumentation.Builder getExternalDocsBuilder()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5 [json_name = "externalDocs"];public 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 Schema.Builder setExample(java.lang.String value)
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"];value - The example to set.public Schema.Builder clearExample()
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"];public Schema.Builder setExampleBytes(com.google.protobuf.ByteString value)
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"];value - The bytes for example to set.