Class Openapiv2.JSONSchema
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
,Serializable
- Enclosing class:
- Openapiv2
public static final class Openapiv2.JSONSchema
extends com.google.protobuf.GeneratedMessage
implements Openapiv2.JSONSchemaOrBuilder
`JSONSchema` represents properties from JSON Schema taken, and as used, in the OpenAPI v2 spec. This includes changes made by OpenAPI v2. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject See also: https://cswr.github.io/JsonSchema/spec/basic_types/, https://github.com/json-schema-org/json-schema-spec/blob/master/schema.json Example: message SimpleMessage { option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { json_schema: { title: "SimpleMessage" description: "A simple message." required: ["id"] } }; // Id represents the message identifier. string id = 1; [ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { description: "The unique identifier of the simple message." }]; }Protobuf type
grpc.gateway.protoc_gen_openapiv2.options.JSONSchema
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
`JSONSchema` represents properties from JSON Schema taken, and as used, in the OpenAPI v2 spec.static final class
'FieldConfiguration' provides additional field level properties used when generating the OpenAPI v2 file.static interface
static enum
Protobuf enumgrpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,
BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParent
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsExtensions
(String key) Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.boolean
getArray
(int index) Items in 'array' must be unique.com.google.protobuf.ByteString
getArrayBytes
(int index) Items in 'array' must be unique.int
Items in 'array' must be unique.com.google.protobuf.ProtocolStringList
Items in 'array' must be unique.string default = 7;
com.google.protobuf.ByteString
string default = 7;
static Openapiv2.JSONSchema
A short description of the schema.com.google.protobuf.ByteString
A short description of the schema.static final com.google.protobuf.Descriptors.Descriptor
getEnum
(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.ByteString
getEnumBytes
(int index) Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1int
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1com.google.protobuf.ProtocolStringList
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1A free-form property to include a JSON example of this field.com.google.protobuf.ByteString
A free-form property to include a JSON example of this field.boolean
bool exclusive_maximum = 12;
boolean
bool exclusive_minimum = 14;
Deprecated.int
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.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
(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
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.Additional field level properties used when generating the OpenAPI v2 file.Additional field level properties used when generating the OpenAPI v2 file.`Format`com.google.protobuf.ByteString
`Format`double
Maximum represents an inclusive upper limit for a numeric instance.long
uint64 max_items = 20;
long
uint64 max_length = 15;
long
uint64 max_properties = 24;
double
minimum represents an inclusive lower limit for a numeric instance.long
uint64 min_items = 21;
long
uint64 min_length = 16;
long
uint64 min_properties = 25;
double
double multiple_of = 10;
com.google.protobuf.Parser<Openapiv2.JSONSchema>
string pattern = 17;
com.google.protobuf.ByteString
string pattern = 17;
boolean
bool read_only = 8;
getRef()
Ref is used to define an external reference to include in the message.com.google.protobuf.ByteString
Ref is used to define an external reference to include in the message.getRequired
(int index) repeated string required = 26;
com.google.protobuf.ByteString
getRequiredBytes
(int index) repeated string required = 26;
int
repeated string required = 26;
com.google.protobuf.ProtocolStringList
repeated string required = 26;
int
getTitle()
The title of the schema.com.google.protobuf.ByteString
The title of the schema.getType
(int index) repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
int
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
int
getTypeValue
(int index) repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
boolean
bool unique_items = 22;
boolean
Additional field level properties used when generating the OpenAPI v2 file.int
hashCode()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMapFieldReflection
(int number) final boolean
static Openapiv2.JSONSchema.Builder
static Openapiv2.JSONSchema.Builder
newBuilder
(Openapiv2.JSONSchema prototype) protected Openapiv2.JSONSchema.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static Openapiv2.JSONSchema
parseDelimitedFrom
(InputStream input) static Openapiv2.JSONSchema
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Openapiv2.JSONSchema
parseFrom
(byte[] data) static Openapiv2.JSONSchema
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Openapiv2.JSONSchema
parseFrom
(com.google.protobuf.ByteString data) static Openapiv2.JSONSchema
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Openapiv2.JSONSchema
parseFrom
(com.google.protobuf.CodedInputStream input) static Openapiv2.JSONSchema
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Openapiv2.JSONSchema
parseFrom
(InputStream input) static Openapiv2.JSONSchema
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Openapiv2.JSONSchema
parseFrom
(ByteBuffer data) static Openapiv2.JSONSchema
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Openapiv2.JSONSchema>
parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
REF_FIELD_NUMBER
public static final int REF_FIELD_NUMBER- See Also:
-
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
DEFAULT_FIELD_NUMBER
public static final int DEFAULT_FIELD_NUMBER- See Also:
-
READ_ONLY_FIELD_NUMBER
public static final int READ_ONLY_FIELD_NUMBER- See Also:
-
EXAMPLE_FIELD_NUMBER
public static final int EXAMPLE_FIELD_NUMBER- See Also:
-
MULTIPLE_OF_FIELD_NUMBER
public static final int MULTIPLE_OF_FIELD_NUMBER- See Also:
-
MAXIMUM_FIELD_NUMBER
public static final int MAXIMUM_FIELD_NUMBER- See Also:
-
EXCLUSIVE_MAXIMUM_FIELD_NUMBER
public static final int EXCLUSIVE_MAXIMUM_FIELD_NUMBER- See Also:
-
MINIMUM_FIELD_NUMBER
public static final int MINIMUM_FIELD_NUMBER- See Also:
-
EXCLUSIVE_MINIMUM_FIELD_NUMBER
public static final int EXCLUSIVE_MINIMUM_FIELD_NUMBER- See Also:
-
MAX_LENGTH_FIELD_NUMBER
public static final int MAX_LENGTH_FIELD_NUMBER- See Also:
-
MIN_LENGTH_FIELD_NUMBER
public static final int MIN_LENGTH_FIELD_NUMBER- See Also:
-
PATTERN_FIELD_NUMBER
public static final int PATTERN_FIELD_NUMBER- See Also:
-
MAX_ITEMS_FIELD_NUMBER
public static final int MAX_ITEMS_FIELD_NUMBER- See Also:
-
MIN_ITEMS_FIELD_NUMBER
public static final int MIN_ITEMS_FIELD_NUMBER- See Also:
-
UNIQUE_ITEMS_FIELD_NUMBER
public static final int UNIQUE_ITEMS_FIELD_NUMBER- See Also:
-
MAX_PROPERTIES_FIELD_NUMBER
public static final int MAX_PROPERTIES_FIELD_NUMBER- See Also:
-
MIN_PROPERTIES_FIELD_NUMBER
public static final int MIN_PROPERTIES_FIELD_NUMBER- See Also:
-
REQUIRED_FIELD_NUMBER
public static final int REQUIRED_FIELD_NUMBER- See Also:
-
ARRAY_FIELD_NUMBER
public static final int ARRAY_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
FORMAT_FIELD_NUMBER
public static final int FORMAT_FIELD_NUMBER- See Also:
-
ENUM_FIELD_NUMBER
public static final int ENUM_FIELD_NUMBER- See Also:
-
FIELD_CONFIGURATION_FIELD_NUMBER
public static final int FIELD_CONFIGURATION_FIELD_NUMBER- See Also:
-
EXTENSIONS_FIELD_NUMBER
public static final int EXTENSIONS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflection
in classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
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:
getRef
in 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:
getRefBytes
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The bytes for ref.
-
getTitle
The title of the schema.
string title = 5;
- Specified by:
getTitle
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()The title of the schema.
string title = 5;
- Specified by:
getTitleBytes
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The bytes for title.
-
getDescription
A short description of the schema.
string description = 6;
- Specified by:
getDescription
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()A short description of the schema.
string description = 6;
- Specified by:
getDescriptionBytes
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The bytes for description.
-
getDefault
string default = 7;
- Specified by:
getDefault
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The default.
-
getDefaultBytes
public com.google.protobuf.ByteString getDefaultBytes()string default = 7;
- Specified by:
getDefaultBytes
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The bytes for default.
-
getReadOnly
public boolean getReadOnly()bool read_only = 8;
- Specified by:
getReadOnly
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The readOnly.
-
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:
getExample
in 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:
getExampleBytes
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The bytes for example.
-
getMultipleOf
public double getMultipleOf()double multiple_of = 10;
- Specified by:
getMultipleOf
in 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:
getMaximum
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The maximum.
-
getExclusiveMaximum
public boolean getExclusiveMaximum()bool exclusive_maximum = 12;
- Specified by:
getExclusiveMaximum
in 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:
getMinimum
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The minimum.
-
getExclusiveMinimum
public boolean getExclusiveMinimum()bool exclusive_minimum = 14;
- Specified by:
getExclusiveMinimum
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The exclusiveMinimum.
-
getMaxLength
public long getMaxLength()uint64 max_length = 15;
- Specified by:
getMaxLength
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The maxLength.
-
getMinLength
public long getMinLength()uint64 min_length = 16;
- Specified by:
getMinLength
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The minLength.
-
getPattern
string pattern = 17;
- Specified by:
getPattern
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The pattern.
-
getPatternBytes
public com.google.protobuf.ByteString getPatternBytes()string pattern = 17;
- Specified by:
getPatternBytes
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The bytes for pattern.
-
getMaxItems
public long getMaxItems()uint64 max_items = 20;
- Specified by:
getMaxItems
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The maxItems.
-
getMinItems
public long getMinItems()uint64 min_items = 21;
- Specified by:
getMinItems
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The minItems.
-
getUniqueItems
public boolean getUniqueItems()bool unique_items = 22;
- Specified by:
getUniqueItems
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The uniqueItems.
-
getMaxProperties
public long getMaxProperties()uint64 max_properties = 24;
- Specified by:
getMaxProperties
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The maxProperties.
-
getMinProperties
public long getMinProperties()uint64 min_properties = 25;
- Specified by:
getMinProperties
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The minProperties.
-
getRequiredList
public com.google.protobuf.ProtocolStringList getRequiredList()repeated string required = 26;
- Specified by:
getRequiredList
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- A list containing the required.
-
getRequiredCount
public int getRequiredCount()repeated string required = 26;
- Specified by:
getRequiredCount
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The count of required.
-
getRequired
repeated string required = 26;
- Specified by:
getRequired
in 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:
getRequiredBytes
in 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:
getArrayList
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- A list containing the array.
-
getArrayCount
public int getArrayCount()Items in 'array' must be unique.
repeated string array = 34;
- Specified by:
getArrayCount
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The count of array.
-
getArray
Items in 'array' must be unique.
repeated string array = 34;
- Specified by:
getArray
in 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:
getArrayBytes
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the array at the given index.
-
getTypeList
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
- Specified by:
getTypeList
in 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:
getTypeCount
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The count of type.
-
getType
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
- Specified by:
getType
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The type at the given index.
-
getTypeValueList
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
- Specified by:
getTypeValueList
in 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:
getTypeValue
in 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
`Format`
string format = 36;
- Specified by:
getFormat
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The format.
-
getFormatBytes
public com.google.protobuf.ByteString getFormatBytes()`Format`
string format = 36;
- Specified by:
getFormatBytes
in 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:
getEnumList
in 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:
getEnumCount
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The count of enum.
-
getEnum
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:
getEnum
in 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:
getEnumBytes
in 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:
hasFieldConfiguration
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- Whether the fieldConfiguration field is set.
-
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:
getFieldConfiguration
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The fieldConfiguration.
-
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:
getFieldConfigurationOrBuilder
in interfaceOpenapiv2.JSONSchemaOrBuilder
-
getExtensionsCount
public int getExtensionsCount()Description copied from interface:Openapiv2.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;
- Specified by:
getExtensionsCount
in interfaceOpenapiv2.JSONSchemaOrBuilder
-
containsExtensions
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:
containsExtensions
in interfaceOpenapiv2.JSONSchemaOrBuilder
-
getExtensions
Deprecated.UsegetExtensionsMap()
instead.- Specified by:
getExtensions
in interfaceOpenapiv2.JSONSchemaOrBuilder
-
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:
getExtensionsMap
in interfaceOpenapiv2.JSONSchemaOrBuilder
-
getExtensionsOrDefault
public com.google.protobuf.Value getExtensionsOrDefault(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:
getExtensionsOrDefault
in interfaceOpenapiv2.JSONSchemaOrBuilder
-
getExtensionsOrThrow
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:
getExtensionsOrThrow
in interfaceOpenapiv2.JSONSchemaOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Openapiv2.JSONSchema parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Openapiv2.JSONSchema parseFrom(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
- Throws:
IOException
-
parseFrom
public static Openapiv2.JSONSchema parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Openapiv2.JSONSchema parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Openapiv2.JSONSchema parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Openapiv2.JSONSchema parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Openapiv2.JSONSchema.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-