public static final class Openapiv2.Schema.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Schema.Builder> implements Openapiv2.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 |
|---|---|
Openapiv2.Schema.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Openapiv2.Schema |
build() |
Openapiv2.Schema |
buildPartial() |
Openapiv2.Schema.Builder |
clear() |
Openapiv2.Schema.Builder |
clearDiscriminator()
Adds support for polymorphism.
|
Openapiv2.Schema.Builder |
clearExample()
A free-form property to include an example of an instance for this schema in JSON.
|
Openapiv2.Schema.Builder |
clearExternalDocs()
Additional external documentation for this schema.
|
Openapiv2.Schema.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Openapiv2.Schema.Builder |
clearJsonSchema()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; |
Openapiv2.Schema.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Openapiv2.Schema.Builder |
clearReadOnly()
Relevant only for Schema "properties" definitions.
|
Openapiv2.Schema.Builder |
clone() |
Openapiv2.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.
|
Openapiv2.ExternalDocumentation |
getExternalDocs()
Additional external documentation for this schema.
|
Openapiv2.ExternalDocumentation.Builder |
getExternalDocsBuilder()
Additional external documentation for this schema.
|
Openapiv2.ExternalDocumentationOrBuilder |
getExternalDocsOrBuilder()
Additional external documentation for this schema.
|
Openapiv2.JSONSchema |
getJsonSchema()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; |
Openapiv2.JSONSchema.Builder |
getJsonSchemaBuilder()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; |
Openapiv2.JSONSchemaOrBuilder |
getJsonSchemaOrBuilder()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; |
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; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Openapiv2.Schema.Builder |
mergeExternalDocs(Openapiv2.ExternalDocumentation value)
Additional external documentation for this schema.
|
Openapiv2.Schema.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Openapiv2.Schema.Builder |
mergeFrom(com.google.protobuf.Message other) |
Openapiv2.Schema.Builder |
mergeFrom(Openapiv2.Schema other) |
Openapiv2.Schema.Builder |
mergeJsonSchema(Openapiv2.JSONSchema value)
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; |
Openapiv2.Schema.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Openapiv2.Schema.Builder |
setDiscriminator(java.lang.String value)
Adds support for polymorphism.
|
Openapiv2.Schema.Builder |
setDiscriminatorBytes(com.google.protobuf.ByteString value)
Adds support for polymorphism.
|
Openapiv2.Schema.Builder |
setExample(java.lang.String value)
A free-form property to include an example of an instance for this schema in JSON.
|
Openapiv2.Schema.Builder |
setExampleBytes(com.google.protobuf.ByteString value)
A free-form property to include an example of an instance for this schema in JSON.
|
Openapiv2.Schema.Builder |
setExternalDocs(Openapiv2.ExternalDocumentation.Builder builderForValue)
Additional external documentation for this schema.
|
Openapiv2.Schema.Builder |
setExternalDocs(Openapiv2.ExternalDocumentation value)
Additional external documentation for this schema.
|
Openapiv2.Schema.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Openapiv2.Schema.Builder |
setJsonSchema(Openapiv2.JSONSchema.Builder builderForValue)
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; |
Openapiv2.Schema.Builder |
setJsonSchema(Openapiv2.JSONSchema value)
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; |
Openapiv2.Schema.Builder |
setReadOnly(boolean value)
Relevant only for Schema "properties" definitions.
|
Openapiv2.Schema.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Openapiv2.Schema.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, 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<Openapiv2.Schema.Builder>public Openapiv2.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<Openapiv2.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<Openapiv2.Schema.Builder>public Openapiv2.Schema getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Openapiv2.Schema build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Openapiv2.Schema buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Openapiv2.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<Openapiv2.Schema.Builder>public Openapiv2.Schema.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Schema.Builder>public Openapiv2.Schema.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Schema.Builder>public Openapiv2.Schema.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Schema.Builder>public Openapiv2.Schema.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Schema.Builder>public Openapiv2.Schema.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Schema.Builder>public Openapiv2.Schema.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Openapiv2.Schema.Builder>public Openapiv2.Schema.Builder mergeFrom(Openapiv2.Schema other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Schema.Builder>public Openapiv2.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<Openapiv2.Schema.Builder>java.io.IOExceptionpublic boolean hasJsonSchema()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1;hasJsonSchema in interface Openapiv2.SchemaOrBuilderpublic Openapiv2.JSONSchema getJsonSchema()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1;getJsonSchema in interface Openapiv2.SchemaOrBuilderpublic Openapiv2.Schema.Builder setJsonSchema(Openapiv2.JSONSchema value)
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1;public Openapiv2.Schema.Builder setJsonSchema(Openapiv2.JSONSchema.Builder builderForValue)
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1;public Openapiv2.Schema.Builder mergeJsonSchema(Openapiv2.JSONSchema value)
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1;public Openapiv2.Schema.Builder clearJsonSchema()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1;public Openapiv2.JSONSchema.Builder getJsonSchemaBuilder()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1;public Openapiv2.JSONSchemaOrBuilder getJsonSchemaOrBuilder()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1;getJsonSchemaOrBuilder in interface Openapiv2.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;getDiscriminator in interface Openapiv2.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;getDiscriminatorBytes in interface Openapiv2.SchemaOrBuilderpublic Openapiv2.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;value - The discriminator to set.public Openapiv2.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;public Openapiv2.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;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;getReadOnly in interface Openapiv2.SchemaOrBuilderpublic Openapiv2.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;value - The readOnly to set.public Openapiv2.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;public boolean hasExternalDocs()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5;hasExternalDocs in interface Openapiv2.SchemaOrBuilderpublic Openapiv2.ExternalDocumentation getExternalDocs()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5;getExternalDocs in interface Openapiv2.SchemaOrBuilderpublic Openapiv2.Schema.Builder setExternalDocs(Openapiv2.ExternalDocumentation value)
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5;public Openapiv2.Schema.Builder setExternalDocs(Openapiv2.ExternalDocumentation.Builder builderForValue)
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5;public Openapiv2.Schema.Builder mergeExternalDocs(Openapiv2.ExternalDocumentation value)
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5;public Openapiv2.Schema.Builder clearExternalDocs()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5;public Openapiv2.ExternalDocumentation.Builder getExternalDocsBuilder()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5;public Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5;getExternalDocsOrBuilder in interface Openapiv2.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;getExample in interface Openapiv2.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;getExampleBytes in interface Openapiv2.SchemaOrBuilderpublic Openapiv2.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;value - The example to set.public Openapiv2.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;public Openapiv2.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;value - The bytes for example to set.public final Openapiv2.Schema.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Schema.Builder>public final Openapiv2.Schema.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Schema.Builder>