Class Generic.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Generic.Builder>
io.envoyproxy.envoy.extensions.http.injected_credentials.generic.v3.Generic.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GenericOrBuilder,Cloneable
- Enclosing class:
- Generic
public static final class Generic.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Generic.Builder>
implements GenericOrBuilder
Generic extension can be used to inject HTTP Basic Auth, Bearer Token, or any arbitrary credential into the proxied requests. The credential will be injected into the specified HTTP request header. Refer to [RFC 6750: The OAuth 2.0 Authorization Framework: Bearer Token Usage](https://www.rfc-editor.org/rfc/rfc6750) for details.Protobuf type
envoy.extensions.http.injected_credentials.generic.v3.Generic-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The SDS configuration for the credential that will be injected to the specified HTTP request header.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The header that will be injected to the HTTP request with the provided credential.The prefix to prepend to the credential value before injecting it into the header.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()The SDS configuration for the credential that will be injected to the specified HTTP request header.The SDS configuration for the credential that will be injected to the specified HTTP request header.The SDS configuration for the credential that will be injected to the specified HTTP request header.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe header that will be injected to the HTTP request with the provided credential.com.google.protobuf.ByteStringThe header that will be injected to the HTTP request with the provided credential.The prefix to prepend to the credential value before injecting it into the header.com.google.protobuf.ByteStringThe prefix to prepend to the credential value before injecting it into the header.booleanThe SDS configuration for the credential that will be injected to the specified HTTP request header.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeCredential(SdsSecretConfig value) The SDS configuration for the credential that will be injected to the specified HTTP request header.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Generic.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCredential(SdsSecretConfig value) The SDS configuration for the credential that will be injected to the specified HTTP request header.setCredential(SdsSecretConfig.Builder builderForValue) The SDS configuration for the credential that will be injected to the specified HTTP request header.The header that will be injected to the HTTP request with the provided credential.setHeaderBytes(com.google.protobuf.ByteString value) The header that will be injected to the HTTP request with the provided credential.setHeaderValuePrefix(String value) The prefix to prepend to the credential value before injecting it into the header.setHeaderValuePrefixBytes(com.google.protobuf.ByteString value) The prefix to prepend to the credential value before injecting it into the header.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final Generic.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Generic.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Generic.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.GeneratedMessageV3.Builder<Generic.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Generic.Builder>
-
setField
public Generic.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generic.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generic.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generic.Builder>
-
setRepeatedField
public Generic.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generic.Builder>
-
addRepeatedField
public Generic.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generic.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generic.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generic.Builder>
-
mergeFrom
public Generic.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<Generic.Builder>- Throws:
IOException
-
hasCredential
public boolean hasCredential()The SDS configuration for the credential that will be injected to the specified HTTP request header. It must be a generic secret.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig credential = 1 [(.validate.rules) = { ... }- Specified by:
hasCredentialin interfaceGenericOrBuilder- Returns:
- Whether the credential field is set.
-
getCredential
The SDS configuration for the credential that will be injected to the specified HTTP request header. It must be a generic secret.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig credential = 1 [(.validate.rules) = { ... }- Specified by:
getCredentialin interfaceGenericOrBuilder- Returns:
- The credential.
-
setCredential
The SDS configuration for the credential that will be injected to the specified HTTP request header. It must be a generic secret.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig credential = 1 [(.validate.rules) = { ... } -
setCredential
The SDS configuration for the credential that will be injected to the specified HTTP request header. It must be a generic secret.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig credential = 1 [(.validate.rules) = { ... } -
mergeCredential
The SDS configuration for the credential that will be injected to the specified HTTP request header. It must be a generic secret.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig credential = 1 [(.validate.rules) = { ... } -
clearCredential
The SDS configuration for the credential that will be injected to the specified HTTP request header. It must be a generic secret.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig credential = 1 [(.validate.rules) = { ... } -
getCredentialBuilder
The SDS configuration for the credential that will be injected to the specified HTTP request header. It must be a generic secret.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig credential = 1 [(.validate.rules) = { ... } -
getCredentialOrBuilder
The SDS configuration for the credential that will be injected to the specified HTTP request header. It must be a generic secret.
.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig credential = 1 [(.validate.rules) = { ... }- Specified by:
getCredentialOrBuilderin interfaceGenericOrBuilder
-
getHeader
The header that will be injected to the HTTP request with the provided credential. If not set, filter will default to: ``Authorization``
string header = 2 [(.validate.rules) = { ... }- Specified by:
getHeaderin interfaceGenericOrBuilder- Returns:
- The header.
-
getHeaderBytes
public com.google.protobuf.ByteString getHeaderBytes()The header that will be injected to the HTTP request with the provided credential. If not set, filter will default to: ``Authorization``
string header = 2 [(.validate.rules) = { ... }- Specified by:
getHeaderBytesin interfaceGenericOrBuilder- Returns:
- The bytes for header.
-
setHeader
The header that will be injected to the HTTP request with the provided credential. If not set, filter will default to: ``Authorization``
string header = 2 [(.validate.rules) = { ... }- Parameters:
value- The header to set.- Returns:
- This builder for chaining.
-
clearHeader
The header that will be injected to the HTTP request with the provided credential. If not set, filter will default to: ``Authorization``
string header = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setHeaderBytes
The header that will be injected to the HTTP request with the provided credential. If not set, filter will default to: ``Authorization``
string header = 2 [(.validate.rules) = { ... }- Parameters:
value- The bytes for header to set.- Returns:
- This builder for chaining.
-
getHeaderValuePrefix
The prefix to prepend to the credential value before injecting it into the header. This is useful for adding a scheme such as ``Bearer `` or ``Basic `` to the credential. For example, if the credential is ``xyz123`` and the prefix is ``Bearer ``, the final header value will be ``Bearer xyz123``. If not set, the raw credential value will be injected without any prefix.
string header_value_prefix = 3;- Specified by:
getHeaderValuePrefixin interfaceGenericOrBuilder- Returns:
- The headerValuePrefix.
-
getHeaderValuePrefixBytes
public com.google.protobuf.ByteString getHeaderValuePrefixBytes()The prefix to prepend to the credential value before injecting it into the header. This is useful for adding a scheme such as ``Bearer `` or ``Basic `` to the credential. For example, if the credential is ``xyz123`` and the prefix is ``Bearer ``, the final header value will be ``Bearer xyz123``. If not set, the raw credential value will be injected without any prefix.
string header_value_prefix = 3;- Specified by:
getHeaderValuePrefixBytesin interfaceGenericOrBuilder- Returns:
- The bytes for headerValuePrefix.
-
setHeaderValuePrefix
The prefix to prepend to the credential value before injecting it into the header. This is useful for adding a scheme such as ``Bearer `` or ``Basic `` to the credential. For example, if the credential is ``xyz123`` and the prefix is ``Bearer ``, the final header value will be ``Bearer xyz123``. If not set, the raw credential value will be injected without any prefix.
string header_value_prefix = 3;- Parameters:
value- The headerValuePrefix to set.- Returns:
- This builder for chaining.
-
clearHeaderValuePrefix
The prefix to prepend to the credential value before injecting it into the header. This is useful for adding a scheme such as ``Bearer `` or ``Basic `` to the credential. For example, if the credential is ``xyz123`` and the prefix is ``Bearer ``, the final header value will be ``Bearer xyz123``. If not set, the raw credential value will be injected without any prefix.
string header_value_prefix = 3;- Returns:
- This builder for chaining.
-
setHeaderValuePrefixBytes
The prefix to prepend to the credential value before injecting it into the header. This is useful for adding a scheme such as ``Bearer `` or ``Basic `` to the credential. For example, if the credential is ``xyz123`` and the prefix is ``Bearer ``, the final header value will be ``Bearer xyz123``. If not set, the raw credential value will be injected without any prefix.
string header_value_prefix = 3;- Parameters:
value- The bytes for headerValuePrefix to set.- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generic.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generic.Builder>
-