code: @SuppressWarnings("WeakerAccess")
    public String getInstanceId() {
      AppProfileName fullName =
          Verify.verifyNotNull(AppProfileName.parse(proto.getName()), "Name can never be null");
  
      //noinspection ConstantConditions
      return fullName.getInstance();
    }
docs: Gets the id of the instance that owns this AppProfile.