-
- All Implemented Interfaces:
-
com.polygamma.ogm.util.ProtobufMessage
public final class ConnectivityDescriptor implements ProtobufMessage
Device network connectivity descriptor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classConnectivityDescriptor.BuilderDevice network connectivity descriptor builder.
-
Method Summary
Modifier and Type Method Description static ConnectivityDescriptor.BuilderofBuilder()Construct new empty builder. ConnectivityDescriptormergeFrom(ProtobufReader reader)Read and merge from Protobuf wire-codec reader. voidwriteTo(ProtobufWriter writer)Write {@code this}to a Protobuf wire-codec writer.ConnectivityDescriptor.BuildertoBuilder()Construct new builder initialized with {@code this}.longtimestampSeconds()UNIX epoch timestamp, in seconds, of when descriptor was last updated. List<NetworkDescriptor>networks()Descriptors of available networks. intactiveNetworkIndex()Index of active network descriptor. NetworkDescriptoractiveNetwork()Active network descriptor, if any. List<SubscriptionDescriptor>subscriptions()Descriptors of available subscriptions. intactiveSubscriptionIndex()Index of active subscription descriptor. SubscriptionDescriptoractiveSubscription()Active subscription descriptor, if any. StringmmsUserAgent()User-agent string used for MMS. inthashCode()booleanequals(@Nullable() Object other)StringtoString()-
-
Method Detail
-
ofBuilder
static ConnectivityDescriptor.Builder ofBuilder()
Construct new empty builder.
-
mergeFrom
ConnectivityDescriptor mergeFrom(ProtobufReader reader)
Read and merge from Protobuf wire-codec reader.
- Parameters:
reader- reader to merge from
-
writeTo
void writeTo(ProtobufWriter writer)
Write
{@code this}to a Protobuf wire-codec writer.- Parameters:
writer- writer to write to
-
toBuilder
ConnectivityDescriptor.Builder toBuilder()
Construct new builder initialized with
{@code this}.
-
timestampSeconds
long timestampSeconds()
UNIX epoch timestamp, in seconds, of when descriptor was last updated.
-
networks
List<NetworkDescriptor> networks()
Descriptors of available networks.
-
activeNetworkIndex
int activeNetworkIndex()
Index of active network descriptor.
-
activeNetwork
@Nullable() NetworkDescriptor activeNetwork()
Active network descriptor, if any.
-
subscriptions
List<SubscriptionDescriptor> subscriptions()
Descriptors of available subscriptions.
-
activeSubscriptionIndex
int activeSubscriptionIndex()
Index of active subscription descriptor.
-
activeSubscription
@Nullable() SubscriptionDescriptor activeSubscription()
Active subscription descriptor, if any.
-
mmsUserAgent
String mmsUserAgent()
User-agent string used for MMS.
-
hashCode
int hashCode()
-
-
-
-