Class WarcCookie.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<WarcCookie.Builder>
com.google.protobuf.GeneratedMessage.Builder<WarcCookie.Builder>
ai.pipestream.parsed.data.warc.v1.WarcCookie.Builder
All Implemented Interfaces:
WarcCookieOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
WarcCookie

public static final class WarcCookie.Builder extends com.google.protobuf.GeneratedMessage.Builder<WarcCookie.Builder> implements WarcCookieOrBuilder
 Represents a cookie associated with the archived request/response
 
Protobuf type ai.pipestream.parsed.data.warc.v1.WarcCookie
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<WarcCookie.Builder>
    • clear

      public WarcCookie.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.GeneratedMessage.Builder<WarcCookie.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.GeneratedMessage.Builder<WarcCookie.Builder>
    • getDefaultInstanceForType

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

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

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

      public WarcCookie.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<WarcCookie.Builder>
    • mergeFrom

      public WarcCookie.Builder mergeFrom(WarcCookie other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<WarcCookie.Builder>
    • mergeFrom

      public WarcCookie.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<WarcCookie.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Cookie name
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface WarcCookieOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Cookie name
       
      string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface WarcCookieOrBuilder
      Returns:
      The bytes for name.
    • setName

      public WarcCookie.Builder setName(String value)
       Cookie name
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public WarcCookie.Builder clearName()
       Cookie name
       
      string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public WarcCookie.Builder setNameBytes(com.google.protobuf.ByteString value)
       Cookie name
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getValue

      public String getValue()
       Cookie value
       
      string value = 2 [json_name = "value"];
      Specified by:
      getValue in interface WarcCookieOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       Cookie value
       
      string value = 2 [json_name = "value"];
      Specified by:
      getValueBytes in interface WarcCookieOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public WarcCookie.Builder setValue(String value)
       Cookie value
       
      string value = 2 [json_name = "value"];
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public WarcCookie.Builder clearValue()
       Cookie value
       
      string value = 2 [json_name = "value"];
      Returns:
      This builder for chaining.
    • setValueBytes

      public WarcCookie.Builder setValueBytes(com.google.protobuf.ByteString value)
       Cookie value
       
      string value = 2 [json_name = "value"];
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.
    • hasDomain

      public boolean hasDomain()
       Cookie domain
       
      optional string domain = 3 [json_name = "domain"];
      Specified by:
      hasDomain in interface WarcCookieOrBuilder
      Returns:
      Whether the domain field is set.
    • getDomain

      public String getDomain()
       Cookie domain
       
      optional string domain = 3 [json_name = "domain"];
      Specified by:
      getDomain in interface WarcCookieOrBuilder
      Returns:
      The domain.
    • getDomainBytes

      public com.google.protobuf.ByteString getDomainBytes()
       Cookie domain
       
      optional string domain = 3 [json_name = "domain"];
      Specified by:
      getDomainBytes in interface WarcCookieOrBuilder
      Returns:
      The bytes for domain.
    • setDomain

      public WarcCookie.Builder setDomain(String value)
       Cookie domain
       
      optional string domain = 3 [json_name = "domain"];
      Parameters:
      value - The domain to set.
      Returns:
      This builder for chaining.
    • clearDomain

      public WarcCookie.Builder clearDomain()
       Cookie domain
       
      optional string domain = 3 [json_name = "domain"];
      Returns:
      This builder for chaining.
    • setDomainBytes

      public WarcCookie.Builder setDomainBytes(com.google.protobuf.ByteString value)
       Cookie domain
       
      optional string domain = 3 [json_name = "domain"];
      Parameters:
      value - The bytes for domain to set.
      Returns:
      This builder for chaining.
    • hasPath

      public boolean hasPath()
       Cookie path
       
      optional string path = 4 [json_name = "path"];
      Specified by:
      hasPath in interface WarcCookieOrBuilder
      Returns:
      Whether the path field is set.
    • getPath

      public String getPath()
       Cookie path
       
      optional string path = 4 [json_name = "path"];
      Specified by:
      getPath in interface WarcCookieOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Cookie path
       
      optional string path = 4 [json_name = "path"];
      Specified by:
      getPathBytes in interface WarcCookieOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public WarcCookie.Builder setPath(String value)
       Cookie path
       
      optional string path = 4 [json_name = "path"];
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

      public WarcCookie.Builder clearPath()
       Cookie path
       
      optional string path = 4 [json_name = "path"];
      Returns:
      This builder for chaining.
    • setPathBytes

      public WarcCookie.Builder setPathBytes(com.google.protobuf.ByteString value)
       Cookie path
       
      optional string path = 4 [json_name = "path"];
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • hasExpires

      public boolean hasExpires()
       Cookie expiration time
       
      optional .google.protobuf.Timestamp expires = 5 [json_name = "expires"];
      Specified by:
      hasExpires in interface WarcCookieOrBuilder
      Returns:
      Whether the expires field is set.
    • getExpires

      public com.google.protobuf.Timestamp getExpires()
       Cookie expiration time
       
      optional .google.protobuf.Timestamp expires = 5 [json_name = "expires"];
      Specified by:
      getExpires in interface WarcCookieOrBuilder
      Returns:
      The expires.
    • setExpires

      public WarcCookie.Builder setExpires(com.google.protobuf.Timestamp value)
       Cookie expiration time
       
      optional .google.protobuf.Timestamp expires = 5 [json_name = "expires"];
    • setExpires

      public WarcCookie.Builder setExpires(com.google.protobuf.Timestamp.Builder builderForValue)
       Cookie expiration time
       
      optional .google.protobuf.Timestamp expires = 5 [json_name = "expires"];
    • mergeExpires

      public WarcCookie.Builder mergeExpires(com.google.protobuf.Timestamp value)
       Cookie expiration time
       
      optional .google.protobuf.Timestamp expires = 5 [json_name = "expires"];
    • clearExpires

      public WarcCookie.Builder clearExpires()
       Cookie expiration time
       
      optional .google.protobuf.Timestamp expires = 5 [json_name = "expires"];
    • getExpiresBuilder

      public com.google.protobuf.Timestamp.Builder getExpiresBuilder()
       Cookie expiration time
       
      optional .google.protobuf.Timestamp expires = 5 [json_name = "expires"];
    • getExpiresOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpiresOrBuilder()
       Cookie expiration time
       
      optional .google.protobuf.Timestamp expires = 5 [json_name = "expires"];
      Specified by:
      getExpiresOrBuilder in interface WarcCookieOrBuilder
    • hasSecure

      public boolean hasSecure()
       Whether the cookie is secure
       
      optional bool secure = 6 [json_name = "secure"];
      Specified by:
      hasSecure in interface WarcCookieOrBuilder
      Returns:
      Whether the secure field is set.
    • getSecure

      public boolean getSecure()
       Whether the cookie is secure
       
      optional bool secure = 6 [json_name = "secure"];
      Specified by:
      getSecure in interface WarcCookieOrBuilder
      Returns:
      The secure.
    • setSecure

      public WarcCookie.Builder setSecure(boolean value)
       Whether the cookie is secure
       
      optional bool secure = 6 [json_name = "secure"];
      Parameters:
      value - The secure to set.
      Returns:
      This builder for chaining.
    • clearSecure

      public WarcCookie.Builder clearSecure()
       Whether the cookie is secure
       
      optional bool secure = 6 [json_name = "secure"];
      Returns:
      This builder for chaining.
    • hasHttpOnly

      public boolean hasHttpOnly()
       Whether the cookie is HTTP-only
       
      optional bool http_only = 7 [json_name = "httpOnly"];
      Specified by:
      hasHttpOnly in interface WarcCookieOrBuilder
      Returns:
      Whether the httpOnly field is set.
    • getHttpOnly

      public boolean getHttpOnly()
       Whether the cookie is HTTP-only
       
      optional bool http_only = 7 [json_name = "httpOnly"];
      Specified by:
      getHttpOnly in interface WarcCookieOrBuilder
      Returns:
      The httpOnly.
    • setHttpOnly

      public WarcCookie.Builder setHttpOnly(boolean value)
       Whether the cookie is HTTP-only
       
      optional bool http_only = 7 [json_name = "httpOnly"];
      Parameters:
      value - The httpOnly to set.
      Returns:
      This builder for chaining.
    • clearHttpOnly

      public WarcCookie.Builder clearHttpOnly()
       Whether the cookie is HTTP-only
       
      optional bool http_only = 7 [json_name = "httpOnly"];
      Returns:
      This builder for chaining.