• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java CodedOutputByteBufferNano类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if (this.doc != null) {
    paramCodedOutputByteBufferNano.writeMessage(1, this.doc);
  }
  if ((this.offer != null) && (this.offer.length > 0)) {
    for (int i = 0; i < this.offer.length; i++)
    {
      Common.Offer localOffer = this.offer[i];
      if (localOffer != null) {
        paramCodedOutputByteBufferNano.writeMessage(2, localOffer);
      }
    }
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:18,代码来源:VoucherInfo.java


示例2: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if (!this.displayValue.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(1, this.displayValue);
  }
  if (!this.value.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(2, this.value);
  }
  if (this.extendedDescriptionInfo != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(4, this.extendedDescriptionInfo);
  }
  if (this.uiReference != 0) {
    i += CodedOutputByteBufferNano.computeInt32Size(5, this.uiReference);
  }
  if (this.icon != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(6, this.icon);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:21,代码来源:UiFieldOuterClass.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: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasFamilyId) || (this.familyId != 0L)) {
    paramCodedOutputByteBufferNano.writeFixed64(1, this.familyId);
  }
  if ((this.hasAskToBuy) || (this.askToBuy)) {
    paramCodedOutputByteBufferNano.writeBool(2, this.askToBuy);
  }
  if ((this.hasHohObfuscatedGaiaId) || (!this.hohObfuscatedGaiaId.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(3, this.hohObfuscatedGaiaId);
  }
  if ((this.hasHohEmailAddress) || (!this.hohEmailAddress.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(4, this.hohEmailAddress);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:18,代码来源:Instrument.java


示例5: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if (this.initialPage != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(4, this.initialPage);
  }
  if (this.error != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(5, this.error);
  }
  if (this.context != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(6, this.context);
  }
  if (this.flowComplete) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(8);
  }
  if (this.secureHeader != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(9, this.secureHeader);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:21,代码来源:Api.java


示例6: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.componentsDependency != null) && (this.componentsDependency.length > 0)) {
    for (int k = 0; k < this.componentsDependency.length; k++)
    {
      DependencyGraphOuterClass.ComponentsDependency localComponentsDependency = this.componentsDependency[k];
      if (localComponentsDependency != null) {
        i += CodedOutputByteBufferNano.computeMessageSize(1, localComponentsDependency);
      }
    }
  }
  if ((this.valuesDependency != null) && (this.valuesDependency.length > 0)) {
    for (int j = 0; j < this.valuesDependency.length; j++)
    {
      DependencyGraphOuterClass.ComponentValuesDependency localComponentValuesDependency = this.valuesDependency[j];
      if (localComponentValuesDependency != null) {
        i += CodedOutputByteBufferNano.computeMessageSize(2, localComponentValuesDependency);
      }
    }
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:24,代码来源:DependencyGraphOuterClass.java


示例7: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasInstrumentType) || (!this.instrumentType.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(1, this.instrumentType);
  }
  if ((this.hasFlowHandle) || (!Arrays.equals(this.flowHandle, WireFormatNano.EMPTY_BYTES))) {
    paramCodedOutputByteBufferNano.writeBytes(2, this.flowHandle);
  }
  if ((this.flowType != 0) || (this.hasFlowType)) {
    paramCodedOutputByteBufferNano.writeInt32(3, this.flowType);
  }
  if ((this.hasApiVersion) || (this.apiVersion != 0)) {
    paramCodedOutputByteBufferNano.writeInt32(4, this.apiVersion);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:18,代码来源:CreateInstrument.java


示例8: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if (this.defaultMessage != null) {
    paramCodedOutputByteBufferNano.writeMessage(1, this.defaultMessage);
  }
  if ((this.messageByCountry != null) && (this.messageByCountry.length > 0)) {
    for (int i = 0; i < this.messageByCountry.length; i++)
    {
      LegalMessageSetOuterClass.LegalMessageByCountry localLegalMessageByCountry = this.messageByCountry[i];
      if (localLegalMessageByCountry != null) {
        paramCodedOutputByteBufferNano.writeMessage(2, localLegalMessageByCountry);
      }
    }
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:18,代码来源:LegalMessageSetOuterClass.java


示例9: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if (this.error != null) {
    paramCodedOutputByteBufferNano.writeMessage(1, this.error);
  }
  if (this.context != null) {
    paramCodedOutputByteBufferNano.writeMessage(2, this.context);
  }
  if (this.secureHeader != null) {
    paramCodedOutputByteBufferNano.writeMessage(3, this.secureHeader);
  }
  if (this.flowInstruction != 0) {
    paramCodedOutputByteBufferNano.writeInt32(4, this.flowInstruction);
  }
  if (this.nextPage != null) {
    paramCodedOutputByteBufferNano.writeMessage(5, this.nextPage);
  }
  if (!this.checkoutOrderId.equals("")) {
    paramCodedOutputByteBufferNano.writeString(6, this.checkoutOrderId);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:24,代码来源:Api.java


示例10: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.fileType != 0) || (this.hasFileType)) {
    paramCodedOutputByteBufferNano.writeInt32(1, this.fileType);
  }
  if ((this.hasVersionCode) || (this.versionCode != 0)) {
    paramCodedOutputByteBufferNano.writeInt32(2, this.versionCode);
  }
  if ((this.hasSize) || (this.size != 0L)) {
    paramCodedOutputByteBufferNano.writeInt64(3, this.size);
  }
  if ((this.hasDownloadUrl) || (!this.downloadUrl.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(4, this.downloadUrl);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:18,代码来源:VendingProtos.java


示例11: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasTip) || (!this.tip.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(1, this.tip);
  }
  if ((this.hasText) || (!this.text.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(2, this.text);
  }
  if ((this.hasReviewCount) || (this.reviewCount != 0L)) {
    i += CodedOutputByteBufferNano.computeInt64Size(3, this.reviewCount);
  }
  if ((this.hasTipReviewsUrl) || (!this.tipReviewsUrl.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(4, this.tipReviewsUrl);
  }
  if ((this.hasSnippedAtBeginning) || (this.snippedAtBeginning)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(5);
  }
  if ((this.hasSnippedAtEnd) || (this.snippedAtEnd)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(6);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:24,代码来源:ReviewSnippet.java


示例12: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasLevel) || (this.level != 0)) {
    paramCodedOutputByteBufferNano.writeInt32(1, this.level);
  }
  if (this.imageFife != null) {
    paramCodedOutputByteBufferNano.writeMessage(2, this.imageFife);
  }
  if ((this.hasLabel) || (!this.label.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(3, this.label);
  }
  if ((this.hasDfeHeaderValue) || (!this.dfeHeaderValue.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(4, this.dfeHeaderValue);
  }
  if ((this.hasSelected) || (this.selected)) {
    paramCodedOutputByteBufferNano.writeBool(5, this.selected);
  }
  if ((this.hasLabelSummary) || (!this.labelSummary.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(6, this.labelSummary);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:24,代码来源:ContentFilters.java


示例13: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if (this.formHeader != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(1, this.formHeader);
  }
  if ((this.field != null) && (this.field.length > 0)) {
    for (int j = 0; j < this.field.length; j++)
    {
      SimpleFormOuterClass.Field localField = this.field[j];
      if (localField != null) {
        i += CodedOutputByteBufferNano.computeMessageSize(2, localField);
      }
    }
  }
  if (this.legalMessage != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(3, this.legalMessage);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:21,代码来源:SimpleFormOuterClass.java


示例14: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if (this.installAsset != null) {
    i += CodedOutputByteBufferNano.computeGroupSize(1, this.installAsset);
  }
  if ((this.additionalFile != null) && (this.additionalFile.length > 0)) {
    for (int j = 0; j < this.additionalFile.length; j++)
    {
      VendingProtos.FileMetadataProto localFileMetadataProto = this.additionalFile[j];
      if (localFileMetadataProto != null) {
        i += CodedOutputByteBufferNano.computeMessageSize(15, localFileMetadataProto);
      }
    }
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:18,代码来源:VendingProtos.java


示例15: 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.hasBackground) || (this.background)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(4);
  }
  if ((this.hasCritical) || (this.critical)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(5);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:21,代码来源:EarlyDocumentInfo.java


示例16: computeSerializedSize

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasOptionsContainerDocidDeprecated) || (!this.optionsContainerDocidDeprecated.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(1, this.optionsContainerDocidDeprecated);
  }
  if ((this.hasOptionsListUrl) || (!this.optionsListUrl.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(2, this.optionsListUrl);
  }
  if ((this.hasSubtitle) || (!this.subtitle.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(3, this.subtitle);
  }
  if (this.optionsContainerDocid != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(4, this.optionsContainerDocid);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:18,代码来源:TopupInfo.java


示例17: 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(1, this.url);
  }
  if ((this.type != 0) || (this.hasType)) {
    i += CodedOutputByteBufferNano.computeInt32Size(2, this.type);
  }
  if ((this.hasRemoteIp) || (!Arrays.equals(this.remoteIp, WireFormatNano.EMPTY_BYTES))) {
    i += CodedOutputByteBufferNano.computeBytesSize(3, this.remoteIp);
  }
  if ((this.hasReferrer) || (!this.referrer.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(4, this.referrer);
  }
  return i;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:18,代码来源:CsdClient.java


示例18: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasData) || (!this.data.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(1, this.data);
  }
  if ((this.hasEncryptedKey) || (!this.encryptedKey.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(2, this.encryptedKey);
  }
  if ((this.hasSignature) || (!this.signature.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(3, this.signature);
  }
  if ((this.hasInitVector) || (!this.initVector.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(4, this.initVector);
  }
  if ((this.hasGoogleKeyVersion) || (this.googleKeyVersion != 0)) {
    paramCodedOutputByteBufferNano.writeInt32(5, this.googleKeyVersion);
  }
  if ((this.hasCarrierKeyVersion) || (this.carrierKeyVersion != 0)) {
    paramCodedOutputByteBufferNano.writeInt32(6, this.carrierKeyVersion);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:24,代码来源:EncryptedSubscriberInfo.java


示例19: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasHeaderText) || (!this.headerText.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(1, this.headerText);
  }
  if ((this.hasDescriptionHtml) || (!this.descriptionHtml.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(2, this.descriptionHtml);
  }
  if (this.image != null) {
    paramCodedOutputByteBufferNano.writeMessage(3, this.image);
  }
  if ((this.hasIntroductoryTextHtml) || (!this.introductoryTextHtml.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(4, this.introductoryTextHtml);
  }
  if ((this.hasOfferTitle) || (!this.offerTitle.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(5, this.offerTitle);
  }
  if ((this.hasNoActionDescription) || (!this.noActionDescription.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(6, this.noActionDescription);
  }
  if ((this.hasTermsAndConditionsHtml) || (!this.termsAndConditionsHtml.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(7, this.termsAndConditionsHtml);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:27,代码来源:AddCreditCardPromoOffer.java


示例20: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if (this.familyPurchaseSetting != null) {
    paramCodedOutputByteBufferNano.writeMessage(1, this.familyPurchaseSetting);
  }
  if ((this.purchaseOption != null) && (this.purchaseOption.length > 0)) {
    for (int i = 0; i < this.purchaseOption.length; i++)
    {
      FamilyPurchaseSettingOption localFamilyPurchaseSettingOption = this.purchaseOption[i];
      if (localFamilyPurchaseSettingOption != null) {
        paramCodedOutputByteBufferNano.writeMessage(2, localFamilyPurchaseSettingOption);
      }
    }
  }
  if ((this.hasPurchaseSettingTitle) || (!this.purchaseSettingTitle.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(3, this.purchaseSettingTitle);
  }
  if ((this.hasPurchaseSettingSubtitle) || (!this.purchaseSettingSubtitle.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(4, this.purchaseSettingSubtitle);
  }
  if ((this.hasLearnMoreText) || (!this.learnMoreText.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(5, this.learnMoreText);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:27,代码来源:GetFamilyPurchaseSettingResponse.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java MockRegionServerServices类代码示例发布时间:2022-05-23
下一篇:
Java JavaMethod类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap