Interface Openapiv2.JSONSchemaOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Openapiv2.JSONSchema, Openapiv2.JSONSchema.Builder
Enclosing class:
Openapiv2

public static interface Openapiv2.JSONSchemaOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.
    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.
    Items in 'array' must be unique.
    string default = 7;
    com.google.protobuf.ByteString
    string default = 7;
    A short description of the schema.
    com.google.protobuf.ByteString
    A short description of the schema.
    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
    Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
    Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
    A 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;
    Map<String,com.google.protobuf.Value>
    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.
    Map<String,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.
    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;
    string pattern = 17;
    com.google.protobuf.ByteString
    string pattern = 17;
    boolean
    bool read_only = 8;
    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;
    repeated string required = 26;
    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.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getRef

      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;
      Returns:
      The ref.
    • getRefBytes

      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;
      Returns:
      The bytes for ref.
    • getTitle

      String getTitle()
       The title of the schema.
       
      string title = 5;
      Returns:
      The title.
    • getTitleBytes

      com.google.protobuf.ByteString getTitleBytes()
       The title of the schema.
       
      string title = 5;
      Returns:
      The bytes for title.
    • getDescription

      String getDescription()
       A short description of the schema.
       
      string description = 6;
      Returns:
      The description.
    • getDescriptionBytes

      com.google.protobuf.ByteString getDescriptionBytes()
       A short description of the schema.
       
      string description = 6;
      Returns:
      The bytes for description.
    • getDefault

      String getDefault()
      string default = 7;
      Returns:
      The default.
    • getDefaultBytes

      com.google.protobuf.ByteString getDefaultBytes()
      string default = 7;
      Returns:
      The bytes for default.
    • getReadOnly

      boolean getReadOnly()
      bool read_only = 8;
      Returns:
      The readOnly.
    • getExample

      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;
      Returns:
      The example.
    • getExampleBytes

      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;
      Returns:
      The bytes for example.
    • getMultipleOf

      double getMultipleOf()
      double multiple_of = 10;
      Returns:
      The multipleOf.
    • getMaximum

      double getMaximum()
       Maximum represents an inclusive upper limit for a numeric instance. The
       value of MUST be a number,
       
      double maximum = 11;
      Returns:
      The maximum.
    • getExclusiveMaximum

      boolean getExclusiveMaximum()
      bool exclusive_maximum = 12;
      Returns:
      The exclusiveMaximum.
    • getMinimum

      double getMinimum()
       minimum represents an inclusive lower limit for a numeric instance. The
       value of MUST be a number,
       
      double minimum = 13;
      Returns:
      The minimum.
    • getExclusiveMinimum

      boolean getExclusiveMinimum()
      bool exclusive_minimum = 14;
      Returns:
      The exclusiveMinimum.
    • getMaxLength

      long getMaxLength()
      uint64 max_length = 15;
      Returns:
      The maxLength.
    • getMinLength

      long getMinLength()
      uint64 min_length = 16;
      Returns:
      The minLength.
    • getPattern

      String getPattern()
      string pattern = 17;
      Returns:
      The pattern.
    • getPatternBytes

      com.google.protobuf.ByteString getPatternBytes()
      string pattern = 17;
      Returns:
      The bytes for pattern.
    • getMaxItems

      long getMaxItems()
      uint64 max_items = 20;
      Returns:
      The maxItems.
    • getMinItems

      long getMinItems()
      uint64 min_items = 21;
      Returns:
      The minItems.
    • getUniqueItems

      boolean getUniqueItems()
      bool unique_items = 22;
      Returns:
      The uniqueItems.
    • getMaxProperties

      long getMaxProperties()
      uint64 max_properties = 24;
      Returns:
      The maxProperties.
    • getMinProperties

      long getMinProperties()
      uint64 min_properties = 25;
      Returns:
      The minProperties.
    • getRequiredList

      List<String> getRequiredList()
      repeated string required = 26;
      Returns:
      A list containing the required.
    • getRequiredCount

      int getRequiredCount()
      repeated string required = 26;
      Returns:
      The count of required.
    • getRequired

      String getRequired(int index)
      repeated string required = 26;
      Parameters:
      index - The index of the element to return.
      Returns:
      The required at the given index.
    • getRequiredBytes

      com.google.protobuf.ByteString getRequiredBytes(int index)
      repeated string required = 26;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the required at the given index.
    • getArrayList

      List<String> getArrayList()
       Items in 'array' must be unique.
       
      repeated string array = 34;
      Returns:
      A list containing the array.
    • getArrayCount

      int getArrayCount()
       Items in 'array' must be unique.
       
      repeated string array = 34;
      Returns:
      The count of array.
    • getArray

      String getArray(int index)
       Items in 'array' must be unique.
       
      repeated string array = 34;
      Parameters:
      index - The index of the element to return.
      Returns:
      The array at the given index.
    • getArrayBytes

      com.google.protobuf.ByteString getArrayBytes(int index)
       Items in 'array' must be unique.
       
      repeated string array = 34;
      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;
      Returns:
      A list containing the type.
    • getTypeCount

      int getTypeCount()
      repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
      Returns:
      The count of type.
    • getType

      repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
      Parameters:
      index - The index of the element to return.
      Returns:
      The type at the given index.
    • getTypeValueList

      List<Integer> getTypeValueList()
      repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
      Returns:
      A list containing the enum numeric values on the wire for type.
    • getTypeValue

      int getTypeValue(int index)
      repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of type at the given index.
    • getFormat

      String getFormat()
       `Format`
       
      string format = 36;
      Returns:
      The format.
    • getFormatBytes

      com.google.protobuf.ByteString getFormatBytes()
       `Format`
       
      string format = 36;
      Returns:
      The bytes for format.
    • getEnumList

      List<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;
      Returns:
      A list containing the enum.
    • getEnumCount

      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;
      Returns:
      The count of enum.
    • getEnum

      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;
      Parameters:
      index - The index of the element to return.
      Returns:
      The enum at the given index.
    • getEnumBytes

      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;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the enum at the given index.
    • hasFieldConfiguration

      boolean hasFieldConfiguration()
       Additional field level properties used when generating the OpenAPI v2 file.
       
      .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001;
      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;
      Returns:
      The fieldConfiguration.
    • getFieldConfigurationOrBuilder

      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;
    • getExtensionsCount

      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;
    • containsExtensions

      boolean 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.
       See: https://swagger.io/docs/specification/2-0/swagger-extensions/
       
      map<string, .google.protobuf.Value> extensions = 48;
    • getExtensions

      @Deprecated Map<String,com.google.protobuf.Value> getExtensions()
      Deprecated.
      Use getExtensionsMap() instead.
    • getExtensionsMap

      Map<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;
    • getExtensionsOrDefault

      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;
    • getExtensionsOrThrow

      com.google.protobuf.Value getExtensionsOrThrow(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;