public static final class Schema.Builder extends com.google.protobuf.GeneratedMessageV3.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.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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 |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Schema.Builder |
clearJsonSchema()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"]; |
Schema.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Schema.Builder |
clearReadOnly()
Relevant only for Schema "properties" definitions.
|
Schema.Builder |
clone() |
Schema |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDiscriminator()
Adds support for polymorphism.
|
com.google.protobuf.ByteString |
getDiscriminatorBytes()
Adds support for polymorphism.
|
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.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
Schema.Builder |
mergeExternalDocs(ExternalDocumentation value)
Additional external documentation for this schema.
|
Schema.Builder |
mergeJsonSchema(JSONSchema value)
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"]; |
Schema.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Schema.Builder |
setDiscriminator(String value)
Adds support for polymorphism.
|
Schema.Builder |
setDiscriminatorBytes(com.google.protobuf.ByteString value)
Adds support for polymorphism.
|
Schema.Builder |
setExample(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 |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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.
|
Schema.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Schema.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, isInitialized, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public 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 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(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 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(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.public final Schema.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public final Schema.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>Copyright © 2024. All rights reserved.