Class Openapiv2.JSONSchema
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Openapiv2.JSONSchemaOrBuilder,java.io.Serializable
- Enclosing class:
- Openapiv2
public static final class Openapiv2.JSONSchema extends com.google.protobuf.GeneratedMessageV3 implements Openapiv2.JSONSchemaOrBuilder
`JSONSchema` represents properties from JSON Schema taken, and as used, in the OpenAPI v2 spec. This includes changes made by OpenAPI v2. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject See also: https://cswr.github.io/JsonSchema/spec/basic_types/, https://github.com/json-schema-org/json-schema-spec/blob/master/schema.json Example: message SimpleMessage { option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { json_schema: { title: "SimpleMessage" description: "A simple message." required: ["id"] } }; // Id represents the message identifier. string id = 1; [ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { description: "The unique identifier of the simple message." }]; }Protobuf typegrpc.gateway.protoc_gen_openapiv2.options.JSONSchema- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenapiv2.JSONSchema.Builder`JSONSchema` represents properties from JSON Schema taken, and as used, in the OpenAPI v2 spec.static classOpenapiv2.JSONSchema.FieldConfiguration'FieldConfiguration' provides additional field level properties used when generating the OpenAPI v2 file.static interfaceOpenapiv2.JSONSchema.FieldConfigurationOrBuilderstatic classOpenapiv2.JSONSchema.JSONSchemaSimpleTypesProtobuf enumgrpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intARRAY_FIELD_NUMBERstatic intDEFAULT_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intENUM_FIELD_NUMBERstatic intEXAMPLE_FIELD_NUMBERstatic intEXCLUSIVE_MAXIMUM_FIELD_NUMBERstatic intEXCLUSIVE_MINIMUM_FIELD_NUMBERstatic intEXTENSIONS_FIELD_NUMBERstatic intFIELD_CONFIGURATION_FIELD_NUMBERstatic intFORMAT_FIELD_NUMBERstatic intMAX_ITEMS_FIELD_NUMBERstatic intMAX_LENGTH_FIELD_NUMBERstatic intMAX_PROPERTIES_FIELD_NUMBERstatic intMAXIMUM_FIELD_NUMBERstatic intMIN_ITEMS_FIELD_NUMBERstatic intMIN_LENGTH_FIELD_NUMBERstatic intMIN_PROPERTIES_FIELD_NUMBERstatic intMINIMUM_FIELD_NUMBERstatic intMULTIPLE_OF_FIELD_NUMBERstatic intPATTERN_FIELD_NUMBERstatic intREAD_ONLY_FIELD_NUMBERstatic intREF_FIELD_NUMBERstatic intREQUIRED_FIELD_NUMBERstatic intTITLE_FIELD_NUMBERstatic intTYPE_FIELD_NUMBERstatic intUNIQUE_ITEMS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsExtensions(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.booleanequals(java.lang.Object obj)java.lang.StringgetArray(int index)Items in 'array' must be unique.com.google.protobuf.ByteStringgetArrayBytes(int index)Items in 'array' must be unique.intgetArrayCount()Items in 'array' must be unique.com.google.protobuf.ProtocolStringListgetArrayList()Items in 'array' must be unique.java.lang.StringgetDefault()string default = 7;com.google.protobuf.ByteStringgetDefaultBytes()string default = 7;static Openapiv2.JSONSchemagetDefaultInstance()Openapiv2.JSONSchemagetDefaultInstanceForType()java.lang.StringgetDescription()A short description of the schema.com.google.protobuf.ByteStringgetDescriptionBytes()A short description of the schema.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetEnum(int index)Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1com.google.protobuf.ByteStringgetEnumBytes(int index)Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1intgetEnumCount()Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1com.google.protobuf.ProtocolStringListgetEnumList()Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1java.lang.StringgetExample()A free-form property to include a JSON example of this field.com.google.protobuf.ByteStringgetExampleBytes()A free-form property to include a JSON example of this field.booleangetExclusiveMaximum()bool exclusive_maximum = 12;booleangetExclusiveMinimum()bool exclusive_minimum = 14;java.util.Map<java.lang.String,com.google.protobuf.Value>getExtensions()Deprecated.intgetExtensionsCount()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.ValuegetExtensionsOrDefault(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.ValuegetExtensionsOrThrow(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.Openapiv2.JSONSchema.FieldConfigurationgetFieldConfiguration()Additional field level properties used when generating the OpenAPI v2 file.Openapiv2.JSONSchema.FieldConfigurationOrBuildergetFieldConfigurationOrBuilder()Additional field level properties used when generating the OpenAPI v2 file.java.lang.StringgetFormat()`Format`com.google.protobuf.ByteStringgetFormatBytes()`Format`doublegetMaximum()Maximum represents an inclusive upper limit for a numeric instance.longgetMaxItems()uint64 max_items = 20;longgetMaxLength()uint64 max_length = 15;longgetMaxProperties()uint64 max_properties = 24;doublegetMinimum()minimum represents an inclusive lower limit for a numeric instance.longgetMinItems()uint64 min_items = 21;longgetMinLength()uint64 min_length = 16;longgetMinProperties()uint64 min_properties = 25;doublegetMultipleOf()double multiple_of = 10;com.google.protobuf.Parser<Openapiv2.JSONSchema>getParserForType()java.lang.StringgetPattern()string pattern = 17;com.google.protobuf.ByteStringgetPatternBytes()string pattern = 17;booleangetReadOnly()bool read_only = 8;java.lang.StringgetRef()Ref is used to define an external reference to include in the message.com.google.protobuf.ByteStringgetRefBytes()Ref is used to define an external reference to include in the message.java.lang.StringgetRequired(int index)repeated string required = 26;com.google.protobuf.ByteStringgetRequiredBytes(int index)repeated string required = 26;intgetRequiredCount()repeated string required = 26;com.google.protobuf.ProtocolStringListgetRequiredList()repeated string required = 26;intgetSerializedSize()java.lang.StringgetTitle()The title of the schema.com.google.protobuf.ByteStringgetTitleBytes()The title of the schema.Openapiv2.JSONSchema.JSONSchemaSimpleTypesgetType(int index)repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;intgetTypeCount()repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;java.util.List<Openapiv2.JSONSchema.JSONSchemaSimpleTypes>getTypeList()repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;intgetTypeValue(int index)repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;java.util.List<java.lang.Integer>getTypeValueList()repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;booleangetUniqueItems()bool unique_items = 22;booleanhasFieldConfiguration()Additional field level properties used when generating the OpenAPI v2 file.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static Openapiv2.JSONSchema.BuildernewBuilder()static Openapiv2.JSONSchema.BuildernewBuilder(Openapiv2.JSONSchema prototype)Openapiv2.JSONSchema.BuildernewBuilderForType()protected Openapiv2.JSONSchema.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Openapiv2.JSONSchemaparseDelimitedFrom(java.io.InputStream input)static Openapiv2.JSONSchemaparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Openapiv2.JSONSchemaparseFrom(byte[] data)static Openapiv2.JSONSchemaparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Openapiv2.JSONSchemaparseFrom(com.google.protobuf.ByteString data)static Openapiv2.JSONSchemaparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Openapiv2.JSONSchemaparseFrom(com.google.protobuf.CodedInputStream input)static Openapiv2.JSONSchemaparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Openapiv2.JSONSchemaparseFrom(java.io.InputStream input)static Openapiv2.JSONSchemaparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Openapiv2.JSONSchemaparseFrom(java.nio.ByteBuffer data)static Openapiv2.JSONSchemaparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Openapiv2.JSONSchema>parser()Openapiv2.JSONSchema.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
REF_FIELD_NUMBER
public static final int REF_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEFAULT_FIELD_NUMBER
public static final int DEFAULT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
READ_ONLY_FIELD_NUMBER
public static final int READ_ONLY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXAMPLE_FIELD_NUMBER
public static final int EXAMPLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MULTIPLE_OF_FIELD_NUMBER
public static final int MULTIPLE_OF_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAXIMUM_FIELD_NUMBER
public static final int MAXIMUM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXCLUSIVE_MAXIMUM_FIELD_NUMBER
public static final int EXCLUSIVE_MAXIMUM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MINIMUM_FIELD_NUMBER
public static final int MINIMUM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXCLUSIVE_MINIMUM_FIELD_NUMBER
public static final int EXCLUSIVE_MINIMUM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_LENGTH_FIELD_NUMBER
public static final int MAX_LENGTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_LENGTH_FIELD_NUMBER
public static final int MIN_LENGTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PATTERN_FIELD_NUMBER
public static final int PATTERN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_ITEMS_FIELD_NUMBER
public static final int MAX_ITEMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_ITEMS_FIELD_NUMBER
public static final int MIN_ITEMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UNIQUE_ITEMS_FIELD_NUMBER
public static final int UNIQUE_ITEMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_PROPERTIES_FIELD_NUMBER
public static final int MAX_PROPERTIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_PROPERTIES_FIELD_NUMBER
public static final int MIN_PROPERTIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUIRED_FIELD_NUMBER
public static final int REQUIRED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ARRAY_FIELD_NUMBER
public static final int ARRAY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FORMAT_FIELD_NUMBER
public static final int FORMAT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENUM_FIELD_NUMBER
public static final int ENUM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FIELD_CONFIGURATION_FIELD_NUMBER
public static final int FIELD_CONFIGURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXTENSIONS_FIELD_NUMBER
public static final int EXTENSIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getRef
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;- Specified by:
getRefin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The ref.
-
getRefBytes
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;- Specified by:
getRefBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The bytes for ref.
-
getTitle
public java.lang.String getTitle()
The title of the schema.
string title = 5;- Specified by:
getTitlein interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()
The title of the schema.
string title = 5;- Specified by:
getTitleBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The bytes for title.
-
getDescription
public java.lang.String getDescription()
A short description of the schema.
string description = 6;- Specified by:
getDescriptionin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A short description of the schema.
string description = 6;- Specified by:
getDescriptionBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The bytes for description.
-
getDefault
public java.lang.String getDefault()
string default = 7;- Specified by:
getDefaultin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The default.
-
getDefaultBytes
public com.google.protobuf.ByteString getDefaultBytes()
string default = 7;- Specified by:
getDefaultBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The bytes for default.
-
getReadOnly
public boolean getReadOnly()
bool read_only = 8;- Specified by:
getReadOnlyin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The readOnly.
-
getExample
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;- Specified by:
getExamplein interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The example.
-
getExampleBytes
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;- Specified by:
getExampleBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The bytes for example.
-
getMultipleOf
public double getMultipleOf()
double multiple_of = 10;- Specified by:
getMultipleOfin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The multipleOf.
-
getMaximum
public double getMaximum()
Maximum represents an inclusive upper limit for a numeric instance. The value of MUST be a number,
double maximum = 11;- Specified by:
getMaximumin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The maximum.
-
getExclusiveMaximum
public boolean getExclusiveMaximum()
bool exclusive_maximum = 12;- Specified by:
getExclusiveMaximumin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The exclusiveMaximum.
-
getMinimum
public double getMinimum()
minimum represents an inclusive lower limit for a numeric instance. The value of MUST be a number,
double minimum = 13;- Specified by:
getMinimumin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The minimum.
-
getExclusiveMinimum
public boolean getExclusiveMinimum()
bool exclusive_minimum = 14;- Specified by:
getExclusiveMinimumin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The exclusiveMinimum.
-
getMaxLength
public long getMaxLength()
uint64 max_length = 15;- Specified by:
getMaxLengthin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The maxLength.
-
getMinLength
public long getMinLength()
uint64 min_length = 16;- Specified by:
getMinLengthin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The minLength.
-
getPattern
public java.lang.String getPattern()
string pattern = 17;- Specified by:
getPatternin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The pattern.
-
getPatternBytes
public com.google.protobuf.ByteString getPatternBytes()
string pattern = 17;- Specified by:
getPatternBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The bytes for pattern.
-
getMaxItems
public long getMaxItems()
uint64 max_items = 20;- Specified by:
getMaxItemsin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The maxItems.
-
getMinItems
public long getMinItems()
uint64 min_items = 21;- Specified by:
getMinItemsin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The minItems.
-
getUniqueItems
public boolean getUniqueItems()
bool unique_items = 22;- Specified by:
getUniqueItemsin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The uniqueItems.
-
getMaxProperties
public long getMaxProperties()
uint64 max_properties = 24;- Specified by:
getMaxPropertiesin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The maxProperties.
-
getMinProperties
public long getMinProperties()
uint64 min_properties = 25;- Specified by:
getMinPropertiesin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The minProperties.
-
getRequiredList
public com.google.protobuf.ProtocolStringList getRequiredList()
repeated string required = 26;- Specified by:
getRequiredListin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- A list containing the required.
-
getRequiredCount
public int getRequiredCount()
repeated string required = 26;- Specified by:
getRequiredCountin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The count of required.
-
getRequired
public java.lang.String getRequired(int index)
repeated string required = 26;- Specified by:
getRequiredin interfaceOpenapiv2.JSONSchemaOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The required at the given index.
-
getRequiredBytes
public com.google.protobuf.ByteString getRequiredBytes(int index)
repeated string required = 26;- Specified by:
getRequiredBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the required at the given index.
-
getArrayList
public com.google.protobuf.ProtocolStringList getArrayList()
Items in 'array' must be unique.
repeated string array = 34;- Specified by:
getArrayListin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- A list containing the array.
-
getArrayCount
public int getArrayCount()
Items in 'array' must be unique.
repeated string array = 34;- Specified by:
getArrayCountin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The count of array.
-
getArray
public java.lang.String getArray(int index)
Items in 'array' must be unique.
repeated string array = 34;- Specified by:
getArrayin interfaceOpenapiv2.JSONSchemaOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The array at the given index.
-
getArrayBytes
public com.google.protobuf.ByteString getArrayBytes(int index)
Items in 'array' must be unique.
repeated string array = 34;- Specified by:
getArrayBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the array at the given index.
-
getTypeList
public java.util.List<Openapiv2.JSONSchema.JSONSchemaSimpleTypes> getTypeList()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;- Specified by:
getTypeListin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- A list containing the type.
-
getTypeCount
public int getTypeCount()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;- Specified by:
getTypeCountin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The count of type.
-
getType
public Openapiv2.JSONSchema.JSONSchemaSimpleTypes getType(int index)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;- Specified by:
getTypein interfaceOpenapiv2.JSONSchemaOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The type at the given index.
-
getTypeValueList
public java.util.List<java.lang.Integer> getTypeValueList()
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;- Specified by:
getTypeValueListin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- A list containing the enum numeric values on the wire for type.
-
getTypeValue
public int getTypeValue(int index)
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;- Specified by:
getTypeValuein interfaceOpenapiv2.JSONSchemaOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of type at the given index.
-
getFormat
public java.lang.String getFormat()
`Format`
string format = 36;- Specified by:
getFormatin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The format.
-
getFormatBytes
public com.google.protobuf.ByteString getFormatBytes()
`Format`
string format = 36;- Specified by:
getFormatBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The bytes for format.
-
getEnumList
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;- Specified by:
getEnumListin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- A list containing the enum.
-
getEnumCount
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;- Specified by:
getEnumCountin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The count of enum.
-
getEnum
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;- Specified by:
getEnumin interfaceOpenapiv2.JSONSchemaOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The enum at the given index.
-
getEnumBytes
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;- Specified by:
getEnumBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the enum at the given index.
-
hasFieldConfiguration
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;- Specified by:
hasFieldConfigurationin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- Whether the fieldConfiguration field is set.
-
getFieldConfiguration
public Openapiv2.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;- Specified by:
getFieldConfigurationin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The fieldConfiguration.
-
getFieldConfigurationOrBuilder
public Openapiv2.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;- Specified by:
getFieldConfigurationOrBuilderin interfaceOpenapiv2.JSONSchemaOrBuilder
-
getExtensionsCount
public int getExtensionsCount()
Description copied from interface:Openapiv2.JSONSchemaOrBuilderCustom 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;- Specified by:
getExtensionsCountin interfaceOpenapiv2.JSONSchemaOrBuilder
-
containsExtensions
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;- Specified by:
containsExtensionsin interfaceOpenapiv2.JSONSchemaOrBuilder
-
getExtensions
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getExtensions()
Deprecated.UsegetExtensionsMap()instead.- Specified by:
getExtensionsin interfaceOpenapiv2.JSONSchemaOrBuilder
-
getExtensionsMap
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;- Specified by:
getExtensionsMapin interfaceOpenapiv2.JSONSchemaOrBuilder
-
getExtensionsOrDefault
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;- Specified by:
getExtensionsOrDefaultin interfaceOpenapiv2.JSONSchemaOrBuilder
-
getExtensionsOrThrow
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;- Specified by:
getExtensionsOrThrowin interfaceOpenapiv2.JSONSchemaOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Openapiv2.JSONSchema parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Openapiv2.JSONSchema parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Openapiv2.JSONSchema parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Openapiv2.JSONSchema parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Openapiv2.JSONSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Openapiv2.JSONSchema parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Openapiv2.JSONSchema parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Openapiv2.JSONSchema parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Openapiv2.JSONSchema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Openapiv2.JSONSchema parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Openapiv2.JSONSchema parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Openapiv2.JSONSchema parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Openapiv2.JSONSchema.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Openapiv2.JSONSchema.Builder newBuilder()
-
newBuilder
public static Openapiv2.JSONSchema.Builder newBuilder(Openapiv2.JSONSchema prototype)
-
toBuilder
public Openapiv2.JSONSchema.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Openapiv2.JSONSchema.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Openapiv2.JSONSchema getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Openapiv2.JSONSchema> parser()
-
getParserForType
public com.google.protobuf.Parser<Openapiv2.JSONSchema> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Openapiv2.JSONSchema getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-