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


Java CodedOutputByteBufferNano.computeBytesSize方法代码示例

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


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

示例1: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasCertificate) || (!Arrays.equals(this.certificate, WireFormatNano.EMPTY_BYTES))) {
    i += CodedOutputByteBufferNano.computeBytesSize(1, this.certificate);
  }
  if ((this.hasParsedSuccessfully) || (this.parsedSuccessfully)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(2);
  }
  if ((this.hasSubject) || (!Arrays.equals(this.subject, WireFormatNano.EMPTY_BYTES))) {
    i += CodedOutputByteBufferNano.computeBytesSize(3, this.subject);
  }
  if ((this.hasIssuer) || (!Arrays.equals(this.issuer, WireFormatNano.EMPTY_BYTES))) {
    i += CodedOutputByteBufferNano.computeBytesSize(4, this.issuer);
  }
  if ((this.hasFingerprint) || (!Arrays.equals(this.fingerprint, WireFormatNano.EMPTY_BYTES))) {
    i += CodedOutputByteBufferNano.computeBytesSize(5, this.fingerprint);
  }
  if ((this.hasExpiryTime) || (this.expiryTime != 0L)) {
    i += CodedOutputByteBufferNano.computeInt64Size(6, this.expiryTime);
  }
  if ((this.hasStartTime) || (this.startTime != 0L)) {
    i += CodedOutputByteBufferNano.computeInt64Size(7, this.startTime);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:27,代码来源:CsdClient.java

示例2: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if (!this.id.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(1, this.id);
  }
  if (!Arrays.equals(this.dataToken, WireFormatNano.EMPTY_BYTES)) {
    i += CodedOutputByteBufferNano.computeBytesSize(2, this.dataToken);
  }
  if ((this.fieldValue != null) && (this.fieldValue.length > 0)) {
    for (int j = 0; j < this.fieldValue.length; j++)
    {
      SimpleFormOuterClass.FieldValue localFieldValue = this.fieldValue[j];
      if (localFieldValue != null) {
        i += CodedOutputByteBufferNano.computeMessageSize(3, localFieldValue);
      }
    }
  }
  if (!this.legalDocData.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(4, this.legalDocData);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:24,代码来源:SimpleFormOuterClass.java

示例3: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasSelected) || (this.selected)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(1);
  }
  if ((this.hasTitle) || (!this.title.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(2, this.title);
  }
  if ((this.hasListUrl) || (!this.listUrl.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(3, this.listUrl);
  }
  if ((this.hasServerLogsCookie) || (!Arrays.equals(this.serverLogsCookie, WireFormatNano.EMPTY_BYTES))) {
    i += CodedOutputByteBufferNano.computeBytesSize(4, this.serverLogsCookie);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:18,代码来源:Containers.java

示例4: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if (this.newCustomer != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(1, this.newCustomer);
  }
  if (this.newInstrument != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(2, this.newInstrument);
  }
  if (this.creditCardUpdateFormValue != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(3, this.creditCardUpdateFormValue);
  }
  if (!Arrays.equals(this.dependencyGraphRequestToken, WireFormatNano.EMPTY_BYTES)) {
    i += CodedOutputByteBufferNano.computeBytesSize(6, this.dependencyGraphRequestToken);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:18,代码来源:Api.java

示例5: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if (!this.name.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(1, this.name);
  }
  if (!this.stringValue.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(2, this.stringValue);
  }
  if (!Arrays.equals(this.dataToken, WireFormatNano.EMPTY_BYTES)) {
    i += CodedOutputByteBufferNano.computeBytesSize(6, this.dataToken);
  }
  if (this.date != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(7, this.date);
  }
  if (!this.secureStringValue.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(8, this.secureStringValue);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:21,代码来源:UiFieldOuterClass.java

示例6: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.componentIdToValidate != null) && (this.componentIdToValidate.length > 0))
  {
    int j = 0;
    for (int k = 0; k < this.componentIdToValidate.length; k++) {
      j += CodedOutputByteBufferNano.computeInt32SizeNoTag(this.componentIdToValidate[k]);
    }
    i = 1 + (i + j) + CodedOutputByteBufferNano.computeRawVarint32Size(j);
  }
  if (this.validateAllElements) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(2);
  }
  if (!Arrays.equals(this.requestToken, WireFormatNano.EMPTY_BYTES)) {
    i += CodedOutputByteBufferNano.computeBytesSize(5, this.requestToken);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:20,代码来源:DependencyGraphOuterClass.java

示例7: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasPurchaseTimestampMsec) || (this.purchaseTimestampMsec != 0L)) {
    i += CodedOutputByteBufferNano.computeInt64Size(2, this.purchaseTimestampMsec);
  }
  if ((this.hasPurchaseDetailsHtml) || (!this.purchaseDetailsHtml.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(3, this.purchaseDetailsHtml);
  }
  if (this.offer != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(5, this.offer);
  }
  if ((this.hasPurchaseStatus) || (!this.purchaseStatus.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(6, this.purchaseStatus);
  }
  if ((this.hasTitleBylineHtml) || (!this.titleBylineHtml.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(7, this.titleBylineHtml);
  }
  if ((this.hasClientRefundContext) || (!Arrays.equals(this.clientRefundContext, WireFormatNano.EMPTY_BYTES))) {
    i += CodedOutputByteBufferNano.computeBytesSize(8, this.clientRefundContext);
  }
  if (this.purchaseDetailsImage != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(9, this.purchaseDetailsImage);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:27,代码来源:PurchaseHistoryDetails.java

示例8: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasDocId) || (!this.docId.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(1, this.docId);
  }
  if ((this.hasImageBlob) || (!Arrays.equals(this.imageBlob, WireFormatNano.EMPTY_BYTES))) {
    i += CodedOutputByteBufferNano.computeBytesSize(2, this.imageBlob);
  }
  if (this.image != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(3, this.image);
  }
  if ((this.hasDescription) || (!this.description.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(4, this.description);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:18,代码来源:SearchSuggest.java

示例9: computeSerializedSize

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

示例10: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.status != 1) || (this.hasStatus)) {
    i += CodedOutputByteBufferNano.computeInt32Size(1, this.status);
  }
  if ((this.corpus != 0) || (this.hasCorpus)) {
    i += CodedOutputByteBufferNano.computeInt32Size(2, this.corpus);
  }
  if ((this.hasServerToken) || (!Arrays.equals(this.serverToken, WireFormatNano.EMPTY_BYTES))) {
    i += CodedOutputByteBufferNano.computeBytesSize(3, this.serverToken);
  }
  if ((this.mutation != null) && (this.mutation.length > 0)) {
    for (int j = 0; j < this.mutation.length; j++)
    {
      LibraryUpdateProto.LibraryMutation localLibraryMutation = this.mutation[j];
      if (localLibraryMutation != null) {
        i += CodedOutputByteBufferNano.computeMessageSize(4, localLibraryMutation);
      }
    }
  }
  if ((this.hasHasMore) || (this.hasMore)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(5);
  }
  if ((this.hasLibraryId) || (!this.libraryId.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(6, this.libraryId);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:30,代码来源:LibraryUpdateProto.java

示例11: computeSerializedSize

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

示例12: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if (!this.id.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(1, this.id);
  }
  if (!Arrays.equals(this.dataToken, WireFormatNano.EMPTY_BYTES)) {
    i += CodedOutputByteBufferNano.computeBytesSize(2, this.dataToken);
  }
  if (!this.countryCode.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(3, this.countryCode);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:15,代码来源:AddressFormOuterClass.java

示例13: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.binRange != null) && (this.binRange.length > 0)) {
    for (int j = 0; j < this.binRange.length; j++)
    {
      CreditCard.BinRange localBinRange = this.binRange[j];
      if (localBinRange != null) {
        i += CodedOutputByteBufferNano.computeMessageSize(1, localBinRange);
      }
    }
  }
  if (this.cvcLength != 0) {
    i += CodedOutputByteBufferNano.computeInt32Size(3, this.cvcLength);
  }
  if (!Arrays.equals(this.typeToken, WireFormatNano.EMPTY_BYTES)) {
    i += CodedOutputByteBufferNano.computeBytesSize(4, this.typeToken);
  }
  if (!this.cvcHintText.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(7, this.cvcHintText);
  }
  if (!this.cvcHintHeader.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(8, this.cvcHintHeader);
  }
  if (this.icon != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(9, this.icon);
  }
  if (this.cvcHintImage != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(11, this.cvcHintImage);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:33,代码来源:CreditCard.java

示例14: 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.image != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(2, this.image);
  }
  if ((this.hasBackgroundColor) || (this.backgroundColor != 0)) {
    i += CodedOutputByteBufferNano.computeInt32Size(3, this.backgroundColor);
  }
  if (this.discoveryBadgeLink != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(4, this.discoveryBadgeLink);
  }
  if ((this.hasServerLogsCookie) || (!Arrays.equals(this.serverLogsCookie, WireFormatNano.EMPTY_BYTES))) {
    i += CodedOutputByteBufferNano.computeBytesSize(5, this.serverLogsCookie);
  }
  if ((this.hasIsPlusOne) || (this.isPlusOne)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(6);
  }
  if ((this.hasAggregateRating) || (Float.floatToIntBits(this.aggregateRating) != Float.floatToIntBits(0.0F))) {
    i += 4 + CodedOutputByteBufferNano.computeTagSize(7);
  }
  if ((this.hasUserStarRating) || (this.userStarRating != 0)) {
    i += CodedOutputByteBufferNano.computeInt32Size(8, this.userStarRating);
  }
  if ((this.hasDownloadCount) || (!this.downloadCount.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(9, this.downloadCount);
  }
  if ((this.hasDownloadUnits) || (!this.downloadUnits.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(10, this.downloadUnits);
  }
  if ((this.hasContentDescription) || (!this.contentDescription.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(11, this.contentDescription);
  }
  if (this.playerBadge != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(12, this.playerBadge);
  }
  if (this.familyAgeRangeBadge != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(13, this.familyAgeRangeBadge);
  }
  if (this.familyCategoryBadge != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(14, this.familyCategoryBadge);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:48,代码来源:Details.java

示例15: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if (this.purchaseResponse != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(1, this.purchaseResponse);
  }
  if (this.checkoutInfo != null) {
    i += CodedOutputByteBufferNano.computeGroupSize(2, this.checkoutInfo);
  }
  if ((this.hasContinueViaUrl) || (!this.continueViaUrl.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(8, this.continueViaUrl);
  }
  if ((this.hasPurchaseStatusUrl) || (!this.purchaseStatusUrl.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(9, this.purchaseStatusUrl);
  }
  if ((this.hasCheckoutServiceId) || (!this.checkoutServiceId.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(12, this.checkoutServiceId);
  }
  if ((this.hasBaseCheckoutUrl) || (!this.baseCheckoutUrl.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(14, this.baseCheckoutUrl);
  }
  if ((this.tosCheckboxHtml != null) && (this.tosCheckboxHtml.length > 0))
  {
    int j = 0;
    int k = 0;
    for (int m = 0; m < this.tosCheckboxHtml.length; m++)
    {
      String str = this.tosCheckboxHtml[m];
      if (str != null)
      {
        j++;
        k += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
      }
    }
    i = i + k + j * 2;
  }
  if ((this.permissionError != 0) || (this.hasPermissionError)) {
    i += CodedOutputByteBufferNano.computeInt32Size(38, this.permissionError);
  }
  if (this.purchaseStatusResponse != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(39, this.purchaseStatusResponse);
  }
  if ((this.hasPurchaseCookie) || (!this.purchaseCookie.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(46, this.purchaseCookie);
  }
  if (this.challenge != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(49, this.challenge);
  }
  if ((this.hasAddInstrumentPromptHtml) || (!this.addInstrumentPromptHtml.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(50, this.addInstrumentPromptHtml);
  }
  if ((this.hasConfirmButtonText) || (!this.confirmButtonText.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(51, this.confirmButtonText);
  }
  if ((this.hasPermissionErrorTitleText) || (!this.permissionErrorTitleText.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(52, this.permissionErrorTitleText);
  }
  if ((this.hasPermissionErrorMessageText) || (!this.permissionErrorMessageText.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(53, this.permissionErrorMessageText);
  }
  if ((this.hasServerLogsCookie) || (!Arrays.equals(this.serverLogsCookie, WireFormatNano.EMPTY_BYTES))) {
    i += CodedOutputByteBufferNano.computeBytesSize(54, this.serverLogsCookie);
  }
  if ((this.hasEncodedDeliveryToken) || (!this.encodedDeliveryToken.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(55, this.encodedDeliveryToken);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:69,代码来源:Buy.java


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