public static final class Browser.Cookie extends GeneratedMessage implements Browser.CookieOrBuilder
Browser cookie.
Protobuf type google.backstory.Browser.Cookie
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
DOMAIN_FIELD_NUMBER
public static final int DOMAIN_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
EXPIRATION_TIME_FIELD_NUMBER
public static final int EXPIRATION_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
HTTP_ONLY_FIELD_NUMBER
public static final int HTTP_ONLY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MAX_AGE_FIELD_NUMBER
public static final int MAX_AGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PARTITIONED_FIELD_NUMBER
public static final int PARTITIONED_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SAME_SITE_FIELD_NUMBER
public static final int SAME_SITE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SECURE_FIELD_NUMBER
public static final int SECURE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SESSION_FIELD_NUMBER
public static final int SESSION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Browser.Cookie getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Browser.Cookie.Builder newBuilder()
newBuilder(Browser.Cookie prototype)
public static Browser.Cookie.Builder newBuilder(Browser.Cookie prototype)
parseDelimitedFrom(InputStream input)
public static Browser.Cookie parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Browser.Cookie parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Browser.Cookie parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Browser.Cookie parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Browser.Cookie parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Browser.Cookie parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static Browser.Cookie parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Browser.Cookie parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static Browser.Cookie parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Browser.Cookie parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Browser.Cookie parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Browser.Cookie parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Browser.Cookie> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Browser.Cookie getDefaultInstanceForType()
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.
|
getExpirationTimeOrBuilder()
public TimestampOrBuilder getExpirationTimeOrBuilder()
The date and time when the cookie will expire.
.google.protobuf.Timestamp expiration_time = 5;
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()
The maximum age of the cookie in seconds.
int64 max_age = 8;
| Returns |
| Type |
Description |
long |
The maxAge.
|
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.
|
getParserForType()
public Parser<Browser.Cookie> getParserForType()
Overrides
getPartitioned()
public boolean getPartitioned()
Shows if the cookies is stored using partitioned storage.
bool partitioned = 11;
| Returns |
| Type |
Description |
boolean |
The partitioned.
|
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;
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.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSession()
public boolean getSession()
Indicates if the cookie is persistent.
bool session = 10;
| Returns |
| Type |
Description |
boolean |
The session.
|
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Browser.Cookie.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Browser.Cookie.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Browser.Cookie.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides