Java 类com.google.protobuf.nano.CodedOutputByteBufferNano 实例源码

项目:FMTech    文件:VoucherInfo.java   
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);
}
项目:FMTech    文件:UiFieldOuterClass.java   
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;
}
项目:FMTech    文件:Containers.java   
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;
}
项目:FMTech    文件:Instrument.java   
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);
}
项目:FMTech    文件:Api.java   
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;
}
项目:FMTech    文件:DependencyGraphOuterClass.java   
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;
}
项目:FMTech    文件:CreateInstrument.java   
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);
}
项目:FMTech    文件:LegalMessageSetOuterClass.java   
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);
}
项目:FMTech    文件:Api.java   
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);
}
项目:FMTech    文件:VendingProtos.java   
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);
}
项目:FMTech    文件:ReviewSnippet.java   
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;
}
项目:FMTech    文件:ContentFilters.java   
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);
}
项目:FMTech    文件:SimpleFormOuterClass.java   
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;
}
项目:FMTech    文件:VendingProtos.java   
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;
}
项目:FMTech    文件:EarlyDocumentInfo.java   
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;
}
项目:FMTech    文件:CreateInstrument.java   
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasLabel) || (!this.label.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(1, this.label);
  }
  if ((this.contentType != 0) || (this.hasContentType)) {
    paramCodedOutputByteBufferNano.writeInt32(2, this.contentType);
  }
  if (this.responseFormat != null) {
    paramCodedOutputByteBufferNano.writeMessage(3, this.responseFormat);
  }
  if (this.regexValidation != null) {
    paramCodedOutputByteBufferNano.writeMessage(4, this.regexValidation);
  }
  if ((this.hasErrorMessage) || (!this.errorMessage.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(5, this.errorMessage);
  }
  if ((this.hasDefaultValue) || (!this.defaultValue.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(6, this.defaultValue);
  }
  if ((this.hasUseBestGuess) || (this.useBestGuess)) {
    paramCodedOutputByteBufferNano.writeBool(7, this.useBestGuess);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
项目:FMTech    文件:TopupInfo.java   
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;
}
项目:FMTech    文件:CsdClient.java   
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;
}
项目:FMTech    文件:EncryptedSubscriberInfo.java   
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);
}
项目:FMTech    文件:AddCreditCardPromoOffer.java   
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);
}
项目:FMTech    文件:GetFamilyPurchaseSettingResponse.java   
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);
}
项目:FMTech    文件:ListResponse.java   
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.bucket != null) && (this.bucket.length > 0)) {
    for (int k = 0; k < this.bucket.length; k++)
    {
      Bucket localBucket = this.bucket[k];
      if (localBucket != null) {
        i += CodedOutputByteBufferNano.computeMessageSize(1, localBucket);
      }
    }
  }
  if ((this.doc != null) && (this.doc.length > 0)) {
    for (int j = 0; j < this.doc.length; j++)
    {
      DocV2 localDocV2 = this.doc[j];
      if (localDocV2 != null) {
        i += CodedOutputByteBufferNano.computeMessageSize(2, localDocV2);
      }
    }
  }
  return i;
}
项目:FMTech    文件:VendingProtos.java   
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if (this.installAsset != null) {
    paramCodedOutputByteBufferNano.writeGroup(1, this.installAsset);
  }
  if ((this.additionalFile != null) && (this.additionalFile.length > 0)) {
    for (int i = 0; i < this.additionalFile.length; i++)
    {
      VendingProtos.FileMetadataProto localFileMetadataProto = this.additionalFile[i];
      if (localFileMetadataProto != null) {
        paramCodedOutputByteBufferNano.writeMessage(15, localFileMetadataProto);
      }
    }
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
项目:FMTech    文件:TvSeasonDetails.java   
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);
}
项目:FMTech    文件:BillingAddressSpec.java   
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.billingAddressType != 1) || (this.hasBillingAddressType)) {
    i += CodedOutputByteBufferNano.computeInt32Size(1, this.billingAddressType);
  }
  if ((this.requiredField != null) && (this.requiredField.length > 0))
  {
    int j = 0;
    for (int k = 0; k < this.requiredField.length; k++) {
      j += CodedOutputByteBufferNano.computeInt32SizeNoTag(this.requiredField[k]);
    }
    i = i + j + 1 * this.requiredField.length;
  }
  return i;
}
项目:FMTech    文件:ActionBanner.java   
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.action != null) && (this.action.length > 0)) {
    for (int j = 0; j < this.action.length; j++)
    {
      CallToAction localCallToAction = this.action[j];
      if (localCallToAction != null) {
        paramCodedOutputByteBufferNano.writeMessage(1, localCallToAction);
      }
    }
  }
  if (this.primaryFace != null) {
    paramCodedOutputByteBufferNano.writeMessage(2, this.primaryFace);
  }
  if ((this.secondaryFace != null) && (this.secondaryFace.length > 0)) {
    for (int i = 0; i < this.secondaryFace.length; i++)
    {
      DocV2 localDocV2 = this.secondaryFace[i];
      if (localDocV2 != null) {
        paramCodedOutputByteBufferNano.writeMessage(4, localDocV2);
      }
    }
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
项目:FMTech    文件:BuyInstruments.java   
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.result != 0) || (this.hasResult)) {
    i += CodedOutputByteBufferNano.computeInt32Size(1, this.result);
  }
  if ((this.hasInstrumentId) || (!this.instrumentId.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(2, this.instrumentId);
  }
  if ((this.hasUserMessageHtml) || (!this.userMessageHtml.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(3, this.userMessageHtml);
  }
  if ((this.errorInputField != null) && (this.errorInputField.length > 0)) {
    for (int j = 0; j < this.errorInputField.length; j++)
    {
      ChallengeProto.InputValidationError localInputValidationError = this.errorInputField[j];
      if (localInputValidationError != null) {
        i += CodedOutputByteBufferNano.computeMessageSize(4, localInputValidationError);
      }
    }
  }
  if (this.redeemedOffer != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(6, this.redeemedOffer);
  }
  return i;
}
项目:FMTech    文件:ClientAnalytics.java   
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasIsUnmetered) || (this.isUnmetered)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(1);
  }
  if ((this.hasIsCharging) || (this.isCharging)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(2);
  }
  if ((this.autoTimeStatus != 0) || (this.hasAutoTimeStatus)) {
    i += CodedOutputByteBufferNano.computeInt32Size(3, this.autoTimeStatus);
  }
  if ((this.hasIsGooglerDevice) || (this.isGooglerDevice)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(4);
  }
  return i;
}
项目:FMTech    文件:TooltipOuterClass.java   
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);
}
项目:FMTech    文件:ClientAnalytics.java   
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasLocale) || (!this.locale.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(1, this.locale);
  }
  if ((this.hasBrowser) || (!this.browser.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(2, this.browser);
  }
  if ((this.hasBrowserVersion) || (!this.browserVersion.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(3, this.browserVersion);
  }
  if ((this.hasFlashVersion) || (!this.flashVersion.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(4, this.flashVersion);
  }
  return i;
}
项目:FMTech    文件:BuyInstruments.java   
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.result != 0) || (this.hasResult)) {
    paramCodedOutputByteBufferNano.writeInt32(1, this.result);
  }
  if ((this.hasUserMessageHtml) || (!this.userMessageHtml.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(2, this.userMessageHtml);
  }
  if ((this.hasBalanceHtml) || (!this.balanceHtml.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(3, this.balanceHtml);
  }
  if (this.addressChallenge != null) {
    paramCodedOutputByteBufferNano.writeMessage(4, this.addressChallenge);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
项目:FMTech    文件:DocDetails.java   
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasTitle) || (!this.title.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(1, this.title);
  }
  if ((this.section != null) && (this.section.length > 0)) {
    for (int i = 0; i < this.section.length; i++)
    {
      DocDetails.ProductDetailsSection localProductDetailsSection = this.section[i];
      if (localProductDetailsSection != null) {
        paramCodedOutputByteBufferNano.writeMessage(2, localProductDetailsSection);
      }
    }
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
项目:FMTech    文件:LibraryReplicationRequest.java   
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.libraryState != null) && (this.libraryState.length > 0)) {
    for (int j = 0; j < this.libraryState.length; j++)
    {
      LibraryUpdateProto.ClientLibraryState localClientLibraryState = this.libraryState[j];
      if (localClientLibraryState != null) {
        i += CodedOutputByteBufferNano.computeMessageSize(1, localClientLibraryState);
      }
    }
  }
  if ((this.hasLibraryMutationVersion) || (this.libraryMutationVersion != 0)) {
    i += CodedOutputByteBufferNano.computeInt32Size(2, this.libraryMutationVersion);
  }
  return i;
}
项目:FMTech    文件:Common.java   
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasMicros) || (this.micros != 0L)) {
    i += CodedOutputByteBufferNano.computeInt64Size(1, this.micros);
  }
  if ((this.hasCurrencyCode) || (!this.currencyCode.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(2, this.currencyCode);
  }
  if (this.offerPaymentPeriod != null) {
    i += CodedOutputByteBufferNano.computeMessageSize(3, this.offerPaymentPeriod);
  }
  if ((this.offerPaymentOverride != null) && (this.offerPaymentOverride.length > 0)) {
    for (int j = 0; j < this.offerPaymentOverride.length; j++)
    {
      Common.OfferPaymentOverride localOfferPaymentOverride = this.offerPaymentOverride[j];
      if (localOfferPaymentOverride != null) {
        i += CodedOutputByteBufferNano.computeMessageSize(4, localOfferPaymentOverride);
      }
    }
  }
  return i;
}
项目:FMTech    文件:Trailer.java   
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasTrailerId) || (!this.trailerId.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(1, this.trailerId);
  }
  if ((this.hasTitle) || (!this.title.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(2, this.title);
  }
  if ((this.hasThumbnailUrl) || (!this.thumbnailUrl.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(3, this.thumbnailUrl);
  }
  if ((this.hasWatchUrl) || (!this.watchUrl.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(4, this.watchUrl);
  }
  if ((this.hasDuration) || (!this.duration.equals(""))) {
    i += CodedOutputByteBufferNano.computeStringSize(5, this.duration);
  }
  return i;
}
项目:FMTech    文件:PlayStore.java   
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if ((this.hasHasFop) || (this.hasFop)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(1);
  }
  if ((this.hasFopAdded) || (this.fopAdded)) {
    i += 1 + CodedOutputByteBufferNano.computeTagSize(2);
  }
  if ((this.hasNumDialogShown) || (this.numDialogShown != 0)) {
    i += CodedOutputByteBufferNano.computeInt32Size(3, this.numDialogShown);
  }
  if ((this.hasNumFopSelectorShown) || (this.numFopSelectorShown != 0)) {
    i += CodedOutputByteBufferNano.computeInt32Size(4, this.numFopSelectorShown);
  }
  if ((this.hasNumSnooze) || (this.numSnooze != 0)) {
    i += CodedOutputByteBufferNano.computeInt32Size(5, this.numSnooze);
  }
  return i;
}
项目:FMTech    文件:TaxInfoFormOuterClass.java   
protected final int computeSerializedSize()
{
  int i = super.computeSerializedSize();
  if (!this.taxInfoFormId.equals("")) {
    i += CodedOutputByteBufferNano.computeStringSize(1, this.taxInfoFormId);
  }
  if ((this.taxInfoValue != null) && (this.taxInfoValue.length > 0)) {
    for (int j = 0; j < this.taxInfoValue.length; j++)
    {
      UiFieldOuterClass.UiFieldValue localUiFieldValue = this.taxInfoValue[j];
      if (localUiFieldValue != null) {
        i += CodedOutputByteBufferNano.computeMessageSize(3, localUiFieldValue);
      }
    }
  }
  return i;
}
项目:FMTech    文件:SimpleFormOuterClass.java   
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;
}
项目:FMTech    文件:ReviewSnippet.java   
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
  throws IOException
{
  if ((this.hasTip) || (!this.tip.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(1, this.tip);
  }
  if ((this.hasText) || (!this.text.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(2, this.text);
  }
  if ((this.hasReviewCount) || (this.reviewCount != 0L)) {
    paramCodedOutputByteBufferNano.writeInt64(3, this.reviewCount);
  }
  if ((this.hasTipReviewsUrl) || (!this.tipReviewsUrl.equals(""))) {
    paramCodedOutputByteBufferNano.writeString(4, this.tipReviewsUrl);
  }
  if ((this.hasSnippedAtBeginning) || (this.snippedAtBeginning)) {
    paramCodedOutputByteBufferNano.writeBool(5, this.snippedAtBeginning);
  }
  if ((this.hasSnippedAtEnd) || (this.snippedAtEnd)) {
    paramCodedOutputByteBufferNano.writeBool(6, this.snippedAtEnd);
  }
  super.writeTo(paramCodedOutputByteBufferNano);
}
项目:science-journal    文件:ExternalSensorSpec.java   
public static byte[] getBytes(MessageNano config) {
    byte[] output = new byte[config.getSerializedSize()];

    CodedOutputByteBufferNano buffer = CodedOutputByteBufferNano.newInstance(output);
    try {
        config.writeTo(buffer);
    } catch (IOException e) {
        if (Log.isLoggable(TAG, Log.ERROR)) {
            Log.e(TAG, "Could not serialize config", e);
        }
    }
    return output;
}