public interface JSONSchemaOrBuilder
extends com.google.protobuf.MessageOrBuilder
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.
|
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.
|
java.util.List<java.lang.String> |
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"]; |
java.lang.String |
getDescription()
A short description of the schema.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
A short description of the schema.
|
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
|
java.util.List<java.lang.String> |
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"]; |
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"]; |
java.util.List<java.lang.String> |
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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
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"];
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"];
java.lang.String getTitle()
The title of the schema.
string title = 5 [json_name = "title"];
com.google.protobuf.ByteString getTitleBytes()
The title of the schema.
string title = 5 [json_name = "title"];
java.lang.String getDescription()
A short description of the schema.
string description = 6 [json_name = "description"];
com.google.protobuf.ByteString getDescriptionBytes()
A short description of the schema.
string description = 6 [json_name = "description"];
java.lang.String getDefault()
string default = 7 [json_name = "default"];
com.google.protobuf.ByteString getDefaultBytes()
string default = 7 [json_name = "default"];
boolean getReadOnly()
bool read_only = 8 [json_name = "readOnly"];
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"];
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"];
double getMultipleOf()
double multiple_of = 10 [json_name = "multipleOf"];
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"];
boolean getExclusiveMaximum()
bool exclusive_maximum = 12 [json_name = "exclusiveMaximum"];
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"];
boolean getExclusiveMinimum()
bool exclusive_minimum = 14 [json_name = "exclusiveMinimum"];
long getMaxLength()
uint64 max_length = 15 [json_name = "maxLength"];
long getMinLength()
uint64 min_length = 16 [json_name = "minLength"];
java.lang.String getPattern()
string pattern = 17 [json_name = "pattern"];
com.google.protobuf.ByteString getPatternBytes()
string pattern = 17 [json_name = "pattern"];
long getMaxItems()
uint64 max_items = 20 [json_name = "maxItems"];
long getMinItems()
uint64 min_items = 21 [json_name = "minItems"];
boolean getUniqueItems()
bool unique_items = 22 [json_name = "uniqueItems"];
long getMaxProperties()
uint64 max_properties = 24 [json_name = "maxProperties"];
long getMinProperties()
uint64 min_properties = 25 [json_name = "minProperties"];
java.util.List<java.lang.String> getRequiredList()
repeated string required = 26 [json_name = "required"];
int getRequiredCount()
repeated string required = 26 [json_name = "required"];
java.lang.String getRequired(int index)
repeated string required = 26 [json_name = "required"];
index
- The index of the element to return.com.google.protobuf.ByteString getRequiredBytes(int index)
repeated string required = 26 [json_name = "required"];
index
- The index of the value to return.java.util.List<java.lang.String> getArrayList()
Items in 'array' must be unique.
repeated string array = 34 [json_name = "array"];
int getArrayCount()
Items in 'array' must be unique.
repeated string array = 34 [json_name = "array"];
java.lang.String getArray(int index)
Items in 'array' must be unique.
repeated string array = 34 [json_name = "array"];
index
- The index of the element to return.com.google.protobuf.ByteString getArrayBytes(int index)
Items in 'array' must be unique.
repeated string array = 34 [json_name = "array"];
index
- The index of the value to return.java.util.List<JSONSchema.JSONSchemaSimpleTypes> getTypeList()
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"];
JSONSchema.JSONSchemaSimpleTypes getType(int index)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35 [json_name = "type"];
index
- The index of the element to return.java.util.List<java.lang.Integer> getTypeValueList()
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"];
index
- The index of the value to return.java.lang.String getFormat()
`Format`
string format = 36 [json_name = "format"];
com.google.protobuf.ByteString getFormatBytes()
`Format`
string format = 36 [json_name = "format"];
java.util.List<java.lang.String> 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"];
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"];
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"];
index
- The index of the element to return.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"];
index
- The index of the value to return.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"];
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"];
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"];
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. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 48 [json_name = "extensions"];
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"];
@Deprecated java.util.Map<java.lang.String,com.google.protobuf.Value> getExtensions()
getExtensionsMap()
instead.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"];
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"];
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"];