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<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.GeneratedMessage.Builder<JwtLocation.Builder>
implements JwtLocationOrBuilder
Specifies a location to extract JWT from an API request.Protobuf type
google.api.JwtLocation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Specifies cookie name to extract JWT token.Specifies HTTP header name to extract JWT token.clearIn()Specifies URL query parameter name to extract JWT token.The value prefix.Specifies cookie name to extract JWT token.com.google.protobuf.ByteStringSpecifies cookie name to extract JWT token.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies HTTP header name to extract JWT token.com.google.protobuf.ByteStringSpecifies HTTP header name to extract JWT token.getQuery()Specifies URL query parameter name to extract JWT token.com.google.protobuf.ByteStringSpecifies URL query parameter name to extract JWT token.The value prefix.com.google.protobuf.ByteStringThe value prefix.booleanSpecifies cookie name to extract JWT token.booleanSpecifies HTTP header name to extract JWT token.booleanhasQuery()Specifies URL query parameter name to extract JWT token.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(JwtLocation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Specifies cookie name to extract JWT token.setCookieBytes(com.google.protobuf.ByteString value) Specifies cookie name to extract JWT token.Specifies HTTP header name to extract JWT token.setHeaderBytes(com.google.protobuf.ByteString value) Specifies HTTP header name to extract JWT token.Specifies URL query parameter name to extract JWT token.setQueryBytes(com.google.protobuf.ByteString value) Specifies URL query parameter name to extract JWT token.setValuePrefix(String value) The value prefix.setValuePrefixBytes(com.google.protobuf.ByteString value) The value prefix.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, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<JwtLocation.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<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.GeneratedMessage.Builder<JwtLocation.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<JwtLocation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
- Specified by:
getInCasein interfaceJwtLocationOrBuilder
-
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
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
Specifies HTTP header name to extract JWT token.
string header = 1;- Parameters:
value- The header to set.- Returns:
- This builder for chaining.
-
clearHeader
Specifies HTTP header name to extract JWT token.
string header = 1;- Returns:
- This builder for chaining.
-
setHeaderBytes
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
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
Specifies URL query parameter name to extract JWT token.
string query = 2;- Parameters:
value- The query to set.- Returns:
- This builder for chaining.
-
clearQuery
Specifies URL query parameter name to extract JWT token.
string query = 2;- Returns:
- This builder for chaining.
-
setQueryBytes
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
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
Specifies cookie name to extract JWT token.
string cookie = 4;- Parameters:
value- The cookie to set.- Returns:
- This builder for chaining.
-
clearCookie
Specifies cookie name to extract JWT token.
string cookie = 4;- Returns:
- This builder for chaining.
-
setCookieBytes
Specifies cookie name to extract JWT token.
string cookie = 4;- Parameters:
value- The bytes for cookie to set.- Returns:
- This builder for chaining.
-
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
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
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
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.
-