public static final class JSONSchema.Builder extends com.google.protobuf.GeneratedMessage.Builder<JSONSchema.Builder> 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 | Method and Description |
---|---|
JSONSchema.Builder |
addAllArray(java.lang.Iterable<java.lang.String> values)
Items in 'array' must be unique.
|
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
|
JSONSchema.Builder |
addAllRequired(java.lang.Iterable<java.lang.String> values)
repeated string required = 26 [json_name = "required"]; |
JSONSchema.Builder |
addAllType(java.lang.Iterable<? extends JSONSchema.JSONSchemaSimpleTypes> values)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"]; |
JSONSchema.Builder |
addAllTypeValue(java.lang.Iterable<java.lang.Integer> values)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"]; |
JSONSchema.Builder |
addArray(java.lang.String value)
Items in 'array' must be unique.
|
JSONSchema.Builder |
addArrayBytes(com.google.protobuf.ByteString value)
Items in 'array' must be unique.
|
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
|
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
|
JSONSchema.Builder |
addRequired(java.lang.String value)
repeated string required = 26 [json_name = "required"]; |
JSONSchema.Builder |
addRequiredBytes(com.google.protobuf.ByteString value)
repeated string required = 26 [json_name = "required"]; |
JSONSchema.Builder |
addType(JSONSchema.JSONSchemaSimpleTypes value)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"]; |
JSONSchema.Builder |
addTypeValue(int value)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"]; |
JSONSchema |
build() |
JSONSchema |
buildPartial() |
JSONSchema.Builder |
clear() |
JSONSchema.Builder |
clearArray()
Items in 'array' must be unique.
|
JSONSchema.Builder |
clearDefault()
string default = 7 [json_name = "default"]; |
JSONSchema.Builder |
clearDescription()
A short description of the schema.
|
JSONSchema.Builder |
clearEnum()
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
|
JSONSchema.Builder |
clearExample()
A free-form property to include a JSON example of this field.
|
JSONSchema.Builder |
clearExclusiveMaximum()
bool exclusive_maximum = 12 [json_name = "exclusiveMaximum"]; |
JSONSchema.Builder |
clearExclusiveMinimum()
bool exclusive_minimum = 14 [json_name = "exclusiveMinimum"]; |
JSONSchema.Builder |
clearExtensions() |
JSONSchema.Builder |
clearFieldConfiguration()
Additional field level properties used when generating the OpenAPI v2 file.
|
JSONSchema.Builder |
clearFormat()
`Format`
|
JSONSchema.Builder |
clearMaximum()
Maximum represents an inclusive upper limit for a numeric instance.
|
JSONSchema.Builder |
clearMaxItems()
uint64 max_items = 20 [json_name = "maxItems"]; |
JSONSchema.Builder |
clearMaxLength()
uint64 max_length = 15 [json_name = "maxLength"]; |
JSONSchema.Builder |
clearMaxProperties()
uint64 max_properties = 24 [json_name = "maxProperties"]; |
JSONSchema.Builder |
clearMinimum()
minimum represents an inclusive lower limit for a numeric instance.
|
JSONSchema.Builder |
clearMinItems()
uint64 min_items = 21 [json_name = "minItems"]; |
JSONSchema.Builder |
clearMinLength()
uint64 min_length = 16 [json_name = "minLength"]; |
JSONSchema.Builder |
clearMinProperties()
uint64 min_properties = 25 [json_name = "minProperties"]; |
JSONSchema.Builder |
clearMultipleOf()
double multiple_of = 10 [json_name = "multipleOf"]; |
JSONSchema.Builder |
clearPattern()
string pattern = 17 [json_name = "pattern"]; |
JSONSchema.Builder |
clearReadOnly()
bool read_only = 8 [json_name = "readOnly"]; |
JSONSchema.Builder |
clearRef()
Ref is used to define an external reference to include in the message.
|
JSONSchema.Builder |
clearRequired()
repeated string required = 26 [json_name = "required"]; |
JSONSchema.Builder |
clearTitle()
The title of the schema.
|
JSONSchema.Builder |
clearType()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"]; |
JSONSchema.Builder |
clearUniqueItems()
bool unique_items = 22 [json_name = "uniqueItems"]; |
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.
|
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"]; |
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 [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.FieldConfiguration.Builder |
getFieldConfigurationBuilder()
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"]; |
java.util.Map<java.lang.String,com.google.protobuf.Value> |
getMutableExtensions()
Deprecated.
|
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"]; |
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.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
JSONSchema.Builder |
mergeFieldConfiguration(JSONSchema.FieldConfiguration value)
Additional field level properties used when generating the OpenAPI v2 file.
|
JSONSchema.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
JSONSchema.Builder |
mergeFrom(JSONSchema other) |
JSONSchema.Builder |
mergeFrom(com.google.protobuf.Message other) |
JSONSchema.Builder |
putAllExtensions(java.util.Map<java.lang.String,com.google.protobuf.Value> values)
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.Builder |
putExtensions(java.lang.String key,
com.google.protobuf.Value value)
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.Builder |
putExtensionsBuilderIfAbsent(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.Builder |
removeExtensions(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.Builder |
setArray(int index,
java.lang.String value)
Items in 'array' must be unique.
|
JSONSchema.Builder |
setDefault(java.lang.String value)
string default = 7 [json_name = "default"]; |
JSONSchema.Builder |
setDefaultBytes(com.google.protobuf.ByteString value)
string default = 7 [json_name = "default"]; |
JSONSchema.Builder |
setDescription(java.lang.String value)
A short description of the schema.
|
JSONSchema.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
A short description of the schema.
|
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
|
JSONSchema.Builder |
setExample(java.lang.String value)
A free-form property to include a JSON example of this field.
|
JSONSchema.Builder |
setExampleBytes(com.google.protobuf.ByteString value)
A free-form property to include a JSON example of this field.
|
JSONSchema.Builder |
setExclusiveMaximum(boolean value)
bool exclusive_maximum = 12 [json_name = "exclusiveMaximum"]; |
JSONSchema.Builder |
setExclusiveMinimum(boolean value)
bool exclusive_minimum = 14 [json_name = "exclusiveMinimum"]; |
JSONSchema.Builder |
setFieldConfiguration(JSONSchema.FieldConfiguration.Builder builderForValue)
Additional field level properties used when generating the OpenAPI v2 file.
|
JSONSchema.Builder |
setFieldConfiguration(JSONSchema.FieldConfiguration value)
Additional field level properties used when generating the OpenAPI v2 file.
|
JSONSchema.Builder |
setFormat(java.lang.String value)
`Format`
|
JSONSchema.Builder |
setFormatBytes(com.google.protobuf.ByteString value)
`Format`
|
JSONSchema.Builder |
setMaximum(double value)
Maximum represents an inclusive upper limit for a numeric instance.
|
JSONSchema.Builder |
setMaxItems(long value)
uint64 max_items = 20 [json_name = "maxItems"]; |
JSONSchema.Builder |
setMaxLength(long value)
uint64 max_length = 15 [json_name = "maxLength"]; |
JSONSchema.Builder |
setMaxProperties(long value)
uint64 max_properties = 24 [json_name = "maxProperties"]; |
JSONSchema.Builder |
setMinimum(double value)
minimum represents an inclusive lower limit for a numeric instance.
|
JSONSchema.Builder |
setMinItems(long value)
uint64 min_items = 21 [json_name = "minItems"]; |
JSONSchema.Builder |
setMinLength(long value)
uint64 min_length = 16 [json_name = "minLength"]; |
JSONSchema.Builder |
setMinProperties(long value)
uint64 min_properties = 25 [json_name = "minProperties"]; |
JSONSchema.Builder |
setMultipleOf(double value)
double multiple_of = 10 [json_name = "multipleOf"]; |
JSONSchema.Builder |
setPattern(java.lang.String value)
string pattern = 17 [json_name = "pattern"]; |
JSONSchema.Builder |
setPatternBytes(com.google.protobuf.ByteString value)
string pattern = 17 [json_name = "pattern"]; |
JSONSchema.Builder |
setReadOnly(boolean value)
bool read_only = 8 [json_name = "readOnly"]; |
JSONSchema.Builder |
setRef(java.lang.String value)
Ref is used to define an external reference to include in the message.
|
JSONSchema.Builder |
setRefBytes(com.google.protobuf.ByteString value)
Ref is used to define an external reference to include in the message.
|
JSONSchema.Builder |
setRequired(int index,
java.lang.String value)
repeated string required = 26 [json_name = "required"]; |
JSONSchema.Builder |
setTitle(java.lang.String value)
The title of the schema.
|
JSONSchema.Builder |
setTitleBytes(com.google.protobuf.ByteString value)
The title of the schema.
|
JSONSchema.Builder |
setType(int index,
JSONSchema.JSONSchemaSimpleTypes value)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"]; |
JSONSchema.Builder |
setTypeValue(int index,
int value)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"]; |
JSONSchema.Builder |
setUniqueItems(boolean value)
bool unique_items = 22 [json_name = "uniqueItems"]; |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection
in class com.google.protobuf.GeneratedMessage.Builder<JSONSchema.Builder>
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection
in class com.google.protobuf.GeneratedMessage.Builder<JSONSchema.Builder>
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<JSONSchema.Builder>
public JSONSchema.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<JSONSchema.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<JSONSchema.Builder>
public JSONSchema getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public JSONSchema build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public JSONSchema buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public JSONSchema.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<JSONSchema.Builder>
public JSONSchema.Builder mergeFrom(JSONSchema other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<JSONSchema.Builder>
public JSONSchema.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<JSONSchema.Builder>
java.io.IOException
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 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 [json_name = "ref"];
value
- The ref to set.public 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 [json_name = "ref"];
public 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 [json_name = "ref"];
value
- The bytes for ref to set.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 JSONSchema.Builder setTitle(java.lang.String value)
The title of the schema.
string title = 5 [json_name = "title"];
value
- The title to set.public JSONSchema.Builder clearTitle()
The title of the schema.
string title = 5 [json_name = "title"];
public JSONSchema.Builder setTitleBytes(com.google.protobuf.ByteString value)
The title of the schema.
string title = 5 [json_name = "title"];
value
- The bytes for title to set.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 JSONSchema.Builder setDescription(java.lang.String value)
A short description of the schema.
string description = 6 [json_name = "description"];
value
- The description to set.public JSONSchema.Builder clearDescription()
A short description of the schema.
string description = 6 [json_name = "description"];
public JSONSchema.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A short description of the schema.
string description = 6 [json_name = "description"];
value
- The bytes for description to set.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 JSONSchema.Builder setDefault(java.lang.String value)
string default = 7 [json_name = "default"];
value
- The default to set.public JSONSchema.Builder clearDefault()
string default = 7 [json_name = "default"];
public JSONSchema.Builder setDefaultBytes(com.google.protobuf.ByteString value)
string default = 7 [json_name = "default"];
value
- The bytes for default to set.public boolean getReadOnly()
bool read_only = 8 [json_name = "readOnly"];
getReadOnly
in interface JSONSchemaOrBuilder
public JSONSchema.Builder setReadOnly(boolean value)
bool read_only = 8 [json_name = "readOnly"];
value
- The readOnly to set.public JSONSchema.Builder clearReadOnly()
bool read_only = 8 [json_name = "readOnly"];
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 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 [json_name = "example"];
value
- The example to set.public 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 [json_name = "example"];
public 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 [json_name = "example"];
value
- The bytes for example to set.public double getMultipleOf()
double multiple_of = 10 [json_name = "multipleOf"];
getMultipleOf
in interface JSONSchemaOrBuilder
public JSONSchema.Builder setMultipleOf(double value)
double multiple_of = 10 [json_name = "multipleOf"];
value
- The multipleOf to set.public JSONSchema.Builder clearMultipleOf()
double multiple_of = 10 [json_name = "multipleOf"];
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 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 [json_name = "maximum"];
value
- The maximum to set.public JSONSchema.Builder clearMaximum()
Maximum represents an inclusive upper limit for a numeric instance. The value of MUST be a number,
double maximum = 11 [json_name = "maximum"];
public boolean getExclusiveMaximum()
bool exclusive_maximum = 12 [json_name = "exclusiveMaximum"];
getExclusiveMaximum
in interface JSONSchemaOrBuilder
public JSONSchema.Builder setExclusiveMaximum(boolean value)
bool exclusive_maximum = 12 [json_name = "exclusiveMaximum"];
value
- The exclusiveMaximum to set.public JSONSchema.Builder clearExclusiveMaximum()
bool exclusive_maximum = 12 [json_name = "exclusiveMaximum"];
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 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 [json_name = "minimum"];
value
- The minimum to set.public JSONSchema.Builder clearMinimum()
minimum represents an inclusive lower limit for a numeric instance. The value of MUST be a number,
double minimum = 13 [json_name = "minimum"];
public boolean getExclusiveMinimum()
bool exclusive_minimum = 14 [json_name = "exclusiveMinimum"];
getExclusiveMinimum
in interface JSONSchemaOrBuilder
public JSONSchema.Builder setExclusiveMinimum(boolean value)
bool exclusive_minimum = 14 [json_name = "exclusiveMinimum"];
value
- The exclusiveMinimum to set.public JSONSchema.Builder clearExclusiveMinimum()
bool exclusive_minimum = 14 [json_name = "exclusiveMinimum"];
public long getMaxLength()
uint64 max_length = 15 [json_name = "maxLength"];
getMaxLength
in interface JSONSchemaOrBuilder
public JSONSchema.Builder setMaxLength(long value)
uint64 max_length = 15 [json_name = "maxLength"];
value
- The maxLength to set.public JSONSchema.Builder clearMaxLength()
uint64 max_length = 15 [json_name = "maxLength"];
public long getMinLength()
uint64 min_length = 16 [json_name = "minLength"];
getMinLength
in interface JSONSchemaOrBuilder
public JSONSchema.Builder setMinLength(long value)
uint64 min_length = 16 [json_name = "minLength"];
value
- The minLength to set.public JSONSchema.Builder clearMinLength()
uint64 min_length = 16 [json_name = "minLength"];
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 JSONSchema.Builder setPattern(java.lang.String value)
string pattern = 17 [json_name = "pattern"];
value
- The pattern to set.public JSONSchema.Builder clearPattern()
string pattern = 17 [json_name = "pattern"];
public JSONSchema.Builder setPatternBytes(com.google.protobuf.ByteString value)
string pattern = 17 [json_name = "pattern"];
value
- The bytes for pattern to set.public long getMaxItems()
uint64 max_items = 20 [json_name = "maxItems"];
getMaxItems
in interface JSONSchemaOrBuilder
public JSONSchema.Builder setMaxItems(long value)
uint64 max_items = 20 [json_name = "maxItems"];
value
- The maxItems to set.public JSONSchema.Builder clearMaxItems()
uint64 max_items = 20 [json_name = "maxItems"];
public long getMinItems()
uint64 min_items = 21 [json_name = "minItems"];
getMinItems
in interface JSONSchemaOrBuilder
public JSONSchema.Builder setMinItems(long value)
uint64 min_items = 21 [json_name = "minItems"];
value
- The minItems to set.public JSONSchema.Builder clearMinItems()
uint64 min_items = 21 [json_name = "minItems"];
public boolean getUniqueItems()
bool unique_items = 22 [json_name = "uniqueItems"];
getUniqueItems
in interface JSONSchemaOrBuilder
public JSONSchema.Builder setUniqueItems(boolean value)
bool unique_items = 22 [json_name = "uniqueItems"];
value
- The uniqueItems to set.public JSONSchema.Builder clearUniqueItems()
bool unique_items = 22 [json_name = "uniqueItems"];
public long getMaxProperties()
uint64 max_properties = 24 [json_name = "maxProperties"];
getMaxProperties
in interface JSONSchemaOrBuilder
public JSONSchema.Builder setMaxProperties(long value)
uint64 max_properties = 24 [json_name = "maxProperties"];
value
- The maxProperties to set.public JSONSchema.Builder clearMaxProperties()
uint64 max_properties = 24 [json_name = "maxProperties"];
public long getMinProperties()
uint64 min_properties = 25 [json_name = "minProperties"];
getMinProperties
in interface JSONSchemaOrBuilder
public JSONSchema.Builder setMinProperties(long value)
uint64 min_properties = 25 [json_name = "minProperties"];
value
- The minProperties to set.public JSONSchema.Builder clearMinProperties()
uint64 min_properties = 25 [json_name = "minProperties"];
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 JSONSchema.Builder setRequired(int index, java.lang.String value)
repeated string required = 26 [json_name = "required"];
index
- The index to set the value at.value
- The required to set.public JSONSchema.Builder addRequired(java.lang.String value)
repeated string required = 26 [json_name = "required"];
value
- The required to add.public JSONSchema.Builder addAllRequired(java.lang.Iterable<java.lang.String> values)
repeated string required = 26 [json_name = "required"];
values
- The required to add.public JSONSchema.Builder clearRequired()
repeated string required = 26 [json_name = "required"];
public JSONSchema.Builder addRequiredBytes(com.google.protobuf.ByteString value)
repeated string required = 26 [json_name = "required"];
value
- The bytes of the required to add.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 JSONSchema.Builder setArray(int index, java.lang.String value)
Items in 'array' must be unique.
repeated string array = 34 [json_name = "array"];
index
- The index to set the value at.value
- The array to set.public JSONSchema.Builder addArray(java.lang.String value)
Items in 'array' must be unique.
repeated string array = 34 [json_name = "array"];
value
- The array to add.public JSONSchema.Builder addAllArray(java.lang.Iterable<java.lang.String> values)
Items in 'array' must be unique.
repeated string array = 34 [json_name = "array"];
values
- The array to add.public JSONSchema.Builder clearArray()
Items in 'array' must be unique.
repeated string array = 34 [json_name = "array"];
public JSONSchema.Builder addArrayBytes(com.google.protobuf.ByteString value)
Items in 'array' must be unique.
repeated string array = 34 [json_name = "array"];
value
- The bytes of the array to add.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 JSONSchema.Builder setType(int index, JSONSchema.JSONSchemaSimpleTypes value)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"];
index
- The index to set the value at.value
- The type to set.public JSONSchema.Builder addType(JSONSchema.JSONSchemaSimpleTypes value)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"];
value
- The type to add.public JSONSchema.Builder addAllType(java.lang.Iterable<? extends JSONSchema.JSONSchemaSimpleTypes> values)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"];
values
- The type to add.public JSONSchema.Builder clearType()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"];
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 JSONSchema.Builder setTypeValue(int index, int value)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"];
index
- The index to set the value at.value
- The enum numeric value on the wire for type to set.public JSONSchema.Builder addTypeValue(int value)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"];
value
- The enum numeric value on the wire for type to add.public JSONSchema.Builder addAllTypeValue(java.lang.Iterable<java.lang.Integer> values)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"];
values
- The enum numeric values on the wire for type to add.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 JSONSchema.Builder setFormat(java.lang.String value)
`Format`
string format = 36 [json_name = "format"];
value
- The format to set.public JSONSchema.Builder clearFormat()
`Format`
string format = 36 [json_name = "format"];
public JSONSchema.Builder setFormatBytes(com.google.protobuf.ByteString value)
`Format`
string format = 36 [json_name = "format"];
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 [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 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 [json_name = "enum"];
index
- The index to set the value at.value
- The enum to set.public 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 [json_name = "enum"];
value
- The enum to add.public 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 [json_name = "enum"];
values
- The enum to add.public 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 [json_name = "enum"];
public 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 [json_name = "enum"];
value
- The bytes of the enum to add.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.Builder setFieldConfiguration(JSONSchema.FieldConfiguration value)
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"];
public JSONSchema.Builder setFieldConfiguration(JSONSchema.FieldConfiguration.Builder builderForValue)
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"];
public JSONSchema.Builder mergeFieldConfiguration(JSONSchema.FieldConfiguration value)
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"];
public JSONSchema.Builder clearFieldConfiguration()
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"];
public JSONSchema.FieldConfiguration.Builder getFieldConfigurationBuilder()
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"];
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 JSONSchema.Builder clearExtensions()
public JSONSchema.Builder removeExtensions(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"];
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getMutableExtensions()
public JSONSchema.Builder putExtensions(java.lang.String key, com.google.protobuf.Value value)
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"];
public JSONSchema.Builder putAllExtensions(java.util.Map<java.lang.String,com.google.protobuf.Value> values)
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"];
public com.google.protobuf.Value.Builder putExtensionsBuilderIfAbsent(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"];