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 type
google.api.JwtLocation| Modifier and Type | Method and Description |
|---|---|
JwtLocation.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
JwtLocation |
build() |
JwtLocation |
buildPartial() |
JwtLocation.Builder |
clear() |
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() |
JwtLocation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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() |
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.
|
String |
getValuePrefix()
The value prefix.
|
com.google.protobuf.ByteString |
getValuePrefixBytes()
The value prefix.
|
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(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
JwtLocation.Builder |
mergeFrom(JwtLocation other) |
JwtLocation.Builder |
mergeFrom(com.google.protobuf.Message other) |
JwtLocation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
JwtLocation.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
JwtLocation.Builder |
setHeader(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(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,
Object value) |
JwtLocation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
JwtLocation.Builder |
setValuePrefix(String value)
The value prefix.
|
JwtLocation.Builder |
setValuePrefixBytes(com.google.protobuf.ByteString value)
The value prefix.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>public JwtLocation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>public JwtLocation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic JwtLocation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic JwtLocation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic JwtLocation.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>public JwtLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>public JwtLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>public JwtLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>public JwtLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>public JwtLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>public JwtLocation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<JwtLocation.Builder>public JwtLocation.Builder mergeFrom(JwtLocation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>public JwtLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<JwtLocation.Builder>IOExceptionpublic JwtLocation.InCase getInCase()
getInCase in interface JwtLocationOrBuilderpublic JwtLocation.Builder clearIn()
public boolean hasHeader()
Specifies HTTP header name to extract JWT token.
string header = 1;hasHeader in interface JwtLocationOrBuilderpublic String getHeader()
Specifies HTTP header name to extract JWT token.
string header = 1;getHeader in interface JwtLocationOrBuilderpublic com.google.protobuf.ByteString getHeaderBytes()
Specifies HTTP header name to extract JWT token.
string header = 1;getHeaderBytes in interface JwtLocationOrBuilderpublic JwtLocation.Builder setHeader(String value)
Specifies HTTP header name to extract JWT token.
string header = 1;value - The header to set.public JwtLocation.Builder clearHeader()
Specifies HTTP header name to extract JWT token.
string header = 1;public JwtLocation.Builder setHeaderBytes(com.google.protobuf.ByteString value)
Specifies HTTP header name to extract JWT token.
string header = 1;value - The bytes for header to set.public boolean hasQuery()
Specifies URL query parameter name to extract JWT token.
string query = 2;hasQuery in interface JwtLocationOrBuilderpublic String getQuery()
Specifies URL query parameter name to extract JWT token.
string query = 2;getQuery in interface JwtLocationOrBuilderpublic com.google.protobuf.ByteString getQueryBytes()
Specifies URL query parameter name to extract JWT token.
string query = 2;getQueryBytes in interface JwtLocationOrBuilderpublic JwtLocation.Builder setQuery(String value)
Specifies URL query parameter name to extract JWT token.
string query = 2;value - The query to set.public JwtLocation.Builder clearQuery()
Specifies URL query parameter name to extract JWT token.
string query = 2;public JwtLocation.Builder setQueryBytes(com.google.protobuf.ByteString value)
Specifies URL query parameter name to extract JWT token.
string query = 2;value - The bytes for query to set.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;getValuePrefix in interface JwtLocationOrBuilderpublic 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;getValuePrefixBytes in interface JwtLocationOrBuilderpublic 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;value - The valuePrefix to set.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;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;value - The bytes for valuePrefix to set.public final JwtLocation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>public final JwtLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>Copyright © 2022 Google LLC. All rights reserved.