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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<Schema.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<Schema.Builder>
public Schema getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Schema build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Schema buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Schema.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Schema.Builder>
java.io.IOException
public boolean hasJsonSchema()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"];
hasJsonSchema
in interface SchemaOrBuilder
public JSONSchema getJsonSchema()
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1 [json_name = "jsonSchema"];
getJsonSchema
in interface SchemaOrBuilder
public 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 SchemaOrBuilder
public 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 SchemaOrBuilder
public 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 SchemaOrBuilder
public 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 SchemaOrBuilder
public 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 SchemaOrBuilder
public ExternalDocumentation getExternalDocs()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5 [json_name = "externalDocs"];
getExternalDocs
in interface SchemaOrBuilder
public 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 SchemaOrBuilder
public 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 SchemaOrBuilder
public 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 SchemaOrBuilder
public 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.