Class 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 Detail

      • 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>
      • 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
      • 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
      • 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) = { ... }
      • 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) = { ... }
      • 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) = { ... }
      • 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:
        hasTtl in interface CookieOrBuilder
      • 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:
        getTtl in interface CookieOrBuilder
      • 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:
        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
      • 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
      • 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;
      • 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;
      • 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;
      • 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>