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


Java CodedOutputByteBufferNano.writeString方法代码示例

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


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

示例1: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if (this.address != null) {
    paramCodedOutputByteBufferNano.writeMessage(1, this.address);
  }
  if (!this.phoneNumber.equals("")) {
    paramCodedOutputByteBufferNano.writeString(2, this.phoneNumber);
  }
  if (this.isHidden) {
    paramCodedOutputByteBufferNano.writeBool(3, this.isHidden);
  }
  if (!this.id.equals("")) {
    paramCodedOutputByteBufferNano.writeString(5, this.id);
  }
  if (!Arrays.equals(this.dataToken, WireFormatNano.EMPTY_BYTES)) {
    paramCodedOutputByteBufferNano.writeBytes(7, this.dataToken);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:21,代码来源:AddressFormOuterClass.java

示例2: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasSeasonCount) || (this.seasonCount != 0)) {
    paramCodedOutputByteBufferNano.writeInt32(1, this.seasonCount);
  }
  if ((this.hasStartYear) || (this.startYear != 0)) {
    paramCodedOutputByteBufferNano.writeInt32(2, this.startYear);
  }
  if ((this.hasEndYear) || (this.endYear != 0)) {
    paramCodedOutputByteBufferNano.writeInt32(3, this.endYear);
  }
  if ((this.hasBroadcaster) || (!this.broadcaster.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(4, this.broadcaster);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:18,代码来源:TvShowDetails.java

示例3: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasTickerText) || (!this.tickerText.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(1, this.tickerText);
  }
  if ((this.hasContentTitle) || (!this.contentTitle.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(2, this.contentTitle);
  }
  if ((this.hasContentText) || (!this.contentText.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(3, this.contentText);
  }
  if ((this.severity != 0) || (this.hasSeverity)) {
    paramCodedOutputByteBufferNano.writeInt32(4, this.severity);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:18,代码来源:VendingProtos.java

示例4: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasEventTime) || (this.eventTime != 0L)) {
    paramCodedOutputByteBufferNano.writeInt64(1, this.eventTime);
  }
  if ((this.hasUrl) || (!this.url.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(2, this.url);
  }
  if ((this.hasListId) || (!this.listId.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(3, this.listId);
  }
  if ((this.hasReferrerUrl) || (!this.referrerUrl.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(4, this.referrerUrl);
  }
  if ((this.hasReferrerListId) || (!this.referrerListId.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(5, this.referrerListId);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:21,代码来源:Log.java

示例5: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if (this.docid != null) {
    paramCodedOutputByteBufferNano.writeMessage(1, this.docid);
  }
  if ((this.hasVersionCode) || (this.versionCode != 0)) {
    paramCodedOutputByteBufferNano.writeInt32(2, this.versionCode);
  }
  if ((this.hasTitle) || (!this.title.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(3, this.title);
  }
  if (this.icon != null) {
    paramCodedOutputByteBufferNano.writeMessage(4, this.icon);
  }
  if ((this.hasDeliveryToken) || (!this.deliveryToken.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(5, this.deliveryToken);
  }
  if ((this.installLocation != 0) || (this.hasInstallLocation)) {
    paramCodedOutputByteBufferNano.writeInt32(6, this.installLocation);
  }
  if ((this.hasSize) || (this.size != 0L)) {
    paramCodedOutputByteBufferNano.writeInt64(7, this.size);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:27,代码来源:Preloads.java

示例6: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if (this.icon != null) {
    paramCodedOutputByteBufferNano.writeMessage(3, this.icon);
  }
  if (!this.title.equals("")) {
    paramCodedOutputByteBufferNano.writeString(4, this.title);
  }
  if (this.infoMessage != null) {
    paramCodedOutputByteBufferNano.writeMessage(5, this.infoMessage);
  }
  if ((this.image != null) && (this.image.length > 0)) {
    for (int i = 0; i < this.image.length; i++)
    {
      ImageWithCaptionOuterClass.ImageWithCaption localImageWithCaption = this.image[i];
      if (localImageWithCaption != null) {
        paramCodedOutputByteBufferNano.writeMessage(6, localImageWithCaption);
      }
    }
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:24,代码来源:TooltipOuterClass.java

示例7: writeTo

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

示例8: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasParentDetailsUrl) || (!this.parentDetailsUrl.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(1, this.parentDetailsUrl);
  }
  if ((this.hasSeasonIndex) || (this.seasonIndex != 0)) {
    paramCodedOutputByteBufferNano.writeInt32(2, this.seasonIndex);
  }
  if ((this.hasReleaseDate) || (!this.releaseDate.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(3, this.releaseDate);
  }
  if ((this.hasBroadcaster) || (!this.broadcaster.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(4, this.broadcaster);
  }
  if ((this.hasEpisodeCount) || (this.episodeCount != 0)) {
    paramCodedOutputByteBufferNano.writeInt32(5, this.episodeCount);
  }
  if ((this.hasExpectedEpisodeCount) || (this.expectedEpisodeCount != 0)) {
    paramCodedOutputByteBufferNano.writeInt32(6, this.expectedEpisodeCount);
  }
  if ((this.hasInProgress) || (this.inProgress)) {
    paramCodedOutputByteBufferNano.writeBool(7, this.inProgress);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:27,代码来源:TvSeasonDetails.java

示例9: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasDocid) || (!this.docid.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(1, this.docid);
  }
  if ((this.mode != 0) || (this.hasMode)) {
    paramCodedOutputByteBufferNano.writeInt32(2, this.mode);
  }
  if ((this.hasConsistencyToken) || (!this.consistencyToken.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(3, this.consistencyToken);
  }
  if ((this.hasSelectedPurchaseOptionId) || (this.selectedPurchaseOptionId != 0)) {
    paramCodedOutputByteBufferNano.writeInt32(4, this.selectedPurchaseOptionId);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:18,代码来源:FamilyPurchaseSetting.java

示例10: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasLocalizedDescriptionHtml) || (!this.localizedDescriptionHtml.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(1, this.localizedDescriptionHtml);
  }
  if ((this.oBSOLETEPlusProfile != null) && (this.oBSOLETEPlusProfile.length > 0)) {
    for (int j = 0; j < this.oBSOLETEPlusProfile.length; j++)
    {
      OBSOLETE_PlusProfile localOBSOLETE_PlusProfile = this.oBSOLETEPlusProfile[j];
      if (localOBSOLETE_PlusProfile != null) {
        paramCodedOutputByteBufferNano.writeMessage(2, localOBSOLETE_PlusProfile);
      }
    }
  }
  if ((this.person != null) && (this.person.length > 0)) {
    for (int i = 0; i < this.person.length; i++)
    {
      DocV2 localDocV2 = this.person[i];
      if (localDocV2 != null) {
        paramCodedOutputByteBufferNano.writeMessage(3, localDocV2);
      }
    }
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:27,代码来源:ReasonPlusOne.java

示例11: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.appType != 0) || (this.hasAppType)) {
    paramCodedOutputByteBufferNano.writeInt32(1, this.appType);
  }
  if ((this.hasAndroidPackageName) || (!this.androidPackageName.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(2, this.androidPackageName);
  }
  if ((this.hasVersion) || (!this.version.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(3, this.version);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:15,代码来源:ClientAnalytics.java

示例12: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if (this.docV1 != null) {
    paramCodedOutputByteBufferNano.writeMessage(1, this.docV1);
  }
  if ((this.hasAnalyticsCookie) || (!this.analyticsCookie.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(2, this.analyticsCookie);
  }
  if (this.userReview != null) {
    paramCodedOutputByteBufferNano.writeMessage(3, this.userReview);
  }
  if (this.docV2 != null) {
    paramCodedOutputByteBufferNano.writeMessage(4, this.docV2);
  }
  if ((this.hasFooterHtml) || (!this.footerHtml.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(5, this.footerHtml);
  }
  if ((this.hasServerLogsCookie) || (!Arrays.equals(this.serverLogsCookie, WireFormatNano.EMPTY_BYTES))) {
    paramCodedOutputByteBufferNano.writeBytes(6, this.serverLogsCookie);
  }
  if ((this.discoveryBadge != null) && (this.discoveryBadge.length > 0)) {
    for (int i = 0; i < this.discoveryBadge.length; i++)
    {
      Details.DiscoveryBadge localDiscoveryBadge = this.discoveryBadge[i];
      if (localDiscoveryBadge != null) {
        paramCodedOutputByteBufferNano.writeMessage(7, localDiscoveryBadge);
      }
    }
  }
  if ((this.hasEnableReviews) || (this.enableReviews != true)) {
    paramCodedOutputByteBufferNano.writeBool(8, this.enableReviews);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:36,代码来源:Details.java

示例13: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasCheckoutOrderId) || (!this.checkoutOrderId.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(1, this.checkoutOrderId);
  }
  if ((this.hasInAppNotificationId) || (!this.inAppNotificationId.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(2, this.inAppNotificationId);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:12,代码来源:InAppNotificationData.java

示例14: writeTo

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

示例15: writeTo

import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasTitle) || (!this.title.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(1, this.title);
  }
  if ((this.hasDescription) || (!this.description.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(2, this.description);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:12,代码来源:ChallengeProto.java


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