当前位置: 首页>>代码示例>>Java>>正文


Java CodedOutputByteBufferNano.computeInt32Size方法代码示例

本文整理汇总了Java中com.google.protobuf.nano.CodedOutputByteBufferNano.computeInt32Size方法的典型用法代码示例。如果您正苦于以下问题:Java CodedOutputByteBufferNano.computeInt32Size方法的具体用法?Java CodedOutputByteBufferNano.computeInt32Size怎么用?Java CodedOutputByteBufferNano.computeInt32Size使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.protobuf.nano.CodedOutputByteBufferNano的用法示例。


在下文中一共展示了CodedOutputByteBufferNano.computeInt32Size方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasDeviceId) || (!this.deviceId.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(1, this.deviceId);
  }
  if ((this.os != 0) || (this.hasOs)) {
    i += CodedOutputByteBufferNano.computeInt32Size(2, this.os);
  }
  if ((this.hasAppId) || (!this.appId.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(3, this.appId);
  }
  if ((this.hasAppVersion) || (!this.appVersion.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(4, this.appVersion);
  }
  if ((this.hasMccMnc) || (!this.mccMnc.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(5, this.mccMnc);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:21,代码来源:ClientAnalytics.java

示例2: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if (this.docid != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(1, this.docid);
  }
  if ((this.hasTitle) || (!this.title.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(2, this.title);
  }
  if ((this.hasVersionCode) || (this.versionCode != 0)) {
    i += CodedOutputByteBufferNano.computeInt32Size(3, this.versionCode);
  }
  if (this.thumbnailImage != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(4, this.thumbnailImage);
  }
  if ((this.hasRestorePriority) || (this.restorePriority != 0)) {
    i += CodedOutputByteBufferNano.computeInt32Size(5, this.restorePriority);
  }
  if ((this.installLocation != 0) || (this.hasInstallLocation)) {
    i += CodedOutputByteBufferNano.computeInt32Size(6, this.installLocation);
  }
  if ((this.hasSize) || (this.size != 0L)) {
    i += CodedOutputByteBufferNano.computeInt64Size(7, this.size);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:27,代码来源:Restore.java

示例3: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasLevel) || (this.level != 0)) {
    i += CodedOutputByteBufferNano.computeInt32Size(1, this.level);
  }
  if (this.imageFife != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(2, this.imageFife);
  }
  if ((this.hasLabel) || (!this.label.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(3, this.label);
  }
  if ((this.hasDfeHeaderValue) || (!this.dfeHeaderValue.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(4, this.dfeHeaderValue);
  }
  if ((this.hasSelected) || (this.selected)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(5);
  }
  if ((this.hasLabelSummary) || (!this.labelSummary.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(6, this.labelSummary);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:24,代码来源:ContentFilters.java

示例4: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasAndroidId) || (this.androidId != 0L)) {
    i += 8 + CodedOutputByteBufferNano.computeTagSize(10);
  }
  if ((this.deviceRestriction != 1) || (this.hasDeviceRestriction)) {
    i += CodedOutputByteBufferNano.computeInt32Size(11, this.deviceRestriction);
  }
  if ((this.hasChannelId) || (this.channelId != 0L)) {
    i += CodedOutputByteBufferNano.computeInt64Size(12, this.channelId);
  }
  if (this.filterInfo != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(15, this.filterInfo);
  }
  if ((this.hasAvailableIfOwned) || (this.availableIfOwned)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(22);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:21,代码来源:FilterRules.java

示例5: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.offerType != 1) || (this.hasOfferType)) {
    i += CodedOutputByteBufferNano.computeInt32Size(1, this.offerType);
  }
  if ((this.hasOfferAbbreviation) || (!this.offerAbbreviation.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(2, this.offerAbbreviation);
  }
  if ((this.hasRentalHeader) || (!this.rentalHeader.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(3, this.rentalHeader);
  }
  if ((this.term != null) && (this.term.length > 0)) {
    for (int j = 0; j < this.term.length; j++)
    {
      Term localTerm = this.term[j];
      if (localTerm != null) {
        i += CodedOutputByteBufferNano.computeGroupSize(4, localTerm);
      }
    }
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:24,代码来源:VideoRentalTerm.java

示例6: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.instrumentFamily != 0) || (this.hasInstrumentFamily)) {
    i += CodedOutputByteBufferNano.computeInt32Size(1, this.instrumentFamily);
  }
  if ((this.hasSupported) || (this.supported)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(2);
  }
  if (this.addressChallenge != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(3, this.addressChallenge);
  }
  if (this.balance != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(4, this.balance);
  }
  if ((this.footerHtml != null) && (this.footerHtml.length > 0))
  {
    int j = 0;
    int k = 0;
    for (int m = 0; m < this.footerHtml.length; m++)
    {
      String str = this.footerHtml[m];
      if (str != null)
      {
        j++;
        k += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
      }
    }
    i = i + k + j * 1;
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:33,代码来源:InstrumentSetupInfo.java

示例7: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasUrl) || (!this.url.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(2, this.url);
  }
  if ((this.hasStartTimestampMs) || (this.startTimestampMs != 0L)) {
    i += CodedOutputByteBufferNano.computeInt64Size(3, this.startTimestampMs);
  }
  if ((this.hasEndTimestampMs) || (this.endTimestampMs != 0L)) {
    i += CodedOutputByteBufferNano.computeInt64Size(4, this.endTimestampMs);
  }
  if ((this.hasErrorCode) || (this.errorCode != 0)) {
    i += CodedOutputByteBufferNano.computeInt32Size(5, this.errorCode);
  }
  if ((this.hasErrorDescription) || (!this.errorDescription.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(6, this.errorDescription);
  }
  if ((this.hasOrientation) || (this.orientation != 0)) {
    i += CodedOutputByteBufferNano.computeInt32Size(7, this.orientation);
  }
  if ((this.hasScreenWidthPx) || (this.screenWidthPx != 0)) {
    i += CodedOutputByteBufferNano.computeInt32Size(8, this.screenWidthPx);
  }
  if ((this.hasScreenHeightPx) || (this.screenHeightPx != 0)) {
    i += CodedOutputByteBufferNano.computeInt32Size(9, this.screenHeightPx);
  }
  if ((this.hasScreenXDpi) || (Float.floatToIntBits(this.screenXDpi) != Float.floatToIntBits(0.0F))) {
    i += 4 + CodedOutputByteBufferNano.computeTagSize(10);
  }
  if ((this.hasScreenYDpi) || (Float.floatToIntBits(this.screenYDpi) != Float.floatToIntBits(0.0F))) {
    i += 4 + CodedOutputByteBufferNano.computeTagSize(11);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:36,代码来源:PlayStore.java

示例8: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.licensedOfferType != 1) || (this.hasLicensedOfferType)) {
    i += CodedOutputByteBufferNano.computeInt32Size(1, this.licensedOfferType);
  }
  if ((this.hasGaiaGroupId) || (this.gaiaGroupId != 0L)) {
    i += 8 + CodedOutputByteBufferNano.computeTagSize(2);
  }
  if (this.groupLicenseKey != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(3, this.groupLicenseKey);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:15,代码来源:GroupLicense.java

示例9: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasVersionCode) || (this.versionCode != 0)) {
    i += CodedOutputByteBufferNano.computeInt32Size(1, this.versionCode);
  }
  if ((this.hasAssetId) || (!this.assetId.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(2, this.assetId);
  }
  if ((this.hasInstallReferrer) || (!this.installReferrer.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(3, this.installReferrer);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:15,代码来源:AndroidAppNotificationData.java

示例10: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if (this.externalLinks != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(1, this.externalLinks);
  }
  if ((this.primaryRoleId != 0) || (this.hasPrimaryRoleId)) {
    i += CodedOutputByteBufferNano.computeInt32Size(2, this.primaryRoleId);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:12,代码来源:DocDetails.java

示例11: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if (this.purchaseDoc != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(1, this.purchaseDoc);
  }
  if ((this.purchaseOfferType != 1) || (this.hasPurchaseOfferType)) {
    i += CodedOutputByteBufferNano.computeInt32Size(2, this.purchaseOfferType);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:12,代码来源:Acquisition.java

示例12: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.statusCode != 0) || (this.hasStatusCode)) {
    i += CodedOutputByteBufferNano.computeInt32Size(1, this.statusCode);
  }
  if ((this.hasErrorMessageHtml) || (!this.errorMessageHtml.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(2, this.errorMessageHtml);
  }
  if ((this.permissionError != 0) || (this.hasPermissionError)) {
    i += CodedOutputByteBufferNano.computeInt32Size(3, this.permissionError);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:15,代码来源:Purchase.java

示例13: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasTitle) || (!this.title.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(1, this.title);
  }
  if ((this.hasServerLogsCookie) || (!Arrays.equals(this.serverLogsCookie, WireFormatNano.EMPTY_BYTES))) {
    i += CodedOutputByteBufferNano.computeBytesSize(2, this.serverLogsCookie);
  }
  if ((this.hasListUrl) || (!this.listUrl.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(3, this.listUrl);
  }
  if ((this.category != null) && (this.category.length > 0)) {
    for (int k = 0; k < this.category.length; k++)
    {
      Browse.BrowseLink localBrowseLink = this.category[k];
      if (localBrowseLink != null) {
        i += CodedOutputByteBufferNano.computeMessageSize(4, localBrowseLink);
      }
    }
  }
  if ((this.quickLink != null) && (this.quickLink.length > 0)) {
    for (int j = 0; j < this.quickLink.length; j++)
    {
      Browse.QuickLink localQuickLink = this.quickLink[j];
      if (localQuickLink != null) {
        i += CodedOutputByteBufferNano.computeMessageSize(5, localQuickLink);
      }
    }
  }
  if ((this.hasQuickLinkTitle) || (!this.quickLinkTitle.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(6, this.quickLinkTitle);
  }
  if ((this.hasCategoriesTitle) || (!this.categoriesTitle.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(7, this.categoriesTitle);
  }
  if ((this.backendId != 0) || (this.hasBackendId)) {
    i += CodedOutputByteBufferNano.computeInt32Size(8, this.backendId);
  }
  if ((this.hasHighlightsBannerUrl) || (!this.highlightsBannerUrl.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(9, this.highlightsBannerUrl);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:45,代码来源:Browse.java

示例14: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if (!this.imsiHash.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(1, this.imsiHash);
  }
  if (!this.mccMnc.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(2, this.mccMnc);
  }
  if (!this.osVersion.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(3, this.osVersion);
  }
  if (!this.device.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(4, this.device);
  }
  if (this.screenWidthPx != 0) {
    i += CodedOutputByteBufferNano.computeInt32Size(5, this.screenWidthPx);
  }
  if (this.screenHeightPx != 0) {
    i += CodedOutputByteBufferNano.computeInt32Size(6, this.screenHeightPx);
  }
  if (Float.floatToIntBits(this.screenXDpi) != Float.floatToIntBits(0.0F)) {
    i += 4 + CodedOutputByteBufferNano.computeTagSize(7);
  }
  if (Float.floatToIntBits(this.screenYDpi) != Float.floatToIntBits(0.0F)) {
    i += 4 + CodedOutputByteBufferNano.computeTagSize(8);
  }
  if (!this.packageName.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(9, this.packageName);
  }
  if (!this.packageVersionCode.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(10, this.packageVersionCode);
  }
  if (!this.packageVersionName.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(11, this.packageVersionName);
  }
  if (this.riskData != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(12, this.riskData);
  }
  if (!this.integratorPackageName.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(13, this.integratorPackageName);
  }
  if (!this.marketClientId.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(14, this.marketClientId);
  }
  if (this.androidClientSubtype != 0) {
    i += CodedOutputByteBufferNano.computeInt32Size(15, this.androidClientSubtype);
  }
  if (this.readPhoneStatePermissionState != 0) {
    i += CodedOutputByteBufferNano.computeInt32Size(16, this.readPhoneStatePermissionState);
  }
  if (!this.simOperatorName.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(17, this.simOperatorName);
  }
  if (!this.gid1.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(18, this.gid1);
  }
  if (this.roundedImsi != 0L) {
    i += CodedOutputByteBufferNano.computeInt64Size(19, this.roundedImsi);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:63,代码来源:ContextOuterClass.java

示例15: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.imageType != 0) || (this.hasImageType)) {
    i += CodedOutputByteBufferNano.computeInt32Size(1, this.imageType);
  }
  if (this.dimension != null) {
    i += CodedOutputByteBufferNano.computeGroupSize(2, this.dimension);
  }
  if ((this.hasImageUrl) || (!this.imageUrl.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(5, this.imageUrl);
  }
  if ((this.hasAltTextLocalized) || (!this.altTextLocalized.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(6, this.altTextLocalized);
  }
  if ((this.hasSecureUrl) || (!this.secureUrl.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(7, this.secureUrl);
  }
  if ((this.hasPositionInSequence) || (this.positionInSequence != 0)) {
    i += CodedOutputByteBufferNano.computeInt32Size(8, this.positionInSequence);
  }
  if ((this.hasSupportsFifeUrlOptions) || (this.supportsFifeUrlOptions)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(9);
  }
  if (this.citation != null) {
    i += CodedOutputByteBufferNano.computeGroupSize(10, this.citation);
  }
  if ((this.hasDurationSeconds) || (this.durationSeconds != 0)) {
    i += CodedOutputByteBufferNano.computeInt32Size(14, this.durationSeconds);
  }
  if ((this.hasFillColorRgb) || (!this.fillColorRgb.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(15, this.fillColorRgb);
  }
  if ((this.hasAutogen) || (this.autogen)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(16);
  }
  if (this.attribution != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(17, this.attribution);
  }
  if ((this.hasBackgroundColorRgb) || (!this.backgroundColorRgb.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(19, this.backgroundColorRgb);
  }
  if (this.palette != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(20, this.palette);
  }
  if ((this.deviceClass != 0) || (this.hasDeviceClass)) {
    i += CodedOutputByteBufferNano.computeInt32Size(21, this.deviceClass);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:51,代码来源:Common.java


注:本文中的com.google.protobuf.nano.CodedOutputByteBufferNano.computeInt32Size方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。