Package io.envoyproxy.envoy.type.http.v3
Class Cookie.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typeenvoy.type.http.v3.Cookie
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Cookie.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Cookiebuild()CookiebuildPartial()Cookie.Builderclear()Cookie.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Cookie.BuilderclearName()The name that will be used to obtain cookie value from downstream HTTP request or generate new cookie for downstream.Cookie.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Cookie.BuilderclearPath()Path of cookie.Cookie.BuilderclearTtl()Duration of cookie.Cookie.Builderclone()CookiegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()The name that will be used to obtain cookie value from downstream HTTP request or generate new cookie for downstream.com.google.protobuf.ByteStringgetNameBytes()The name that will be used to obtain cookie value from downstream HTTP request or generate new cookie for downstream.StringgetPath()Path of cookie.com.google.protobuf.ByteStringgetPathBytes()Path of cookie.com.google.protobuf.DurationgetTtl()Duration of cookie.com.google.protobuf.Duration.BuildergetTtlBuilder()Duration of cookie.com.google.protobuf.DurationOrBuildergetTtlOrBuilder()Duration of cookie.booleanhasTtl()Duration of cookie.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Cookie.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Cookie.BuildermergeFrom(com.google.protobuf.Message other)Cookie.BuildermergeFrom(Cookie other)Cookie.BuildermergeTtl(com.google.protobuf.Duration value)Duration of cookie.Cookie.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Cookie.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Cookie.BuildersetName(String value)The name that will be used to obtain cookie value from downstream HTTP request or generate new cookie for downstream.Cookie.BuildersetNameBytes(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.Cookie.BuildersetPath(String value)Path of cookie.Cookie.BuildersetPathBytes(com.google.protobuf.ByteString value)Path of cookie.Cookie.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Cookie.BuildersetTtl(com.google.protobuf.Duration value)Duration of cookie.Cookie.BuildersetTtl(com.google.protobuf.Duration.Builder builderForValue)Duration of cookie.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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public Cookie getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Cookie build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Cookie buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Cookie.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
public Cookie.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<Cookie.Builder>
-
clearField
public Cookie.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
-
clearOneof
public Cookie.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public Cookie.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Cookie.Builder>
-
mergeFrom
public Cookie.Builder mergeFrom(Cookie other)
-
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
public String 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
public Cookie.Builder setName(String value)
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
public Cookie.Builder 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
public Cookie.Builder 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.
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 0 to use a session cookie.
.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 0 to use a session cookie.
.google.protobuf.Duration ttl = 2 [(.validate.rules) = { ... }- Specified by:
getTtlin interfaceCookieOrBuilder- Returns:
- The ttl.
-
setTtl
public Cookie.Builder setTtl(com.google.protobuf.Duration value)
Duration of cookie. This will be used to set the expiry time of a new cookie when it is generated. Set this to 0 to use a session cookie.
.google.protobuf.Duration ttl = 2 [(.validate.rules) = { ... }
-
setTtl
public Cookie.Builder setTtl(com.google.protobuf.Duration.Builder builderForValue)
Duration of cookie. This will be used to set the expiry time of a new cookie when it is generated. Set this to 0 to use a session cookie.
.google.protobuf.Duration ttl = 2 [(.validate.rules) = { ... }
-
mergeTtl
public Cookie.Builder mergeTtl(com.google.protobuf.Duration value)
Duration of cookie. This will be used to set the expiry time of a new cookie when it is generated. Set this to 0 to use a session cookie.
.google.protobuf.Duration ttl = 2 [(.validate.rules) = { ... }
-
clearTtl
public Cookie.Builder clearTtl()
Duration of cookie. This will be used to set the expiry time of a new cookie when it is generated. Set this to 0 to use a session cookie.
.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 0 to use a session cookie.
.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 0 to use a session cookie.
.google.protobuf.Duration ttl = 2 [(.validate.rules) = { ... }- Specified by:
getTtlOrBuilderin interfaceCookieOrBuilder
-
getPath
public String 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
public Cookie.Builder setPath(String value)
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
public Cookie.Builder 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
public Cookie.Builder setPathBytes(com.google.protobuf.ByteString value)
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.
-
setUnknownFields
public final Cookie.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
-
mergeUnknownFields
public final Cookie.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
-
-