Class Openapiv2.HeaderParameter.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Openapiv2.HeaderParameter.Builder>
grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.HeaderParameter.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Openapiv2.HeaderParameterOrBuilder
,Cloneable
- Enclosing class:
- Openapiv2.HeaderParameter
public static final class Openapiv2.HeaderParameter.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Openapiv2.HeaderParameter.Builder>
implements Openapiv2.HeaderParameterOrBuilder
`HeaderParameter` a HTTP header parameter. See: https://swagger.io/specification/v2/#parameter-objectProtobuf type
grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
`Description` is a short description of the header.`Format` The extending format for the previously mentioned type.`Name` is the header name.`Required` indicates if the header is optional`Type` is the type of the object.`Description` is a short description of the header.com.google.protobuf.ByteString
`Description` is a short description of the header.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
`Format` The extending format for the previously mentioned type.com.google.protobuf.ByteString
`Format` The extending format for the previously mentioned type.getName()
`Name` is the header name.com.google.protobuf.ByteString
`Name` is the header name.boolean
`Required` indicates if the header is optionalgetType()
`Type` is the type of the object.int
`Type` is the type of the object.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) setDescription
(String value) `Description` is a short description of the header.setDescriptionBytes
(com.google.protobuf.ByteString value) `Description` is a short description of the header.`Format` The extending format for the previously mentioned type.setFormatBytes
(com.google.protobuf.ByteString value) `Format` The extending format for the previously mentioned type.`Name` is the header name.setNameBytes
(com.google.protobuf.ByteString value) `Name` is the header name.setRequired
(boolean value) `Required` indicates if the header is optional`Type` is the type of the object.setTypeValue
(int value) `Type` is the type of the object.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.HeaderParameter.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.HeaderParameter.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.HeaderParameter.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.HeaderParameter.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<Openapiv2.HeaderParameter.Builder>
-
mergeFrom
public Openapiv2.HeaderParameter.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.HeaderParameter.Builder>
- Throws:
IOException
-
getName
`Name` is the header name.
string name = 1;
- Specified by:
getName
in interfaceOpenapiv2.HeaderParameterOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()`Name` is the header name.
string name = 1;
- Specified by:
getNameBytes
in interfaceOpenapiv2.HeaderParameterOrBuilder
- Returns:
- The bytes for name.
-
setName
`Name` is the header name.
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
`Name` is the header name.
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
`Name` is the header name.
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
`Description` is a short description of the header.
string description = 2;
- Specified by:
getDescription
in interfaceOpenapiv2.HeaderParameterOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()`Description` is a short description of the header.
string description = 2;
- Specified by:
getDescriptionBytes
in interfaceOpenapiv2.HeaderParameterOrBuilder
- Returns:
- The bytes for description.
-
setDescription
`Description` is a short description of the header.
string description = 2;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
`Description` is a short description of the header.
string description = 2;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
`Description` is a short description of the header.
string description = 2;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()`Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported. See: https://swagger.io/specification/v2/#parameterType.
.grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3;
- Specified by:
getTypeValue
in interfaceOpenapiv2.HeaderParameterOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
`Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported. See: https://swagger.io/specification/v2/#parameterType.
.grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3;
- Parameters:
value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
`Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported. See: https://swagger.io/specification/v2/#parameterType.
.grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3;
- Specified by:
getType
in interfaceOpenapiv2.HeaderParameterOrBuilder
- Returns:
- The type.
-
setType
`Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported. See: https://swagger.io/specification/v2/#parameterType.
.grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
`Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported. See: https://swagger.io/specification/v2/#parameterType.
.grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type type = 3;
- Returns:
- This builder for chaining.
-
getFormat
`Format` The extending format for the previously mentioned type.
string format = 4;
- Specified by:
getFormat
in interfaceOpenapiv2.HeaderParameterOrBuilder
- Returns:
- The format.
-
getFormatBytes
public com.google.protobuf.ByteString getFormatBytes()`Format` The extending format for the previously mentioned type.
string format = 4;
- Specified by:
getFormatBytes
in interfaceOpenapiv2.HeaderParameterOrBuilder
- Returns:
- The bytes for format.
-
setFormat
`Format` The extending format for the previously mentioned type.
string format = 4;
- Parameters:
value
- The format to set.- Returns:
- This builder for chaining.
-
clearFormat
`Format` The extending format for the previously mentioned type.
string format = 4;
- Returns:
- This builder for chaining.
-
setFormatBytes
`Format` The extending format for the previously mentioned type.
string format = 4;
- Parameters:
value
- The bytes for format to set.- Returns:
- This builder for chaining.
-
getRequired
public boolean getRequired()`Required` indicates if the header is optional
bool required = 5;
- Specified by:
getRequired
in interfaceOpenapiv2.HeaderParameterOrBuilder
- Returns:
- The required.
-
setRequired
`Required` indicates if the header is optional
bool required = 5;
- Parameters:
value
- The required to set.- Returns:
- This builder for chaining.
-
clearRequired
`Required` indicates if the header is optional
bool required = 5;
- Returns:
- This builder for chaining.
-