Class Openapiv2.JSONSchema.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>
-
- grpc.gateway.protoc_gen_swagger.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.GeneratedMessageV3.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_swagger.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_swagger.options.openapiv2_field) = { {description: "The unique identifier of the simple message." }]; }Protobuf typegrpc.gateway.protoc_gen_swagger.options.JSONSchema
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.protobuf.LazyStringListarray_private intbitField0_private Objectdefault_private Objectdescription_private booleanexclusiveMaximum_private booleanexclusiveMinimum_private doublemaximum_private longmaxItems_private longmaxLength_private longmaxProperties_private doubleminimum_private longminItems_private longminLength_private longminProperties_private doublemultipleOf_private Objectpattern_private booleanreadOnly_private Objectref_private com.google.protobuf.LazyStringListrequired_private Objecttitle_private List<Integer>type_private booleanuniqueItems_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Openapiv2.JSONSchema.BuilderaddAllArray(Iterable<String> values)Items in 'array' must be unique.Openapiv2.JSONSchema.BuilderaddAllRequired(Iterable<String> values)repeated string required = 26;Openapiv2.JSONSchema.BuilderaddAllType(Iterable<? extends Openapiv2.JSONSchema.JSONSchemaSimpleTypes> values)repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;Openapiv2.JSONSchema.BuilderaddAllTypeValue(Iterable<Integer> values)repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;Openapiv2.JSONSchema.BuilderaddArray(String value)Items in 'array' must be unique.Openapiv2.JSONSchema.BuilderaddArrayBytes(com.google.protobuf.ByteString value)Items in 'array' must be unique.Openapiv2.JSONSchema.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Openapiv2.JSONSchema.BuilderaddRequired(String value)repeated string required = 26;Openapiv2.JSONSchema.BuilderaddRequiredBytes(com.google.protobuf.ByteString value)repeated string required = 26;Openapiv2.JSONSchema.BuilderaddType(Openapiv2.JSONSchema.JSONSchemaSimpleTypes value)repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;Openapiv2.JSONSchema.BuilderaddTypeValue(int value)repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;Openapiv2.JSONSchemabuild()Openapiv2.JSONSchemabuildPartial()private voidbuildPartial0(Openapiv2.JSONSchema result)private voidbuildPartialRepeatedFields(Openapiv2.JSONSchema result)Openapiv2.JSONSchema.Builderclear()Openapiv2.JSONSchema.BuilderclearArray()Items in 'array' must be unique.Openapiv2.JSONSchema.BuilderclearDefault()string default = 7;Openapiv2.JSONSchema.BuilderclearDescription()A short description of the schema.Openapiv2.JSONSchema.BuilderclearExclusiveMaximum()bool exclusive_maximum = 12;Openapiv2.JSONSchema.BuilderclearExclusiveMinimum()bool exclusive_minimum = 14;Openapiv2.JSONSchema.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Openapiv2.JSONSchema.BuilderclearMaximum()Maximum represents an inclusive upper limit for a numeric instance.Openapiv2.JSONSchema.BuilderclearMaxItems()uint64 max_items = 20;Openapiv2.JSONSchema.BuilderclearMaxLength()uint64 max_length = 15;Openapiv2.JSONSchema.BuilderclearMaxProperties()uint64 max_properties = 24;Openapiv2.JSONSchema.BuilderclearMinimum()minimum represents an inclusive lower limit for a numeric instance.Openapiv2.JSONSchema.BuilderclearMinItems()uint64 min_items = 21;Openapiv2.JSONSchema.BuilderclearMinLength()uint64 min_length = 16;Openapiv2.JSONSchema.BuilderclearMinProperties()uint64 min_properties = 25;Openapiv2.JSONSchema.BuilderclearMultipleOf()double multiple_of = 10;Openapiv2.JSONSchema.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Openapiv2.JSONSchema.BuilderclearPattern()string pattern = 17;Openapiv2.JSONSchema.BuilderclearReadOnly()bool read_only = 8;Openapiv2.JSONSchema.BuilderclearRef()Ref is used to define an external reference to include in the message.Openapiv2.JSONSchema.BuilderclearRequired()repeated string required = 26;Openapiv2.JSONSchema.BuilderclearTitle()The title of the schema.Openapiv2.JSONSchema.BuilderclearType()repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;Openapiv2.JSONSchema.BuilderclearUniqueItems()bool unique_items = 22;Openapiv2.JSONSchema.Builderclone()private voidensureArrayIsMutable()private voidensureRequiredIsMutable()private voidensureTypeIsMutable()StringgetArray(int index)Items in 'array' must be unique.com.google.protobuf.ByteStringgetArrayBytes(int index)Items in 'array' must be unique.intgetArrayCount()Items in 'array' must be unique.com.google.protobuf.ProtocolStringListgetArrayList()Items in 'array' must be unique.StringgetDefault()string default = 7;com.google.protobuf.ByteStringgetDefaultBytes()string default = 7;Openapiv2.JSONSchemagetDefaultInstanceForType()StringgetDescription()A short description of the schema.com.google.protobuf.ByteStringgetDescriptionBytes()A short description of the schema.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetExclusiveMaximum()bool exclusive_maximum = 12;booleangetExclusiveMinimum()bool exclusive_minimum = 14;doublegetMaximum()Maximum represents an inclusive upper limit for a numeric instance.longgetMaxItems()uint64 max_items = 20;longgetMaxLength()uint64 max_length = 15;longgetMaxProperties()uint64 max_properties = 24;doublegetMinimum()minimum represents an inclusive lower limit for a numeric instance.longgetMinItems()uint64 min_items = 21;longgetMinLength()uint64 min_length = 16;longgetMinProperties()uint64 min_properties = 25;doublegetMultipleOf()double multiple_of = 10;StringgetPattern()string pattern = 17;com.google.protobuf.ByteStringgetPatternBytes()string pattern = 17;booleangetReadOnly()bool read_only = 8;StringgetRef()Ref is used to define an external reference to include in the message.com.google.protobuf.ByteStringgetRefBytes()Ref is used to define an external reference to include in the message.StringgetRequired(int index)repeated string required = 26;com.google.protobuf.ByteStringgetRequiredBytes(int index)repeated string required = 26;intgetRequiredCount()repeated string required = 26;com.google.protobuf.ProtocolStringListgetRequiredList()repeated string required = 26;StringgetTitle()The title of the schema.com.google.protobuf.ByteStringgetTitleBytes()The title of the schema.Openapiv2.JSONSchema.JSONSchemaSimpleTypesgetType(int index)repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;intgetTypeCount()repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;List<Openapiv2.JSONSchema.JSONSchemaSimpleTypes>getTypeList()repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;intgetTypeValue(int index)repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;List<Integer>getTypeValueList()repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;booleangetUniqueItems()bool unique_items = 22;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Openapiv2.JSONSchema.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Openapiv2.JSONSchema.BuildermergeFrom(com.google.protobuf.Message other)Openapiv2.JSONSchema.BuildermergeFrom(Openapiv2.JSONSchema other)Openapiv2.JSONSchema.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Openapiv2.JSONSchema.BuildersetArray(int index, String value)Items in 'array' must be unique.Openapiv2.JSONSchema.BuildersetDefault(String value)string default = 7;Openapiv2.JSONSchema.BuildersetDefaultBytes(com.google.protobuf.ByteString value)string default = 7;Openapiv2.JSONSchema.BuildersetDescription(String value)A short description of the schema.Openapiv2.JSONSchema.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)A short description of the schema.Openapiv2.JSONSchema.BuildersetExclusiveMaximum(boolean value)bool exclusive_maximum = 12;Openapiv2.JSONSchema.BuildersetExclusiveMinimum(boolean value)bool exclusive_minimum = 14;Openapiv2.JSONSchema.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Openapiv2.JSONSchema.BuildersetMaximum(double value)Maximum represents an inclusive upper limit for a numeric instance.Openapiv2.JSONSchema.BuildersetMaxItems(long value)uint64 max_items = 20;Openapiv2.JSONSchema.BuildersetMaxLength(long value)uint64 max_length = 15;Openapiv2.JSONSchema.BuildersetMaxProperties(long value)uint64 max_properties = 24;Openapiv2.JSONSchema.BuildersetMinimum(double value)minimum represents an inclusive lower limit for a numeric instance.Openapiv2.JSONSchema.BuildersetMinItems(long value)uint64 min_items = 21;Openapiv2.JSONSchema.BuildersetMinLength(long value)uint64 min_length = 16;Openapiv2.JSONSchema.BuildersetMinProperties(long value)uint64 min_properties = 25;Openapiv2.JSONSchema.BuildersetMultipleOf(double value)double multiple_of = 10;Openapiv2.JSONSchema.BuildersetPattern(String value)string pattern = 17;Openapiv2.JSONSchema.BuildersetPatternBytes(com.google.protobuf.ByteString value)string pattern = 17;Openapiv2.JSONSchema.BuildersetReadOnly(boolean value)bool read_only = 8;Openapiv2.JSONSchema.BuildersetRef(String value)Ref is used to define an external reference to include in the message.Openapiv2.JSONSchema.BuildersetRefBytes(com.google.protobuf.ByteString value)Ref is used to define an external reference to include in the message.Openapiv2.JSONSchema.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Openapiv2.JSONSchema.BuildersetRequired(int index, String value)repeated string required = 26;Openapiv2.JSONSchema.BuildersetTitle(String value)The title of the schema.Openapiv2.JSONSchema.BuildersetTitleBytes(com.google.protobuf.ByteString value)The title of the schema.Openapiv2.JSONSchema.BuildersetType(int index, Openapiv2.JSONSchema.JSONSchemaSimpleTypes value)repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;Openapiv2.JSONSchema.BuildersetTypeValue(int index, int value)repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;Openapiv2.JSONSchema.BuildersetUniqueItems(boolean value)bool unique_items = 22;Openapiv2.JSONSchema.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
ref_
private Object ref_
-
title_
private Object title_
-
description_
private Object description_
-
default_
private Object default_
-
readOnly_
private boolean readOnly_
-
multipleOf_
private double multipleOf_
-
maximum_
private double maximum_
-
exclusiveMaximum_
private boolean exclusiveMaximum_
-
minimum_
private double minimum_
-
exclusiveMinimum_
private boolean exclusiveMinimum_
-
maxLength_
private long maxLength_
-
minLength_
private long minLength_
-
pattern_
private Object pattern_
-
maxItems_
private long maxItems_
-
minItems_
private long minItems_
-
uniqueItems_
private boolean uniqueItems_
-
maxProperties_
private long maxProperties_
-
minProperties_
private long minProperties_
-
required_
private com.google.protobuf.LazyStringList required_
-
array_
private com.google.protobuf.LazyStringList array_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>
-
clear
public Openapiv2.JSONSchema.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>
-
getDefaultInstanceForType
public Openapiv2.JSONSchema getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Openapiv2.JSONSchema build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Openapiv2.JSONSchema buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(Openapiv2.JSONSchema result)
-
buildPartial0
private void buildPartial0(Openapiv2.JSONSchema result)
-
clone
public Openapiv2.JSONSchema.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>
-
setField
public Openapiv2.JSONSchema.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>
-
clearField
public Openapiv2.JSONSchema.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>
-
clearOneof
public Openapiv2.JSONSchema.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>
-
setRepeatedField
public Openapiv2.JSONSchema.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>
-
addRepeatedField
public Openapiv2.JSONSchema.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>
-
mergeFrom
public Openapiv2.JSONSchema.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Openapiv2.JSONSchema.Builder>
-
mergeFrom
public Openapiv2.JSONSchema.Builder mergeFrom(Openapiv2.JSONSchema other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>
-
mergeFrom
public Openapiv2.JSONSchema.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Openapiv2.JSONSchema.Builder>- Throws:
IOException
-
getRef
public String getRef()
Ref is used to define an external reference to include in the message. This could be a fully qualified proto message reference, and that type must be imported into the protofile. If no message is identified, the Ref will be used verbatim in the output. For example: `ref: ".google.protobuf.Timestamp"`.
string ref = 3;- Specified by:
getRefin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The ref.
-
getRefBytes
public com.google.protobuf.ByteString getRefBytes()
Ref is used to define an external reference to include in the message. This could be a fully qualified proto message reference, and that type must be imported into the protofile. If no message is identified, the Ref will be used verbatim in the output. For example: `ref: ".google.protobuf.Timestamp"`.
string ref = 3;- Specified by:
getRefBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The bytes for ref.
-
setRef
public Openapiv2.JSONSchema.Builder setRef(String value)
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
public Openapiv2.JSONSchema.Builder 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
public Openapiv2.JSONSchema.Builder setRefBytes(com.google.protobuf.ByteString value)
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
public String getTitle()
The title of the schema.
string title = 5;- Specified by:
getTitlein interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()
The title of the schema.
string title = 5;- Specified by:
getTitleBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The bytes for title.
-
setTitle
public Openapiv2.JSONSchema.Builder setTitle(String value)
The title of the schema.
string title = 5;- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
public Openapiv2.JSONSchema.Builder clearTitle()
The title of the schema.
string title = 5;- Returns:
- This builder for chaining.
-
setTitleBytes
public Openapiv2.JSONSchema.Builder setTitleBytes(com.google.protobuf.ByteString value)
The title of the schema.
string title = 5;- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
A short description of the schema.
string description = 6;- Specified by:
getDescriptionin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A short description of the schema.
string description = 6;- Specified by:
getDescriptionBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Openapiv2.JSONSchema.Builder setDescription(String value)
A short description of the schema.
string description = 6;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Openapiv2.JSONSchema.Builder clearDescription()
A short description of the schema.
string description = 6;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Openapiv2.JSONSchema.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A short description of the schema.
string description = 6;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getDefault
public String getDefault()
string default = 7;- Specified by:
getDefaultin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The default.
-
getDefaultBytes
public com.google.protobuf.ByteString getDefaultBytes()
string default = 7;- Specified by:
getDefaultBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The bytes for default.
-
setDefault
public Openapiv2.JSONSchema.Builder setDefault(String value)
string default = 7;- Parameters:
value- The default to set.- Returns:
- This builder for chaining.
-
clearDefault
public Openapiv2.JSONSchema.Builder clearDefault()
string default = 7;- Returns:
- This builder for chaining.
-
setDefaultBytes
public Openapiv2.JSONSchema.Builder setDefaultBytes(com.google.protobuf.ByteString value)
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:
getReadOnlyin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The readOnly.
-
setReadOnly
public Openapiv2.JSONSchema.Builder setReadOnly(boolean value)
bool read_only = 8;- Parameters:
value- The readOnly to set.- Returns:
- This builder for chaining.
-
clearReadOnly
public Openapiv2.JSONSchema.Builder clearReadOnly()
bool read_only = 8;- Returns:
- This builder for chaining.
-
getMultipleOf
public double getMultipleOf()
double multiple_of = 10;- Specified by:
getMultipleOfin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The multipleOf.
-
setMultipleOf
public Openapiv2.JSONSchema.Builder setMultipleOf(double value)
double multiple_of = 10;- Parameters:
value- The multipleOf to set.- Returns:
- This builder for chaining.
-
clearMultipleOf
public Openapiv2.JSONSchema.Builder 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:
getMaximumin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The maximum.
-
setMaximum
public Openapiv2.JSONSchema.Builder setMaximum(double value)
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
public Openapiv2.JSONSchema.Builder 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:
getExclusiveMaximumin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The exclusiveMaximum.
-
setExclusiveMaximum
public Openapiv2.JSONSchema.Builder setExclusiveMaximum(boolean value)
bool exclusive_maximum = 12;- Parameters:
value- The exclusiveMaximum to set.- Returns:
- This builder for chaining.
-
clearExclusiveMaximum
public Openapiv2.JSONSchema.Builder 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:
getMinimumin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The minimum.
-
setMinimum
public Openapiv2.JSONSchema.Builder setMinimum(double value)
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
public Openapiv2.JSONSchema.Builder 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:
getExclusiveMinimumin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The exclusiveMinimum.
-
setExclusiveMinimum
public Openapiv2.JSONSchema.Builder setExclusiveMinimum(boolean value)
bool exclusive_minimum = 14;- Parameters:
value- The exclusiveMinimum to set.- Returns:
- This builder for chaining.
-
clearExclusiveMinimum
public Openapiv2.JSONSchema.Builder clearExclusiveMinimum()
bool exclusive_minimum = 14;- Returns:
- This builder for chaining.
-
getMaxLength
public long getMaxLength()
uint64 max_length = 15;- Specified by:
getMaxLengthin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The maxLength.
-
setMaxLength
public Openapiv2.JSONSchema.Builder setMaxLength(long value)
uint64 max_length = 15;- Parameters:
value- The maxLength to set.- Returns:
- This builder for chaining.
-
clearMaxLength
public Openapiv2.JSONSchema.Builder clearMaxLength()
uint64 max_length = 15;- Returns:
- This builder for chaining.
-
getMinLength
public long getMinLength()
uint64 min_length = 16;- Specified by:
getMinLengthin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The minLength.
-
setMinLength
public Openapiv2.JSONSchema.Builder setMinLength(long value)
uint64 min_length = 16;- Parameters:
value- The minLength to set.- Returns:
- This builder for chaining.
-
clearMinLength
public Openapiv2.JSONSchema.Builder clearMinLength()
uint64 min_length = 16;- Returns:
- This builder for chaining.
-
getPattern
public String getPattern()
string pattern = 17;- Specified by:
getPatternin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The pattern.
-
getPatternBytes
public com.google.protobuf.ByteString getPatternBytes()
string pattern = 17;- Specified by:
getPatternBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The bytes for pattern.
-
setPattern
public Openapiv2.JSONSchema.Builder setPattern(String value)
string pattern = 17;- Parameters:
value- The pattern to set.- Returns:
- This builder for chaining.
-
clearPattern
public Openapiv2.JSONSchema.Builder clearPattern()
string pattern = 17;- Returns:
- This builder for chaining.
-
setPatternBytes
public Openapiv2.JSONSchema.Builder setPatternBytes(com.google.protobuf.ByteString value)
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:
getMaxItemsin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The maxItems.
-
setMaxItems
public Openapiv2.JSONSchema.Builder setMaxItems(long value)
uint64 max_items = 20;- Parameters:
value- The maxItems to set.- Returns:
- This builder for chaining.
-
clearMaxItems
public Openapiv2.JSONSchema.Builder clearMaxItems()
uint64 max_items = 20;- Returns:
- This builder for chaining.
-
getMinItems
public long getMinItems()
uint64 min_items = 21;- Specified by:
getMinItemsin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The minItems.
-
setMinItems
public Openapiv2.JSONSchema.Builder setMinItems(long value)
uint64 min_items = 21;- Parameters:
value- The minItems to set.- Returns:
- This builder for chaining.
-
clearMinItems
public Openapiv2.JSONSchema.Builder clearMinItems()
uint64 min_items = 21;- Returns:
- This builder for chaining.
-
getUniqueItems
public boolean getUniqueItems()
bool unique_items = 22;- Specified by:
getUniqueItemsin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The uniqueItems.
-
setUniqueItems
public Openapiv2.JSONSchema.Builder setUniqueItems(boolean value)
bool unique_items = 22;- Parameters:
value- The uniqueItems to set.- Returns:
- This builder for chaining.
-
clearUniqueItems
public Openapiv2.JSONSchema.Builder clearUniqueItems()
bool unique_items = 22;- Returns:
- This builder for chaining.
-
getMaxProperties
public long getMaxProperties()
uint64 max_properties = 24;- Specified by:
getMaxPropertiesin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The maxProperties.
-
setMaxProperties
public Openapiv2.JSONSchema.Builder setMaxProperties(long value)
uint64 max_properties = 24;- Parameters:
value- The maxProperties to set.- Returns:
- This builder for chaining.
-
clearMaxProperties
public Openapiv2.JSONSchema.Builder clearMaxProperties()
uint64 max_properties = 24;- Returns:
- This builder for chaining.
-
getMinProperties
public long getMinProperties()
uint64 min_properties = 25;- Specified by:
getMinPropertiesin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The minProperties.
-
setMinProperties
public Openapiv2.JSONSchema.Builder setMinProperties(long value)
uint64 min_properties = 25;- Parameters:
value- The minProperties to set.- Returns:
- This builder for chaining.
-
clearMinProperties
public Openapiv2.JSONSchema.Builder clearMinProperties()
uint64 min_properties = 25;- Returns:
- This builder for chaining.
-
ensureRequiredIsMutable
private void ensureRequiredIsMutable()
-
getRequiredList
public com.google.protobuf.ProtocolStringList getRequiredList()
repeated string required = 26;- Specified by:
getRequiredListin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- A list containing the required.
-
getRequiredCount
public int getRequiredCount()
repeated string required = 26;- Specified by:
getRequiredCountin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The count of required.
-
getRequired
public String getRequired(int index)
repeated string required = 26;- Specified by:
getRequiredin interfaceOpenapiv2.JSONSchemaOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The required at the given index.
-
getRequiredBytes
public com.google.protobuf.ByteString getRequiredBytes(int index)
repeated string required = 26;- Specified by:
getRequiredBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the required at the given index.
-
setRequired
public Openapiv2.JSONSchema.Builder setRequired(int index, String value)
repeated string required = 26;- Parameters:
index- The index to set the value at.value- The required to set.- Returns:
- This builder for chaining.
-
addRequired
public Openapiv2.JSONSchema.Builder addRequired(String value)
repeated string required = 26;- Parameters:
value- The required to add.- Returns:
- This builder for chaining.
-
addAllRequired
public Openapiv2.JSONSchema.Builder addAllRequired(Iterable<String> values)
repeated string required = 26;- Parameters:
values- The required to add.- Returns:
- This builder for chaining.
-
clearRequired
public Openapiv2.JSONSchema.Builder clearRequired()
repeated string required = 26;- Returns:
- This builder for chaining.
-
addRequiredBytes
public Openapiv2.JSONSchema.Builder addRequiredBytes(com.google.protobuf.ByteString value)
repeated string required = 26;- Parameters:
value- The bytes of the required to add.- Returns:
- This builder for chaining.
-
ensureArrayIsMutable
private void ensureArrayIsMutable()
-
getArrayList
public com.google.protobuf.ProtocolStringList getArrayList()
Items in 'array' must be unique.
repeated string array = 34;- Specified by:
getArrayListin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- A list containing the array.
-
getArrayCount
public int getArrayCount()
Items in 'array' must be unique.
repeated string array = 34;- Specified by:
getArrayCountin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The count of array.
-
getArray
public String getArray(int index)
Items in 'array' must be unique.
repeated string array = 34;- Specified by:
getArrayin interfaceOpenapiv2.JSONSchemaOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The array at the given index.
-
getArrayBytes
public com.google.protobuf.ByteString getArrayBytes(int index)
Items in 'array' must be unique.
repeated string array = 34;- Specified by:
getArrayBytesin interfaceOpenapiv2.JSONSchemaOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the array at the given index.
-
setArray
public Openapiv2.JSONSchema.Builder setArray(int index, String value)
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
public Openapiv2.JSONSchema.Builder addArray(String value)
Items in 'array' must be unique.
repeated string array = 34;- Parameters:
value- The array to add.- Returns:
- This builder for chaining.
-
addAllArray
public Openapiv2.JSONSchema.Builder addAllArray(Iterable<String> values)
Items in 'array' must be unique.
repeated string array = 34;- Parameters:
values- The array to add.- Returns:
- This builder for chaining.
-
clearArray
public Openapiv2.JSONSchema.Builder clearArray()
Items in 'array' must be unique.
repeated string array = 34;- Returns:
- This builder for chaining.
-
addArrayBytes
public Openapiv2.JSONSchema.Builder addArrayBytes(com.google.protobuf.ByteString value)
Items in 'array' must be unique.
repeated string array = 34;- Parameters:
value- The bytes of the array to add.- Returns:
- This builder for chaining.
-
ensureTypeIsMutable
private void ensureTypeIsMutable()
-
getTypeList
public List<Openapiv2.JSONSchema.JSONSchemaSimpleTypes> getTypeList()
repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;- Specified by:
getTypeListin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- A list containing the type.
-
getTypeCount
public int getTypeCount()
repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;- Specified by:
getTypeCountin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- The count of type.
-
getType
public Openapiv2.JSONSchema.JSONSchemaSimpleTypes getType(int index)
repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;- Specified by:
getTypein interfaceOpenapiv2.JSONSchemaOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The type at the given index.
-
setType
public Openapiv2.JSONSchema.Builder setType(int index, Openapiv2.JSONSchema.JSONSchemaSimpleTypes value)
repeated .grpc.gateway.protoc_gen_swagger.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
public Openapiv2.JSONSchema.Builder addType(Openapiv2.JSONSchema.JSONSchemaSimpleTypes value)
repeated .grpc.gateway.protoc_gen_swagger.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_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;- Parameters:
values- The type to add.- Returns:
- This builder for chaining.
-
clearType
public Openapiv2.JSONSchema.Builder clearType()
repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;- Returns:
- This builder for chaining.
-
getTypeValueList
public List<Integer> getTypeValueList()
repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;- Specified by:
getTypeValueListin interfaceOpenapiv2.JSONSchemaOrBuilder- Returns:
- A list containing the enum numeric values on the wire for type.
-
getTypeValue
public int getTypeValue(int index)
repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;- Specified by:
getTypeValuein interfaceOpenapiv2.JSONSchemaOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of type at the given index.
-
setTypeValue
public Openapiv2.JSONSchema.Builder setTypeValue(int index, int value)
repeated .grpc.gateway.protoc_gen_swagger.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
public Openapiv2.JSONSchema.Builder addTypeValue(int value)
repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;- Parameters:
value- The enum numeric value on the wire for type to add.- Returns:
- This builder for chaining.
-
addAllTypeValue
public Openapiv2.JSONSchema.Builder addAllTypeValue(Iterable<Integer> values)
repeated .grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes type = 35;- Parameters:
values- The enum numeric values on the wire for type to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Openapiv2.JSONSchema.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>
-
mergeUnknownFields
public final Openapiv2.JSONSchema.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.JSONSchema.Builder>
-
-