本文整理汇总了Java中com.google.protobuf.nano.CodedOutputByteBufferNano.computeStringSizeNoTag方法的典型用法代码示例。如果您正苦于以下问题:Java CodedOutputByteBufferNano.computeStringSizeNoTag方法的具体用法?Java CodedOutputByteBufferNano.computeStringSizeNoTag怎么用?Java CodedOutputByteBufferNano.computeStringSizeNoTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.protobuf.nano.CodedOutputByteBufferNano
的用法示例。
在下文中一共展示了CodedOutputByteBufferNano.computeStringSizeNoTag方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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(11, this.packageName);
}
if ((this.hasVersionCode) || (this.versionCode != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(12, this.versionCode);
}
if ((this.certificateHash != null) && (this.certificateHash.length > 0))
{
int j = 0;
int k = 0;
for (int m = 0; m < this.certificateHash.length; m++)
{
String str = this.certificateHash[m];
if (str != null)
{
j++;
k += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
}
}
i = i + k + j * 1;
}
return i;
}
示例2: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.id != null) && (this.id.length > 0))
{
int j = 0;
int k = 0;
for (int m = 0; m < this.id.length; m++)
{
String str = this.id[m];
if (str != null)
{
j++;
k += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
}
}
i = i + k + j * 1;
}
return i;
}
示例3: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.allowedCountryCode != null) && (this.allowedCountryCode.length > 0))
{
int j = 0;
int k = 0;
for (int m = 0; m < this.allowedCountryCode.length; m++)
{
String str = this.allowedCountryCode[m];
if (str != null)
{
j++;
k += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
}
}
i = i + k + j * 1;
}
if (!this.initialCountryCode.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(3, this.initialCountryCode);
}
if (this.formHeader != null) {
i += CodedOutputByteBufferNano.computeMessageSize(7, this.formHeader);
}
return i;
}
示例4: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.certificateHash != null) && (this.certificateHash.length > 0))
{
int j = 0;
int k = 0;
for (int m = 0; m < this.certificateHash.length; m++)
{
String str = this.certificateHash[m];
if (str != null)
{
j++;
k += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
}
}
i = i + k + j * 1;
}
return i;
}
示例5: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.problemType != 1) || (this.hasProblemType)) {
i += CodedOutputByteBufferNano.computeInt32Size(1, this.problemType);
}
if ((this.missingValue != null) && (this.missingValue.length > 0))
{
int j = 0;
int k = 0;
for (int m = 0; m < this.missingValue.length; m++)
{
String str = this.missingValue[m];
if (str != null)
{
j++;
k += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
}
}
i = i + k + j * 1;
}
return i;
}
示例6: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.creditType != 0) || (this.hasCreditType)) {
i += CodedOutputByteBufferNano.computeInt32Size(1, this.creditType);
}
if ((this.hasCredit) || (!this.credit.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.credit);
}
if ((this.name != null) && (this.name.length > 0))
{
int j = 0;
int k = 0;
for (int m = 0; m < this.name.length; m++)
{
String str = this.name[m];
if (str != null)
{
j++;
k += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
}
}
i = i + k + j * 1;
}
return i;
}
示例7: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.certificateHash != null) && (this.certificateHash.length > 0))
{
int j = 0;
int k = 0;
for (int m = 0; m < this.certificateHash.length; m++)
{
String str = this.certificateHash[m];
if (str != null)
{
j++;
k += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
}
}
i = i + k + j * 1;
}
if ((this.hasRefundTimeoutTimestampMsec) || (this.refundTimeoutTimestampMsec != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(3, this.refundTimeoutTimestampMsec);
}
if ((this.hasPostDeliveryRefundWindowMsec) || (this.postDeliveryRefundWindowMsec != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(4, this.postDeliveryRefundWindowMsec);
}
if ((this.hasIsOwnedViaLicense) || (this.isOwnedViaLicense)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(5);
}
return i;
}
示例8: 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;
}
示例9: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.instrumentFamily != 0) || (this.hasInstrumentFamily)) {
i += CodedOutputByteBufferNano.computeInt32Size(1, this.instrumentFamily);
}
if ((this.hasSupported) || (this.supported)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(2);
}
if (this.addressChallenge != null) {
i += CodedOutputByteBufferNano.computeMessageSize(3, this.addressChallenge);
}
if (this.balance != null) {
i += CodedOutputByteBufferNano.computeMessageSize(4, this.balance);
}
if ((this.footerHtml != null) && (this.footerHtml.length > 0))
{
int j = 0;
int k = 0;
for (int m = 0; m < this.footerHtml.length; m++)
{
String str = this.footerHtml[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.update != null) && (this.update.length > 0)) {
for (int n = 0; n < this.update.length; n++)
{
LibraryUpdateProto.LibraryUpdate localLibraryUpdate = this.update[n];
if (localLibraryUpdate != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, localLibraryUpdate);
}
}
}
if ((this.autoAcquireFreeAppIfHigherVersionAvailableTag != null) && (this.autoAcquireFreeAppIfHigherVersionAvailableTag.length > 0))
{
int j = 0;
int k = 0;
for (int m = 0; m < this.autoAcquireFreeAppIfHigherVersionAvailableTag.length; m++)
{
String str = this.autoAcquireFreeAppIfHigherVersionAvailableTag[m];
if (str != null)
{
j++;
k += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
}
}
i = i + k + j * 1;
}
return i;
}
示例11: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.message != null) && (this.message.length > 0))
{
int k = 0;
int m = 0;
for (int n = 0; n < this.message.length; n++)
{
String str = this.message[n];
if (str != null)
{
k++;
m += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
}
}
i = i + m + k * 1;
}
if ((this.timing != null) && (this.timing.length > 0)) {
for (int j = 0; j < this.timing.length; j++)
{
Timing localTiming = this.timing[j];
if (localTiming != null) {
i += CodedOutputByteBufferNano.computeGroupSize(2, localTiming);
}
}
}
return i;
}
示例12: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasBillingApiVersion) || (this.billingApiVersion != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(1, this.billingApiVersion);
}
if ((this.hasAppPackageName) || (!this.appPackageName.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.appPackageName);
}
if ((this.hasAppVersionCode) || (this.appVersionCode != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(3, this.appVersionCode);
}
if ((this.hasAppSignatureHash) || (!this.appSignatureHash.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(4, this.appSignatureHash);
}
if ((this.hasDeveloperPayload) || (!this.developerPayload.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(5, this.developerPayload);
}
if ((this.oldDocid != null) && (this.oldDocid.length > 0))
{
int j = 0;
int k = 0;
for (int m = 0; m < this.oldDocid.length; m++)
{
String str = this.oldDocid[m];
if (str != null)
{
j++;
k += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
}
}
i = i + k + j * 1;
}
return i;
}
示例13: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.docid != null) && (this.docid.length > 0))
{
int m = 0;
int n = 0;
for (int i1 = 0; i1 < this.docid.length; i1++)
{
String str = this.docid[i1];
if (str != null)
{
m++;
n += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
}
}
i = i + n + m * 1;
}
if ((this.hasIncludeChildDocs) || (this.includeChildDocs != true)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(2);
}
if ((this.hasIncludeDetails) || (this.includeDetails)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(3);
}
if ((this.hasSourcePackageName) || (!this.sourcePackageName.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(4, this.sourcePackageName);
}
if ((this.installedVersionCode != null) && (this.installedVersionCode.length > 0))
{
int j = 0;
for (int k = 0; k < this.installedVersionCode.length; k++) {
j += CodedOutputByteBufferNano.computeInt32SizeNoTag(this.installedVersionCode[k]);
}
i = i + j + 1 * this.installedVersionCode.length;
}
return i;
}
示例14: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasLibraryId) || (!this.libraryId.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.libraryId);
}
if ((this.forAddDocid != null) && (this.forAddDocid.length > 0))
{
int i3 = 0;
int i4 = 0;
for (int i5 = 0; i5 < this.forAddDocid.length; i5++)
{
String str3 = this.forAddDocid[i5];
if (str3 != null)
{
i3++;
i4 += CodedOutputByteBufferNano.computeStringSizeNoTag(str3);
}
}
i = i + i4 + i3 * 1;
}
if ((this.forRemovalDocid != null) && (this.forRemovalDocid.length > 0))
{
int n = 0;
int i1 = 0;
for (int i2 = 0; i2 < this.forRemovalDocid.length; i2++)
{
String str2 = this.forRemovalDocid[i2];
if (str2 != null)
{
n++;
i1 += CodedOutputByteBufferNano.computeStringSizeNoTag(str2);
}
}
i = i + i1 + n * 1;
}
if ((this.forArchiveDocid != null) && (this.forArchiveDocid.length > 0))
{
int j = 0;
int k = 0;
for (int m = 0; m < this.forArchiveDocid.length; m++)
{
String str1 = this.forArchiveDocid[m];
if (str1 != null)
{
j++;
k += CodedOutputByteBufferNano.computeStringSizeNoTag(str1);
}
}
i = i + k + j * 1;
}
return i;
}
示例15: 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.initialUrl.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.initialUrl);
}
if (!this.initialPostBody.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(3, this.initialPostBody);
}
if (!this.interceptNonTerminalUrlRegex.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(4, this.interceptNonTerminalUrlRegex);
}
if (!this.interceptTerminalUrlRegex.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(5, this.interceptTerminalUrlRegex);
}
if (this.displayType != 0) {
i += CodedOutputByteBufferNano.computeInt32Size(7, this.displayType);
}
if (this.mustEnforceWhitelist) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(8);
}
if ((this.whitelistUrlRegex != null) && (this.whitelistUrlRegex.length > 0))
{
int j = 0;
int k = 0;
for (int m = 0; m < this.whitelistUrlRegex.length; m++)
{
String str = this.whitelistUrlRegex[m];
if (str != null)
{
j++;
k += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
}
}
i = i + k + j * 1;
}
if (!this.userAgent.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(10, this.userAgent);
}
return i;
}