Class GcpAuthnFilterConfig

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GcpAuthnFilterConfigOrBuilder, Serializable

    public final class GcpAuthnFilterConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements GcpAuthnFilterConfigOrBuilder
     Filter configuration.
     
    Protobuf type envoy.extensions.filters.http.gcp_authn.v3.GcpAuthnFilterConfig
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • 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
      • hasHttpUri

        public boolean hasHttpUri()
         The HTTP URI to fetch tokens from GCE Metadata Server(https://cloud.google.com/compute/docs/metadata/overview).
         The URL format is "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity?audience=[AUDIENCE]"
         
        .envoy.config.core.v3.HttpUri http_uri = 1 [(.validate.rules) = { ... }
        Specified by:
        hasHttpUri in interface GcpAuthnFilterConfigOrBuilder
        Returns:
        Whether the httpUri field is set.
      • getHttpUri

        public HttpUri getHttpUri()
         The HTTP URI to fetch tokens from GCE Metadata Server(https://cloud.google.com/compute/docs/metadata/overview).
         The URL format is "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity?audience=[AUDIENCE]"
         
        .envoy.config.core.v3.HttpUri http_uri = 1 [(.validate.rules) = { ... }
        Specified by:
        getHttpUri in interface GcpAuthnFilterConfigOrBuilder
        Returns:
        The httpUri.
      • getHttpUriOrBuilder

        public HttpUriOrBuilder getHttpUriOrBuilder()
         The HTTP URI to fetch tokens from GCE Metadata Server(https://cloud.google.com/compute/docs/metadata/overview).
         The URL format is "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/identity?audience=[AUDIENCE]"
         
        .envoy.config.core.v3.HttpUri http_uri = 1 [(.validate.rules) = { ... }
        Specified by:
        getHttpUriOrBuilder in interface GcpAuthnFilterConfigOrBuilder
      • hasRetryPolicy

        public boolean hasRetryPolicy()
         Retry policy for fetching tokens. This field is optional.
         
        .envoy.config.core.v3.RetryPolicy retry_policy = 2;
        Specified by:
        hasRetryPolicy in interface GcpAuthnFilterConfigOrBuilder
        Returns:
        Whether the retryPolicy field is set.
      • hasCacheConfig

        public boolean hasCacheConfig()
         Token cache configuration. This field is optional.
         
        .envoy.extensions.filters.http.gcp_authn.v3.TokenCacheConfig cache_config = 3;
        Specified by:
        hasCacheConfig in interface GcpAuthnFilterConfigOrBuilder
        Returns:
        Whether the cacheConfig field is set.
      • hasTokenHeader

        public boolean hasTokenHeader()
         Request header location to extract the token. By default (i.e. if this field is not specified), the token
         is extracted to the Authorization HTTP header, in the format "Authorization: Bearer <token>".
         
        .envoy.extensions.filters.http.gcp_authn.v3.TokenHeader token_header = 4;
        Specified by:
        hasTokenHeader in interface GcpAuthnFilterConfigOrBuilder
        Returns:
        Whether the tokenHeader field is set.
      • getTokenHeader

        public TokenHeader getTokenHeader()
         Request header location to extract the token. By default (i.e. if this field is not specified), the token
         is extracted to the Authorization HTTP header, in the format "Authorization: Bearer <token>".
         
        .envoy.extensions.filters.http.gcp_authn.v3.TokenHeader token_header = 4;
        Specified by:
        getTokenHeader in interface GcpAuthnFilterConfigOrBuilder
        Returns:
        The tokenHeader.
      • getTokenHeaderOrBuilder

        public TokenHeaderOrBuilder getTokenHeaderOrBuilder()
         Request header location to extract the token. By default (i.e. if this field is not specified), the token
         is extracted to the Authorization HTTP header, in the format "Authorization: Bearer <token>".
         
        .envoy.extensions.filters.http.gcp_authn.v3.TokenHeader token_header = 4;
        Specified by:
        getTokenHeaderOrBuilder in interface GcpAuthnFilterConfigOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static GcpAuthnFilterConfig parseFrom​(ByteBuffer data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GcpAuthnFilterConfig parseFrom​(ByteBuffer data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GcpAuthnFilterConfig parseFrom​(com.google.protobuf.ByteString data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GcpAuthnFilterConfig parseFrom​(com.google.protobuf.ByteString data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GcpAuthnFilterConfig parseFrom​(byte[] data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GcpAuthnFilterConfig parseFrom​(byte[] data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public GcpAuthnFilterConfig.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public GcpAuthnFilterConfig.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected GcpAuthnFilterConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<GcpAuthnFilterConfig> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public GcpAuthnFilterConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder