Class Browser (0.3.0)

public final class Browser extends GeneratedMessage implements BrowserOrBuilder

Information about an entry in the web browser's local history database.

Protobuf type google.backstory.Browser

Implements

BrowserOrBuilder

Static Fields

BROWSER_TYPE_FIELD_NUMBER

public static final int BROWSER_TYPE_FIELD_NUMBER
Field Value
Type Description
int

BROWSER_VERSION_FIELD_NUMBER

public static final int BROWSER_VERSION_FIELD_NUMBER
Field Value
Type Description
int

COOKIES_FIELD_NUMBER

public static final int COOKIES_FIELD_NUMBER
Field Value
Type Description
int

FIRST_BOOKMARKED_TIME_FIELD_NUMBER

public static final int FIRST_BOOKMARKED_TIME_FIELD_NUMBER
Field Value
Type Description
int

FIRST_VISIT_TIME_FIELD_NUMBER

public static final int FIRST_VISIT_TIME_FIELD_NUMBER
Field Value
Type Description
int

HIDDEN_FIELD_NUMBER

public static final int HIDDEN_FIELD_NUMBER
Field Value
Type Description
int

INDEXED_CONTENT_FIELD_NUMBER

public static final int INDEXED_CONTENT_FIELD_NUMBER
Field Value
Type Description
int

LAST_VISIT_TIME_FIELD_NUMBER

public static final int LAST_VISIT_TIME_FIELD_NUMBER
Field Value
Type Description
int

PROFILE_FIELD_NUMBER

public static final int PROFILE_FIELD_NUMBER
Field Value
Type Description
int

REQUEST_ORIGIN_URI_FIELD_NUMBER

public static final int REQUEST_ORIGIN_URI_FIELD_NUMBER
Field Value
Type Description
int

TYPED_COUNT_FIELD_NUMBER

public static final int TYPED_COUNT_FIELD_NUMBER
Field Value
Type Description
int

TYPED_FIELD_NUMBER

public static final int TYPED_FIELD_NUMBER
Field Value
Type Description
int

VISIT_COUNT_CRITERIA_FIELD_NUMBER

public static final int VISIT_COUNT_CRITERIA_FIELD_NUMBER
Field Value
Type Description
int

VISIT_COUNT_FIELD_NUMBER

public static final int VISIT_COUNT_FIELD_NUMBER
Field Value
Type Description
int

VISIT_SOURCE_FIELD_NUMBER

public static final int VISIT_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

VISIT_TYPE_FIELD_NUMBER

public static final int VISIT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Browser getDefaultInstance()
Returns
Type Description
Browser

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Browser.Builder newBuilder()
Returns
Type Description
Browser.Builder

newBuilder(Browser prototype)

public static Browser.Builder newBuilder(Browser prototype)
Parameter
Name Description
prototype Browser
Returns
Type Description
Browser.Builder

parseDelimitedFrom(InputStream input)

public static Browser parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Browser
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Browser parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Browser
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Browser parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Browser
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Browser parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Browser
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Browser parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Browser
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Browser parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Browser
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Browser parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Browser
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Browser parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Browser
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Browser parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Browser
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Browser parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Browser
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Browser parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Browser
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Browser parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Browser
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Browser> parser()
Returns
Type Description
Parser<Browser>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBrowserType()

public Browser.BrowserType getBrowserType()

The browser that recorded the history entry (e.g. "Chrome", "Firefox", "Safari", etc.).

.google.backstory.Browser.BrowserType browser_type = 1;

Returns
Type Description
Browser.BrowserType

The browserType.

getBrowserTypeValue()

public int getBrowserTypeValue()

The browser that recorded the history entry (e.g. "Chrome", "Firefox", "Safari", etc.).

.google.backstory.Browser.BrowserType browser_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for browserType.

getBrowserVersion()

public String getBrowserVersion()

The browser version.

string browser_version = 2;

Returns
Type Description
String

The browserVersion.

getBrowserVersionBytes()

public ByteString getBrowserVersionBytes()

The browser version.

string browser_version = 2;

Returns
Type Description
ByteString

The bytes for browserVersion.

getCookies(int index)

public Browser.Cookie getCookies(int index)

Information about the cookies.

repeated .google.backstory.Browser.Cookie cookies = 14;

Parameter
Name Description
index int
Returns
Type Description
Browser.Cookie

getCookiesCount()

public int getCookiesCount()

Information about the cookies.

repeated .google.backstory.Browser.Cookie cookies = 14;

Returns
Type Description
int

getCookiesList()

public List<Browser.Cookie> getCookiesList()

Information about the cookies.

repeated .google.backstory.Browser.Cookie cookies = 14;

Returns
Type Description
List<Cookie>

getCookiesOrBuilder(int index)

public Browser.CookieOrBuilder getCookiesOrBuilder(int index)

Information about the cookies.

repeated .google.backstory.Browser.Cookie cookies = 14;

Parameter
Name Description
index int
Returns
Type Description
Browser.CookieOrBuilder

getCookiesOrBuilderList()

public List<? extends Browser.CookieOrBuilder> getCookiesOrBuilderList()

Information about the cookies.

repeated .google.backstory.Browser.Cookie cookies = 14;

Returns
Type Description
List<? extends com.google.backstory.Browser.CookieOrBuilder>

getDefaultInstanceForType()

public Browser getDefaultInstanceForType()
Returns
Type Description
Browser

getFirstBookmarkedTime()

public Timestamp getFirstBookmarkedTime()

The timestamp indicating the first time the URL was bookmarked.

.google.protobuf.Timestamp first_bookmarked_time = 13;

Returns
Type Description
Timestamp

The firstBookmarkedTime.

getFirstBookmarkedTimeOrBuilder()

public TimestampOrBuilder getFirstBookmarkedTimeOrBuilder()

The timestamp indicating the first time the URL was bookmarked.

.google.protobuf.Timestamp first_bookmarked_time = 13;

Returns
Type Description
TimestampOrBuilder

getFirstVisitTime()

public Timestamp getFirstVisitTime()

The timestamp indicating the initial visit to the URL.

.google.protobuf.Timestamp first_visit_time = 3;

Returns
Type Description
Timestamp

The firstVisitTime.

getFirstVisitTimeOrBuilder()

public TimestampOrBuilder getFirstVisitTimeOrBuilder()

The timestamp indicating the initial visit to the URL.

.google.protobuf.Timestamp first_visit_time = 3;

Returns
Type Description
TimestampOrBuilder

getHidden()

public boolean getHidden()

A boolean value indicating if the history entry is hidden.

bool hidden = 8;

Returns
Type Description
boolean

The hidden.

getIndexedContent()

public String getIndexedContent()

Represents the textual content of a web page. This field should be kept short. Large strings may affect latency and payload sizes.

string indexed_content = 12;

Returns
Type Description
String

The indexedContent.

getIndexedContentBytes()

public ByteString getIndexedContentBytes()

Represents the textual content of a web page. This field should be kept short. Large strings may affect latency and payload sizes.

string indexed_content = 12;

Returns
Type Description
ByteString

The bytes for indexedContent.

getLastVisitTime()

public Timestamp getLastVisitTime()

The timestamp indicating the most recent visit to the URL.

.google.protobuf.Timestamp last_visit_time = 4;

Returns
Type Description
Timestamp

The lastVisitTime.

getLastVisitTimeOrBuilder()

public TimestampOrBuilder getLastVisitTimeOrBuilder()

The timestamp indicating the most recent visit to the URL.

.google.protobuf.Timestamp last_visit_time = 4;

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<Browser> getParserForType()
Returns
Type Description
Parser<Browser>
Overrides

getProfile()

public String getProfile()

The browser profile associated with the history entry.

string profile = 5;

Returns
Type Description
String

The profile.

getProfileBytes()

public ByteString getProfileBytes()

The browser profile associated with the history entry.

string profile = 5;

Returns
Type Description
ByteString

The bytes for profile.

getRequestOriginUri()

public String getRequestOriginUri()

Indicates the URI from which the current visit originated.

string request_origin_uri = 9;

Returns
Type Description
String

The requestOriginUri.

getRequestOriginUriBytes()

public ByteString getRequestOriginUriBytes()

Indicates the URI from which the current visit originated.

string request_origin_uri = 9;

Returns
Type Description
ByteString

The bytes for requestOriginUri.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTyped()

public boolean getTyped()

A boolean value indicating if the URL was typed by the user.

bool typed = 6;

Returns
Type Description
boolean

The typed.

getTypedCount()

public long getTypedCount()

The number of times the URL was visited with this specific visit type and visit source.

int64 typed_count = 15;

Returns
Type Description
long

The typedCount.

getVisitCount()

public long getVisitCount()

The total number of times the Url has been visited.

int64 visit_count = 10;

Returns
Type Description
long

The visitCount.

getVisitCountCriteria()

public String getVisitCountCriteria()

Describes the criteria used to calculate the visit_count.

string visit_count_criteria = 11;

Returns
Type Description
String

The visitCountCriteria.

getVisitCountCriteriaBytes()

public ByteString getVisitCountCriteriaBytes()

Describes the criteria used to calculate the visit_count.

string visit_count_criteria = 11;

Returns
Type Description
ByteString

The bytes for visitCountCriteria.

getVisitSource()

public Browser.VisitSource getVisitSource()

The source of the visit.

.google.backstory.Browser.VisitSource visit_source = 16;

Returns
Type Description
Browser.VisitSource

The visitSource.

getVisitSourceValue()

public int getVisitSourceValue()

The source of the visit.

.google.backstory.Browser.VisitSource visit_source = 16;

Returns
Type Description
int

The enum numeric value on the wire for visitSource.

getVisitType()

public Browser.UrlVisitType getVisitType()

Describes the type of navigation or visit (e.g., direct, redirect, etc.).

.google.backstory.Browser.UrlVisitType visit_type = 7;

Returns
Type Description
Browser.UrlVisitType

The visitType.

getVisitTypeValue()

public int getVisitTypeValue()

Describes the type of navigation or visit (e.g., direct, redirect, etc.).

.google.backstory.Browser.UrlVisitType visit_type = 7;

Returns
Type Description
int

The enum numeric value on the wire for visitType.

hasFirstBookmarkedTime()

public boolean hasFirstBookmarkedTime()

The timestamp indicating the first time the URL was bookmarked.

.google.protobuf.Timestamp first_bookmarked_time = 13;

Returns
Type Description
boolean

Whether the firstBookmarkedTime field is set.

hasFirstVisitTime()

public boolean hasFirstVisitTime()

The timestamp indicating the initial visit to the URL.

.google.protobuf.Timestamp first_visit_time = 3;

Returns
Type Description
boolean

Whether the firstVisitTime field is set.

hasLastVisitTime()

public boolean hasLastVisitTime()

The timestamp indicating the most recent visit to the URL.

.google.protobuf.Timestamp last_visit_time = 4;

Returns
Type Description
boolean

Whether the lastVisitTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Browser.Builder newBuilderForType()
Returns
Type Description
Browser.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Browser.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Browser.Builder
Overrides

toBuilder()

public Browser.Builder toBuilder()
Returns
Type Description
Browser.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException