public static final class Openapiv2.JSONSchema.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder> implements Openapiv2.JSONSchemaOrBuilder
`JSONSchema` represents properties from JSON Schema taken, and as used, in
the OpenAPI v2 spec.
This includes changes made by OpenAPI v2.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
See also: https://cswr.github.io/JsonSchema/spec/basic_types/,
https://github.com/json-schema-org/json-schema-spec/blob/master/schema.json
Example:
message SimpleMessage {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
json_schema: {
title: "SimpleMessage"
description: "A simple message."
required: ["id"]
}
};
// Id represents the message identifier.
string id = 1; [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
{description: "The unique identifier of the simple message."
}];
}
Protobuf type grpc.gateway.protoc_gen_openapiv2.options.JSONSchema| Modifier and Type | Method and Description |
|---|---|
Openapiv2.JSONSchema.Builder |
addAllArray(java.lang.Iterable<java.lang.String> values)
Items in 'array' must be unique.
|
Openapiv2.JSONSchema.Builder |
addAllEnum(java.lang.Iterable<java.lang.String> values)
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
|
Openapiv2.JSONSchema.Builder |
addAllRequired(java.lang.Iterable<java.lang.String> values)
repeated string required = 26; |
Openapiv2.JSONSchema.Builder |
addAllType(java.lang.Iterable<? extends Openapiv2.JSONSchema.JSONSchemaSimpleTypes> values)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; |
Openapiv2.JSONSchema.Builder |
addAllTypeValue(java.lang.Iterable<java.lang.Integer> values)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; |
Openapiv2.JSONSchema.Builder |
addArray(java.lang.String value)
Items in 'array' must be unique.
|
Openapiv2.JSONSchema.Builder |
addArrayBytes(com.google.protobuf.ByteString value)
Items in 'array' must be unique.
|
Openapiv2.JSONSchema.Builder |
addEnum(java.lang.String value)
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
|
Openapiv2.JSONSchema.Builder |
addEnumBytes(com.google.protobuf.ByteString value)
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
|
Openapiv2.JSONSchema.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Openapiv2.JSONSchema.Builder |
addRequired(java.lang.String value)
repeated string required = 26; |
Openapiv2.JSONSchema.Builder |
addRequiredBytes(com.google.protobuf.ByteString value)
repeated string required = 26; |
Openapiv2.JSONSchema.Builder |
addType(Openapiv2.JSONSchema.JSONSchemaSimpleTypes value)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; |
Openapiv2.JSONSchema.Builder |
addTypeValue(int value)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; |
Openapiv2.JSONSchema |
build() |
Openapiv2.JSONSchema |
buildPartial() |
Openapiv2.JSONSchema.Builder |
clear() |
Openapiv2.JSONSchema.Builder |
clearArray()
Items in 'array' must be unique.
|
Openapiv2.JSONSchema.Builder |
clearDefault()
string default = 7; |
Openapiv2.JSONSchema.Builder |
clearDescription()
A short description of the schema.
|
Openapiv2.JSONSchema.Builder |
clearEnum()
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
|
Openapiv2.JSONSchema.Builder |
clearExample()
A free-form property to include a JSON example of this field.
|
Openapiv2.JSONSchema.Builder |
clearExclusiveMaximum()
bool exclusive_maximum = 12; |
Openapiv2.JSONSchema.Builder |
clearExclusiveMinimum()
bool exclusive_minimum = 14; |
Openapiv2.JSONSchema.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Openapiv2.JSONSchema.Builder |
clearFormat()
`Format`
|
Openapiv2.JSONSchema.Builder |
clearMaximum()
Maximum represents an inclusive upper limit for a numeric instance.
|
Openapiv2.JSONSchema.Builder |
clearMaxItems()
uint64 max_items = 20; |
Openapiv2.JSONSchema.Builder |
clearMaxLength()
uint64 max_length = 15; |
Openapiv2.JSONSchema.Builder |
clearMaxProperties()
uint64 max_properties = 24; |
Openapiv2.JSONSchema.Builder |
clearMinimum()
minimum represents an inclusive lower limit for a numeric instance.
|
Openapiv2.JSONSchema.Builder |
clearMinItems()
uint64 min_items = 21; |
Openapiv2.JSONSchema.Builder |
clearMinLength()
uint64 min_length = 16; |
Openapiv2.JSONSchema.Builder |
clearMinProperties()
uint64 min_properties = 25; |
Openapiv2.JSONSchema.Builder |
clearMultipleOf()
double multiple_of = 10; |
Openapiv2.JSONSchema.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Openapiv2.JSONSchema.Builder |
clearPattern()
string pattern = 17; |
Openapiv2.JSONSchema.Builder |
clearReadOnly()
bool read_only = 8; |
Openapiv2.JSONSchema.Builder |
clearRef()
Ref is used to define an external reference to include in the message.
|
Openapiv2.JSONSchema.Builder |
clearRequired()
repeated string required = 26; |
Openapiv2.JSONSchema.Builder |
clearTitle()
The title of the schema.
|
Openapiv2.JSONSchema.Builder |
clearType()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; |
Openapiv2.JSONSchema.Builder |
clearUniqueItems()
bool unique_items = 22; |
Openapiv2.JSONSchema.Builder |
clone() |
java.lang.String |
getArray(int index)
Items in 'array' must be unique.
|
com.google.protobuf.ByteString |
getArrayBytes(int index)
Items in 'array' must be unique.
|
int |
getArrayCount()
Items in 'array' must be unique.
|
com.google.protobuf.ProtocolStringList |
getArrayList()
Items in 'array' must be unique.
|
java.lang.String |
getDefault()
string default = 7; |
com.google.protobuf.ByteString |
getDefaultBytes()
string default = 7; |
Openapiv2.JSONSchema |
getDefaultInstanceForType() |
java.lang.String |
getDescription()
A short description of the schema.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
A short description of the schema.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getEnum(int index)
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
|
com.google.protobuf.ByteString |
getEnumBytes(int index)
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
|
int |
getEnumCount()
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
|
com.google.protobuf.ProtocolStringList |
getEnumList()
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
|
java.lang.String |
getExample()
A free-form property to include a JSON example of this field.
|
com.google.protobuf.ByteString |
getExampleBytes()
A free-form property to include a JSON example of this field.
|
boolean |
getExclusiveMaximum()
bool exclusive_maximum = 12; |
boolean |
getExclusiveMinimum()
bool exclusive_minimum = 14; |
java.lang.String |
getFormat()
`Format`
|
com.google.protobuf.ByteString |
getFormatBytes()
`Format`
|
double |
getMaximum()
Maximum represents an inclusive upper limit for a numeric instance.
|
long |
getMaxItems()
uint64 max_items = 20; |
long |
getMaxLength()
uint64 max_length = 15; |
long |
getMaxProperties()
uint64 max_properties = 24; |
double |
getMinimum()
minimum represents an inclusive lower limit for a numeric instance.
|
long |
getMinItems()
uint64 min_items = 21; |
long |
getMinLength()
uint64 min_length = 16; |
long |
getMinProperties()
uint64 min_properties = 25; |
double |
getMultipleOf()
double multiple_of = 10; |
java.lang.String |
getPattern()
string pattern = 17; |
com.google.protobuf.ByteString |
getPatternBytes()
string pattern = 17; |
boolean |
getReadOnly()
bool read_only = 8; |
java.lang.String |
getRef()
Ref is used to define an external reference to include in the message.
|
com.google.protobuf.ByteString |
getRefBytes()
Ref is used to define an external reference to include in the message.
|
java.lang.String |
getRequired(int index)
repeated string required = 26; |
com.google.protobuf.ByteString |
getRequiredBytes(int index)
repeated string required = 26; |
int |
getRequiredCount()
repeated string required = 26; |
com.google.protobuf.ProtocolStringList |
getRequiredList()
repeated string required = 26; |
java.lang.String |
getTitle()
The title of the schema.
|
com.google.protobuf.ByteString |
getTitleBytes()
The title of the schema.
|
Openapiv2.JSONSchema.JSONSchemaSimpleTypes |
getType(int index)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; |
int |
getTypeCount()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; |
java.util.List<Openapiv2.JSONSchema.JSONSchemaSimpleTypes> |
getTypeList()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; |
int |
getTypeValue(int index)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; |
java.util.List<java.lang.Integer> |
getTypeValueList()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; |
boolean |
getUniqueItems()
bool unique_items = 22; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Openapiv2.JSONSchema.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Openapiv2.JSONSchema.Builder |
mergeFrom(com.google.protobuf.Message other) |
Openapiv2.JSONSchema.Builder |
mergeFrom(Openapiv2.JSONSchema other) |
Openapiv2.JSONSchema.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Openapiv2.JSONSchema.Builder |
setArray(int index,
java.lang.String value)
Items in 'array' must be unique.
|
Openapiv2.JSONSchema.Builder |
setDefault(java.lang.String value)
string default = 7; |
Openapiv2.JSONSchema.Builder |
setDefaultBytes(com.google.protobuf.ByteString value)
string default = 7; |
Openapiv2.JSONSchema.Builder |
setDescription(java.lang.String value)
A short description of the schema.
|
Openapiv2.JSONSchema.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
A short description of the schema.
|
Openapiv2.JSONSchema.Builder |
setEnum(int index,
java.lang.String value)
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
|
Openapiv2.JSONSchema.Builder |
setExample(java.lang.String value)
A free-form property to include a JSON example of this field.
|
Openapiv2.JSONSchema.Builder |
setExampleBytes(com.google.protobuf.ByteString value)
A free-form property to include a JSON example of this field.
|
Openapiv2.JSONSchema.Builder |
setExclusiveMaximum(boolean value)
bool exclusive_maximum = 12; |
Openapiv2.JSONSchema.Builder |
setExclusiveMinimum(boolean value)
bool exclusive_minimum = 14; |
Openapiv2.JSONSchema.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Openapiv2.JSONSchema.Builder |
setFormat(java.lang.String value)
`Format`
|
Openapiv2.JSONSchema.Builder |
setFormatBytes(com.google.protobuf.ByteString value)
`Format`
|
Openapiv2.JSONSchema.Builder |
setMaximum(double value)
Maximum represents an inclusive upper limit for a numeric instance.
|
Openapiv2.JSONSchema.Builder |
setMaxItems(long value)
uint64 max_items = 20; |
Openapiv2.JSONSchema.Builder |
setMaxLength(long value)
uint64 max_length = 15; |
Openapiv2.JSONSchema.Builder |
setMaxProperties(long value)
uint64 max_properties = 24; |
Openapiv2.JSONSchema.Builder |
setMinimum(double value)
minimum represents an inclusive lower limit for a numeric instance.
|
Openapiv2.JSONSchema.Builder |
setMinItems(long value)
uint64 min_items = 21; |
Openapiv2.JSONSchema.Builder |
setMinLength(long value)
uint64 min_length = 16; |
Openapiv2.JSONSchema.Builder |
setMinProperties(long value)
uint64 min_properties = 25; |
Openapiv2.JSONSchema.Builder |
setMultipleOf(double value)
double multiple_of = 10; |
Openapiv2.JSONSchema.Builder |
setPattern(java.lang.String value)
string pattern = 17; |
Openapiv2.JSONSchema.Builder |
setPatternBytes(com.google.protobuf.ByteString value)
string pattern = 17; |
Openapiv2.JSONSchema.Builder |
setReadOnly(boolean value)
bool read_only = 8; |
Openapiv2.JSONSchema.Builder |
setRef(java.lang.String value)
Ref is used to define an external reference to include in the message.
|
Openapiv2.JSONSchema.Builder |
setRefBytes(com.google.protobuf.ByteString value)
Ref is used to define an external reference to include in the message.
|
Openapiv2.JSONSchema.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Openapiv2.JSONSchema.Builder |
setRequired(int index,
java.lang.String value)
repeated string required = 26; |
Openapiv2.JSONSchema.Builder |
setTitle(java.lang.String value)
The title of the schema.
|
Openapiv2.JSONSchema.Builder |
setTitleBytes(com.google.protobuf.ByteString value)
The title of the schema.
|
Openapiv2.JSONSchema.Builder |
setType(int index,
Openapiv2.JSONSchema.JSONSchemaSimpleTypes value)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; |
Openapiv2.JSONSchema.Builder |
setTypeValue(int index,
int value)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; |
Openapiv2.JSONSchema.Builder |
setUniqueItems(boolean value)
bool unique_items = 22; |
Openapiv2.JSONSchema.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.JSONSchema.Builder>public Openapiv2.JSONSchema.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.JSONSchema.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.JSONSchema.Builder>public Openapiv2.JSONSchema getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Openapiv2.JSONSchema build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Openapiv2.JSONSchema buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Openapiv2.JSONSchema.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.JSONSchema.Builder>public Openapiv2.JSONSchema.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.JSONSchema.Builder>public Openapiv2.JSONSchema.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>public Openapiv2.JSONSchema.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>public Openapiv2.JSONSchema.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.JSONSchema.Builder>public Openapiv2.JSONSchema.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.JSONSchema.Builder>public Openapiv2.JSONSchema.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Openapiv2.JSONSchema.Builder>public Openapiv2.JSONSchema.Builder mergeFrom(Openapiv2.JSONSchema other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>public Openapiv2.JSONSchema.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.JSONSchema.Builder>java.io.IOExceptionpublic java.lang.String getRef()
Ref is used to define an external reference to include in the message. This could be a fully qualified proto message reference, and that type must be imported into the protofile. If no message is identified, the Ref will be used verbatim in the output. For example: `ref: ".google.protobuf.Timestamp"`.
string ref = 3;getRef in interface Openapiv2.JSONSchemaOrBuilderpublic com.google.protobuf.ByteString getRefBytes()
Ref is used to define an external reference to include in the message. This could be a fully qualified proto message reference, and that type must be imported into the protofile. If no message is identified, the Ref will be used verbatim in the output. For example: `ref: ".google.protobuf.Timestamp"`.
string ref = 3;getRefBytes in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setRef(java.lang.String value)
Ref is used to define an external reference to include in the message. This could be a fully qualified proto message reference, and that type must be imported into the protofile. If no message is identified, the Ref will be used verbatim in the output. For example: `ref: ".google.protobuf.Timestamp"`.
string ref = 3;value - The ref to set.public Openapiv2.JSONSchema.Builder clearRef()
Ref is used to define an external reference to include in the message. This could be a fully qualified proto message reference, and that type must be imported into the protofile. If no message is identified, the Ref will be used verbatim in the output. For example: `ref: ".google.protobuf.Timestamp"`.
string ref = 3;public Openapiv2.JSONSchema.Builder setRefBytes(com.google.protobuf.ByteString value)
Ref is used to define an external reference to include in the message. This could be a fully qualified proto message reference, and that type must be imported into the protofile. If no message is identified, the Ref will be used verbatim in the output. For example: `ref: ".google.protobuf.Timestamp"`.
string ref = 3;value - The bytes for ref to set.public java.lang.String getTitle()
The title of the schema.
string title = 5;getTitle in interface Openapiv2.JSONSchemaOrBuilderpublic com.google.protobuf.ByteString getTitleBytes()
The title of the schema.
string title = 5;getTitleBytes in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setTitle(java.lang.String value)
The title of the schema.
string title = 5;value - The title to set.public Openapiv2.JSONSchema.Builder clearTitle()
The title of the schema.
string title = 5;public Openapiv2.JSONSchema.Builder setTitleBytes(com.google.protobuf.ByteString value)
The title of the schema.
string title = 5;value - The bytes for title to set.public java.lang.String getDescription()
A short description of the schema.
string description = 6;getDescription in interface Openapiv2.JSONSchemaOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
A short description of the schema.
string description = 6;getDescriptionBytes in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setDescription(java.lang.String value)
A short description of the schema.
string description = 6;value - The description to set.public Openapiv2.JSONSchema.Builder clearDescription()
A short description of the schema.
string description = 6;public Openapiv2.JSONSchema.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A short description of the schema.
string description = 6;value - The bytes for description to set.public java.lang.String getDefault()
string default = 7;getDefault in interface Openapiv2.JSONSchemaOrBuilderpublic com.google.protobuf.ByteString getDefaultBytes()
string default = 7;getDefaultBytes in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setDefault(java.lang.String value)
string default = 7;value - The default to set.public Openapiv2.JSONSchema.Builder clearDefault()
string default = 7;public Openapiv2.JSONSchema.Builder setDefaultBytes(com.google.protobuf.ByteString value)
string default = 7;value - The bytes for default to set.public boolean getReadOnly()
bool read_only = 8;getReadOnly in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setReadOnly(boolean value)
bool read_only = 8;value - The readOnly to set.public Openapiv2.JSONSchema.Builder clearReadOnly()
bool read_only = 8;public java.lang.String getExample()
A free-form property to include a JSON example of this field. This is copied verbatim to the output swagger.json. Quotes must be escaped. This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
string example = 9;getExample in interface Openapiv2.JSONSchemaOrBuilderpublic com.google.protobuf.ByteString getExampleBytes()
A free-form property to include a JSON example of this field. This is copied verbatim to the output swagger.json. Quotes must be escaped. This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
string example = 9;getExampleBytes in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setExample(java.lang.String value)
A free-form property to include a JSON example of this field. This is copied verbatim to the output swagger.json. Quotes must be escaped. This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
string example = 9;value - The example to set.public Openapiv2.JSONSchema.Builder clearExample()
A free-form property to include a JSON example of this field. This is copied verbatim to the output swagger.json. Quotes must be escaped. This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
string example = 9;public Openapiv2.JSONSchema.Builder setExampleBytes(com.google.protobuf.ByteString value)
A free-form property to include a JSON example of this field. This is copied verbatim to the output swagger.json. Quotes must be escaped. This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
string example = 9;value - The bytes for example to set.public double getMultipleOf()
double multiple_of = 10;getMultipleOf in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setMultipleOf(double value)
double multiple_of = 10;value - The multipleOf to set.public Openapiv2.JSONSchema.Builder clearMultipleOf()
double multiple_of = 10;public double getMaximum()
Maximum represents an inclusive upper limit for a numeric instance. The value of MUST be a number,
double maximum = 11;getMaximum in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setMaximum(double value)
Maximum represents an inclusive upper limit for a numeric instance. The value of MUST be a number,
double maximum = 11;value - The maximum to set.public Openapiv2.JSONSchema.Builder clearMaximum()
Maximum represents an inclusive upper limit for a numeric instance. The value of MUST be a number,
double maximum = 11;public boolean getExclusiveMaximum()
bool exclusive_maximum = 12;getExclusiveMaximum in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setExclusiveMaximum(boolean value)
bool exclusive_maximum = 12;value - The exclusiveMaximum to set.public Openapiv2.JSONSchema.Builder clearExclusiveMaximum()
bool exclusive_maximum = 12;public double getMinimum()
minimum represents an inclusive lower limit for a numeric instance. The value of MUST be a number,
double minimum = 13;getMinimum in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setMinimum(double value)
minimum represents an inclusive lower limit for a numeric instance. The value of MUST be a number,
double minimum = 13;value - The minimum to set.public Openapiv2.JSONSchema.Builder clearMinimum()
minimum represents an inclusive lower limit for a numeric instance. The value of MUST be a number,
double minimum = 13;public boolean getExclusiveMinimum()
bool exclusive_minimum = 14;getExclusiveMinimum in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setExclusiveMinimum(boolean value)
bool exclusive_minimum = 14;value - The exclusiveMinimum to set.public Openapiv2.JSONSchema.Builder clearExclusiveMinimum()
bool exclusive_minimum = 14;public long getMaxLength()
uint64 max_length = 15;getMaxLength in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setMaxLength(long value)
uint64 max_length = 15;value - The maxLength to set.public Openapiv2.JSONSchema.Builder clearMaxLength()
uint64 max_length = 15;public long getMinLength()
uint64 min_length = 16;getMinLength in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setMinLength(long value)
uint64 min_length = 16;value - The minLength to set.public Openapiv2.JSONSchema.Builder clearMinLength()
uint64 min_length = 16;public java.lang.String getPattern()
string pattern = 17;getPattern in interface Openapiv2.JSONSchemaOrBuilderpublic com.google.protobuf.ByteString getPatternBytes()
string pattern = 17;getPatternBytes in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setPattern(java.lang.String value)
string pattern = 17;value - The pattern to set.public Openapiv2.JSONSchema.Builder clearPattern()
string pattern = 17;public Openapiv2.JSONSchema.Builder setPatternBytes(com.google.protobuf.ByteString value)
string pattern = 17;value - The bytes for pattern to set.public long getMaxItems()
uint64 max_items = 20;getMaxItems in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setMaxItems(long value)
uint64 max_items = 20;value - The maxItems to set.public Openapiv2.JSONSchema.Builder clearMaxItems()
uint64 max_items = 20;public long getMinItems()
uint64 min_items = 21;getMinItems in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setMinItems(long value)
uint64 min_items = 21;value - The minItems to set.public Openapiv2.JSONSchema.Builder clearMinItems()
uint64 min_items = 21;public boolean getUniqueItems()
bool unique_items = 22;getUniqueItems in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setUniqueItems(boolean value)
bool unique_items = 22;value - The uniqueItems to set.public Openapiv2.JSONSchema.Builder clearUniqueItems()
bool unique_items = 22;public long getMaxProperties()
uint64 max_properties = 24;getMaxProperties in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setMaxProperties(long value)
uint64 max_properties = 24;value - The maxProperties to set.public Openapiv2.JSONSchema.Builder clearMaxProperties()
uint64 max_properties = 24;public long getMinProperties()
uint64 min_properties = 25;getMinProperties in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setMinProperties(long value)
uint64 min_properties = 25;value - The minProperties to set.public Openapiv2.JSONSchema.Builder clearMinProperties()
uint64 min_properties = 25;public com.google.protobuf.ProtocolStringList getRequiredList()
repeated string required = 26;getRequiredList in interface Openapiv2.JSONSchemaOrBuilderpublic int getRequiredCount()
repeated string required = 26;getRequiredCount in interface Openapiv2.JSONSchemaOrBuilderpublic java.lang.String getRequired(int index)
repeated string required = 26;getRequired in interface Openapiv2.JSONSchemaOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getRequiredBytes(int index)
repeated string required = 26;getRequiredBytes in interface Openapiv2.JSONSchemaOrBuilderindex - The index of the value to return.public Openapiv2.JSONSchema.Builder setRequired(int index, java.lang.String value)
repeated string required = 26;index - The index to set the value at.value - The required to set.public Openapiv2.JSONSchema.Builder addRequired(java.lang.String value)
repeated string required = 26;value - The required to add.public Openapiv2.JSONSchema.Builder addAllRequired(java.lang.Iterable<java.lang.String> values)
repeated string required = 26;values - The required to add.public Openapiv2.JSONSchema.Builder clearRequired()
repeated string required = 26;public Openapiv2.JSONSchema.Builder addRequiredBytes(com.google.protobuf.ByteString value)
repeated string required = 26;value - The bytes of the required to add.public com.google.protobuf.ProtocolStringList getArrayList()
Items in 'array' must be unique.
repeated string array = 34;getArrayList in interface Openapiv2.JSONSchemaOrBuilderpublic int getArrayCount()
Items in 'array' must be unique.
repeated string array = 34;getArrayCount in interface Openapiv2.JSONSchemaOrBuilderpublic java.lang.String getArray(int index)
Items in 'array' must be unique.
repeated string array = 34;getArray in interface Openapiv2.JSONSchemaOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getArrayBytes(int index)
Items in 'array' must be unique.
repeated string array = 34;getArrayBytes in interface Openapiv2.JSONSchemaOrBuilderindex - The index of the value to return.public Openapiv2.JSONSchema.Builder setArray(int index, java.lang.String value)
Items in 'array' must be unique.
repeated string array = 34;index - The index to set the value at.value - The array to set.public Openapiv2.JSONSchema.Builder addArray(java.lang.String value)
Items in 'array' must be unique.
repeated string array = 34;value - The array to add.public Openapiv2.JSONSchema.Builder addAllArray(java.lang.Iterable<java.lang.String> values)
Items in 'array' must be unique.
repeated string array = 34;values - The array to add.public Openapiv2.JSONSchema.Builder clearArray()
Items in 'array' must be unique.
repeated string array = 34;public Openapiv2.JSONSchema.Builder addArrayBytes(com.google.protobuf.ByteString value)
Items in 'array' must be unique.
repeated string array = 34;value - The bytes of the array to add.public java.util.List<Openapiv2.JSONSchema.JSONSchemaSimpleTypes> getTypeList()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;getTypeList in interface Openapiv2.JSONSchemaOrBuilderpublic int getTypeCount()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;getTypeCount in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.JSONSchemaSimpleTypes getType(int index)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;getType in interface Openapiv2.JSONSchemaOrBuilderindex - The index of the element to return.public Openapiv2.JSONSchema.Builder setType(int index, Openapiv2.JSONSchema.JSONSchemaSimpleTypes value)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;index - The index to set the value at.value - The type to set.public Openapiv2.JSONSchema.Builder addType(Openapiv2.JSONSchema.JSONSchemaSimpleTypes value)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;value - The type to add.public Openapiv2.JSONSchema.Builder addAllType(java.lang.Iterable<? extends Openapiv2.JSONSchema.JSONSchemaSimpleTypes> values)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;values - The type to add.public Openapiv2.JSONSchema.Builder clearType()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;public java.util.List<java.lang.Integer> getTypeValueList()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;getTypeValueList in interface Openapiv2.JSONSchemaOrBuilderpublic int getTypeValue(int index)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;getTypeValue in interface Openapiv2.JSONSchemaOrBuilderindex - The index of the value to return.public Openapiv2.JSONSchema.Builder setTypeValue(int index, int value)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;index - The index of the value to return.public Openapiv2.JSONSchema.Builder addTypeValue(int value)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;value - The enum numeric value on the wire for type to add.public Openapiv2.JSONSchema.Builder addAllTypeValue(java.lang.Iterable<java.lang.Integer> values)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;values - The enum numeric values on the wire for type to add.public java.lang.String getFormat()
`Format`
string format = 36;getFormat in interface Openapiv2.JSONSchemaOrBuilderpublic com.google.protobuf.ByteString getFormatBytes()
`Format`
string format = 36;getFormatBytes in interface Openapiv2.JSONSchemaOrBuilderpublic Openapiv2.JSONSchema.Builder setFormat(java.lang.String value)
`Format`
string format = 36;value - The format to set.public Openapiv2.JSONSchema.Builder clearFormat()
`Format`
string format = 36;public Openapiv2.JSONSchema.Builder setFormatBytes(com.google.protobuf.ByteString value)
`Format`
string format = 36;value - The bytes for format to set.public com.google.protobuf.ProtocolStringList getEnumList()
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
repeated string enum = 46;getEnumList in interface Openapiv2.JSONSchemaOrBuilderpublic int getEnumCount()
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
repeated string enum = 46;getEnumCount in interface Openapiv2.JSONSchemaOrBuilderpublic java.lang.String getEnum(int index)
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
repeated string enum = 46;getEnum in interface Openapiv2.JSONSchemaOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getEnumBytes(int index)
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
repeated string enum = 46;getEnumBytes in interface Openapiv2.JSONSchemaOrBuilderindex - The index of the value to return.public Openapiv2.JSONSchema.Builder setEnum(int index, java.lang.String value)
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
repeated string enum = 46;index - The index to set the value at.value - The enum to set.public Openapiv2.JSONSchema.Builder addEnum(java.lang.String value)
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
repeated string enum = 46;value - The enum to add.public Openapiv2.JSONSchema.Builder addAllEnum(java.lang.Iterable<java.lang.String> values)
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
repeated string enum = 46;values - The enum to add.public Openapiv2.JSONSchema.Builder clearEnum()
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
repeated string enum = 46;public Openapiv2.JSONSchema.Builder addEnumBytes(com.google.protobuf.ByteString value)
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
repeated string enum = 46;value - The bytes of the enum to add.public final Openapiv2.JSONSchema.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>public final Openapiv2.JSONSchema.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>