Package com.google.api
Class JwtLocation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
- com.google.api.JwtLocation.Builder
-
- All Implemented Interfaces:
JwtLocationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- JwtLocation
public static final class JwtLocation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder> implements JwtLocationOrBuilder
Specifies a location to extract JWT from an API request.
Protobuf typegoogle.api.JwtLocation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JwtLocation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)JwtLocationbuild()JwtLocationbuildPartial()JwtLocation.Builderclear()JwtLocation.BuilderclearCookie()Specifies cookie name to extract JWT token.JwtLocation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)JwtLocation.BuilderclearHeader()Specifies HTTP header name to extract JWT token.JwtLocation.BuilderclearIn()JwtLocation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)JwtLocation.BuilderclearQuery()Specifies URL query parameter name to extract JWT token.JwtLocation.BuilderclearValuePrefix()The value prefix.JwtLocation.Builderclone()StringgetCookie()Specifies cookie name to extract JWT token.com.google.protobuf.ByteStringgetCookieBytes()Specifies cookie name to extract JWT token.JwtLocationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetHeader()Specifies HTTP header name to extract JWT token.com.google.protobuf.ByteStringgetHeaderBytes()Specifies HTTP header name to extract JWT token.JwtLocation.InCasegetInCase()StringgetQuery()Specifies URL query parameter name to extract JWT token.com.google.protobuf.ByteStringgetQueryBytes()Specifies URL query parameter name to extract JWT token.StringgetValuePrefix()The value prefix.com.google.protobuf.ByteStringgetValuePrefixBytes()The value prefix.booleanhasCookie()Specifies cookie name to extract JWT token.booleanhasHeader()Specifies HTTP header name to extract JWT token.booleanhasQuery()Specifies URL query parameter name to extract JWT token.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()JwtLocation.BuildermergeFrom(JwtLocation other)JwtLocation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)JwtLocation.BuildermergeFrom(com.google.protobuf.Message other)JwtLocation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)JwtLocation.BuildersetCookie(String value)Specifies cookie name to extract JWT token.JwtLocation.BuildersetCookieBytes(com.google.protobuf.ByteString value)Specifies cookie name to extract JWT token.JwtLocation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)JwtLocation.BuildersetHeader(String value)Specifies HTTP header name to extract JWT token.JwtLocation.BuildersetHeaderBytes(com.google.protobuf.ByteString value)Specifies HTTP header name to extract JWT token.JwtLocation.BuildersetQuery(String value)Specifies URL query parameter name to extract JWT token.JwtLocation.BuildersetQueryBytes(com.google.protobuf.ByteString value)Specifies URL query parameter name to extract JWT token.JwtLocation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)JwtLocation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)JwtLocation.BuildersetValuePrefix(String value)The value prefix.JwtLocation.BuildersetValuePrefixBytes(com.google.protobuf.ByteString value)The value prefix.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
clear
public JwtLocation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
getDefaultInstanceForType
public JwtLocation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public JwtLocation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public JwtLocation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public JwtLocation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
setField
public JwtLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
clearField
public JwtLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
clearOneof
public JwtLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
setRepeatedField
public JwtLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
addRepeatedField
public JwtLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
mergeFrom
public JwtLocation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<JwtLocation.Builder>
-
mergeFrom
public JwtLocation.Builder mergeFrom(JwtLocation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
mergeFrom
public JwtLocation.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<JwtLocation.Builder>- Throws:
IOException
-
getInCase
public JwtLocation.InCase getInCase()
- Specified by:
getInCasein interfaceJwtLocationOrBuilder
-
clearIn
public JwtLocation.Builder clearIn()
-
hasHeader
public boolean hasHeader()
Specifies HTTP header name to extract JWT token.
string header = 1;- Specified by:
hasHeaderin interfaceJwtLocationOrBuilder- Returns:
- Whether the header field is set.
-
getHeader
public String getHeader()
Specifies HTTP header name to extract JWT token.
string header = 1;- Specified by:
getHeaderin interfaceJwtLocationOrBuilder- Returns:
- The header.
-
getHeaderBytes
public com.google.protobuf.ByteString getHeaderBytes()
Specifies HTTP header name to extract JWT token.
string header = 1;- Specified by:
getHeaderBytesin interfaceJwtLocationOrBuilder- Returns:
- The bytes for header.
-
setHeader
public JwtLocation.Builder setHeader(String value)
Specifies HTTP header name to extract JWT token.
string header = 1;- Parameters:
value- The header to set.- Returns:
- This builder for chaining.
-
clearHeader
public JwtLocation.Builder clearHeader()
Specifies HTTP header name to extract JWT token.
string header = 1;- Returns:
- This builder for chaining.
-
setHeaderBytes
public JwtLocation.Builder setHeaderBytes(com.google.protobuf.ByteString value)
Specifies HTTP header name to extract JWT token.
string header = 1;- Parameters:
value- The bytes for header to set.- Returns:
- This builder for chaining.
-
hasQuery
public boolean hasQuery()
Specifies URL query parameter name to extract JWT token.
string query = 2;- Specified by:
hasQueryin interfaceJwtLocationOrBuilder- Returns:
- Whether the query field is set.
-
getQuery
public String getQuery()
Specifies URL query parameter name to extract JWT token.
string query = 2;- Specified by:
getQueryin interfaceJwtLocationOrBuilder- Returns:
- The query.
-
getQueryBytes
public com.google.protobuf.ByteString getQueryBytes()
Specifies URL query parameter name to extract JWT token.
string query = 2;- Specified by:
getQueryBytesin interfaceJwtLocationOrBuilder- Returns:
- The bytes for query.
-
setQuery
public JwtLocation.Builder setQuery(String value)
Specifies URL query parameter name to extract JWT token.
string query = 2;- Parameters:
value- The query to set.- Returns:
- This builder for chaining.
-
clearQuery
public JwtLocation.Builder clearQuery()
Specifies URL query parameter name to extract JWT token.
string query = 2;- Returns:
- This builder for chaining.
-
setQueryBytes
public JwtLocation.Builder setQueryBytes(com.google.protobuf.ByteString value)
Specifies URL query parameter name to extract JWT token.
string query = 2;- Parameters:
value- The bytes for query to set.- Returns:
- This builder for chaining.
-
hasCookie
public boolean hasCookie()
Specifies cookie name to extract JWT token.
string cookie = 4;- Specified by:
hasCookiein interfaceJwtLocationOrBuilder- Returns:
- Whether the cookie field is set.
-
getCookie
public String getCookie()
Specifies cookie name to extract JWT token.
string cookie = 4;- Specified by:
getCookiein interfaceJwtLocationOrBuilder- Returns:
- The cookie.
-
getCookieBytes
public com.google.protobuf.ByteString getCookieBytes()
Specifies cookie name to extract JWT token.
string cookie = 4;- Specified by:
getCookieBytesin interfaceJwtLocationOrBuilder- Returns:
- The bytes for cookie.
-
setCookie
public JwtLocation.Builder setCookie(String value)
Specifies cookie name to extract JWT token.
string cookie = 4;- Parameters:
value- The cookie to set.- Returns:
- This builder for chaining.
-
clearCookie
public JwtLocation.Builder clearCookie()
Specifies cookie name to extract JWT token.
string cookie = 4;- Returns:
- This builder for chaining.
-
setCookieBytes
public JwtLocation.Builder setCookieBytes(com.google.protobuf.ByteString value)
Specifies cookie name to extract JWT token.
string cookie = 4;- Parameters:
value- The bytes for cookie to set.- Returns:
- This builder for chaining.
-
getValuePrefix
public String getValuePrefix()
The value prefix. The value format is "value_prefix{token}" Only applies to "in" header type. Must be empty for "in" query type. If not empty, the header value has to match (case sensitive) this prefix. If not matched, JWT will not be extracted. If matched, JWT will be extracted after the prefix is removed. For example, for "Authorization: Bearer {JWT}", value_prefix="Bearer " with a space at the end.string value_prefix = 3;- Specified by:
getValuePrefixin interfaceJwtLocationOrBuilder- Returns:
- The valuePrefix.
-
getValuePrefixBytes
public com.google.protobuf.ByteString getValuePrefixBytes()
The value prefix. The value format is "value_prefix{token}" Only applies to "in" header type. Must be empty for "in" query type. If not empty, the header value has to match (case sensitive) this prefix. If not matched, JWT will not be extracted. If matched, JWT will be extracted after the prefix is removed. For example, for "Authorization: Bearer {JWT}", value_prefix="Bearer " with a space at the end.string value_prefix = 3;- Specified by:
getValuePrefixBytesin interfaceJwtLocationOrBuilder- Returns:
- The bytes for valuePrefix.
-
setValuePrefix
public JwtLocation.Builder setValuePrefix(String value)
The value prefix. The value format is "value_prefix{token}" Only applies to "in" header type. Must be empty for "in" query type. If not empty, the header value has to match (case sensitive) this prefix. If not matched, JWT will not be extracted. If matched, JWT will be extracted after the prefix is removed. For example, for "Authorization: Bearer {JWT}", value_prefix="Bearer " with a space at the end.string value_prefix = 3;- Parameters:
value- The valuePrefix to set.- Returns:
- This builder for chaining.
-
clearValuePrefix
public JwtLocation.Builder clearValuePrefix()
The value prefix. The value format is "value_prefix{token}" Only applies to "in" header type. Must be empty for "in" query type. If not empty, the header value has to match (case sensitive) this prefix. If not matched, JWT will not be extracted. If matched, JWT will be extracted after the prefix is removed. For example, for "Authorization: Bearer {JWT}", value_prefix="Bearer " with a space at the end.string value_prefix = 3;- Returns:
- This builder for chaining.
-
setValuePrefixBytes
public JwtLocation.Builder setValuePrefixBytes(com.google.protobuf.ByteString value)
The value prefix. The value format is "value_prefix{token}" Only applies to "in" header type. Must be empty for "in" query type. If not empty, the header value has to match (case sensitive) this prefix. If not matched, JWT will not be extracted. If matched, JWT will be extracted after the prefix is removed. For example, for "Authorization: Bearer {JWT}", value_prefix="Bearer " with a space at the end.string value_prefix = 3;- Parameters:
value- The bytes for valuePrefix to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final JwtLocation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
mergeUnknownFields
public final JwtLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
-