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 type google.api.JwtLocation
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
    • clear

      public JwtLocation.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
    • getDefaultInstanceForType

      public JwtLocation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public JwtLocation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public JwtLocation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public JwtLocation.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
    • setField

      public JwtLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
    • clearField

      public JwtLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
    • clearOneof

      public JwtLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
    • setRepeatedField

      public JwtLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
    • addRepeatedField

      public JwtLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
    • mergeFrom

      public JwtLocation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<JwtLocation.Builder>
    • mergeFrom

      public JwtLocation.Builder mergeFrom(JwtLocation other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<JwtLocation.Builder>
      Throws:
      IOException
    • getInCase

      public JwtLocation.InCase getInCase()
      Specified by:
      getInCase in interface JwtLocationOrBuilder
    • clearIn

      public JwtLocation.Builder clearIn()
    • hasHeader

      public boolean hasHeader()
       Specifies HTTP header name to extract JWT token.
       
      string header = 1;
      Specified by:
      hasHeader in interface JwtLocationOrBuilder
      Returns:
      Whether the header field is set.
    • getHeader

      public String getHeader()
       Specifies HTTP header name to extract JWT token.
       
      string header = 1;
      Specified by:
      getHeader in interface JwtLocationOrBuilder
      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 interface JwtLocationOrBuilder
      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:
      hasQuery in interface JwtLocationOrBuilder
      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:
      getQuery in interface JwtLocationOrBuilder
      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 interface JwtLocationOrBuilder
      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.
    • 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:
      getValuePrefix in interface JwtLocationOrBuilder
      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 interface JwtLocationOrBuilder
      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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>
    • mergeUnknownFields

      public final JwtLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<JwtLocation.Builder>