Package io.envoyproxy.envoy.type.http.v3
Class Cookie.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
io.envoyproxy.envoy.type.http.v3.Cookie.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CookieOrBuilder,Cloneable
- Enclosing class:
- Cookie
public static final class Cookie.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
implements CookieOrBuilder
Cookie defines an API for obtaining or generating HTTP cookie.Protobuf type
envoy.type.http.v3.Cookie-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttributes(Iterable<? extends CookieAttribute> values) Additional attributes for the cookie.addAttributes(int index, CookieAttribute value) Additional attributes for the cookie.addAttributes(int index, CookieAttribute.Builder builderForValue) Additional attributes for the cookie.addAttributes(CookieAttribute value) Additional attributes for the cookie.addAttributes(CookieAttribute.Builder builderForValue) Additional attributes for the cookie.Additional attributes for the cookie.addAttributesBuilder(int index) Additional attributes for the cookie.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Additional attributes for the cookie.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The name that will be used to obtain cookie value from downstream HTTP request or generate new cookie for downstream.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Path of cookie.clearTtl()Duration of cookie.clone()getAttributes(int index) Additional attributes for the cookie.getAttributesBuilder(int index) Additional attributes for the cookie.Additional attributes for the cookie.intAdditional attributes for the cookie.Additional attributes for the cookie.getAttributesOrBuilder(int index) Additional attributes for the cookie.List<? extends CookieAttributeOrBuilder>Additional attributes for the cookie.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()The name that will be used to obtain cookie value from downstream HTTP request or generate new cookie for downstream.com.google.protobuf.ByteStringThe name that will be used to obtain cookie value from downstream HTTP request or generate new cookie for downstream.getPath()Path of cookie.com.google.protobuf.ByteStringPath of cookie.com.google.protobuf.DurationgetTtl()Duration of cookie.com.google.protobuf.Duration.BuilderDuration of cookie.com.google.protobuf.DurationOrBuilderDuration of cookie.booleanhasTtl()Duration of cookie.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTtl(com.google.protobuf.Duration value) Duration of cookie.final Cookie.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAttributes(int index) Additional attributes for the cookie.setAttributes(int index, CookieAttribute value) Additional attributes for the cookie.setAttributes(int index, CookieAttribute.Builder builderForValue) Additional attributes for the cookie.The name that will be used to obtain cookie value from downstream HTTP request or generate new cookie for downstream.setNameBytes(com.google.protobuf.ByteString value) The name that will be used to obtain cookie value from downstream HTTP request or generate new cookie for downstream.Path of cookie.setPathBytes(com.google.protobuf.ByteString value) Path of cookie.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTtl(com.google.protobuf.Duration value) Duration of cookie.setTtl(com.google.protobuf.Duration.Builder builderForValue) Duration of cookie.final Cookie.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<Cookie.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<Cookie.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<Cookie.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<Cookie.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
-
setRepeatedField
public Cookie.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<Cookie.Builder>
-
addRepeatedField
public Cookie.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<Cookie.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Cookie.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
-
mergeFrom
public Cookie.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<Cookie.Builder>- Throws:
IOException
-
getName
The name that will be used to obtain cookie value from downstream HTTP request or generate new cookie for downstream.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNamein interfaceCookieOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name that will be used to obtain cookie value from downstream HTTP request or generate new cookie for downstream.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNameBytesin interfaceCookieOrBuilder- Returns:
- The bytes for name.
-
setName
The name that will be used to obtain cookie value from downstream HTTP request or generate new cookie for downstream.
string name = 1 [(.validate.rules) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name that will be used to obtain cookie value from downstream HTTP request or generate new cookie for downstream.
string name = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
The name that will be used to obtain cookie value from downstream HTTP request or generate new cookie for downstream.
string name = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasTtl
public boolean hasTtl()Duration of cookie. This will be used to set the expiry time of a new cookie when it is generated. Set this to 0s to use a session cookie and disable cookie expiration.
.google.protobuf.Duration ttl = 2 [(.validate.rules) = { ... }- Specified by:
hasTtlin interfaceCookieOrBuilder- Returns:
- Whether the ttl field is set.
-
getTtl
public com.google.protobuf.Duration getTtl()Duration of cookie. This will be used to set the expiry time of a new cookie when it is generated. Set this to 0s to use a session cookie and disable cookie expiration.
.google.protobuf.Duration ttl = 2 [(.validate.rules) = { ... }- Specified by:
getTtlin interfaceCookieOrBuilder- Returns:
- The ttl.
-
setTtl
Duration of cookie. This will be used to set the expiry time of a new cookie when it is generated. Set this to 0s to use a session cookie and disable cookie expiration.
.google.protobuf.Duration ttl = 2 [(.validate.rules) = { ... } -
setTtl
Duration of cookie. This will be used to set the expiry time of a new cookie when it is generated. Set this to 0s to use a session cookie and disable cookie expiration.
.google.protobuf.Duration ttl = 2 [(.validate.rules) = { ... } -
mergeTtl
Duration of cookie. This will be used to set the expiry time of a new cookie when it is generated. Set this to 0s to use a session cookie and disable cookie expiration.
.google.protobuf.Duration ttl = 2 [(.validate.rules) = { ... } -
clearTtl
Duration of cookie. This will be used to set the expiry time of a new cookie when it is generated. Set this to 0s to use a session cookie and disable cookie expiration.
.google.protobuf.Duration ttl = 2 [(.validate.rules) = { ... } -
getTtlBuilder
public com.google.protobuf.Duration.Builder getTtlBuilder()Duration of cookie. This will be used to set the expiry time of a new cookie when it is generated. Set this to 0s to use a session cookie and disable cookie expiration.
.google.protobuf.Duration ttl = 2 [(.validate.rules) = { ... } -
getTtlOrBuilder
public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()Duration of cookie. This will be used to set the expiry time of a new cookie when it is generated. Set this to 0s to use a session cookie and disable cookie expiration.
.google.protobuf.Duration ttl = 2 [(.validate.rules) = { ... }- Specified by:
getTtlOrBuilderin interfaceCookieOrBuilder
-
getPath
Path of cookie. This will be used to set the path of a new cookie when it is generated. If no path is specified here, no path will be set for the cookie.
string path = 3;- Specified by:
getPathin interfaceCookieOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()Path of cookie. This will be used to set the path of a new cookie when it is generated. If no path is specified here, no path will be set for the cookie.
string path = 3;- Specified by:
getPathBytesin interfaceCookieOrBuilder- Returns:
- The bytes for path.
-
setPath
Path of cookie. This will be used to set the path of a new cookie when it is generated. If no path is specified here, no path will be set for the cookie.
string path = 3;- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
Path of cookie. This will be used to set the path of a new cookie when it is generated. If no path is specified here, no path will be set for the cookie.
string path = 3;- Returns:
- This builder for chaining.
-
setPathBytes
Path of cookie. This will be used to set the path of a new cookie when it is generated. If no path is specified here, no path will be set for the cookie.
string path = 3;- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
getAttributesList
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4;- Specified by:
getAttributesListin interfaceCookieOrBuilder
-
getAttributesCount
public int getAttributesCount()Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4;- Specified by:
getAttributesCountin interfaceCookieOrBuilder
-
getAttributes
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4;- Specified by:
getAttributesin interfaceCookieOrBuilder
-
setAttributes
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4; -
setAttributes
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4; -
addAttributes
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4; -
addAttributes
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4; -
addAttributes
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4; -
addAttributes
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4; -
addAllAttributes
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4; -
clearAttributes
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4; -
removeAttributes
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4; -
getAttributesBuilder
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4; -
getAttributesOrBuilder
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4;- Specified by:
getAttributesOrBuilderin interfaceCookieOrBuilder
-
getAttributesOrBuilderList
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4;- Specified by:
getAttributesOrBuilderListin interfaceCookieOrBuilder
-
addAttributesBuilder
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4; -
addAttributesBuilder
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4; -
getAttributesBuilderList
Additional attributes for the cookie. They will be used when generating a new cookie.
repeated .envoy.type.http.v3.CookieAttribute attributes = 4; -
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
-