Package com.google.apphosting.base
Class AppVersionKey
- java.lang.Object
-
- com.google.apphosting.base.AppVersionKey
-
public abstract class AppVersionKey extends Object
A simple immutable data container class that identifies a single version of specific application.Static factory methods are provided to create AppVersionKey's from AppInfo and UPRequests.
-
-
Constructor Summary
Constructors Constructor Description AppVersionKey()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static AppVersionKey
fromAppInfo(com.google.apphosting.base.protos.AppinfoPb.AppInfo appInfo)
static AppVersionKey
fromUpRequest(com.google.apphosting.base.protos.RuntimePb.UPRequest request)
abstract String
getAppId()
abstract String
getVersionId()
static AppVersionKey
of(String appId, String versionId)
String
toString()
-
-
-
Method Detail
-
fromAppInfo
public static AppVersionKey fromAppInfo(com.google.apphosting.base.protos.AppinfoPb.AppInfo appInfo)
-
fromUpRequest
public static AppVersionKey fromUpRequest(com.google.apphosting.base.protos.RuntimePb.UPRequest request)
-
of
public static AppVersionKey of(String appId, String versionId)
-
getAppId
public abstract String getAppId()
-
getVersionId
public abstract String getVersionId()
-
-