Package com.google.api
Class JwtLocation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
- com.google.api.JwtLocation.Builder
-
- All Implemented Interfaces:
JwtLocationOrBuilder
,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
JwtLocation
build()
JwtLocation
buildPartial()
JwtLocation.Builder
clear()
JwtLocation.Builder
clearCookie()
Specifies cookie name to extract JWT token.JwtLocation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
JwtLocation.Builder
clearHeader()
Specifies HTTP header name to extract JWT token.JwtLocation.Builder
clearIn()
JwtLocation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
JwtLocation.Builder
clearQuery()
Specifies URL query parameter name to extract JWT token.JwtLocation.Builder
clearValuePrefix()
The value prefix.JwtLocation.Builder
clone()
java.lang.String
getCookie()
Specifies cookie name to extract JWT token.com.google.protobuf.ByteString
getCookieBytes()
Specifies cookie name to extract JWT token.JwtLocation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getHeader()
Specifies HTTP header name to extract JWT token.com.google.protobuf.ByteString
getHeaderBytes()
Specifies HTTP header name to extract JWT token.JwtLocation.InCase
getInCase()
java.lang.String
getQuery()
Specifies URL query parameter name to extract JWT token.com.google.protobuf.ByteString
getQueryBytes()
Specifies URL query parameter name to extract JWT token.java.lang.String
getValuePrefix()
The value prefix.com.google.protobuf.ByteString
getValuePrefixBytes()
The value prefix.boolean
hasCookie()
Specifies cookie name to extract JWT token.boolean
hasHeader()
Specifies HTTP header name to extract JWT token.boolean
hasQuery()
Specifies URL query parameter name to extract JWT token.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
JwtLocation.Builder
mergeFrom(JwtLocation other)
JwtLocation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
JwtLocation.Builder
mergeFrom(com.google.protobuf.Message other)
JwtLocation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
JwtLocation.Builder
setCookie(java.lang.String value)
Specifies cookie name to extract JWT token.JwtLocation.Builder
setCookieBytes(com.google.protobuf.ByteString value)
Specifies cookie name to extract JWT token.JwtLocation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
JwtLocation.Builder
setHeader(java.lang.String value)
Specifies HTTP header name to extract JWT token.JwtLocation.Builder
setHeaderBytes(com.google.protobuf.ByteString value)
Specifies HTTP header name to extract JWT token.JwtLocation.Builder
setQuery(java.lang.String value)
Specifies URL query parameter name to extract JWT token.JwtLocation.Builder
setQueryBytes(com.google.protobuf.ByteString value)
Specifies URL query parameter name to extract JWT token.JwtLocation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
JwtLocation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
JwtLocation.Builder
setValuePrefix(java.lang.String value)
The value prefix.JwtLocation.Builder
setValuePrefixBytes(com.google.protobuf.ByteString value)
The value prefix.-
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, 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()
- Overrides:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
clear
public JwtLocation.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.GeneratedMessageV3.Builder<JwtLocation.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<JwtLocation.Builder>
-
getDefaultInstanceForType
public JwtLocation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public JwtLocation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public JwtLocation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public JwtLocation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
setField
public JwtLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
clearField
public JwtLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
clearOneof
public JwtLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
setRepeatedField
public JwtLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
addRepeatedField
public JwtLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
mergeFrom
public JwtLocation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<JwtLocation.Builder>
-
mergeFrom
public JwtLocation.Builder mergeFrom(JwtLocation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,JwtLocation.Builder>
-
mergeFrom
public JwtLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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<JwtLocation.Builder>
- Throws:
java.io.IOException
-
getInCase
public JwtLocation.InCase getInCase()
- Specified by:
getInCase
in interfaceJwtLocationOrBuilder
-
clearIn
public JwtLocation.Builder clearIn()
-
hasHeader
public boolean hasHeader()
Specifies HTTP header name to extract JWT token.
string header = 1;
- Specified by:
hasHeader
in interfaceJwtLocationOrBuilder
- Returns:
- Whether the header field is set.
-
getHeader
public java.lang.String getHeader()
Specifies HTTP header name to extract JWT token.
string header = 1;
- Specified by:
getHeader
in interfaceJwtLocationOrBuilder
- Returns:
- The header.
-
getHeaderBytes
public com.google.protobuf.ByteString getHeaderBytes()
Specifies HTTP header name to extract JWT token.
string header = 1;
- Specified by:
getHeaderBytes
in interfaceJwtLocationOrBuilder
- Returns:
- The bytes for header.
-
setHeader
public JwtLocation.Builder setHeader(java.lang.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:
hasQuery
in interfaceJwtLocationOrBuilder
- Returns:
- Whether the query field is set.
-
getQuery
public java.lang.String getQuery()
Specifies URL query parameter name to extract JWT token.
string query = 2;
- Specified by:
getQuery
in 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:
getQueryBytes
in interfaceJwtLocationOrBuilder
- Returns:
- The bytes for query.
-
setQuery
public JwtLocation.Builder setQuery(java.lang.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:
hasCookie
in interfaceJwtLocationOrBuilder
- Returns:
- Whether the cookie field is set.
-
getCookie
public java.lang.String getCookie()
Specifies cookie name to extract JWT token.
string cookie = 4;
- Specified by:
getCookie
in interfaceJwtLocationOrBuilder
- Returns:
- The cookie.
-
getCookieBytes
public com.google.protobuf.ByteString getCookieBytes()
Specifies cookie name to extract JWT token.
string cookie = 4;
- Specified by:
getCookieBytes
in interfaceJwtLocationOrBuilder
- Returns:
- The bytes for cookie.
-
setCookie
public JwtLocation.Builder setCookie(java.lang.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 java.lang.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:
getValuePrefix
in 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:
getValuePrefixBytes
in interfaceJwtLocationOrBuilder
- Returns:
- The bytes for valuePrefix.
-
setValuePrefix
public JwtLocation.Builder setValuePrefix(java.lang.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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
mergeUnknownFields
public final JwtLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
-
-