Class CookieConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CookieConfig.Builder>
io.envoyproxy.envoy.extensions.filters.http.oauth2.v3.CookieConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CookieConfigOrBuilder,Cloneable
- Enclosing class:
- CookieConfig
public static final class CookieConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CookieConfig.Builder>
implements CookieConfigOrBuilder
OAuth cookie configuration attributes.Protobuf type
envoy.extensions.filters.http.oauth2.v3.CookieConfig-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If true, the ``Partitioned`` attribute will be set on the cookie.The path attribute for the cookie.The value used for the SameSite cookie attribute.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIf true, the ``Partitioned`` attribute will be set on the cookie.getPath()The path attribute for the cookie.com.google.protobuf.ByteStringThe path attribute for the cookie.The value used for the SameSite cookie attribute.intThe value used for the SameSite cookie attribute.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(CookieConfig other) final CookieConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setPartitioned(boolean value) If true, the ``Partitioned`` attribute will be set on the cookie.The path attribute for the cookie.setPathBytes(com.google.protobuf.ByteString value) The path attribute for the cookie.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSameSite(CookieConfig.SameSite value) The value used for the SameSite cookie attribute.setSameSiteValue(int value) The value used for the SameSite cookie attribute.final CookieConfig.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<CookieConfig.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<CookieConfig.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<CookieConfig.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<CookieConfig.Builder>
-
setField
public CookieConfig.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<CookieConfig.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CookieConfig.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CookieConfig.Builder>
-
setRepeatedField
public CookieConfig.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<CookieConfig.Builder>
-
addRepeatedField
public CookieConfig.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<CookieConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CookieConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CookieConfig.Builder>
-
mergeFrom
public CookieConfig.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<CookieConfig.Builder>- Throws:
IOException
-
getSameSiteValue
public int getSameSiteValue()The value used for the SameSite cookie attribute.
.envoy.extensions.filters.http.oauth2.v3.CookieConfig.SameSite same_site = 1 [(.validate.rules) = { ... }- Specified by:
getSameSiteValuein interfaceCookieConfigOrBuilder- Returns:
- The enum numeric value on the wire for sameSite.
-
setSameSiteValue
The value used for the SameSite cookie attribute.
.envoy.extensions.filters.http.oauth2.v3.CookieConfig.SameSite same_site = 1 [(.validate.rules) = { ... }- Parameters:
value- The enum numeric value on the wire for sameSite to set.- Returns:
- This builder for chaining.
-
getSameSite
The value used for the SameSite cookie attribute.
.envoy.extensions.filters.http.oauth2.v3.CookieConfig.SameSite same_site = 1 [(.validate.rules) = { ... }- Specified by:
getSameSitein interfaceCookieConfigOrBuilder- Returns:
- The sameSite.
-
setSameSite
The value used for the SameSite cookie attribute.
.envoy.extensions.filters.http.oauth2.v3.CookieConfig.SameSite same_site = 1 [(.validate.rules) = { ... }- Parameters:
value- The sameSite to set.- Returns:
- This builder for chaining.
-
clearSameSite
The value used for the SameSite cookie attribute.
.envoy.extensions.filters.http.oauth2.v3.CookieConfig.SameSite same_site = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
getPath
The path attribute for the cookie. This controls the scope of the cookie and is useful for path-based routing scenarios where different logical boundaries or applications may operate with different OAuth2 clients. The CSRF cookie (nonce cookie) can be configured with a different path than session cookies to support flows where the callback URL is on a different path. If not specified, defaults to ``/``.
string path = 2 [(.validate.rules) = { ... }- Specified by:
getPathin interfaceCookieConfigOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()The path attribute for the cookie. This controls the scope of the cookie and is useful for path-based routing scenarios where different logical boundaries or applications may operate with different OAuth2 clients. The CSRF cookie (nonce cookie) can be configured with a different path than session cookies to support flows where the callback URL is on a different path. If not specified, defaults to ``/``.
string path = 2 [(.validate.rules) = { ... }- Specified by:
getPathBytesin interfaceCookieConfigOrBuilder- Returns:
- The bytes for path.
-
setPath
The path attribute for the cookie. This controls the scope of the cookie and is useful for path-based routing scenarios where different logical boundaries or applications may operate with different OAuth2 clients. The CSRF cookie (nonce cookie) can be configured with a different path than session cookies to support flows where the callback URL is on a different path. If not specified, defaults to ``/``.
string path = 2 [(.validate.rules) = { ... }- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
The path attribute for the cookie. This controls the scope of the cookie and is useful for path-based routing scenarios where different logical boundaries or applications may operate with different OAuth2 clients. The CSRF cookie (nonce cookie) can be configured with a different path than session cookies to support flows where the callback URL is on a different path. If not specified, defaults to ``/``.
string path = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setPathBytes
The path attribute for the cookie. This controls the scope of the cookie and is useful for path-based routing scenarios where different logical boundaries or applications may operate with different OAuth2 clients. The CSRF cookie (nonce cookie) can be configured with a different path than session cookies to support flows where the callback URL is on a different path. If not specified, defaults to ``/``.
string path = 2 [(.validate.rules) = { ... }- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
getPartitioned
public boolean getPartitioned()If true, the ``Partitioned`` attribute will be set on the cookie. Modern browsers (Firefox, Chrome with third-party cookie deprecation) warn or block "foreign" cookies unless they carry the ``Partitioned`` attribute alongside ``SameSite=None; Secure``. When Envoy is used in a gateway/IdP flow that sets OAuth/OIDC cookies for a parent domain (e.g., ``Domain=.example.com``) while running on a different host, those cookies are considered third-party and will be rejected without ``Partitioned``. See `CHIPS <https://developers.google.com/privacy-sandbox/3pcd/chips>`_ for more information. Default is false.
bool partitioned = 3;- Specified by:
getPartitionedin interfaceCookieConfigOrBuilder- Returns:
- The partitioned.
-
setPartitioned
If true, the ``Partitioned`` attribute will be set on the cookie. Modern browsers (Firefox, Chrome with third-party cookie deprecation) warn or block "foreign" cookies unless they carry the ``Partitioned`` attribute alongside ``SameSite=None; Secure``. When Envoy is used in a gateway/IdP flow that sets OAuth/OIDC cookies for a parent domain (e.g., ``Domain=.example.com``) while running on a different host, those cookies are considered third-party and will be rejected without ``Partitioned``. See `CHIPS <https://developers.google.com/privacy-sandbox/3pcd/chips>`_ for more information. Default is false.
bool partitioned = 3;- Parameters:
value- The partitioned to set.- Returns:
- This builder for chaining.
-
clearPartitioned
If true, the ``Partitioned`` attribute will be set on the cookie. Modern browsers (Firefox, Chrome with third-party cookie deprecation) warn or block "foreign" cookies unless they carry the ``Partitioned`` attribute alongside ``SameSite=None; Secure``. When Envoy is used in a gateway/IdP flow that sets OAuth/OIDC cookies for a parent domain (e.g., ``Domain=.example.com``) while running on a different host, those cookies are considered third-party and will be rejected without ``Partitioned``. See `CHIPS <https://developers.google.com/privacy-sandbox/3pcd/chips>`_ for more information. Default is false.
bool partitioned = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final CookieConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CookieConfig.Builder>
-
mergeUnknownFields
public final CookieConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CookieConfig.Builder>
-