Class Openapiv2.JSONSchema.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Openapiv2.JSONSchema.Builder>
grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.JSONSchema.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Openapiv2.JSONSchemaOrBuilder
,Cloneable
- Enclosing class:
- Openapiv2.JSONSchema
public static final class Openapiv2.JSONSchema.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Openapiv2.JSONSchema.Builder>
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
-
Method Summary
Modifier and TypeMethodDescriptionaddAllArray
(Iterable<String> values) Items in 'array' must be unique.addAllEnum
(Iterable<String> values) Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1addAllRequired
(Iterable<String> values) repeated string required = 26;
addAllType
(Iterable<? extends Openapiv2.JSONSchema.JSONSchemaSimpleTypes> values) repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
addAllTypeValue
(Iterable<Integer> values) repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
Items in 'array' must be unique.addArrayBytes
(com.google.protobuf.ByteString value) Items in 'array' must be unique.Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1addEnumBytes
(com.google.protobuf.ByteString value) Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1addRequired
(String value) repeated string required = 26;
addRequiredBytes
(com.google.protobuf.ByteString value) repeated string required = 26;
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
addTypeValue
(int value) repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
build()
clear()
Items in 'array' must be unique.string default = 7;
A short description of the schema.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.bool exclusive_maximum = 12;
bool exclusive_minimum = 14;
Additional field level properties used when generating the OpenAPI v2 file.`Format`Maximum represents an inclusive upper limit for a numeric instance.uint64 max_items = 20;
uint64 max_length = 15;
uint64 max_properties = 24;
minimum represents an inclusive lower limit for a numeric instance.uint64 min_items = 21;
uint64 min_length = 16;
uint64 min_properties = 25;
double multiple_of = 10;
string pattern = 17;
bool read_only = 8;
clearRef()
Ref is used to define an external reference to include in the message.repeated string required = 26;
The title of the schema.repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
bool unique_items = 22;
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.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;
A short description of the schema.com.google.protobuf.ByteString
A short description of the schema.static final com.google.protobuf.Descriptors.Descriptor
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.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;
Deprecated.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;
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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMapFieldReflection
(int number) protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMutableMapFieldReflection
(int number) final boolean
Additional field level properties used when generating the OpenAPI v2 file.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(Openapiv2.JSONSchema other) putAllExtensions
(Map<String, com.google.protobuf.Value> values) Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.putExtensions
(String key, com.google.protobuf.Value value) Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.com.google.protobuf.Value.Builder
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.removeExtensions
(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.Items in 'array' must be unique.setDefault
(String value) string default = 7;
setDefaultBytes
(com.google.protobuf.ByteString value) string default = 7;
setDescription
(String value) A short description of the schema.setDescriptionBytes
(com.google.protobuf.ByteString value) A short description of the schema.Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1setExample
(String value) A free-form property to include a JSON example of this field.setExampleBytes
(com.google.protobuf.ByteString value) A free-form property to include a JSON example of this field.setExclusiveMaximum
(boolean value) bool exclusive_maximum = 12;
setExclusiveMinimum
(boolean value) bool exclusive_minimum = 14;
Additional field level properties used when generating the OpenAPI v2 file.setFieldConfiguration
(Openapiv2.JSONSchema.FieldConfiguration.Builder builderForValue) Additional field level properties used when generating the OpenAPI v2 file.`Format`setFormatBytes
(com.google.protobuf.ByteString value) `Format`setMaximum
(double value) Maximum represents an inclusive upper limit for a numeric instance.setMaxItems
(long value) uint64 max_items = 20;
setMaxLength
(long value) uint64 max_length = 15;
setMaxProperties
(long value) uint64 max_properties = 24;
setMinimum
(double value) minimum represents an inclusive lower limit for a numeric instance.setMinItems
(long value) uint64 min_items = 21;
setMinLength
(long value) uint64 min_length = 16;
setMinProperties
(long value) uint64 min_properties = 25;
setMultipleOf
(double value) double multiple_of = 10;
setPattern
(String value) string pattern = 17;
setPatternBytes
(com.google.protobuf.ByteString value) string pattern = 17;
setReadOnly
(boolean value) bool read_only = 8;
Ref is used to define an external reference to include in the message.setRefBytes
(com.google.protobuf.ByteString value) Ref is used to define an external reference to include in the message.setRequired
(int index, String value) repeated string required = 26;
The title of the schema.setTitleBytes
(com.google.protobuf.ByteString value) The title of the schema.setType
(int index, Openapiv2.JSONSchema.JSONSchemaSimpleTypes value) repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
setTypeValue
(int index, int value) repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
setUniqueItems
(boolean value) bool unique_items = 22;
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<Openapiv2.JSONSchema.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflection
in classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.JSONSchema.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.JSONSchema.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.JSONSchema.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.JSONSchema.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Openapiv2.JSONSchema.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.JSONSchema.Builder>
-
mergeFrom
public Openapiv2.JSONSchema.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Openapiv2.JSONSchema.Builder>
- Throws:
IOException
-
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.
-
setRef
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;
- Parameters:
value
- The ref to set.- Returns:
- This builder for chaining.
-
clearRef
Ref is used to define an external reference to include in the message. This could be a fully qualified proto message reference, and that type must be imported into the protofile. If no message is identified, the Ref will be used verbatim in the output. For example: `ref: ".google.protobuf.Timestamp"`.
string ref = 3;
- Returns:
- This builder for chaining.
-
setRefBytes
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;
- Parameters:
value
- The bytes for ref to set.- Returns:
- This builder for chaining.
-
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.
-
setTitle
The title of the schema.
string title = 5;
- Parameters:
value
- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
The title of the schema.
string title = 5;
- Returns:
- This builder for chaining.
-
setTitleBytes
The title of the schema.
string title = 5;
- Parameters:
value
- The bytes for title to set.- Returns:
- This builder for chaining.
-
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.
-
setDescription
A short description of the schema.
string description = 6;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
A short description of the schema.
string description = 6;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
A short description of the schema.
string description = 6;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
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.
-
setDefault
string default = 7;
- Parameters:
value
- The default to set.- Returns:
- This builder for chaining.
-
clearDefault
string default = 7;
- Returns:
- This builder for chaining.
-
setDefaultBytes
string default = 7;
- Parameters:
value
- The bytes for default to set.- Returns:
- This builder for chaining.
-
getReadOnly
public boolean getReadOnly()bool read_only = 8;
- Specified by:
getReadOnly
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The readOnly.
-
setReadOnly
bool read_only = 8;
- Parameters:
value
- The readOnly to set.- Returns:
- This builder for chaining.
-
clearReadOnly
bool read_only = 8;
- Returns:
- This builder for chaining.
-
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.
-
setExample
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;
- Parameters:
value
- The example to set.- Returns:
- This builder for chaining.
-
clearExample
A free-form property to include a JSON example of this field. This is copied verbatim to the output swagger.json. Quotes must be escaped. This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
string example = 9;
- Returns:
- This builder for chaining.
-
setExampleBytes
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;
- Parameters:
value
- The bytes for example to set.- Returns:
- This builder for chaining.
-
getMultipleOf
public double getMultipleOf()double multiple_of = 10;
- Specified by:
getMultipleOf
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The multipleOf.
-
setMultipleOf
double multiple_of = 10;
- Parameters:
value
- The multipleOf to set.- Returns:
- This builder for chaining.
-
clearMultipleOf
double multiple_of = 10;
- Returns:
- This builder for chaining.
-
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.
-
setMaximum
Maximum represents an inclusive upper limit for a numeric instance. The value of MUST be a number,
double maximum = 11;
- Parameters:
value
- The maximum to set.- Returns:
- This builder for chaining.
-
clearMaximum
Maximum represents an inclusive upper limit for a numeric instance. The value of MUST be a number,
double maximum = 11;
- Returns:
- This builder for chaining.
-
getExclusiveMaximum
public boolean getExclusiveMaximum()bool exclusive_maximum = 12;
- Specified by:
getExclusiveMaximum
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The exclusiveMaximum.
-
setExclusiveMaximum
bool exclusive_maximum = 12;
- Parameters:
value
- The exclusiveMaximum to set.- Returns:
- This builder for chaining.
-
clearExclusiveMaximum
bool exclusive_maximum = 12;
- Returns:
- This builder for chaining.
-
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.
-
setMinimum
minimum represents an inclusive lower limit for a numeric instance. The value of MUST be a number,
double minimum = 13;
- Parameters:
value
- The minimum to set.- Returns:
- This builder for chaining.
-
clearMinimum
minimum represents an inclusive lower limit for a numeric instance. The value of MUST be a number,
double minimum = 13;
- Returns:
- This builder for chaining.
-
getExclusiveMinimum
public boolean getExclusiveMinimum()bool exclusive_minimum = 14;
- Specified by:
getExclusiveMinimum
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The exclusiveMinimum.
-
setExclusiveMinimum
bool exclusive_minimum = 14;
- Parameters:
value
- The exclusiveMinimum to set.- Returns:
- This builder for chaining.
-
clearExclusiveMinimum
bool exclusive_minimum = 14;
- Returns:
- This builder for chaining.
-
getMaxLength
public long getMaxLength()uint64 max_length = 15;
- Specified by:
getMaxLength
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The maxLength.
-
setMaxLength
uint64 max_length = 15;
- Parameters:
value
- The maxLength to set.- Returns:
- This builder for chaining.
-
clearMaxLength
uint64 max_length = 15;
- Returns:
- This builder for chaining.
-
getMinLength
public long getMinLength()uint64 min_length = 16;
- Specified by:
getMinLength
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The minLength.
-
setMinLength
uint64 min_length = 16;
- Parameters:
value
- The minLength to set.- Returns:
- This builder for chaining.
-
clearMinLength
uint64 min_length = 16;
- Returns:
- This builder for chaining.
-
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.
-
setPattern
string pattern = 17;
- Parameters:
value
- The pattern to set.- Returns:
- This builder for chaining.
-
clearPattern
string pattern = 17;
- Returns:
- This builder for chaining.
-
setPatternBytes
string pattern = 17;
- Parameters:
value
- The bytes for pattern to set.- Returns:
- This builder for chaining.
-
getMaxItems
public long getMaxItems()uint64 max_items = 20;
- Specified by:
getMaxItems
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The maxItems.
-
setMaxItems
uint64 max_items = 20;
- Parameters:
value
- The maxItems to set.- Returns:
- This builder for chaining.
-
clearMaxItems
uint64 max_items = 20;
- Returns:
- This builder for chaining.
-
getMinItems
public long getMinItems()uint64 min_items = 21;
- Specified by:
getMinItems
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The minItems.
-
setMinItems
uint64 min_items = 21;
- Parameters:
value
- The minItems to set.- Returns:
- This builder for chaining.
-
clearMinItems
uint64 min_items = 21;
- Returns:
- This builder for chaining.
-
getUniqueItems
public boolean getUniqueItems()bool unique_items = 22;
- Specified by:
getUniqueItems
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The uniqueItems.
-
setUniqueItems
bool unique_items = 22;
- Parameters:
value
- The uniqueItems to set.- Returns:
- This builder for chaining.
-
clearUniqueItems
bool unique_items = 22;
- Returns:
- This builder for chaining.
-
getMaxProperties
public long getMaxProperties()uint64 max_properties = 24;
- Specified by:
getMaxProperties
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The maxProperties.
-
setMaxProperties
uint64 max_properties = 24;
- Parameters:
value
- The maxProperties to set.- Returns:
- This builder for chaining.
-
clearMaxProperties
uint64 max_properties = 24;
- Returns:
- This builder for chaining.
-
getMinProperties
public long getMinProperties()uint64 min_properties = 25;
- Specified by:
getMinProperties
in interfaceOpenapiv2.JSONSchemaOrBuilder
- Returns:
- The minProperties.
-
setMinProperties
uint64 min_properties = 25;
- Parameters:
value
- The minProperties to set.- Returns:
- This builder for chaining.
-
clearMinProperties
uint64 min_properties = 25;
- Returns:
- This builder for chaining.
-
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.
-
setRequired
repeated string required = 26;
- Parameters:
index
- The index to set the value at.value
- The required to set.- Returns:
- This builder for chaining.
-
addRequired
repeated string required = 26;
- Parameters:
value
- The required to add.- Returns:
- This builder for chaining.
-
addAllRequired
repeated string required = 26;
- Parameters:
values
- The required to add.- Returns:
- This builder for chaining.
-
clearRequired
repeated string required = 26;
- Returns:
- This builder for chaining.
-
addRequiredBytes
repeated string required = 26;
- Parameters:
value
- The bytes of the required to add.- Returns:
- This builder for chaining.
-
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.
-
setArray
Items in 'array' must be unique.
repeated string array = 34;
- Parameters:
index
- The index to set the value at.value
- The array to set.- Returns:
- This builder for chaining.
-
addArray
Items in 'array' must be unique.
repeated string array = 34;
- Parameters:
value
- The array to add.- Returns:
- This builder for chaining.
-
addAllArray
Items in 'array' must be unique.
repeated string array = 34;
- Parameters:
values
- The array to add.- Returns:
- This builder for chaining.
-
clearArray
Items in 'array' must be unique.
repeated string array = 34;
- Returns:
- This builder for chaining.
-
addArrayBytes
Items in 'array' must be unique.
repeated string array = 34;
- Parameters:
value
- The bytes of the array to add.- Returns:
- This builder for chaining.
-
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.
-
setType
public Openapiv2.JSONSchema.Builder setType(int index, Openapiv2.JSONSchema.JSONSchemaSimpleTypes value) repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
- Parameters:
index
- The index to set the value at.value
- The type to set.- Returns:
- This builder for chaining.
-
addType
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
- Parameters:
value
- The type to add.- Returns:
- This builder for chaining.
-
addAllType
public Openapiv2.JSONSchema.Builder addAllType(Iterable<? extends Openapiv2.JSONSchema.JSONSchemaSimpleTypes> values) repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
- Parameters:
values
- The type to add.- Returns:
- This builder for chaining.
-
clearType
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
- Returns:
- This builder for chaining.
-
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.
-
setTypeValue
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
- Parameters:
index
- The index to set the value at.value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
addTypeValue
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
- Parameters:
value
- The enum numeric value on the wire for type to add.- Returns:
- This builder for chaining.
-
addAllTypeValue
repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35;
- Parameters:
values
- The enum numeric values on the wire for type to add.- Returns:
- This builder for chaining.
-
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.
-
setFormat
`Format`
string format = 36;
- Parameters:
value
- The format to set.- Returns:
- This builder for chaining.
-
clearFormat
`Format`
string format = 36;
- Returns:
- This builder for chaining.
-
setFormatBytes
`Format`
string format = 36;
- Parameters:
value
- The bytes for format to set.- Returns:
- This builder for chaining.
-
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.
-
setEnum
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 to set the value at.value
- The enum to set.- Returns:
- This builder for chaining.
-
addEnum
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:
value
- The enum to add.- Returns:
- This builder for chaining.
-
addAllEnum
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:
values
- The enum to add.- Returns:
- This builder for chaining.
-
clearEnum
Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1
repeated string enum = 46;
- Returns:
- This builder for chaining.
-
addEnumBytes
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:
value
- The bytes of the enum to add.- Returns:
- This builder for chaining.
-
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.
-
setFieldConfiguration
public Openapiv2.JSONSchema.Builder setFieldConfiguration(Openapiv2.JSONSchema.FieldConfiguration value) Additional field level properties used when generating the OpenAPI v2 file.
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001;
-
setFieldConfiguration
public Openapiv2.JSONSchema.Builder setFieldConfiguration(Openapiv2.JSONSchema.FieldConfiguration.Builder builderForValue) Additional field level properties used when generating the OpenAPI v2 file.
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001;
-
mergeFieldConfiguration
public Openapiv2.JSONSchema.Builder mergeFieldConfiguration(Openapiv2.JSONSchema.FieldConfiguration value) Additional field level properties used when generating the OpenAPI v2 file.
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001;
-
clearFieldConfiguration
Additional field level properties used when generating the OpenAPI v2 file.
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001;
-
getFieldConfigurationBuilder
Additional field level properties used when generating the OpenAPI v2 file.
.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001;
-
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
-
clearExtensions
-
removeExtensions
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;
-
getMutableExtensions
Deprecated.Use alternate mutation accessors instead. -
putExtensions
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;
-
putAllExtensions
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;
-
putExtensionsBuilderIfAbsent
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;
-