Class Openapiv2.Operation
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- grpc.gateway.protoc_gen_swagger.options.Openapiv2.Operation
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Openapiv2.OperationOrBuilder,Serializable
- Enclosing class:
- Openapiv2
public static final class Openapiv2.Operation extends com.google.protobuf.GeneratedMessageV3 implements Openapiv2.OperationOrBuilder
`Operation` is a representation of OpenAPI v2 specification's Operation object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#operationObject Example: service EchoService { rpc Echo(SimpleMessage) returns (SimpleMessage) { option (google.api.http) = { get: "/v1/example/echo/{id}" }; option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { summary: "Get a message."; operation_id: "getMessage"; tags: "echo"; responses: { key: "200" value: { description: "OK"; } } }; } }Protobuf typegrpc.gateway.protoc_gen_swagger.options.Operation- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenapiv2.Operation.Builder`Operation` is a representation of OpenAPI v2 specification's Operation object.private static classOpenapiv2.Operation.ExtensionsDefaultEntryHolderprivate static classOpenapiv2.Operation.ResponsesDefaultEntryHolder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.protobuf.LazyStringListconsumes_static intCONSUMES_FIELD_NUMBERprivate static Openapiv2.OperationDEFAULT_INSTANCEprivate booleandeprecated_static intDEPRECATED_FIELD_NUMBERprivate Objectdescription_static intDESCRIPTION_FIELD_NUMBERprivate com.google.protobuf.MapField<String,com.google.protobuf.Value>extensions_static intEXTENSIONS_FIELD_NUMBERstatic intEXTERNAL_DOCS_FIELD_NUMBERprivate Openapiv2.ExternalDocumentationexternalDocs_private bytememoizedIsInitializedstatic intOPERATION_ID_FIELD_NUMBERprivate ObjectoperationId_private static com.google.protobuf.Parser<Openapiv2.Operation>PARSERprivate com.google.protobuf.LazyStringListproduces_static intPRODUCES_FIELD_NUMBERprivate com.google.protobuf.MapField<String,Openapiv2.Response>responses_static intRESPONSES_FIELD_NUMBERprivate com.google.protobuf.LazyStringListschemes_static intSCHEMES_FIELD_NUMBERprivate List<Openapiv2.SecurityRequirement>security_static intSECURITY_FIELD_NUMBERprivate static longserialVersionUIDprivate Objectsummary_static intSUMMARY_FIELD_NUMBERprivate com.google.protobuf.LazyStringListtags_static intTAGS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsExtensions(String key)map<string, .google.protobuf.Value> extensions = 13;booleancontainsResponses(String key)The list of possible responses as they are returned from executing this operation.booleanequals(Object obj)StringgetConsumes(int index)A list of MIME types the operation can consume.com.google.protobuf.ByteStringgetConsumesBytes(int index)A list of MIME types the operation can consume.intgetConsumesCount()A list of MIME types the operation can consume.com.google.protobuf.ProtocolStringListgetConsumesList()A list of MIME types the operation can consume.static Openapiv2.OperationgetDefaultInstance()Openapiv2.OperationgetDefaultInstanceForType()booleangetDeprecated()Declares this operation to be deprecated.StringgetDescription()A verbose explanation of the operation behavior.com.google.protobuf.ByteStringgetDescriptionBytes()A verbose explanation of the operation behavior.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Map<String,com.google.protobuf.Value>getExtensions()Deprecated.intgetExtensionsCount()map<string, .google.protobuf.Value> extensions = 13;Map<String,com.google.protobuf.Value>getExtensionsMap()map<string, .google.protobuf.Value> extensions = 13;com.google.protobuf.ValuegetExtensionsOrDefault(String key, com.google.protobuf.Value defaultValue)map<string, .google.protobuf.Value> extensions = 13;com.google.protobuf.ValuegetExtensionsOrThrow(String key)map<string, .google.protobuf.Value> extensions = 13;Openapiv2.ExternalDocumentationgetExternalDocs()Additional external documentation for this operation.Openapiv2.ExternalDocumentationOrBuildergetExternalDocsOrBuilder()Additional external documentation for this operation.StringgetOperationId()Unique string used to identify the operation.com.google.protobuf.ByteStringgetOperationIdBytes()Unique string used to identify the operation.com.google.protobuf.Parser<Openapiv2.Operation>getParserForType()StringgetProduces(int index)A list of MIME types the operation can produce.com.google.protobuf.ByteStringgetProducesBytes(int index)A list of MIME types the operation can produce.intgetProducesCount()A list of MIME types the operation can produce.com.google.protobuf.ProtocolStringListgetProducesList()A list of MIME types the operation can produce.Map<String,Openapiv2.Response>getResponses()Deprecated.intgetResponsesCount()The list of possible responses as they are returned from executing this operation.Map<String,Openapiv2.Response>getResponsesMap()The list of possible responses as they are returned from executing this operation.Openapiv2.ResponsegetResponsesOrDefault(String key, Openapiv2.Response defaultValue)The list of possible responses as they are returned from executing this operation.Openapiv2.ResponsegetResponsesOrThrow(String key)The list of possible responses as they are returned from executing this operation.StringgetSchemes(int index)The transfer protocol for the operation.com.google.protobuf.ByteStringgetSchemesBytes(int index)The transfer protocol for the operation.intgetSchemesCount()The transfer protocol for the operation.com.google.protobuf.ProtocolStringListgetSchemesList()The transfer protocol for the operation.Openapiv2.SecurityRequirementgetSecurity(int index)A declaration of which security schemes are applied for this operation.intgetSecurityCount()A declaration of which security schemes are applied for this operation.List<Openapiv2.SecurityRequirement>getSecurityList()A declaration of which security schemes are applied for this operation.Openapiv2.SecurityRequirementOrBuildergetSecurityOrBuilder(int index)A declaration of which security schemes are applied for this operation.List<? extends Openapiv2.SecurityRequirementOrBuilder>getSecurityOrBuilderList()A declaration of which security schemes are applied for this operation.intgetSerializedSize()StringgetSummary()A short summary of what the operation does.com.google.protobuf.ByteStringgetSummaryBytes()A short summary of what the operation does.StringgetTags(int index)A list of tags for API documentation control.com.google.protobuf.ByteStringgetTagsBytes(int index)A list of tags for API documentation control.intgetTagsCount()A list of tags for API documentation control.com.google.protobuf.ProtocolStringListgetTagsList()A list of tags for API documentation control.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasExternalDocs()Additional external documentation for this operation.inthashCode()private com.google.protobuf.MapField<String,com.google.protobuf.Value>internalGetExtensions()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)private com.google.protobuf.MapField<String,Openapiv2.Response>internalGetResponses()booleanisInitialized()static Openapiv2.Operation.BuildernewBuilder()static Openapiv2.Operation.BuildernewBuilder(Openapiv2.Operation prototype)Openapiv2.Operation.BuildernewBuilderForType()protected Openapiv2.Operation.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Openapiv2.OperationparseDelimitedFrom(InputStream input)static Openapiv2.OperationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Openapiv2.OperationparseFrom(byte[] data)static Openapiv2.OperationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Openapiv2.OperationparseFrom(com.google.protobuf.ByteString data)static Openapiv2.OperationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Openapiv2.OperationparseFrom(com.google.protobuf.CodedInputStream input)static Openapiv2.OperationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Openapiv2.OperationparseFrom(InputStream input)static Openapiv2.OperationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Openapiv2.OperationparseFrom(ByteBuffer data)static Openapiv2.OperationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Openapiv2.Operation>parser()Openapiv2.Operation.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
tags_
private com.google.protobuf.LazyStringList tags_
-
SUMMARY_FIELD_NUMBER
public static final int SUMMARY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
summary_
private volatile Object summary_
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
description_
private volatile Object description_
-
EXTERNAL_DOCS_FIELD_NUMBER
public static final int EXTERNAL_DOCS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
externalDocs_
private Openapiv2.ExternalDocumentation externalDocs_
-
OPERATION_ID_FIELD_NUMBER
public static final int OPERATION_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
operationId_
private volatile Object operationId_
-
CONSUMES_FIELD_NUMBER
public static final int CONSUMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
consumes_
private com.google.protobuf.LazyStringList consumes_
-
PRODUCES_FIELD_NUMBER
public static final int PRODUCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
produces_
private com.google.protobuf.LazyStringList produces_
-
RESPONSES_FIELD_NUMBER
public static final int RESPONSES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
responses_
private com.google.protobuf.MapField<String,Openapiv2.Response> responses_
-
SCHEMES_FIELD_NUMBER
public static final int SCHEMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
schemes_
private com.google.protobuf.LazyStringList schemes_
-
DEPRECATED_FIELD_NUMBER
public static final int DEPRECATED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
deprecated_
private boolean deprecated_
-
SECURITY_FIELD_NUMBER
public static final int SECURITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
security_
private List<Openapiv2.SecurityRequirement> security_
-
EXTENSIONS_FIELD_NUMBER
public static final int EXTENSIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
extensions_
private com.google.protobuf.MapField<String,com.google.protobuf.Value> extensions_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final Openapiv2.Operation DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<Openapiv2.Operation> PARSER
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated string tags = 1;- Specified by:
getTagsListin interfaceOpenapiv2.OperationOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated string tags = 1;- Specified by:
getTagsCountin interfaceOpenapiv2.OperationOrBuilder- Returns:
- The count of tags.
-
getTags
public String getTags(int index)
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated string tags = 1;- Specified by:
getTagsin interfaceOpenapiv2.OperationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index)
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
repeated string tags = 1;- Specified by:
getTagsBytesin interfaceOpenapiv2.OperationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
getSummary
public String getSummary()
A short summary of what the operation does. For maximum readability in the swagger-ui, this field SHOULD be less than 120 characters.
string summary = 2;- Specified by:
getSummaryin interfaceOpenapiv2.OperationOrBuilder- Returns:
- The summary.
-
getSummaryBytes
public com.google.protobuf.ByteString getSummaryBytes()
A short summary of what the operation does. For maximum readability in the swagger-ui, this field SHOULD be less than 120 characters.
string summary = 2;- Specified by:
getSummaryBytesin interfaceOpenapiv2.OperationOrBuilder- Returns:
- The bytes for summary.
-
getDescription
public String getDescription()
A verbose explanation of the operation behavior. GFM syntax can be used for rich text representation.
string description = 3;- Specified by:
getDescriptionin interfaceOpenapiv2.OperationOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A verbose explanation of the operation behavior. GFM syntax can be used for rich text representation.
string description = 3;- Specified by:
getDescriptionBytesin interfaceOpenapiv2.OperationOrBuilder- Returns:
- The bytes for description.
-
hasExternalDocs
public boolean hasExternalDocs()
Additional external documentation for this operation.
.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4;- Specified by:
hasExternalDocsin interfaceOpenapiv2.OperationOrBuilder- Returns:
- Whether the externalDocs field is set.
-
getExternalDocs
public Openapiv2.ExternalDocumentation getExternalDocs()
Additional external documentation for this operation.
.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4;- Specified by:
getExternalDocsin interfaceOpenapiv2.OperationOrBuilder- Returns:
- The externalDocs.
-
getExternalDocsOrBuilder
public Openapiv2.ExternalDocumentationOrBuilder getExternalDocsOrBuilder()
Additional external documentation for this operation.
.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation external_docs = 4;- Specified by:
getExternalDocsOrBuilderin interfaceOpenapiv2.OperationOrBuilder
-
getOperationId
public String getOperationId()
Unique string used to identify the operation. The id MUST be unique among all operations described in the API. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is recommended to follow common programming naming conventions.
string operation_id = 5;- Specified by:
getOperationIdin interfaceOpenapiv2.OperationOrBuilder- Returns:
- The operationId.
-
getOperationIdBytes
public com.google.protobuf.ByteString getOperationIdBytes()
Unique string used to identify the operation. The id MUST be unique among all operations described in the API. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is recommended to follow common programming naming conventions.
string operation_id = 5;- Specified by:
getOperationIdBytesin interfaceOpenapiv2.OperationOrBuilder- Returns:
- The bytes for operationId.
-
getConsumesList
public com.google.protobuf.ProtocolStringList getConsumesList()
A list of MIME types the operation can consume. This overrides the consumes definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string consumes = 6;- Specified by:
getConsumesListin interfaceOpenapiv2.OperationOrBuilder- Returns:
- A list containing the consumes.
-
getConsumesCount
public int getConsumesCount()
A list of MIME types the operation can consume. This overrides the consumes definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string consumes = 6;- Specified by:
getConsumesCountin interfaceOpenapiv2.OperationOrBuilder- Returns:
- The count of consumes.
-
getConsumes
public String getConsumes(int index)
A list of MIME types the operation can consume. This overrides the consumes definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string consumes = 6;- Specified by:
getConsumesin interfaceOpenapiv2.OperationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The consumes at the given index.
-
getConsumesBytes
public com.google.protobuf.ByteString getConsumesBytes(int index)
A list of MIME types the operation can consume. This overrides the consumes definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string consumes = 6;- Specified by:
getConsumesBytesin interfaceOpenapiv2.OperationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the consumes at the given index.
-
getProducesList
public com.google.protobuf.ProtocolStringList getProducesList()
A list of MIME types the operation can produce. This overrides the produces definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string produces = 7;- Specified by:
getProducesListin interfaceOpenapiv2.OperationOrBuilder- Returns:
- A list containing the produces.
-
getProducesCount
public int getProducesCount()
A list of MIME types the operation can produce. This overrides the produces definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string produces = 7;- Specified by:
getProducesCountin interfaceOpenapiv2.OperationOrBuilder- Returns:
- The count of produces.
-
getProduces
public String getProduces(int index)
A list of MIME types the operation can produce. This overrides the produces definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string produces = 7;- Specified by:
getProducesin interfaceOpenapiv2.OperationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The produces at the given index.
-
getProducesBytes
public com.google.protobuf.ByteString getProducesBytes(int index)
A list of MIME types the operation can produce. This overrides the produces definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string produces = 7;- Specified by:
getProducesBytesin interfaceOpenapiv2.OperationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the produces at the given index.
-
internalGetResponses
private com.google.protobuf.MapField<String,Openapiv2.Response> internalGetResponses()
-
getResponsesCount
public int getResponsesCount()
Description copied from interface:Openapiv2.OperationOrBuilderThe list of possible responses as they are returned from executing this operation.
map<string, .grpc.gateway.protoc_gen_swagger.options.Response> responses = 9;- Specified by:
getResponsesCountin interfaceOpenapiv2.OperationOrBuilder
-
containsResponses
public boolean containsResponses(String key)
The list of possible responses as they are returned from executing this operation.
map<string, .grpc.gateway.protoc_gen_swagger.options.Response> responses = 9;- Specified by:
containsResponsesin interfaceOpenapiv2.OperationOrBuilder
-
getResponses
@Deprecated public Map<String,Openapiv2.Response> getResponses()
Deprecated.UsegetResponsesMap()instead.- Specified by:
getResponsesin interfaceOpenapiv2.OperationOrBuilder
-
getResponsesMap
public Map<String,Openapiv2.Response> getResponsesMap()
The list of possible responses as they are returned from executing this operation.
map<string, .grpc.gateway.protoc_gen_swagger.options.Response> responses = 9;- Specified by:
getResponsesMapin interfaceOpenapiv2.OperationOrBuilder
-
getResponsesOrDefault
public Openapiv2.Response getResponsesOrDefault(String key, Openapiv2.Response defaultValue)
The list of possible responses as they are returned from executing this operation.
map<string, .grpc.gateway.protoc_gen_swagger.options.Response> responses = 9;- Specified by:
getResponsesOrDefaultin interfaceOpenapiv2.OperationOrBuilder
-
getResponsesOrThrow
public Openapiv2.Response getResponsesOrThrow(String key)
The list of possible responses as they are returned from executing this operation.
map<string, .grpc.gateway.protoc_gen_swagger.options.Response> responses = 9;- Specified by:
getResponsesOrThrowin interfaceOpenapiv2.OperationOrBuilder
-
getSchemesList
public com.google.protobuf.ProtocolStringList getSchemesList()
The transfer protocol for the operation. Values MUST be from the list: "http", "https", "ws", "wss". The value overrides the Swagger Object schemes definition.
repeated string schemes = 10;- Specified by:
getSchemesListin interfaceOpenapiv2.OperationOrBuilder- Returns:
- A list containing the schemes.
-
getSchemesCount
public int getSchemesCount()
The transfer protocol for the operation. Values MUST be from the list: "http", "https", "ws", "wss". The value overrides the Swagger Object schemes definition.
repeated string schemes = 10;- Specified by:
getSchemesCountin interfaceOpenapiv2.OperationOrBuilder- Returns:
- The count of schemes.
-
getSchemes
public String getSchemes(int index)
The transfer protocol for the operation. Values MUST be from the list: "http", "https", "ws", "wss". The value overrides the Swagger Object schemes definition.
repeated string schemes = 10;- Specified by:
getSchemesin interfaceOpenapiv2.OperationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The schemes at the given index.
-
getSchemesBytes
public com.google.protobuf.ByteString getSchemesBytes(int index)
The transfer protocol for the operation. Values MUST be from the list: "http", "https", "ws", "wss". The value overrides the Swagger Object schemes definition.
repeated string schemes = 10;- Specified by:
getSchemesBytesin interfaceOpenapiv2.OperationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the schemes at the given index.
-
getDeprecated
public boolean getDeprecated()
Declares this operation to be deprecated. Usage of the declared operation should be refrained. Default value is false.
bool deprecated = 11;- Specified by:
getDeprecatedin interfaceOpenapiv2.OperationOrBuilder- Returns:
- The deprecated.
-
getSecurityList
public List<Openapiv2.SecurityRequirement> getSecurityList()
A declaration of which security schemes are applied for this operation. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used.
repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12;- Specified by:
getSecurityListin interfaceOpenapiv2.OperationOrBuilder
-
getSecurityOrBuilderList
public List<? extends Openapiv2.SecurityRequirementOrBuilder> getSecurityOrBuilderList()
A declaration of which security schemes are applied for this operation. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used.
repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12;- Specified by:
getSecurityOrBuilderListin interfaceOpenapiv2.OperationOrBuilder
-
getSecurityCount
public int getSecurityCount()
A declaration of which security schemes are applied for this operation. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used.
repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12;- Specified by:
getSecurityCountin interfaceOpenapiv2.OperationOrBuilder
-
getSecurity
public Openapiv2.SecurityRequirement getSecurity(int index)
A declaration of which security schemes are applied for this operation. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used.
repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12;- Specified by:
getSecurityin interfaceOpenapiv2.OperationOrBuilder
-
getSecurityOrBuilder
public Openapiv2.SecurityRequirementOrBuilder getSecurityOrBuilder(int index)
A declaration of which security schemes are applied for this operation. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used.
repeated .grpc.gateway.protoc_gen_swagger.options.SecurityRequirement security = 12;- Specified by:
getSecurityOrBuilderin interfaceOpenapiv2.OperationOrBuilder
-
internalGetExtensions
private com.google.protobuf.MapField<String,com.google.protobuf.Value> internalGetExtensions()
-
getExtensionsCount
public int getExtensionsCount()
Description copied from interface:Openapiv2.OperationOrBuildermap<string, .google.protobuf.Value> extensions = 13;- Specified by:
getExtensionsCountin interfaceOpenapiv2.OperationOrBuilder
-
containsExtensions
public boolean containsExtensions(String key)
map<string, .google.protobuf.Value> extensions = 13;- Specified by:
containsExtensionsin interfaceOpenapiv2.OperationOrBuilder
-
getExtensions
@Deprecated public Map<String,com.google.protobuf.Value> getExtensions()
Deprecated.UsegetExtensionsMap()instead.- Specified by:
getExtensionsin interfaceOpenapiv2.OperationOrBuilder
-
getExtensionsMap
public Map<String,com.google.protobuf.Value> getExtensionsMap()
map<string, .google.protobuf.Value> extensions = 13;- Specified by:
getExtensionsMapin interfaceOpenapiv2.OperationOrBuilder
-
getExtensionsOrDefault
public com.google.protobuf.Value getExtensionsOrDefault(String key, com.google.protobuf.Value defaultValue)
map<string, .google.protobuf.Value> extensions = 13;- Specified by:
getExtensionsOrDefaultin interfaceOpenapiv2.OperationOrBuilder
-
getExtensionsOrThrow
public com.google.protobuf.Value getExtensionsOrThrow(String key)
map<string, .google.protobuf.Value> extensions = 13;- Specified by:
getExtensionsOrThrowin interfaceOpenapiv2.OperationOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Openapiv2.Operation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Openapiv2.Operation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Openapiv2.Operation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Openapiv2.Operation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Openapiv2.Operation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Openapiv2.Operation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Openapiv2.Operation parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Openapiv2.Operation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Openapiv2.Operation parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Openapiv2.Operation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Openapiv2.Operation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Openapiv2.Operation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Openapiv2.Operation.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Openapiv2.Operation.Builder newBuilder()
-
newBuilder
public static Openapiv2.Operation.Builder newBuilder(Openapiv2.Operation prototype)
-
toBuilder
public Openapiv2.Operation.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Openapiv2.Operation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Openapiv2.Operation getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Openapiv2.Operation> parser()
-
getParserForType
public com.google.protobuf.Parser<Openapiv2.Operation> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Openapiv2.Operation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-