本文整理汇总了Java中com.google.protobuf.nano.CodedOutputByteBufferNano.computeTagSize方法的典型用法代码示例。如果您正苦于以下问题:Java CodedOutputByteBufferNano.computeTagSize方法的具体用法?Java CodedOutputByteBufferNano.computeTagSize怎么用?Java CodedOutputByteBufferNano.computeTagSize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.protobuf.nano.CodedOutputByteBufferNano
的用法示例。
在下文中一共展示了CodedOutputByteBufferNano.computeTagSize方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (this.address != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, this.address);
}
if (!this.phoneNumber.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.phoneNumber);
}
if (this.isHidden) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(3);
}
if (!this.id.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(5, this.id);
}
if (!Arrays.equals(this.dataToken, WireFormatNano.EMPTY_BYTES)) {
i += CodedOutputByteBufferNano.computeBytesSize(7, this.dataToken);
}
return i;
}
示例2: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasSearchUrl) || (!this.searchUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.searchUrl);
}
if ((this.hasHeader) || (!this.header.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.header);
}
if ((this.backendId != 0) || (this.hasBackendId)) {
i += CodedOutputByteBufferNano.computeInt32Size(3, this.backendId);
}
if ((this.docType != 1) || (this.hasDocType)) {
i += CodedOutputByteBufferNano.computeInt32Size(4, this.docType);
}
if ((this.hasCurrent) || (this.current)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(5);
}
return i;
}
示例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;
}
示例4: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasCountryCode) || (!this.countryCode.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(3, this.countryCode);
}
if ((this.hasCountryName) || (!this.countryName.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(4, this.countryName);
}
if ((this.hasAllowsReducedBillingAddress) || (this.allowsReducedBillingAddress)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(6);
}
if ((this.instrumentAddressSpec != null) && (this.instrumentAddressSpec.length > 0)) {
for (int j = 0; j < this.instrumentAddressSpec.length; j++)
{
InstrumentAddressSpec localInstrumentAddressSpec = this.instrumentAddressSpec[j];
if (localInstrumentAddressSpec != null) {
i += CodedOutputByteBufferNano.computeGroupSize(7, localInstrumentAddressSpec);
}
}
}
return i;
}
示例5: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasTosCheckboxMarketingEmailsOptedIn) || (this.tosCheckboxMarketingEmailsOptedIn)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(1);
}
if ((this.privacySetting != null) && (this.privacySetting.length > 0)) {
for (int j = 0; j < this.privacySetting.length; j++)
{
PrivacySetting localPrivacySetting = this.privacySetting[j];
if (localPrivacySetting != null) {
i += CodedOutputByteBufferNano.computeMessageSize(2, localPrivacySetting);
}
}
}
return i;
}
示例6: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasClearCache) || (this.clearCache)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(1);
}
if ((this.hasDisplayErrorMessage) || (!this.displayErrorMessage.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.displayErrorMessage);
}
if ((this.hasLogErrorStacktrace) || (!this.logErrorStacktrace.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(3, this.logErrorStacktrace);
}
if ((this.userSettingDirtyData != null) && (this.userSettingDirtyData.length > 0)) {
for (int j = 0; j < this.userSettingDirtyData.length; j++)
{
UserSettingDirtyData localUserSettingDirtyData = this.userSettingDirtyData[j];
if (localUserSettingDirtyData != null) {
i += CodedOutputByteBufferNano.computeMessageSize(4, localUserSettingDirtyData);
}
}
}
return i;
}
示例7: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasAndroidId) || (this.androidId != 0L)) {
i += 8 + CodedOutputByteBufferNano.computeTagSize(1);
}
if ((this.hasVersion) || (this.version != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(2, this.version);
}
if ((this.hasBundled) || (this.bundled)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(3);
}
if ((this.hasPending) || (this.pending)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(4);
}
if ((this.hasLastUpdateTimestampMillis) || (this.lastUpdateTimestampMillis != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(5, this.lastUpdateTimestampMillis);
}
return i;
}
示例8: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasAndroidId) || (this.androidId != 0L)) {
i += 8 + CodedOutputByteBufferNano.computeTagSize(10);
}
if ((this.deviceRestriction != 1) || (this.hasDeviceRestriction)) {
i += CodedOutputByteBufferNano.computeInt32Size(11, this.deviceRestriction);
}
if ((this.hasChannelId) || (this.channelId != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(12, this.channelId);
}
if (this.filterInfo != null) {
i += CodedOutputByteBufferNano.computeMessageSize(15, this.filterInfo);
}
if ((this.hasAvailableIfOwned) || (this.availableIfOwned)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(22);
}
return i;
}
示例9: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasLabel) || (!this.label.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.label);
}
if ((this.hasActionUrl) || (!this.actionUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.actionUrl);
}
if ((this.hasActionFailChallenge) || (this.actionFailChallenge)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(3);
}
if ((this.actionChallenge != null) && (this.actionChallenge.length > 0)) {
for (int j = 0; j < this.actionChallenge.length; j++)
{
ChallengeProto.Challenge localChallenge = this.actionChallenge[j];
if (localChallenge != null) {
i += CodedOutputByteBufferNano.computeMessageSize(4, localChallenge);
}
}
}
return i;
}
示例10: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (this.carrierTos != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, this.carrierTos);
}
if ((this.hasAssociationRequired) || (this.associationRequired)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(2);
}
if ((this.hasPasswordRequired) || (this.passwordRequired)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(3);
}
if (this.carrierPasswordPrompt != null) {
i += CodedOutputByteBufferNano.computeMessageSize(4, this.carrierPasswordPrompt);
}
if ((this.hasApiVersion) || (this.apiVersion != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(5, this.apiVersion);
}
if ((this.hasName) || (!this.name.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(6, this.name);
}
if (this.deviceAssociation != null) {
i += CodedOutputByteBufferNano.computeMessageSize(7, this.deviceAssociation);
}
if ((this.hasCarrierSupportPhoneNumber) || (!this.carrierSupportPhoneNumber.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(8, this.carrierSupportPhoneNumber);
}
return i;
}
示例11: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasSubscriptionStatusHtml) || (!this.subscriptionStatusHtml.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.subscriptionStatusHtml);
}
if ((this.hasTitle) || (!this.title.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.title);
}
if ((this.hasTitleBylineHtml) || (!this.titleBylineHtml.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(3, this.titleBylineHtml);
}
if ((this.hasFormattedPrice) || (!this.formattedPrice.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(4, this.formattedPrice);
}
if ((this.hasPriceBylineHtml) || (!this.priceBylineHtml.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(5, this.priceBylineHtml);
}
if ((this.hasCancelSubscription) || (this.cancelSubscription)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(6);
}
if (this.paymentDeclinedLearnMoreLink != null) {
i += CodedOutputByteBufferNano.computeMessageSize(7, this.paymentDeclinedLearnMoreLink);
}
if ((this.hasInTrialPeriod) || (this.inTrialPeriod)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(8);
}
if (this.titleBylineIcon != null) {
i += CodedOutputByteBufferNano.computeMessageSize(9, this.titleBylineIcon);
}
return i;
}
示例12: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasVersion) || (this.version != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(1, this.version);
}
if ((this.hasOldVersion) || (this.oldVersion != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(2, this.oldVersion);
}
if ((this.hasSystemApp) || (this.systemApp)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(3);
}
if ((this.hasDownloadExternal) || (this.downloadExternal)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(4);
}
if ((this.hasDownloadGzip) || (this.downloadGzip)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(5);
}
if ((this.hasDownloadPatch) || (this.downloadPatch)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(6);
}
if ((this.hasSplitId) || (!this.splitId.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(7, this.splitId);
}
if ((this.hasForWear) || (this.forWear)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(8);
}
if ((this.hasDownloadedBytes) || (this.downloadedBytes != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(9, this.downloadedBytes);
}
if ((this.hasPatchFormat) || (this.patchFormat != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(10, this.patchFormat);
}
return i;
}
示例13: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (this.minLength != 0) {
i += CodedOutputByteBufferNano.computeInt32Size(1, this.minLength);
}
if (this.maxLength != 0) {
i += CodedOutputByteBufferNano.computeInt32Size(2, this.maxLength);
}
if (this.keyboardLayout != 0) {
i += CodedOutputByteBufferNano.computeInt32Size(4, this.keyboardLayout);
}
if ((this.validation != null) && (this.validation.length > 0)) {
for (int m = 0; m < this.validation.length; m++)
{
Validation localValidation = this.validation[m];
if (localValidation != null) {
i += CodedOutputByteBufferNano.computeMessageSize(5, localValidation);
}
}
}
if (!this.initialValue.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(6, this.initialValue);
}
if (this.isMasked) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(8);
}
if (this.templateFormattingScheme != null) {
i += CodedOutputByteBufferNano.computeMessageSize(14, this.templateFormattingScheme);
}
if ((this.keyboardLayoutVariation != null) && (this.keyboardLayoutVariation.length > 0))
{
int j = 0;
for (int k = 0; k < this.keyboardLayoutVariation.length; k++) {
j += CodedOutputByteBufferNano.computeInt32SizeNoTag(this.keyboardLayoutVariation[k]);
}
i = 1 + (i + j) + CodedOutputByteBufferNano.computeRawVarint32Size(j);
}
return i;
}
示例14: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.backendId != 0) || (this.hasBackendId)) {
i += CodedOutputByteBufferNano.computeInt32Size(1, this.backendId);
}
if ((this.hasSharingEnabled) || (this.sharingEnabled)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(2);
}
return i;
}
示例15: 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;
}