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 Details

    • 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.Builder<Cookie.Builder>
    • clear

      public Cookie.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
    • getDefaultInstanceForType

      public Cookie getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Cookie build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Cookie buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Cookie.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
    • setField

      public Cookie.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
    • clearField

      public Cookie.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
    • clearOneof

      public Cookie.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
    • setRepeatedField

      public Cookie.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
    • addRepeatedField

      public Cookie.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
    • mergeFrom

      public Cookie.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Cookie.Builder>
    • mergeFrom

      public Cookie.Builder mergeFrom(Cookie other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getName in interface CookieOrBuilder
      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:
      getNameBytes in interface CookieOrBuilder
      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 0s to use a session cookie and disable cookie expiration.
       
      .google.protobuf.Duration ttl = 2 [(.validate.rules) = { ... }
      Specified by:
      hasTtl in interface CookieOrBuilder
      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:
      getTtl in interface CookieOrBuilder
      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 0s to use a session cookie and disable cookie expiration.
       
      .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 0s to use a session cookie and disable cookie expiration.
       
      .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 0s to use a session cookie and disable cookie expiration.
       
      .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 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:
      getTtlOrBuilder in interface CookieOrBuilder
    • 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:
      getPath in interface CookieOrBuilder
      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:
      getPathBytes in interface CookieOrBuilder
      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.
    • getAttributesList

      public List<CookieAttribute> 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:
      getAttributesList in interface CookieOrBuilder
    • 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:
      getAttributesCount in interface CookieOrBuilder
    • getAttributes

      public CookieAttribute getAttributes(int index)
       Additional attributes for the cookie. They will be used when generating a new cookie.
       
      repeated .envoy.type.http.v3.CookieAttribute attributes = 4;
      Specified by:
      getAttributes in interface CookieOrBuilder
    • setAttributes

      public Cookie.Builder setAttributes(int index, CookieAttribute value)
       Additional attributes for the cookie. They will be used when generating a new cookie.
       
      repeated .envoy.type.http.v3.CookieAttribute attributes = 4;
    • setAttributes

      public Cookie.Builder setAttributes(int index, CookieAttribute.Builder builderForValue)
       Additional attributes for the cookie. They will be used when generating a new cookie.
       
      repeated .envoy.type.http.v3.CookieAttribute attributes = 4;
    • addAttributes

      public Cookie.Builder addAttributes(CookieAttribute value)
       Additional attributes for the cookie. They will be used when generating a new cookie.
       
      repeated .envoy.type.http.v3.CookieAttribute attributes = 4;
    • addAttributes

      public Cookie.Builder addAttributes(int index, CookieAttribute value)
       Additional attributes for the cookie. They will be used when generating a new cookie.
       
      repeated .envoy.type.http.v3.CookieAttribute attributes = 4;
    • addAttributes

      public Cookie.Builder addAttributes(CookieAttribute.Builder builderForValue)
       Additional attributes for the cookie. They will be used when generating a new cookie.
       
      repeated .envoy.type.http.v3.CookieAttribute attributes = 4;
    • addAttributes

      public Cookie.Builder addAttributes(int index, CookieAttribute.Builder builderForValue)
       Additional attributes for the cookie. They will be used when generating a new cookie.
       
      repeated .envoy.type.http.v3.CookieAttribute attributes = 4;
    • addAllAttributes

      public Cookie.Builder addAllAttributes(Iterable<? extends CookieAttribute> values)
       Additional attributes for the cookie. They will be used when generating a new cookie.
       
      repeated .envoy.type.http.v3.CookieAttribute attributes = 4;
    • clearAttributes

      public Cookie.Builder clearAttributes()
       Additional attributes for the cookie. They will be used when generating a new cookie.
       
      repeated .envoy.type.http.v3.CookieAttribute attributes = 4;
    • removeAttributes

      public Cookie.Builder removeAttributes(int index)
       Additional attributes for the cookie. They will be used when generating a new cookie.
       
      repeated .envoy.type.http.v3.CookieAttribute attributes = 4;
    • getAttributesBuilder

      public CookieAttribute.Builder getAttributesBuilder(int index)
       Additional attributes for the cookie. They will be used when generating a new cookie.
       
      repeated .envoy.type.http.v3.CookieAttribute attributes = 4;
    • getAttributesOrBuilder

      public CookieAttributeOrBuilder getAttributesOrBuilder(int index)
       Additional attributes for the cookie. They will be used when generating a new cookie.
       
      repeated .envoy.type.http.v3.CookieAttribute attributes = 4;
      Specified by:
      getAttributesOrBuilder in interface CookieOrBuilder
    • getAttributesOrBuilderList

      public List<? extends CookieAttributeOrBuilder> 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:
      getAttributesOrBuilderList in interface CookieOrBuilder
    • addAttributesBuilder

      public CookieAttribute.Builder addAttributesBuilder()
       Additional attributes for the cookie. They will be used when generating a new cookie.
       
      repeated .envoy.type.http.v3.CookieAttribute attributes = 4;
    • addAttributesBuilder

      public CookieAttribute.Builder addAttributesBuilder(int index)
       Additional attributes for the cookie. They will be used when generating a new cookie.
       
      repeated .envoy.type.http.v3.CookieAttribute attributes = 4;
    • getAttributesBuilderList

      public List<CookieAttribute.Builder> getAttributesBuilderList()
       Additional attributes for the cookie. They will be used when generating a new cookie.
       
      repeated .envoy.type.http.v3.CookieAttribute attributes = 4;
    • setUnknownFields

      public final Cookie.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>
    • mergeUnknownFields

      public final Cookie.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Cookie.Builder>