Class Openapiv2.Operation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Openapiv2.Operation.Builder>
grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Operation.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Openapiv2.OperationOrBuilder,Cloneable
- Enclosing class:
- Openapiv2.Operation
public static final class Openapiv2.Operation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Openapiv2.Operation.Builder>
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_openapiv2.options.openapiv2_operation) = {
summary: "Get a message.";
operation_id: "getMessage";
tags: "echo";
responses: {
key: "200"
value: {
description: "OK";
}
}
};
}
}
Protobuf type grpc.gateway.protoc_gen_openapiv2.options.Operation-
Method Summary
Modifier and TypeMethodDescriptionaddAllConsumes(Iterable<String> values) A list of MIME types the operation can consume.addAllProduces(Iterable<String> values) A list of MIME types the operation can produce.addAllSchemes(Iterable<? extends Openapiv2.Scheme> values) The transfer protocol for the operation.addAllSchemesValue(Iterable<Integer> values) The transfer protocol for the operation.addAllSecurity(Iterable<? extends Openapiv2.SecurityRequirement> values) A declaration of which security schemes are applied for this operation.addAllTags(Iterable<String> values) A list of tags for API documentation control.addConsumes(String value) A list of MIME types the operation can consume.addConsumesBytes(com.google.protobuf.ByteString value) A list of MIME types the operation can consume.addProduces(String value) A list of MIME types the operation can produce.addProducesBytes(com.google.protobuf.ByteString value) A list of MIME types the operation can produce.addSchemes(Openapiv2.Scheme value) The transfer protocol for the operation.addSchemesValue(int value) The transfer protocol for the operation.addSecurity(int index, Openapiv2.SecurityRequirement value) A declaration of which security schemes are applied for this operation.addSecurity(int index, Openapiv2.SecurityRequirement.Builder builderForValue) A declaration of which security schemes are applied for this operation.A declaration of which security schemes are applied for this operation.addSecurity(Openapiv2.SecurityRequirement.Builder builderForValue) A declaration of which security schemes are applied for this operation.A declaration of which security schemes are applied for this operation.addSecurityBuilder(int index) A declaration of which security schemes are applied for this operation.A list of tags for API documentation control.addTagsBytes(com.google.protobuf.ByteString value) A list of tags for API documentation control.build()clear()A list of MIME types the operation can consume.Declares this operation to be deprecated.A verbose explanation of the operation behavior.Additional external documentation for this operation.Unique string used to identify the operation.Custom parameters such as HTTP request headers.A list of MIME types the operation can produce.The transfer protocol for the operation.A declaration of which security schemes are applied for this operation.A short summary of what the operation does.A list of tags for API documentation control.booleancontainsExtensions(String key) Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.booleancontainsResponses(String key) The list of possible responses as they are returned from executing this operation.getConsumes(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.intA list of MIME types the operation can consume.com.google.protobuf.ProtocolStringListA list of MIME types the operation can consume.booleanDeclares this operation to be deprecated.A verbose explanation of the operation behavior.com.google.protobuf.ByteStringA verbose explanation of the operation behavior.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intCustom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.com.google.protobuf.ValuegetExtensionsOrDefault(String key, com.google.protobuf.Value defaultValue) Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.com.google.protobuf.ValueCustom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.Additional external documentation for this operation.Additional external documentation for this operation.Additional external documentation for this operation.Deprecated.Deprecated.Unique string used to identify the operation.com.google.protobuf.ByteStringUnique string used to identify the operation.Custom parameters such as HTTP request headers.Custom parameters such as HTTP request headers.Custom parameters such as HTTP request headers.getProduces(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.intA list of MIME types the operation can produce.com.google.protobuf.ProtocolStringListA list of MIME types the operation can produce.Deprecated.intThe list of possible responses as they are returned from executing this operation.The list of possible responses as they are returned from executing this operation.getResponsesOrDefault(String key, Openapiv2.Response defaultValue) The list of possible responses as they are returned from executing this operation.The list of possible responses as they are returned from executing this operation.getSchemes(int index) The transfer protocol for the operation.intThe transfer protocol for the operation.The transfer protocol for the operation.intgetSchemesValue(int index) The transfer protocol for the operation.The transfer protocol for the operation.getSecurity(int index) A declaration of which security schemes are applied for this operation.getSecurityBuilder(int index) A declaration of which security schemes are applied for this operation.A declaration of which security schemes are applied for this operation.intA declaration of which security schemes are applied for this operation.A declaration of which security schemes are applied for this operation.getSecurityOrBuilder(int index) A declaration of which security schemes are applied for this operation.List<? extends Openapiv2.SecurityRequirementOrBuilder>A declaration of which security schemes are applied for this operation.A short summary of what the operation does.com.google.protobuf.ByteStringA short summary of what the operation does.getTags(int index) A list of tags for API documentation control.com.google.protobuf.ByteStringgetTagsBytes(int index) A list of tags for API documentation control.intA list of tags for API documentation control.com.google.protobuf.ProtocolStringListA list of tags for API documentation control.booleanAdditional external documentation for this operation.booleanCustom parameters such as HTTP request headers.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanAdditional external documentation for this operation.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Openapiv2.Operation other) Custom parameters such as HTTP request headers.putAllExtensions(Map<String, com.google.protobuf.Value> values) Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.putAllResponses(Map<String, Openapiv2.Response> values) The list of possible responses as they are returned from executing this operation.putExtensions(String key, com.google.protobuf.Value value) Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.com.google.protobuf.Value.BuilderCustom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.putResponses(String key, Openapiv2.Response value) The list of possible responses as they are returned from executing this operation.The list of possible responses as they are returned from executing this operation.removeExtensions(String key) Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.removeResponses(String key) The list of possible responses as they are returned from executing this operation.removeSecurity(int index) A declaration of which security schemes are applied for this operation.setConsumes(int index, String value) A list of MIME types the operation can consume.setDeprecated(boolean value) Declares this operation to be deprecated.setDescription(String value) A verbose explanation of the operation behavior.setDescriptionBytes(com.google.protobuf.ByteString value) A verbose explanation of the operation behavior.Additional external documentation for this operation.setExternalDocs(Openapiv2.ExternalDocumentation.Builder builderForValue) Additional external documentation for this operation.setOperationId(String value) Unique string used to identify the operation.setOperationIdBytes(com.google.protobuf.ByteString value) Unique string used to identify the operation.Custom parameters such as HTTP request headers.setParameters(Openapiv2.Parameters.Builder builderForValue) Custom parameters such as HTTP request headers.setProduces(int index, String value) A list of MIME types the operation can produce.setSchemes(int index, Openapiv2.Scheme value) The transfer protocol for the operation.setSchemesValue(int index, int value) The transfer protocol for the operation.setSecurity(int index, Openapiv2.SecurityRequirement value) A declaration of which security schemes are applied for this operation.setSecurity(int index, Openapiv2.SecurityRequirement.Builder builderForValue) A declaration of which security schemes are applied for this operation.setSummary(String value) A short summary of what the operation does.setSummaryBytes(com.google.protobuf.ByteString value) A short summary of what the operation does.A list of tags for API documentation control.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Operation.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Operation.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Operation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Operation.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.GeneratedMessage.Builder<Openapiv2.Operation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Openapiv2.Operation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Operation.Builder>
-
mergeFrom
public Openapiv2.Operation.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.Operation.Builder>- Throws:
IOException
-
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
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.
-
setTags
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;- Parameters:
index- The index to set the value at.value- The tags to set.- Returns:
- This builder for chaining.
-
addTags
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;- Parameters:
value- The tags to add.- Returns:
- This builder for chaining.
-
addAllTags
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;- Parameters:
values- The tags to add.- Returns:
- This builder for chaining.
-
clearTags
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;- Returns:
- This builder for chaining.
-
addTagsBytes
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;- Parameters:
value- The bytes of the tags to add.- Returns:
- This builder for chaining.
-
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.
-
setSummary
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;- Parameters:
value- The summary to set.- Returns:
- This builder for chaining.
-
clearSummary
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;- Returns:
- This builder for chaining.
-
setSummaryBytes
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;- Parameters:
value- The bytes for summary to set.- Returns:
- This builder for chaining.
-
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.
-
setDescription
A verbose explanation of the operation behavior. GFM syntax can be used for rich text representation.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
A verbose explanation of the operation behavior. GFM syntax can be used for rich text representation.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
A verbose explanation of the operation behavior. GFM syntax can be used for rich text representation.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasExternalDocs
public boolean hasExternalDocs()Additional external documentation for this operation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4;- Specified by:
hasExternalDocsin interfaceOpenapiv2.OperationOrBuilder- Returns:
- Whether the externalDocs field is set.
-
getExternalDocs
Additional external documentation for this operation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4;- Specified by:
getExternalDocsin interfaceOpenapiv2.OperationOrBuilder- Returns:
- The externalDocs.
-
setExternalDocs
Additional external documentation for this operation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; -
setExternalDocs
public Openapiv2.Operation.Builder setExternalDocs(Openapiv2.ExternalDocumentation.Builder builderForValue) Additional external documentation for this operation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; -
mergeExternalDocs
Additional external documentation for this operation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; -
clearExternalDocs
Additional external documentation for this operation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; -
getExternalDocsBuilder
Additional external documentation for this operation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; -
getExternalDocsOrBuilder
Additional external documentation for this operation.
.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4;- Specified by:
getExternalDocsOrBuilderin interfaceOpenapiv2.OperationOrBuilder
-
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.
-
setOperationId
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;- Parameters:
value- The operationId to set.- Returns:
- This builder for chaining.
-
clearOperationId
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;- Returns:
- This builder for chaining.
-
setOperationIdBytes
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;- Parameters:
value- The bytes for operationId to set.- Returns:
- This builder for chaining.
-
getConsumesList
public com.google.protobuf.ProtocolStringList getConsumesList()A list of MIME types the operation can consume. This overrides the consumes definition at the OpenAPI 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 OpenAPI 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
A list of MIME types the operation can consume. This overrides the consumes definition at the OpenAPI 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 OpenAPI 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.
-
setConsumes
A list of MIME types the operation can consume. This overrides the consumes definition at the OpenAPI Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string consumes = 6;- Parameters:
index- The index to set the value at.value- The consumes to set.- Returns:
- This builder for chaining.
-
addConsumes
A list of MIME types the operation can consume. This overrides the consumes definition at the OpenAPI Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string consumes = 6;- Parameters:
value- The consumes to add.- Returns:
- This builder for chaining.
-
addAllConsumes
A list of MIME types the operation can consume. This overrides the consumes definition at the OpenAPI Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string consumes = 6;- Parameters:
values- The consumes to add.- Returns:
- This builder for chaining.
-
clearConsumes
A list of MIME types the operation can consume. This overrides the consumes definition at the OpenAPI Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string consumes = 6;- Returns:
- This builder for chaining.
-
addConsumesBytes
A list of MIME types the operation can consume. This overrides the consumes definition at the OpenAPI Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string consumes = 6;- Parameters:
value- The bytes of the consumes to add.- Returns:
- This builder for chaining.
-
getProducesList
public com.google.protobuf.ProtocolStringList getProducesList()A list of MIME types the operation can produce. This overrides the produces definition at the OpenAPI 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 OpenAPI 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
A list of MIME types the operation can produce. This overrides the produces definition at the OpenAPI 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 OpenAPI 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.
-
setProduces
A list of MIME types the operation can produce. This overrides the produces definition at the OpenAPI Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string produces = 7;- Parameters:
index- The index to set the value at.value- The produces to set.- Returns:
- This builder for chaining.
-
addProduces
A list of MIME types the operation can produce. This overrides the produces definition at the OpenAPI Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string produces = 7;- Parameters:
value- The produces to add.- Returns:
- This builder for chaining.
-
addAllProduces
A list of MIME types the operation can produce. This overrides the produces definition at the OpenAPI Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string produces = 7;- Parameters:
values- The produces to add.- Returns:
- This builder for chaining.
-
clearProduces
A list of MIME types the operation can produce. This overrides the produces definition at the OpenAPI Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string produces = 7;- Returns:
- This builder for chaining.
-
addProducesBytes
A list of MIME types the operation can produce. This overrides the produces definition at the OpenAPI Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types.
repeated string produces = 7;- Parameters:
value- The bytes of the produces to add.- Returns:
- This builder for chaining.
-
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_openapiv2.options.Response> responses = 9;- Specified by:
getResponsesCountin interfaceOpenapiv2.OperationOrBuilder
-
containsResponses
The list of possible responses as they are returned from executing this operation.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9;- Specified by:
containsResponsesin interfaceOpenapiv2.OperationOrBuilder
-
getResponses
Deprecated.UsegetResponsesMap()instead.- Specified by:
getResponsesin interfaceOpenapiv2.OperationOrBuilder
-
getResponsesMap
The list of possible responses as they are returned from executing this operation.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9;- Specified by:
getResponsesMapin interfaceOpenapiv2.OperationOrBuilder
-
getResponsesOrDefault
The list of possible responses as they are returned from executing this operation.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9;- Specified by:
getResponsesOrDefaultin interfaceOpenapiv2.OperationOrBuilder
-
getResponsesOrThrow
The list of possible responses as they are returned from executing this operation.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9;- Specified by:
getResponsesOrThrowin interfaceOpenapiv2.OperationOrBuilder
-
clearResponses
-
removeResponses
The list of possible responses as they are returned from executing this operation.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; -
getMutableResponses
Deprecated.Use alternate mutation accessors instead. -
putResponses
The list of possible responses as they are returned from executing this operation.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; -
putAllResponses
The list of possible responses as they are returned from executing this operation.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; -
putResponsesBuilderIfAbsent
The list of possible responses as they are returned from executing this operation.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.Response> responses = 9; -
getSchemesList
The transfer protocol for the operation. Values MUST be from the list: "http", "https", "ws", "wss". The value overrides the OpenAPI Object schemes definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme 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 OpenAPI Object schemes definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10;- Specified by:
getSchemesCountin interfaceOpenapiv2.OperationOrBuilder- Returns:
- The count of schemes.
-
getSchemes
The transfer protocol for the operation. Values MUST be from the list: "http", "https", "ws", "wss". The value overrides the OpenAPI Object schemes definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10;- Specified by:
getSchemesin interfaceOpenapiv2.OperationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The schemes at the given index.
-
setSchemes
The transfer protocol for the operation. Values MUST be from the list: "http", "https", "ws", "wss". The value overrides the OpenAPI Object schemes definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10;- Parameters:
index- The index to set the value at.value- The schemes to set.- Returns:
- This builder for chaining.
-
addSchemes
The transfer protocol for the operation. Values MUST be from the list: "http", "https", "ws", "wss". The value overrides the OpenAPI Object schemes definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10;- Parameters:
value- The schemes to add.- Returns:
- This builder for chaining.
-
addAllSchemes
The transfer protocol for the operation. Values MUST be from the list: "http", "https", "ws", "wss". The value overrides the OpenAPI Object schemes definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10;- Parameters:
values- The schemes to add.- Returns:
- This builder for chaining.
-
clearSchemes
The transfer protocol for the operation. Values MUST be from the list: "http", "https", "ws", "wss". The value overrides the OpenAPI Object schemes definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10;- Returns:
- This builder for chaining.
-
getSchemesValueList
The transfer protocol for the operation. Values MUST be from the list: "http", "https", "ws", "wss". The value overrides the OpenAPI Object schemes definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10;- Specified by:
getSchemesValueListin interfaceOpenapiv2.OperationOrBuilder- Returns:
- A list containing the enum numeric values on the wire for schemes.
-
getSchemesValue
public int getSchemesValue(int index) The transfer protocol for the operation. Values MUST be from the list: "http", "https", "ws", "wss". The value overrides the OpenAPI Object schemes definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10;- Specified by:
getSchemesValuein interfaceOpenapiv2.OperationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of schemes at the given index.
-
setSchemesValue
The transfer protocol for the operation. Values MUST be from the list: "http", "https", "ws", "wss". The value overrides the OpenAPI Object schemes definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for schemes to set.- Returns:
- This builder for chaining.
-
addSchemesValue
The transfer protocol for the operation. Values MUST be from the list: "http", "https", "ws", "wss". The value overrides the OpenAPI Object schemes definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10;- Parameters:
value- The enum numeric value on the wire for schemes to add.- Returns:
- This builder for chaining.
-
addAllSchemesValue
The transfer protocol for the operation. Values MUST be from the list: "http", "https", "ws", "wss". The value overrides the OpenAPI Object schemes definition.
repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10;- Parameters:
values- The enum numeric values on the wire for schemes to add.- Returns:
- This builder for chaining.
-
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.
-
setDeprecated
Declares this operation to be deprecated. Usage of the declared operation should be refrained. Default value is false.
bool deprecated = 11;- Parameters:
value- The deprecated to set.- Returns:
- This builder for chaining.
-
clearDeprecated
Declares this operation to be deprecated. Usage of the declared operation should be refrained. Default value is false.
bool deprecated = 11;- Returns:
- This builder for chaining.
-
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_openapiv2.options.SecurityRequirement security = 12;- Specified by:
getSecurityListin 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_openapiv2.options.SecurityRequirement security = 12;- Specified by:
getSecurityCountin interfaceOpenapiv2.OperationOrBuilder
-
getSecurity
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_openapiv2.options.SecurityRequirement security = 12;- Specified by:
getSecurityin interfaceOpenapiv2.OperationOrBuilder
-
setSecurity
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_openapiv2.options.SecurityRequirement security = 12; -
setSecurity
public Openapiv2.Operation.Builder setSecurity(int index, Openapiv2.SecurityRequirement.Builder builderForValue) 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_openapiv2.options.SecurityRequirement security = 12; -
addSecurity
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_openapiv2.options.SecurityRequirement security = 12; -
addSecurity
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_openapiv2.options.SecurityRequirement security = 12; -
addSecurity
public Openapiv2.Operation.Builder addSecurity(Openapiv2.SecurityRequirement.Builder builderForValue) 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_openapiv2.options.SecurityRequirement security = 12; -
addSecurity
public Openapiv2.Operation.Builder addSecurity(int index, Openapiv2.SecurityRequirement.Builder builderForValue) 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_openapiv2.options.SecurityRequirement security = 12; -
addAllSecurity
public Openapiv2.Operation.Builder addAllSecurity(Iterable<? extends Openapiv2.SecurityRequirement> values) 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_openapiv2.options.SecurityRequirement security = 12; -
clearSecurity
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_openapiv2.options.SecurityRequirement security = 12; -
removeSecurity
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_openapiv2.options.SecurityRequirement security = 12; -
getSecurityBuilder
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_openapiv2.options.SecurityRequirement security = 12; -
getSecurityOrBuilder
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_openapiv2.options.SecurityRequirement security = 12;- Specified by:
getSecurityOrBuilderin interfaceOpenapiv2.OperationOrBuilder
-
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_openapiv2.options.SecurityRequirement security = 12;- Specified by:
getSecurityOrBuilderListin interfaceOpenapiv2.OperationOrBuilder
-
addSecurityBuilder
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_openapiv2.options.SecurityRequirement security = 12; -
addSecurityBuilder
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_openapiv2.options.SecurityRequirement security = 12; -
getSecurityBuilderList
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_openapiv2.options.SecurityRequirement security = 12; -
getExtensionsCount
public int getExtensionsCount()Description copied from interface:Openapiv2.OperationOrBuilderCustom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 13;- Specified by:
getExtensionsCountin interfaceOpenapiv2.OperationOrBuilder
-
containsExtensions
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 13;- Specified by:
containsExtensionsin interfaceOpenapiv2.OperationOrBuilder
-
getExtensions
Deprecated.UsegetExtensionsMap()instead.- Specified by:
getExtensionsin interfaceOpenapiv2.OperationOrBuilder
-
getExtensionsMap
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 13;- Specified by:
getExtensionsMapin interfaceOpenapiv2.OperationOrBuilder
-
getExtensionsOrDefault
public com.google.protobuf.Value getExtensionsOrDefault(String key, com.google.protobuf.Value defaultValue) Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 13;- Specified by:
getExtensionsOrDefaultin interfaceOpenapiv2.OperationOrBuilder
-
getExtensionsOrThrow
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 13;- Specified by:
getExtensionsOrThrowin interfaceOpenapiv2.OperationOrBuilder
-
clearExtensions
-
removeExtensions
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 13; -
getMutableExtensions
Deprecated.Use alternate mutation accessors instead. -
putExtensions
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 13; -
putAllExtensions
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 13; -
putExtensionsBuilderIfAbsent
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 13; -
hasParameters
public boolean hasParameters()Custom parameters such as HTTP request headers. See: https://swagger.io/docs/specification/2-0/describing-parameters/ and https://swagger.io/specification/v2/#parameter-object.
.grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14;- Specified by:
hasParametersin interfaceOpenapiv2.OperationOrBuilder- Returns:
- Whether the parameters field is set.
-
getParameters
Custom parameters such as HTTP request headers. See: https://swagger.io/docs/specification/2-0/describing-parameters/ and https://swagger.io/specification/v2/#parameter-object.
.grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14;- Specified by:
getParametersin interfaceOpenapiv2.OperationOrBuilder- Returns:
- The parameters.
-
setParameters
Custom parameters such as HTTP request headers. See: https://swagger.io/docs/specification/2-0/describing-parameters/ and https://swagger.io/specification/v2/#parameter-object.
.grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; -
setParameters
Custom parameters such as HTTP request headers. See: https://swagger.io/docs/specification/2-0/describing-parameters/ and https://swagger.io/specification/v2/#parameter-object.
.grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; -
mergeParameters
Custom parameters such as HTTP request headers. See: https://swagger.io/docs/specification/2-0/describing-parameters/ and https://swagger.io/specification/v2/#parameter-object.
.grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; -
clearParameters
Custom parameters such as HTTP request headers. See: https://swagger.io/docs/specification/2-0/describing-parameters/ and https://swagger.io/specification/v2/#parameter-object.
.grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; -
getParametersBuilder
Custom parameters such as HTTP request headers. See: https://swagger.io/docs/specification/2-0/describing-parameters/ and https://swagger.io/specification/v2/#parameter-object.
.grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14; -
getParametersOrBuilder
Custom parameters such as HTTP request headers. See: https://swagger.io/docs/specification/2-0/describing-parameters/ and https://swagger.io/specification/v2/#parameter-object.
.grpc.gateway.protoc_gen_openapiv2.options.Parameters parameters = 14;- Specified by:
getParametersOrBuilderin interfaceOpenapiv2.OperationOrBuilder
-