Class Openapiv2.Parameters.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Openapiv2.Parameters.Builder>
grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.Parameters.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Openapiv2.ParametersOrBuilder
,Cloneable
- Enclosing class:
- Openapiv2.Parameters
public static final class Openapiv2.Parameters.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Openapiv2.Parameters.Builder>
implements Openapiv2.ParametersOrBuilder
`Parameters` is a representation of OpenAPI v2 specification's parameters object. Note: This technically breaks compatibility with the OpenAPI 2 definition structure as we only allow header parameters to be set here since we do not want users specifying custom non-header parameters beyond those inferred from the Protobuf schema. See: https://swagger.io/specification/v2/#parameter-objectProtobuf type
grpc.gateway.protoc_gen_openapiv2.options.Parameters
-
Method Summary
Modifier and TypeMethodDescriptionaddAllHeaders
(Iterable<? extends Openapiv2.HeaderParameter> values) `Headers` is one or more HTTP header parameter.addHeaders
(int index, Openapiv2.HeaderParameter value) `Headers` is one or more HTTP header parameter.addHeaders
(int index, Openapiv2.HeaderParameter.Builder builderForValue) `Headers` is one or more HTTP header parameter.`Headers` is one or more HTTP header parameter.addHeaders
(Openapiv2.HeaderParameter.Builder builderForValue) `Headers` is one or more HTTP header parameter.`Headers` is one or more HTTP header parameter.addHeadersBuilder
(int index) `Headers` is one or more HTTP header parameter.build()
clear()
`Headers` is one or more HTTP header parameter.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getHeaders
(int index) `Headers` is one or more HTTP header parameter.getHeadersBuilder
(int index) `Headers` is one or more HTTP header parameter.`Headers` is one or more HTTP header parameter.int
`Headers` is one or more HTTP header parameter.`Headers` is one or more HTTP header parameter.getHeadersOrBuilder
(int index) `Headers` is one or more HTTP header parameter.List<? extends Openapiv2.HeaderParameterOrBuilder>
`Headers` is one or more HTTP header parameter.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(Openapiv2.Parameters other) removeHeaders
(int index) `Headers` is one or more HTTP header parameter.setHeaders
(int index, Openapiv2.HeaderParameter value) `Headers` is one or more HTTP header parameter.setHeaders
(int index, Openapiv2.HeaderParameter.Builder builderForValue) `Headers` is one or more HTTP header parameter.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Parameters.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Parameters.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Parameters.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Openapiv2.Parameters.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.Parameters.Builder>
-
mergeFrom
public Openapiv2.Parameters.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Openapiv2.Parameters.Builder>
- Throws:
IOException
-
getHeadersList
`Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
- Specified by:
getHeadersList
in interfaceOpenapiv2.ParametersOrBuilder
-
getHeadersCount
public int getHeadersCount()`Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
- Specified by:
getHeadersCount
in interfaceOpenapiv2.ParametersOrBuilder
-
getHeaders
`Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
- Specified by:
getHeaders
in interfaceOpenapiv2.ParametersOrBuilder
-
setHeaders
`Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
-
setHeaders
public Openapiv2.Parameters.Builder setHeaders(int index, Openapiv2.HeaderParameter.Builder builderForValue) `Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
-
addHeaders
`Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
-
addHeaders
`Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
-
addHeaders
`Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
-
addHeaders
public Openapiv2.Parameters.Builder addHeaders(int index, Openapiv2.HeaderParameter.Builder builderForValue) `Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
-
addAllHeaders
public Openapiv2.Parameters.Builder addAllHeaders(Iterable<? extends Openapiv2.HeaderParameter> values) `Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
-
clearHeaders
`Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
-
removeHeaders
`Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
-
getHeadersBuilder
`Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
-
getHeadersOrBuilder
`Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
- Specified by:
getHeadersOrBuilder
in interfaceOpenapiv2.ParametersOrBuilder
-
getHeadersOrBuilderList
`Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
- Specified by:
getHeadersOrBuilderList
in interfaceOpenapiv2.ParametersOrBuilder
-
addHeadersBuilder
`Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
-
addHeadersBuilder
`Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
-
getHeadersBuilderList
`Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
repeated .grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter headers = 1;
-