public static final class Browser.Cookie.Builder extends GeneratedMessage.Builder<Browser.Cookie.Builder> implements Browser.CookieOrBuilderBrowser cookie.
Protobuf type google.backstory.Browser.Cookie
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Browser.Cookie.BuilderImplements
Browser.CookieOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Browser.Cookie build()| Returns | |
|---|---|
| Type | Description |
Browser.Cookie |
|
buildPartial()
public Browser.Cookie buildPartial()| Returns | |
|---|---|
| Type | Description |
Browser.Cookie |
|
clear()
public Browser.Cookie.Builder clear()| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
|
clearDomain()
public Browser.Cookie.Builder clearDomain()The domain for which the cookie is valid.
string domain = 3;
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
clearExpirationTime()
public Browser.Cookie.Builder clearExpirationTime()The date and time when the cookie will expire.
.google.protobuf.Timestamp expiration_time = 5;
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
|
clearHttpOnly()
public Browser.Cookie.Builder clearHttpOnly()Indicates if the cookie is inaccessible via client-side scripts (e.g., JavaScript).
bool http_only = 6;
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
clearMaxAge()
public Browser.Cookie.Builder clearMaxAge()The maximum age of the cookie in seconds.
int64 max_age = 8;
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
clearName()
public Browser.Cookie.Builder clearName()The unique name identifying the cookie.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
clearPartitioned()
public Browser.Cookie.Builder clearPartitioned()Shows if the cookies is stored using partitioned storage.
bool partitioned = 11;
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
clearPath()
public Browser.Cookie.Builder clearPath()The URL path for which the cookie is valid.
string path = 4;
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
clearSameSite()
public Browser.Cookie.Builder clearSameSite()Affects cross-site request behavior.
.google.backstory.Browser.Cookie.CookieSameSite same_site = 9;
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
clearSecure()
public Browser.Cookie.Builder clearSecure()Indicates if the cookie should only be sent over secure HTTPS connections.
bool secure = 7;
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
clearSession()
public Browser.Cookie.Builder clearSession()Indicates if the cookie is persistent.
bool session = 10;
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
clearValue()
public Browser.Cookie.Builder clearValue()The data stored within the cookie.
string value = 2;
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Browser.Cookie getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Browser.Cookie |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDomain()
public String getDomain()The domain for which the cookie is valid.
string domain = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The domain. |
getDomainBytes()
public ByteString getDomainBytes()The domain for which the cookie is valid.
string domain = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for domain. |
getExpirationTime()
public Timestamp getExpirationTime()The date and time when the cookie will expire.
.google.protobuf.Timestamp expiration_time = 5;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The expirationTime. |
getExpirationTimeBuilder()
public Timestamp.Builder getExpirationTimeBuilder()The date and time when the cookie will expire.
.google.protobuf.Timestamp expiration_time = 5;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getExpirationTimeOrBuilder()
public TimestampOrBuilder getExpirationTimeOrBuilder()The date and time when the cookie will expire.
.google.protobuf.Timestamp expiration_time = 5;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getHttpOnly()
public boolean getHttpOnly()Indicates if the cookie is inaccessible via client-side scripts (e.g., JavaScript).
bool http_only = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
The httpOnly. |
getMaxAge()
public long getMaxAge()The maximum age of the cookie in seconds.
int64 max_age = 8;
| Returns | |
|---|---|
| Type | Description |
long |
The maxAge. |
getName()
public String getName()The unique name identifying the cookie.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()The unique name identifying the cookie.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getPartitioned()
public boolean getPartitioned()Shows if the cookies is stored using partitioned storage.
bool partitioned = 11;
| Returns | |
|---|---|
| Type | Description |
boolean |
The partitioned. |
getPath()
public String getPath()The URL path for which the cookie is valid.
string path = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The path. |
getPathBytes()
public ByteString getPathBytes()The URL path for which the cookie is valid.
string path = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for path. |
getSameSite()
public Browser.Cookie.CookieSameSite getSameSite()Affects cross-site request behavior.
.google.backstory.Browser.Cookie.CookieSameSite same_site = 9;
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.CookieSameSite |
The sameSite. |
getSameSiteValue()
public int getSameSiteValue()Affects cross-site request behavior.
.google.backstory.Browser.Cookie.CookieSameSite same_site = 9;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for sameSite. |
getSecure()
public boolean getSecure()Indicates if the cookie should only be sent over secure HTTPS connections.
bool secure = 7;
| Returns | |
|---|---|
| Type | Description |
boolean |
The secure. |
getSession()
public boolean getSession()Indicates if the cookie is persistent.
bool session = 10;
| Returns | |
|---|---|
| Type | Description |
boolean |
The session. |
getValue()
public String getValue()The data stored within the cookie.
string value = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The value. |
getValueBytes()
public ByteString getValueBytes()The data stored within the cookie.
string value = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for value. |
hasExpirationTime()
public boolean hasExpirationTime()The date and time when the cookie will expire.
.google.protobuf.Timestamp expiration_time = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the expirationTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeExpirationTime(Timestamp value)
public Browser.Cookie.Builder mergeExpirationTime(Timestamp value)The date and time when the cookie will expire.
.google.protobuf.Timestamp expiration_time = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
|
mergeFrom(Browser.Cookie other)
public Browser.Cookie.Builder mergeFrom(Browser.Cookie other)| Parameter | |
|---|---|
| Name | Description |
other |
Browser.Cookie |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Browser.Cookie.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Browser.Cookie.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
|
setDomain(String value)
public Browser.Cookie.Builder setDomain(String value)The domain for which the cookie is valid.
string domain = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe domain to set. |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
setDomainBytes(ByteString value)
public Browser.Cookie.Builder setDomainBytes(ByteString value)The domain for which the cookie is valid.
string domain = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for domain to set. |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
setExpirationTime(Timestamp value)
public Browser.Cookie.Builder setExpirationTime(Timestamp value)The date and time when the cookie will expire.
.google.protobuf.Timestamp expiration_time = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
|
setExpirationTime(Timestamp.Builder builderForValue)
public Browser.Cookie.Builder setExpirationTime(Timestamp.Builder builderForValue)The date and time when the cookie will expire.
.google.protobuf.Timestamp expiration_time = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
|
setHttpOnly(boolean value)
public Browser.Cookie.Builder setHttpOnly(boolean value)Indicates if the cookie is inaccessible via client-side scripts (e.g., JavaScript).
bool http_only = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe httpOnly to set. |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
setMaxAge(long value)
public Browser.Cookie.Builder setMaxAge(long value)The maximum age of the cookie in seconds.
int64 max_age = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe maxAge to set. |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
setName(String value)
public Browser.Cookie.Builder setName(String value)The unique name identifying the cookie.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Browser.Cookie.Builder setNameBytes(ByteString value)The unique name identifying the cookie.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
setPartitioned(boolean value)
public Browser.Cookie.Builder setPartitioned(boolean value)Shows if the cookies is stored using partitioned storage.
bool partitioned = 11;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe partitioned to set. |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
setPath(String value)
public Browser.Cookie.Builder setPath(String value)The URL path for which the cookie is valid.
string path = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe path to set. |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
setPathBytes(ByteString value)
public Browser.Cookie.Builder setPathBytes(ByteString value)The URL path for which the cookie is valid.
string path = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for path to set. |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
setSameSite(Browser.Cookie.CookieSameSite value)
public Browser.Cookie.Builder setSameSite(Browser.Cookie.CookieSameSite value)Affects cross-site request behavior.
.google.backstory.Browser.Cookie.CookieSameSite same_site = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
Browser.Cookie.CookieSameSiteThe sameSite to set. |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
setSameSiteValue(int value)
public Browser.Cookie.Builder setSameSiteValue(int value)Affects cross-site request behavior.
.google.backstory.Browser.Cookie.CookieSameSite same_site = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for sameSite to set. |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
setSecure(boolean value)
public Browser.Cookie.Builder setSecure(boolean value)Indicates if the cookie should only be sent over secure HTTPS connections.
bool secure = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe secure to set. |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
setSession(boolean value)
public Browser.Cookie.Builder setSession(boolean value)Indicates if the cookie is persistent.
bool session = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe session to set. |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
setValue(String value)
public Browser.Cookie.Builder setValue(String value)The data stored within the cookie.
string value = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe value to set. |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |
setValueBytes(ByteString value)
public Browser.Cookie.Builder setValueBytes(ByteString value)The data stored within the cookie.
string value = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for value to set. |
| Returns | |
|---|---|
| Type | Description |
Browser.Cookie.Builder |
This builder for chaining. |