public static interface Browser.CookieOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getDomain()
public abstract String getDomain()The domain for which the cookie is valid.
string domain = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The domain. |
getDomainBytes()
public abstract ByteString getDomainBytes()The domain for which the cookie is valid.
string domain = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for domain. |
getExpirationTime()
public abstract Timestamp getExpirationTime()The date and time when the cookie will expire.
.google.protobuf.Timestamp expiration_time = 5;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The expirationTime. |
getExpirationTimeOrBuilder()
public abstract TimestampOrBuilder getExpirationTimeOrBuilder()The date and time when the cookie will expire.
.google.protobuf.Timestamp expiration_time = 5;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getHttpOnly()
public abstract 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 abstract long getMaxAge()The maximum age of the cookie in seconds.
int64 max_age = 8;
| Returns | |
|---|---|
| Type | Description |
long |
The maxAge. |
getName()
public abstract String getName()The unique name identifying the cookie.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public abstract ByteString getNameBytes()The unique name identifying the cookie.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getPartitioned()
public abstract boolean getPartitioned()Shows if the cookies is stored using partitioned storage.
bool partitioned = 11;
| Returns | |
|---|---|
| Type | Description |
boolean |
The partitioned. |
getPath()
public abstract String getPath()The URL path for which the cookie is valid.
string path = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The path. |
getPathBytes()
public abstract ByteString getPathBytes()The URL path for which the cookie is valid.
string path = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for path. |
getSameSite()
public abstract 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 abstract 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 abstract 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 abstract boolean getSession()Indicates if the cookie is persistent.
bool session = 10;
| Returns | |
|---|---|
| Type | Description |
boolean |
The session. |
getValue()
public abstract String getValue()The data stored within the cookie.
string value = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The value. |
getValueBytes()
public abstract ByteString getValueBytes()The data stored within the cookie.
string value = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for value. |
hasExpirationTime()
public abstract 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. |