本文整理汇总了Java中com.google.protobuf.nano.CodedOutputByteBufferNano.computeInt64Size方法的典型用法代码示例。如果您正苦于以下问题:Java CodedOutputByteBufferNano.computeInt64Size方法的具体用法?Java CodedOutputByteBufferNano.computeInt64Size怎么用?Java CodedOutputByteBufferNano.computeInt64Size使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.protobuf.nano.CodedOutputByteBufferNano
的用法示例。
在下文中一共展示了CodedOutputByteBufferNano.computeInt64Size方法的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;
}
示例2: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasTimeSinceDocumentAddedToCacheMs) || (this.timeSinceDocumentAddedToCacheMs != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(1, this.timeSinceDocumentAddedToCacheMs);
}
if ((this.experienceType != 0) || (this.hasExperienceType)) {
i += CodedOutputByteBufferNano.computeInt32Size(2, this.experienceType);
}
if ((this.instantPurchaseClientDisabledReasons != null) && (this.instantPurchaseClientDisabledReasons.length > 0))
{
int j = 0;
for (int k = 0; k < this.instantPurchaseClientDisabledReasons.length; k++) {
j += CodedOutputByteBufferNano.computeInt32SizeNoTag(this.instantPurchaseClientDisabledReasons[k]);
}
i = i + j + 1 * this.instantPurchaseClientDisabledReasons.length;
}
if ((this.hasSplitTenderApplied) || (this.splitTenderApplied)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(4);
}
return i;
}
示例3: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasId) || (this.id != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(1, this.id);
}
if (this.prompt != null) {
i += CodedOutputByteBufferNano.computeMessageSize(2, this.prompt);
}
if (this.content != null) {
i += CodedOutputByteBufferNano.computeMessageSize(3, this.content);
}
if ((this.context != 0) || (this.hasContext)) {
i += CodedOutputByteBufferNano.computeInt32Size(4, this.context);
}
return i;
}
示例4: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.voucherDocid != null) && (this.voucherDocid.length > 0)) {
for (int j = 0; j < this.voucherDocid.length; j++)
{
Common.Docid localDocid = this.voucherDocid[j];
if (localDocid != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, localDocid);
}
}
}
if ((this.hasVoucherPriceMicros) || (this.voucherPriceMicros != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(2, this.voucherPriceMicros);
}
if ((this.hasVoucherFormattedAmount) || (!this.voucherFormattedAmount.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(3, this.voucherFormattedAmount);
}
return i;
}
示例5: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasInitiationTimestampMsec) || (this.initiationTimestampMsec != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(1, this.initiationTimestampMsec);
}
if ((this.hasDeprecatedValidUntilTimestampMsec) || (this.deprecatedValidUntilTimestampMsec != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(2, this.deprecatedValidUntilTimestampMsec);
}
if ((this.hasAutoRenewing) || (this.autoRenewing)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(3);
}
if ((this.hasTrialUntilTimestampMsec) || (this.trialUntilTimestampMsec != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(4, this.trialUntilTimestampMsec);
}
if ((this.hasSignedPurchaseData) || (!this.signedPurchaseData.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(5, this.signedPurchaseData);
}
if ((this.hasSignature) || (!this.signature.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(6, this.signature);
}
return i;
}
示例6: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.fileType != 0) || (this.hasFileType)) {
i += CodedOutputByteBufferNano.computeInt32Size(1, this.fileType);
}
if ((this.hasVersionCode) || (this.versionCode != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(2, this.versionCode);
}
if ((this.hasSize) || (this.size != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(3, this.size);
}
if ((this.hasDownloadUrl) || (!this.downloadUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(4, this.downloadUrl);
}
return i;
}
示例7: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasId) || (!this.id.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.id);
}
if ((this.hasDownloadSize) || (this.downloadSize != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(2, this.downloadSize);
}
if ((this.hasGzippedDownloadSize) || (this.gzippedDownloadSize != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(3, this.gzippedDownloadSize);
}
if ((this.hasSignature) || (!this.signature.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(4, this.signature);
}
if ((this.hasDownloadUrl) || (!this.downloadUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(5, this.downloadUrl);
}
if ((this.hasGzippedDownloadUrl) || (!this.gzippedDownloadUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(6, this.gzippedDownloadUrl);
}
if (this.patchData != null) {
i += CodedOutputByteBufferNano.computeMessageSize(7, this.patchData);
}
return i;
}
示例8: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasNextRequestWaitMillis) || (this.nextRequestWaitMillis != -1L)) {
i += CodedOutputByteBufferNano.computeInt64Size(1, this.nextRequestWaitMillis);
}
if (this.experiments != null) {
i += CodedOutputByteBufferNano.computeMessageSize(2, this.experiments);
}
if (this.qosTier != null) {
i += CodedOutputByteBufferNano.computeMessageSize(3, this.qosTier);
}
return i;
}
示例9: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasTipId) || (!this.tipId.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.tipId);
}
if ((this.hasText) || (!this.text.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.text);
}
if ((this.polarity != 0) || (this.hasPolarity)) {
i += CodedOutputByteBufferNano.computeInt32Size(3, this.polarity);
}
if ((this.hasReviewCount) || (this.reviewCount != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(4, this.reviewCount);
}
if ((this.hasLanguage) || (!this.language.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(5, this.language);
}
if ((this.snippetReviewId != null) && (this.snippetReviewId.length > 0))
{
int j = 0;
int k = 0;
for (int m = 0; m < this.snippetReviewId.length; m++)
{
String str = this.snippetReviewId[m];
if (str != null)
{
j++;
k += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
}
}
i = i + k + j * 1;
}
return i;
}
示例10: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasLegalDocumentId) || (this.legalDocumentId != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(1, this.legalDocumentId);
}
if ((this.hasMajorVersion) || (this.majorVersion != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(2, this.majorVersion);
}
if ((this.hasMinorVersion) || (this.minorVersion != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(3, this.minorVersion);
}
if ((this.hasLocale) || (!this.locale.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(4, this.locale);
}
if ((this.hasPurchaseCountryCode) || (!this.purchaseCountryCode.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(5, this.purchaseCountryCode);
}
if ((this.hasStartDateMillis) || (this.startDateMillis != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(6, this.startDateMillis);
}
if ((this.hasEndDateMillis) || (this.endDateMillis != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(7, this.endDateMillis);
}
if ((this.hasGracePeriodMillis) || (this.gracePeriodMillis != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(8, this.gracePeriodMillis);
}
if ((this.hasLegalDocumentSubId) || (!this.legalDocumentSubId.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(9, this.legalDocumentSubId);
}
if ((this.hasExternalLegalDocumentId) || (!this.externalLegalDocumentId.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(10, this.externalLegalDocumentId);
}
return i;
}
示例11: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasTargetId) || (this.targetId != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(1, this.targetId);
}
if ((this.hasTargetName) || (!this.targetName.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.targetName);
}
return i;
}
示例12: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasValue) || (!this.value.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.value);
}
if ((this.hasExpiration) || (this.expiration != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(2, this.expiration);
}
return i;
}
示例13: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
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.hasFormattedAmount) || (!this.formattedAmount.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(3, this.formattedAmount);
}
return i;
}
示例14: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasLegalDocumentBrokerId) || (this.legalDocumentBrokerId != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(1, this.legalDocumentBrokerId);
}
if ((this.hasShowAgeConfirmationPrompt) || (this.showAgeConfirmationPrompt)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(33);
}
if ((this.hasPurchaseAuthenticationRequired) || (this.purchaseAuthenticationRequired)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(34);
}
return i;
}
示例15: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasAuthorName) || (!this.authorName.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.authorName);
}
if ((this.hasUrl) || (!this.url.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.url);
}
if ((this.hasSource) || (!this.source.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(3, this.source);
}
if ((this.hasDocumentVersion) || (!this.documentVersion.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(4, this.documentVersion);
}
if ((this.hasTimestampMsec) || (this.timestampMsec != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(5, this.timestampMsec);
}
if ((this.hasStarRating) || (this.starRating != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(6, this.starRating);
}
if ((this.hasTitle) || (!this.title.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(7, this.title);
}
if ((this.hasComment) || (!this.comment.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(8, this.comment);
}
if ((this.hasCommentId) || (!this.commentId.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(9, this.commentId);
}
if ((this.hasDeviceName) || (!this.deviceName.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(19, this.deviceName);
}
if ((this.hasReplyText) || (!this.replyText.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(29, this.replyText);
}
if ((this.hasReplyTimestampMsec) || (this.replyTimestampMsec != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(30, this.replyTimestampMsec);
}
if (this.oBSOLETEPlusProfile != null) {
i += CodedOutputByteBufferNano.computeMessageSize(31, this.oBSOLETEPlusProfile);
}
if (this.author != null) {
i += CodedOutputByteBufferNano.computeMessageSize(33, this.author);
}
if (this.sentiment != null) {
i += CodedOutputByteBufferNano.computeMessageSize(34, this.sentiment);
}
if ((this.hasHelpfulCount) || (this.helpfulCount != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(35, this.helpfulCount);
}
if ((this.hasThumbsUpCount) || (this.thumbsUpCount != 0L)) {
i += CodedOutputByteBufferNano.computeUInt64Size(38, this.thumbsUpCount);
}
return i;
}