public final class JSONSchema extends com.google.protobuf.GeneratedMessage implements 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 | Class and Description |
---|---|
static class |
JSONSchema.Builder
`JSONSchema` represents properties from JSON Schema taken, and as used, in
the OpenAPI v2 spec.
|
static class |
JSONSchema.FieldConfiguration
'FieldConfiguration' provides additional field level properties used when generating the OpenAPI v2 file.
|
static interface |
JSONSchema.FieldConfigurationOrBuilder |
static class |
JSONSchema.JSONSchemaSimpleTypes
Protobuf enum
grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes |
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
ARRAY_FIELD_NUMBER |
static int |
DEFAULT_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
ENUM_FIELD_NUMBER |
static int |
EXAMPLE_FIELD_NUMBER |
static int |
EXCLUSIVE_MAXIMUM_FIELD_NUMBER |
static int |
EXCLUSIVE_MINIMUM_FIELD_NUMBER |
static int |
EXTENSIONS_FIELD_NUMBER |
static int |
FIELD_CONFIGURATION_FIELD_NUMBER |
static int |
FORMAT_FIELD_NUMBER |
static int |
MAX_ITEMS_FIELD_NUMBER |
static int |
MAX_LENGTH_FIELD_NUMBER |
static int |
MAX_PROPERTIES_FIELD_NUMBER |
static int |
MAXIMUM_FIELD_NUMBER |
static int |
MIN_ITEMS_FIELD_NUMBER |
static int |
MIN_LENGTH_FIELD_NUMBER |
static int |
MIN_PROPERTIES_FIELD_NUMBER |
static int |
MINIMUM_FIELD_NUMBER |
static int |
MULTIPLE_OF_FIELD_NUMBER |
static int |
PATTERN_FIELD_NUMBER |
static int |
READ_ONLY_FIELD_NUMBER |
static int |
REF_FIELD_NUMBER |
static int |
REQUIRED_FIELD_NUMBER |
static int |
TITLE_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
static int |
UNIQUE_ITEMS_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
containsExtensions(java.lang.String key)
Custom properties that start with "x-" such as "x-foo" used to describe
extra functionality that is not covered by the standard OpenAPI Specification.
|
boolean |
equals(java.lang.Object obj) |
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 [json_name = "default"]; |
com.google.protobuf.ByteString |
getDefaultBytes()
string default = 7 [json_name = "default"]; |
static JSONSchema |
getDefaultInstance() |
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() |
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 [json_name = "exclusiveMaximum"]; |
boolean |
getExclusiveMinimum()
bool exclusive_minimum = 14 [json_name = "exclusiveMinimum"]; |
java.util.Map<java.lang.String,com.google.protobuf.Value> |
getExtensions()
Deprecated.
|
int |
getExtensionsCount()
Custom properties that start with "x-" such as "x-foo" used to describe
extra functionality that is not covered by the standard OpenAPI Specification.
|
java.util.Map<java.lang.String,com.google.protobuf.Value> |
getExtensionsMap()
Custom properties that start with "x-" such as "x-foo" used to describe
extra functionality that is not covered by the standard OpenAPI Specification.
|
com.google.protobuf.Value |
getExtensionsOrDefault(java.lang.String key,
com.google.protobuf.Value defaultValue)
Custom properties that start with "x-" such as "x-foo" used to describe
extra functionality that is not covered by the standard OpenAPI Specification.
|
com.google.protobuf.Value |
getExtensionsOrThrow(java.lang.String key)
Custom properties that start with "x-" such as "x-foo" used to describe
extra functionality that is not covered by the standard OpenAPI Specification.
|
JSONSchema.FieldConfiguration |
getFieldConfiguration()
Additional field level properties used when generating the OpenAPI v2 file.
|
JSONSchema.FieldConfigurationOrBuilder |
getFieldConfigurationOrBuilder()
Additional field level properties used when generating the OpenAPI v2 file.
|
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 [json_name = "maxItems"]; |
long |
getMaxLength()
uint64 max_length = 15 [json_name = "maxLength"]; |
long |
getMaxProperties()
uint64 max_properties = 24 [json_name = "maxProperties"]; |
double |
getMinimum()
minimum represents an inclusive lower limit for a numeric instance.
|
long |
getMinItems()
uint64 min_items = 21 [json_name = "minItems"]; |
long |
getMinLength()
uint64 min_length = 16 [json_name = "minLength"]; |
long |
getMinProperties()
uint64 min_properties = 25 [json_name = "minProperties"]; |
double |
getMultipleOf()
double multiple_of = 10 [json_name = "multipleOf"]; |
com.google.protobuf.Parser<JSONSchema> |
getParserForType() |
java.lang.String |
getPattern()
string pattern = 17 [json_name = "pattern"]; |
com.google.protobuf.ByteString |
getPatternBytes()
string pattern = 17 [json_name = "pattern"]; |
boolean |
getReadOnly()
bool read_only = 8 [json_name = "readOnly"]; |
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 [json_name = "required"]; |
com.google.protobuf.ByteString |
getRequiredBytes(int index)
repeated string required = 26 [json_name = "required"]; |
int |
getRequiredCount()
repeated string required = 26 [json_name = "required"]; |
com.google.protobuf.ProtocolStringList |
getRequiredList()
repeated string required = 26 [json_name = "required"]; |
int |
getSerializedSize() |
java.lang.String |
getTitle()
The title of the schema.
|
com.google.protobuf.ByteString |
getTitleBytes()
The title of the schema.
|
JSONSchema.JSONSchemaSimpleTypes |
getType(int index)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"]; |
int |
getTypeCount()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"]; |
java.util.List<JSONSchema.JSONSchemaSimpleTypes> |
getTypeList()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"]; |
int |
getTypeValue(int index)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"]; |
java.util.List<java.lang.Integer> |
getTypeValueList()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"]; |
boolean |
getUniqueItems()
bool unique_items = 22 [json_name = "uniqueItems"]; |
boolean |
hasFieldConfiguration()
Additional field level properties used when generating the OpenAPI v2 file.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static JSONSchema.Builder |
newBuilder() |
static JSONSchema.Builder |
newBuilder(JSONSchema prototype) |
JSONSchema.Builder |
newBuilderForType() |
protected JSONSchema.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static JSONSchema |
parseDelimitedFrom(java.io.InputStream input) |
static JSONSchema |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static JSONSchema |
parseFrom(byte[] data) |
static JSONSchema |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static JSONSchema |
parseFrom(java.nio.ByteBuffer data) |
static JSONSchema |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static JSONSchema |
parseFrom(com.google.protobuf.ByteString data) |
static JSONSchema |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static JSONSchema |
parseFrom(com.google.protobuf.CodedInputStream input) |
static JSONSchema |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static JSONSchema |
parseFrom(java.io.InputStream input) |
static JSONSchema |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<JSONSchema> |
parser() |
JSONSchema.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashFields, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int REF_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int DEFAULT_FIELD_NUMBER
public static final int READ_ONLY_FIELD_NUMBER
public static final int EXAMPLE_FIELD_NUMBER
public static final int MULTIPLE_OF_FIELD_NUMBER
public static final int MAXIMUM_FIELD_NUMBER
public static final int EXCLUSIVE_MAXIMUM_FIELD_NUMBER
public static final int MINIMUM_FIELD_NUMBER
public static final int EXCLUSIVE_MINIMUM_FIELD_NUMBER
public static final int MAX_LENGTH_FIELD_NUMBER
public static final int MIN_LENGTH_FIELD_NUMBER
public static final int PATTERN_FIELD_NUMBER
public static final int MAX_ITEMS_FIELD_NUMBER
public static final int MIN_ITEMS_FIELD_NUMBER
public static final int UNIQUE_ITEMS_FIELD_NUMBER
public static final int MAX_PROPERTIES_FIELD_NUMBER
public static final int MIN_PROPERTIES_FIELD_NUMBER
public static final int REQUIRED_FIELD_NUMBER
public static final int ARRAY_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int FORMAT_FIELD_NUMBER
public static final int ENUM_FIELD_NUMBER
public static final int FIELD_CONFIGURATION_FIELD_NUMBER
public static final int EXTENSIONS_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection
in class com.google.protobuf.GeneratedMessage
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public 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 [json_name = "ref"];
getRef
in interface JSONSchemaOrBuilder
public 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 [json_name = "ref"];
getRefBytes
in interface JSONSchemaOrBuilder
public java.lang.String getTitle()
The title of the schema.
string title = 5 [json_name = "title"];
getTitle
in interface JSONSchemaOrBuilder
public com.google.protobuf.ByteString getTitleBytes()
The title of the schema.
string title = 5 [json_name = "title"];
getTitleBytes
in interface JSONSchemaOrBuilder
public java.lang.String getDescription()
A short description of the schema.
string description = 6 [json_name = "description"];
getDescription
in interface JSONSchemaOrBuilder
public com.google.protobuf.ByteString getDescriptionBytes()
A short description of the schema.
string description = 6 [json_name = "description"];
getDescriptionBytes
in interface JSONSchemaOrBuilder
public java.lang.String getDefault()
string default = 7 [json_name = "default"];
getDefault
in interface JSONSchemaOrBuilder
public com.google.protobuf.ByteString getDefaultBytes()
string default = 7 [json_name = "default"];
getDefaultBytes
in interface JSONSchemaOrBuilder
public boolean getReadOnly()
bool read_only = 8 [json_name = "readOnly"];
getReadOnly
in interface JSONSchemaOrBuilder
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 [json_name = "example"];
getExample
in interface JSONSchemaOrBuilder
public 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 [json_name = "example"];
getExampleBytes
in interface JSONSchemaOrBuilder
public double getMultipleOf()
double multiple_of = 10 [json_name = "multipleOf"];
getMultipleOf
in interface JSONSchemaOrBuilder
public double getMaximum()
Maximum represents an inclusive upper limit for a numeric instance. The value of MUST be a number,
double maximum = 11 [json_name = "maximum"];
getMaximum
in interface JSONSchemaOrBuilder
public boolean getExclusiveMaximum()
bool exclusive_maximum = 12 [json_name = "exclusiveMaximum"];
getExclusiveMaximum
in interface JSONSchemaOrBuilder
public double getMinimum()
minimum represents an inclusive lower limit for a numeric instance. The value of MUST be a number,
double minimum = 13 [json_name = "minimum"];
getMinimum
in interface JSONSchemaOrBuilder
public boolean getExclusiveMinimum()
bool exclusive_minimum = 14 [json_name = "exclusiveMinimum"];
getExclusiveMinimum
in interface JSONSchemaOrBuilder
public long getMaxLength()
uint64 max_length = 15 [json_name = "maxLength"];
getMaxLength
in interface JSONSchemaOrBuilder
public long getMinLength()
uint64 min_length = 16 [json_name = "minLength"];
getMinLength
in interface JSONSchemaOrBuilder
public java.lang.String getPattern()
string pattern = 17 [json_name = "pattern"];
getPattern
in interface JSONSchemaOrBuilder
public com.google.protobuf.ByteString getPatternBytes()
string pattern = 17 [json_name = "pattern"];
getPatternBytes
in interface JSONSchemaOrBuilder
public long getMaxItems()
uint64 max_items = 20 [json_name = "maxItems"];
getMaxItems
in interface JSONSchemaOrBuilder
public long getMinItems()
uint64 min_items = 21 [json_name = "minItems"];
getMinItems
in interface JSONSchemaOrBuilder
public boolean getUniqueItems()
bool unique_items = 22 [json_name = "uniqueItems"];
getUniqueItems
in interface JSONSchemaOrBuilder
public long getMaxProperties()
uint64 max_properties = 24 [json_name = "maxProperties"];
getMaxProperties
in interface JSONSchemaOrBuilder
public long getMinProperties()
uint64 min_properties = 25 [json_name = "minProperties"];
getMinProperties
in interface JSONSchemaOrBuilder
public com.google.protobuf.ProtocolStringList getRequiredList()
repeated string required = 26 [json_name = "required"];
getRequiredList
in interface JSONSchemaOrBuilder
public int getRequiredCount()
repeated string required = 26 [json_name = "required"];
getRequiredCount
in interface JSONSchemaOrBuilder
public java.lang.String getRequired(int index)
repeated string required = 26 [json_name = "required"];
getRequired
in interface JSONSchemaOrBuilder
index
- The index of the element to return.public com.google.protobuf.ByteString getRequiredBytes(int index)
repeated string required = 26 [json_name = "required"];
getRequiredBytes
in interface JSONSchemaOrBuilder
index
- The index of the value to return.public com.google.protobuf.ProtocolStringList getArrayList()
Items in 'array' must be unique.
repeated string array = 34 [json_name = "array"];
getArrayList
in interface JSONSchemaOrBuilder
public int getArrayCount()
Items in 'array' must be unique.
repeated string array = 34 [json_name = "array"];
getArrayCount
in interface JSONSchemaOrBuilder
public java.lang.String getArray(int index)
Items in 'array' must be unique.
repeated string array = 34 [json_name = "array"];
getArray
in interface JSONSchemaOrBuilder
index
- 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 [json_name = "array"];
getArrayBytes
in interface JSONSchemaOrBuilder
index
- The index of the value to return.public java.util.List<JSONSchema.JSONSchemaSimpleTypes> getTypeList()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"];
getTypeList
in interface JSONSchemaOrBuilder
public int getTypeCount()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"];
getTypeCount
in interface JSONSchemaOrBuilder
public JSONSchema.JSONSchemaSimpleTypes getType(int index)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"];
getType
in interface JSONSchemaOrBuilder
index
- The index of the element to return.public java.util.List<java.lang.Integer> getTypeValueList()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"];
getTypeValueList
in interface JSONSchemaOrBuilder
public int getTypeValue(int index)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"];
getTypeValue
in interface JSONSchemaOrBuilder
index
- The index of the value to return.public java.lang.String getFormat()
`Format`
string format = 36 [json_name = "format"];
getFormat
in interface JSONSchemaOrBuilder
public com.google.protobuf.ByteString getFormatBytes()
`Format`
string format = 36 [json_name = "format"];
getFormatBytes
in interface JSONSchemaOrBuilder
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 [json_name = "enum"];
getEnumList
in interface JSONSchemaOrBuilder
public 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 [json_name = "enum"];
getEnumCount
in interface JSONSchemaOrBuilder
public 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 [json_name = "enum"];
getEnum
in interface JSONSchemaOrBuilder
index
- 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 [json_name = "enum"];
getEnumBytes
in interface JSONSchemaOrBuilder
index
- The index of the value to return.public boolean hasFieldConfiguration()
Additional field level properties used when generating the OpenAPI v2 file.
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001 [json_name = "fieldConfiguration"];
hasFieldConfiguration
in interface JSONSchemaOrBuilder
public JSONSchema.FieldConfiguration getFieldConfiguration()
Additional field level properties used when generating the OpenAPI v2 file.
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001 [json_name = "fieldConfiguration"];
getFieldConfiguration
in interface JSONSchemaOrBuilder
public JSONSchema.FieldConfigurationOrBuilder getFieldConfigurationOrBuilder()
Additional field level properties used when generating the OpenAPI v2 file.
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001 [json_name = "fieldConfiguration"];
getFieldConfigurationOrBuilder
in interface JSONSchemaOrBuilder
public int getExtensionsCount()
JSONSchemaOrBuilder
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 48 [json_name = "extensions"];
getExtensionsCount
in interface JSONSchemaOrBuilder
public boolean containsExtensions(java.lang.String key)
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 48 [json_name = "extensions"];
containsExtensions
in interface JSONSchemaOrBuilder
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getExtensions()
getExtensionsMap()
instead.getExtensions
in interface JSONSchemaOrBuilder
public java.util.Map<java.lang.String,com.google.protobuf.Value> getExtensionsMap()
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 48 [json_name = "extensions"];
getExtensionsMap
in interface JSONSchemaOrBuilder
public com.google.protobuf.Value getExtensionsOrDefault(java.lang.String key, com.google.protobuf.Value defaultValue)
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 48 [json_name = "extensions"];
getExtensionsOrDefault
in interface JSONSchemaOrBuilder
public com.google.protobuf.Value getExtensionsOrThrow(java.lang.String key)
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 48 [json_name = "extensions"];
getExtensionsOrThrow
in interface JSONSchemaOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessage
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessage
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static JSONSchema parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static JSONSchema parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static JSONSchema parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static JSONSchema parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static JSONSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static JSONSchema parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static JSONSchema parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static JSONSchema parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static JSONSchema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static JSONSchema parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static JSONSchema parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static JSONSchema parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public JSONSchema.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static JSONSchema.Builder newBuilder()
public static JSONSchema.Builder newBuilder(JSONSchema prototype)
public JSONSchema.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected JSONSchema.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static JSONSchema getDefaultInstance()
public static com.google.protobuf.Parser<JSONSchema> parser()
public com.google.protobuf.Parser<JSONSchema> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public JSONSchema getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder