Package Torello.Browser.BrowserAPI
Class Emulation.UserAgentMetadata
- java.lang.Object
-
- Torello.Browser.BaseType<Emulation.UserAgentMetadata>
-
- Torello.Browser.BrowserAPI.Emulation.UserAgentMetadata
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BaseType<?>>
- Enclosing class:
- Emulation
public static class Emulation.UserAgentMetadata extends BaseType<Emulation.UserAgentMetadata> implements java.io.Serializable
This Nested Java Class is declared as a "Type", which is similar to a Java Class. The CDP API Specifications list this type among the types, events & commands located in theEmulationdomain, which may be found within theBrowserAPI.
📌 All browser domain type classes will have a class name that begins with an upper case letter.Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints Missing optional values will be filled in by the target with what it would normally use.
EXPERIMENTAL- See Also:
- Serialized Form
Hi-Lited Source-Code:This File's Source Code:
- View Here: Torello/Browser/BrowserAPI/Emulation.java
- Open New Browser-Tab: Torello/Browser/BrowserAPI/Emulation.java
File Size: 4,238 Bytes Line Count: 106 '\n' Characters Found
Helper: Equals, HashCode, toJSON, etc
- View Here: Emulation$$UserAgentMetadata$$.java
- Open New Browser-Tab: Emulation$$UserAgentMetadata$$.java
File Size: 14,874 Bytes Line Count: 347 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field Description protected static longserialVersionUIDType Fields / Properties (from Google & Browser Specs) Modifier and Type Field Description Stringarchitecture[No Description Provided by Google]Stringbitness[No Description Provided by Google]Emulation.UserAgentBrandVersion[]brandsBrands appearing in Sec-CH-UA.String[]formFactorsUsed to specify User Agent form-factor values.StringfullVersion[No Description Provided by Google]Emulation.UserAgentBrandVersion[]fullVersionListBrands appearing in Sec-CH-UA-Full-Version-List.booleanmobile[No Description Provided by Google]Stringmodel[No Description Provided by Google]Stringplatform[No Description Provided by Google]StringplatformVersion[No Description Provided by Google]Booleanwow64[No Description Provided by Google]
-
Constructor Summary
Constructors Constructor Description UserAgentMetadata(ReadOnlyList<Boolean> isPresent, Emulation.UserAgentBrandVersion[] brands, Emulation.UserAgentBrandVersion[] fullVersionList, String fullVersion, String platform, String platformVersion, String architecture, String model, boolean mobile, String bitness, Boolean wow64, String[] formFactors)Constructor.
-
Method Summary
Static Builder Convert a JsonObject to a POJO Modifier and Type Method Description static Emulation.UserAgentMetadatafromJSON(JsonObject jo)Creates an instance of this class from aJsonObject.Retrieve the Type-Descriptor Singleton-Instance for this Nested Class. Modifier and Type Method Description static NestedDescriptor<Emulation.UserAgentMetadata>descriptor()Returns this class'sNestedDescriptorsingleton-instance.-
Methods inherited from class Torello.Browser.BaseType
allEnumStrROLs, compareTo, enumStrList, enumStrValidate, enumStrValidateThrow, equals, hashCode, isPresent, optionalsValidate, optionalsValidateThrow, toJSON, toString
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable. Using theSerializableImplementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.- See Also:
- Constant Field Values
-
brands
public final Emulation.UserAgentBrandVersion[] brands
Brands appearing in Sec-CH-UA.
OPTIONAL
-
fullVersionList
public final Emulation.UserAgentBrandVersion[] fullVersionList
Brands appearing in Sec-CH-UA-Full-Version-List.
OPTIONAL
-
fullVersion
public final java.lang.String fullVersion
[No Description Provided by Google]
OPTIONALDEPRECATED
-
platform
public final java.lang.String platform
[No Description Provided by Google]
-
platformVersion
public final java.lang.String platformVersion
[No Description Provided by Google]
-
architecture
public final java.lang.String architecture
[No Description Provided by Google]
-
model
public final java.lang.String model
[No Description Provided by Google]
-
mobile
public final boolean mobile
[No Description Provided by Google]
-
bitness
public final java.lang.String bitness
[No Description Provided by Google]
OPTIONAL
-
wow64
public final java.lang.Boolean wow64
[No Description Provided by Google]
OPTIONAL
-
formFactors
public final java.lang.String[] formFactors
Used to specify User Agent form-factor values. See https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factors
OPTIONAL
-
-
Constructor Detail
-
UserAgentMetadata
public UserAgentMetadata(ReadOnlyList<java.lang.Boolean> isPresent, Emulation.UserAgentBrandVersion[] brands, Emulation.UserAgentBrandVersion[] fullVersionList, java.lang.String fullVersion, java.lang.String platform, java.lang.String platformVersion, java.lang.String architecture, java.lang.String model, boolean mobile, java.lang.String bitness, java.lang.Boolean wow64, java.lang.String[] formFactors)
Constructor. Please review this class' fields for documentation.
-
-
Method Detail
-
fromJSON
public static Emulation.UserAgentMetadata fromJSON(JsonObject jo)
Creates an instance of this class from aJsonObject.- Code:
- Exact Method Body:
return singleton.fromJSON(jo);
-
descriptor
public static NestedDescriptor<Emulation.UserAgentMetadata> descriptor()
Returns this class'sNestedDescriptorsingleton-instance. class / type.- Code:
- Exact Method Body:
return singleton.descriptor();
-
-