Class Openapiv2.Schema.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Schema.Builder>
-
- grpc.gateway.protoc_gen_swagger.options.Openapiv2.Schema.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Openapiv2.SchemaOrBuilder,Cloneable
- Enclosing class:
- Openapiv2.Schema
public static final class Openapiv2.Schema.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Schema.Builder> implements Openapiv2.SchemaOrBuilder
`Schema` is a representation of OpenAPI v2 specification's Schema object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
Protobuf typegrpc.gateway.protoc_gen_swagger.options.Schema
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private Objectdiscriminator_private com.google.protobuf.Anyexample_private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder>exampleBuilder_private ObjectexampleString_private Openapiv2.ExternalDocumentationexternalDocs_private com.google.protobuf.SingleFieldBuilderV3<Openapiv2.ExternalDocumentation,Openapiv2.ExternalDocumentation.Builder,Openapiv2.ExternalDocumentationOrBuilder>externalDocsBuilder_private Openapiv2.JSONSchemajsonSchema_private com.google.protobuf.SingleFieldBuilderV3<Openapiv2.JSONSchema,Openapiv2.JSONSchema.Builder,Openapiv2.JSONSchemaOrBuilder>jsonSchemaBuilder_private booleanreadOnly_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Openapiv2.Schema.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Openapiv2.Schemabuild()Openapiv2.SchemabuildPartial()private voidbuildPartial0(Openapiv2.Schema result)Openapiv2.Schema.Builderclear()Openapiv2.Schema.BuilderclearDiscriminator()Adds support for polymorphism.Openapiv2.Schema.BuilderclearExample()Deprecated.Openapiv2.Schema.BuilderclearExampleString()A free-form property to include a JSON example of this field.Openapiv2.Schema.BuilderclearExternalDocs()Additional external documentation for this schema.Openapiv2.Schema.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Openapiv2.Schema.BuilderclearJsonSchema().grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;Openapiv2.Schema.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Openapiv2.Schema.BuilderclearReadOnly()Relevant only for Schema "properties" definitions.Openapiv2.Schema.Builderclone()Openapiv2.SchemagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDiscriminator()Adds support for polymorphism.com.google.protobuf.ByteStringgetDiscriminatorBytes()Adds support for polymorphism.com.google.protobuf.AnygetExample()Deprecated.grpc.gateway.protoc_gen_swagger.options.Schema.example is deprecated.com.google.protobuf.Any.BuildergetExampleBuilder()Deprecated.private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder>getExampleFieldBuilder()A free-form property to include an example of an instance for this schema.com.google.protobuf.AnyOrBuildergetExampleOrBuilder()Deprecated.StringgetExampleString()A free-form property to include a JSON example of this field.com.google.protobuf.ByteStringgetExampleStringBytes()A free-form property to include a JSON example of this field.Openapiv2.ExternalDocumentationgetExternalDocs()Additional external documentation for this schema.Openapiv2.ExternalDocumentation.BuildergetExternalDocsBuilder()Additional external documentation for this schema.private com.google.protobuf.SingleFieldBuilderV3<Openapiv2.ExternalDocumentation,Openapiv2.ExternalDocumentation.Builder,Openapiv2.ExternalDocumentationOrBuilder>getExternalDocsFieldBuilder()Additional external documentation for this schema.Openapiv2.ExternalDocumentationOrBuildergetExternalDocsOrBuilder()Additional external documentation for this schema.Openapiv2.JSONSchemagetJsonSchema().grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;Openapiv2.JSONSchema.BuildergetJsonSchemaBuilder().grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;private com.google.protobuf.SingleFieldBuilderV3<Openapiv2.JSONSchema,Openapiv2.JSONSchema.Builder,Openapiv2.JSONSchemaOrBuilder>getJsonSchemaFieldBuilder().grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;Openapiv2.JSONSchemaOrBuildergetJsonSchemaOrBuilder().grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;booleangetReadOnly()Relevant only for Schema "properties" definitions.booleanhasExample()Deprecated.grpc.gateway.protoc_gen_swagger.options.Schema.example is deprecated.booleanhasExternalDocs()Additional external documentation for this schema.booleanhasJsonSchema().grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Openapiv2.Schema.BuildermergeExample(com.google.protobuf.Any value)Deprecated.Openapiv2.Schema.BuildermergeExternalDocs(Openapiv2.ExternalDocumentation value)Additional external documentation for this schema.Openapiv2.Schema.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Openapiv2.Schema.BuildermergeFrom(com.google.protobuf.Message other)Openapiv2.Schema.BuildermergeFrom(Openapiv2.Schema other)Openapiv2.Schema.BuildermergeJsonSchema(Openapiv2.JSONSchema value).grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;Openapiv2.Schema.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Openapiv2.Schema.BuildersetDiscriminator(String value)Adds support for polymorphism.Openapiv2.Schema.BuildersetDiscriminatorBytes(com.google.protobuf.ByteString value)Adds support for polymorphism.Openapiv2.Schema.BuildersetExample(com.google.protobuf.Any value)Deprecated.Openapiv2.Schema.BuildersetExample(com.google.protobuf.Any.Builder builderForValue)Deprecated.Openapiv2.Schema.BuildersetExampleString(String value)A free-form property to include a JSON example of this field.Openapiv2.Schema.BuildersetExampleStringBytes(com.google.protobuf.ByteString value)A free-form property to include a JSON example of this field.Openapiv2.Schema.BuildersetExternalDocs(Openapiv2.ExternalDocumentation value)Additional external documentation for this schema.Openapiv2.Schema.BuildersetExternalDocs(Openapiv2.ExternalDocumentation.Builder builderForValue)Additional external documentation for this schema.Openapiv2.Schema.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Openapiv2.Schema.BuildersetJsonSchema(Openapiv2.JSONSchema value).grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;Openapiv2.Schema.BuildersetJsonSchema(Openapiv2.JSONSchema.Builder builderForValue).grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;Openapiv2.Schema.BuildersetReadOnly(boolean value)Relevant only for Schema "properties" definitions.Openapiv2.Schema.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Openapiv2.Schema.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_
-
jsonSchema_
private Openapiv2.JSONSchema jsonSchema_
-
jsonSchemaBuilder_
private com.google.protobuf.SingleFieldBuilderV3<Openapiv2.JSONSchema,Openapiv2.JSONSchema.Builder,Openapiv2.JSONSchemaOrBuilder> jsonSchemaBuilder_
-
discriminator_
private Object discriminator_
-
readOnly_
private boolean readOnly_
-
externalDocs_
private Openapiv2.ExternalDocumentation externalDocs_
-
externalDocsBuilder_
private com.google.protobuf.SingleFieldBuilderV3<Openapiv2.ExternalDocumentation,Openapiv2.ExternalDocumentation.Builder,Openapiv2.ExternalDocumentationOrBuilder> externalDocsBuilder_
-
example_
private com.google.protobuf.Any example_
-
exampleBuilder_
private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder> exampleBuilder_
-
exampleString_
private Object exampleString_
-
-
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.Schema.Builder>
-
clear
public Openapiv2.Schema.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.Schema.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.Schema.Builder>
-
getDefaultInstanceForType
public Openapiv2.Schema getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Openapiv2.Schema build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Openapiv2.Schema buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(Openapiv2.Schema result)
-
clone
public Openapiv2.Schema.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.Schema.Builder>
-
setField
public Openapiv2.Schema.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.Schema.Builder>
-
clearField
public Openapiv2.Schema.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Schema.Builder>
-
clearOneof
public Openapiv2.Schema.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Schema.Builder>
-
setRepeatedField
public Openapiv2.Schema.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.Schema.Builder>
-
addRepeatedField
public Openapiv2.Schema.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.Schema.Builder>
-
mergeFrom
public Openapiv2.Schema.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Openapiv2.Schema.Builder>
-
mergeFrom
public Openapiv2.Schema.Builder mergeFrom(Openapiv2.Schema other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Schema.Builder>
-
mergeFrom
public Openapiv2.Schema.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.Schema.Builder>- Throws:
IOException
-
hasJsonSchema
public boolean hasJsonSchema()
.grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;- Specified by:
hasJsonSchemain interfaceOpenapiv2.SchemaOrBuilder- Returns:
- Whether the jsonSchema field is set.
-
getJsonSchema
public Openapiv2.JSONSchema getJsonSchema()
.grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;- Specified by:
getJsonSchemain interfaceOpenapiv2.SchemaOrBuilder- Returns:
- The jsonSchema.
-
setJsonSchema
public Openapiv2.Schema.Builder setJsonSchema(Openapiv2.JSONSchema value)
.grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;
-
setJsonSchema
public Openapiv2.Schema.Builder setJsonSchema(Openapiv2.JSONSchema.Builder builderForValue)
.grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;
-
mergeJsonSchema
public Openapiv2.Schema.Builder mergeJsonSchema(Openapiv2.JSONSchema value)
.grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;
-
clearJsonSchema
public Openapiv2.Schema.Builder clearJsonSchema()
.grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;
-
getJsonSchemaBuilder
public Openapiv2.JSONSchema.Builder getJsonSchemaBuilder()
.grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;
-
getJsonSchemaOrBuilder
public Openapiv2.JSONSchemaOrBuilder getJsonSchemaOrBuilder()
.grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;- Specified by:
getJsonSchemaOrBuilderin interfaceOpenapiv2.SchemaOrBuilder
-
getJsonSchemaFieldBuilder
private com.google.protobuf.SingleFieldBuilderV3<Openapiv2.JSONSchema,Openapiv2.JSONSchema.Builder,Openapiv2.JSONSchemaOrBuilder> getJsonSchemaFieldBuilder()
.grpc.gateway.protoc_gen_swagger.options.JSONSchema json_schema = 1;
-
getDiscriminator
public String getDiscriminator()
Adds support for polymorphism. The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the required property list. When used, the value MUST be the name of this schema or any schema that inherits it.
string discriminator = 2;- Specified by:
getDiscriminatorin interfaceOpenapiv2.SchemaOrBuilder- Returns:
- The discriminator.
-
getDiscriminatorBytes
public com.google.protobuf.ByteString getDiscriminatorBytes()
Adds support for polymorphism. The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the required property list. When used, the value MUST be the name of this schema or any schema that inherits it.
string discriminator = 2;- Specified by:
getDiscriminatorBytesin interfaceOpenapiv2.SchemaOrBuilder- Returns:
- The bytes for discriminator.
-
setDiscriminator
public Openapiv2.Schema.Builder setDiscriminator(String value)
Adds support for polymorphism. The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the required property list. When used, the value MUST be the name of this schema or any schema that inherits it.
string discriminator = 2;- Parameters:
value- The discriminator to set.- Returns:
- This builder for chaining.
-
clearDiscriminator
public Openapiv2.Schema.Builder clearDiscriminator()
Adds support for polymorphism. The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the required property list. When used, the value MUST be the name of this schema or any schema that inherits it.
string discriminator = 2;- Returns:
- This builder for chaining.
-
setDiscriminatorBytes
public Openapiv2.Schema.Builder setDiscriminatorBytes(com.google.protobuf.ByteString value)
Adds support for polymorphism. The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the required property list. When used, the value MUST be the name of this schema or any schema that inherits it.
string discriminator = 2;- Parameters:
value- The bytes for discriminator to set.- Returns:
- This builder for chaining.
-
getReadOnly
public boolean getReadOnly()
Relevant only for Schema "properties" definitions. Declares the property as "read only". This means that it MAY be sent as part of a response but MUST NOT be sent as part of the request. Properties marked as readOnly being true SHOULD NOT be in the required list of the defined schema. Default value is false.
bool read_only = 3;- Specified by:
getReadOnlyin interfaceOpenapiv2.SchemaOrBuilder- Returns:
- The readOnly.
-
setReadOnly
public Openapiv2.Schema.Builder setReadOnly(boolean value)
Relevant only for Schema "properties" definitions. Declares the property as "read only". This means that it MAY be sent as part of a response but MUST NOT be sent as part of the request. Properties marked as readOnly being true SHOULD NOT be in the required list of the defined schema. Default value is false.
bool read_only = 3;- Parameters:
value- The readOnly to set.- Returns:
- This builder for chaining.
-
clearReadOnly
public Openapiv2.Schema.Builder clearReadOnly()
Relevant only for Schema "properties" definitions. Declares the property as "read only". This means that it MAY be sent as part of a response but MUST NOT be sent as part of the request. Properties marked as readOnly being true SHOULD NOT be in the required list of the defined schema. Default value is false.
bool read_only = 3;- Returns:
- This builder for chaining.
-
hasExternalDocs
public boolean hasExternalDocs()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5;- Specified by:
hasExternalDocsin interfaceOpenapiv2.SchemaOrBuilder- Returns:
- Whether the externalDocs field is set.
-
getExternalDocs
public Openapiv2.ExternalDocumentation getExternalDocs()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5;- Specified by:
getExternalDocsin interfaceOpenapiv2.SchemaOrBuilder- Returns:
- The externalDocs.
-
setExternalDocs
public Openapiv2.Schema.Builder setExternalDocs(Openapiv2.ExternalDocumentation value)
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5;
-
setExternalDocs
public Openapiv2.Schema.Builder setExternalDocs(Openapiv2.ExternalDocumentation.Builder builderForValue)
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5;
-
mergeExternalDocs
public Openapiv2.Schema.Builder mergeExternalDocs(Openapiv2.ExternalDocumentation value)
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5;
-
clearExternalDocs
public Openapiv2.Schema.Builder clearExternalDocs()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5;
-
getExternalDocsBuilder
public Openapiv2.ExternalDocumentation.Builder getExternalDocsBuilder()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5;
-
getExternalDocsOrBuilder
public Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5;- Specified by:
getExternalDocsOrBuilderin interfaceOpenapiv2.SchemaOrBuilder
-
getExternalDocsFieldBuilder
private com.google.protobuf.SingleFieldBuilderV3<Openapiv2.ExternalDocumentation,Openapiv2.ExternalDocumentation.Builder,Openapiv2.ExternalDocumentationOrBuilder> getExternalDocsFieldBuilder()
Additional external documentation for this schema.
.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 5;
-
hasExample
@Deprecated public boolean hasExample()
Deprecated.grpc.gateway.protoc_gen_swagger.options.Schema.example is deprecated. See protoc-gen-swagger/options/openapiv2.proto;l=337A free-form property to include an example of an instance for this schema. Deprecated, please use example_string instead.
.google.protobuf.Any example = 6 [deprecated = true];- Specified by:
hasExamplein interfaceOpenapiv2.SchemaOrBuilder- Returns:
- Whether the example field is set.
-
getExample
@Deprecated public com.google.protobuf.Any getExample()
Deprecated.grpc.gateway.protoc_gen_swagger.options.Schema.example is deprecated. See protoc-gen-swagger/options/openapiv2.proto;l=337A free-form property to include an example of an instance for this schema. Deprecated, please use example_string instead.
.google.protobuf.Any example = 6 [deprecated = true];- Specified by:
getExamplein interfaceOpenapiv2.SchemaOrBuilder- Returns:
- The example.
-
setExample
@Deprecated public Openapiv2.Schema.Builder setExample(com.google.protobuf.Any value)
Deprecated.A free-form property to include an example of an instance for this schema. Deprecated, please use example_string instead.
.google.protobuf.Any example = 6 [deprecated = true];
-
setExample
@Deprecated public Openapiv2.Schema.Builder setExample(com.google.protobuf.Any.Builder builderForValue)
Deprecated.A free-form property to include an example of an instance for this schema. Deprecated, please use example_string instead.
.google.protobuf.Any example = 6 [deprecated = true];
-
mergeExample
@Deprecated public Openapiv2.Schema.Builder mergeExample(com.google.protobuf.Any value)
Deprecated.A free-form property to include an example of an instance for this schema. Deprecated, please use example_string instead.
.google.protobuf.Any example = 6 [deprecated = true];
-
clearExample
@Deprecated public Openapiv2.Schema.Builder clearExample()
Deprecated.A free-form property to include an example of an instance for this schema. Deprecated, please use example_string instead.
.google.protobuf.Any example = 6 [deprecated = true];
-
getExampleBuilder
@Deprecated public com.google.protobuf.Any.Builder getExampleBuilder()
Deprecated.A free-form property to include an example of an instance for this schema. Deprecated, please use example_string instead.
.google.protobuf.Any example = 6 [deprecated = true];
-
getExampleOrBuilder
@Deprecated public com.google.protobuf.AnyOrBuilder getExampleOrBuilder()
Deprecated.A free-form property to include an example of an instance for this schema. Deprecated, please use example_string instead.
.google.protobuf.Any example = 6 [deprecated = true];- Specified by:
getExampleOrBuilderin interfaceOpenapiv2.SchemaOrBuilder
-
getExampleFieldBuilder
private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder> getExampleFieldBuilder()
A free-form property to include an example of an instance for this schema. Deprecated, please use example_string instead.
.google.protobuf.Any example = 6 [deprecated = true];
-
getExampleString
public String getExampleString()
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.
string example_string = 7;- Specified by:
getExampleStringin interfaceOpenapiv2.SchemaOrBuilder- Returns:
- The exampleString.
-
getExampleStringBytes
public com.google.protobuf.ByteString getExampleStringBytes()
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.
string example_string = 7;- Specified by:
getExampleStringBytesin interfaceOpenapiv2.SchemaOrBuilder- Returns:
- The bytes for exampleString.
-
setExampleString
public Openapiv2.Schema.Builder setExampleString(String value)
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.
string example_string = 7;- Parameters:
value- The exampleString to set.- Returns:
- This builder for chaining.
-
clearExampleString
public Openapiv2.Schema.Builder clearExampleString()
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.
string example_string = 7;- Returns:
- This builder for chaining.
-
setExampleStringBytes
public Openapiv2.Schema.Builder setExampleStringBytes(com.google.protobuf.ByteString value)
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.
string example_string = 7;- Parameters:
value- The bytes for exampleString to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Openapiv2.Schema.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Schema.Builder>
-
mergeUnknownFields
public final Openapiv2.Schema.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.Schema.Builder>
-
-