本文整理汇总了Java中com.google.protobuf.nano.CodedOutputByteBufferNano.computeMessageSize方法的典型用法代码示例。如果您正苦于以下问题:Java CodedOutputByteBufferNano.computeMessageSize方法的具体用法?Java CodedOutputByteBufferNano.computeMessageSize怎么用?Java CodedOutputByteBufferNano.computeMessageSize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.protobuf.nano.CodedOutputByteBufferNano
的用法示例。
在下文中一共展示了CodedOutputByteBufferNano.computeMessageSize方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (this.newCustomer != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, this.newCustomer);
}
if (this.newInstrument != null) {
i += CodedOutputByteBufferNano.computeMessageSize(2, this.newInstrument);
}
if (this.creditCardUpdateFormValue != null) {
i += CodedOutputByteBufferNano.computeMessageSize(3, this.creditCardUpdateFormValue);
}
if (!Arrays.equals(this.dependencyGraphRequestToken, WireFormatNano.EMPTY_BYTES)) {
i += CodedOutputByteBufferNano.computeBytesSize(6, this.dependencyGraphRequestToken);
}
return i;
}
示例2: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.qosTierConfiguration != null) && (this.qosTierConfiguration.length > 0)) {
for (int j = 0; j < this.qosTierConfiguration.length; j++)
{
ClientAnalytics.QosTierConfiguration localQosTierConfiguration = this.qosTierConfiguration[j];
if (localQosTierConfiguration != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, localQosTierConfiguration);
}
}
}
if ((this.hasQosTierFingerprint) || (this.qosTierFingerprint != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(2, this.qosTierFingerprint);
}
return i;
}
示例3: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.result != 1) || (this.hasResult)) {
i += CodedOutputByteBufferNano.computeInt32Size(1, this.result);
}
if ((this.hasUserMessageHtml) || (!this.userMessageHtml.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.userMessageHtml);
}
if (this.createInstrumentFlowState != null) {
i += CodedOutputByteBufferNano.computeMessageSize(3, this.createInstrumentFlowState);
}
if (this.createInstrumentMetadata != null) {
i += CodedOutputByteBufferNano.computeMessageSize(4, this.createInstrumentMetadata);
}
return i;
}
示例4: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasCategory) || (!this.category.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.category);
}
if ((this.appData != null) && (this.appData.length > 0)) {
for (int j = 0; j < this.appData.length; j++)
{
VendingProtos.AppDataProto localAppDataProto = this.appData[j];
if (localAppDataProto != null) {
i += CodedOutputByteBufferNano.computeMessageSize(3, localAppDataProto);
}
}
}
return i;
}
示例5: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (this.error != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, this.error);
}
if (this.context != null) {
i += CodedOutputByteBufferNano.computeMessageSize(2, this.context);
}
if (this.secureHeader != null) {
i += CodedOutputByteBufferNano.computeMessageSize(3, this.secureHeader);
}
if (this.flowInstruction != 0) {
i += CodedOutputByteBufferNano.computeInt32Size(4, this.flowInstruction);
}
if (this.initialPage != null) {
i += CodedOutputByteBufferNano.computeMessageSize(5, this.initialPage);
}
if (!this.checkoutOrderId.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(6, this.checkoutOrderId);
}
return i;
}
示例6: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (this.periodStart != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, this.periodStart);
}
if (this.periodEnd != null) {
i += CodedOutputByteBufferNano.computeMessageSize(2, this.periodEnd);
}
if ((this.midSeasonPricingStrategy != 0) || (this.hasMidSeasonPricingStrategy)) {
i += CodedOutputByteBufferNano.computeInt32Size(3, this.midSeasonPricingStrategy);
}
if ((this.hasProrated) || (this.prorated)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(4);
}
return i;
}
示例7: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (this.marketingSettings != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, this.marketingSettings);
}
if (this.privacySettings != null) {
i += CodedOutputByteBufferNano.computeMessageSize(2, this.privacySettings);
}
if (this.familyInfo != null) {
i += CodedOutputByteBufferNano.computeMessageSize(3, this.familyInfo);
}
if (this.dismissedOnboardings != null) {
i += CodedOutputByteBufferNano.computeMessageSize(4, this.dismissedOnboardings);
}
if (this.playAccountUserPurchaseCache != null) {
i += CodedOutputByteBufferNano.computeMessageSize(5, this.playAccountUserPurchaseCache);
}
if (this.playAccountGlobalPurchaseCache != null) {
i += CodedOutputByteBufferNano.computeMessageSize(6, this.playAccountGlobalPurchaseCache);
}
return i;
}
示例8: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.requests != null) && (this.requests.length > 0)) {
for (int j = 0; j < this.requests.length; j++)
{
CsdClient.ClientDownloadRequest localClientDownloadRequest = this.requests[j];
if (localClientDownloadRequest != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, localClientDownloadRequest);
}
}
}
if ((this.hasUserConsented) || (this.userConsented)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(2);
}
if ((this.hasMillisecondsSinceLastAutoscanRun) || (this.millisecondsSinceLastAutoscanRun != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(3, this.millisecondsSinceLastAutoscanRun);
}
if ((this.hasMinimumMillisecondsBetweenAutoscanRuns) || (this.minimumMillisecondsBetweenAutoscanRuns != 0L)) {
i += CodedOutputByteBufferNano.computeInt64Size(4, this.minimumMillisecondsBetweenAutoscanRuns);
}
return i;
}
示例9: 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;
}
示例10: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (!this.id.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.id);
}
if (!Arrays.equals(this.token, WireFormatNano.EMPTY_BYTES)) {
i += CodedOutputByteBufferNano.computeBytesSize(2, this.token);
}
if (!this.accountNumber.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(3, this.accountNumber);
}
if ((this.cardSubformValue != null) && (this.cardSubformValue.length > 0)) {
for (int k = 0; k < this.cardSubformValue.length; k++)
{
CardFormOuterClass.CardSubformValue localCardSubformValue = this.cardSubformValue[k];
if (localCardSubformValue != null) {
i += CodedOutputByteBufferNano.computeMessageSize(5, localCardSubformValue);
}
}
}
if ((this.inputResult != null) && (this.inputResult.length > 0)) {
for (int j = 0; j < this.inputResult.length; j++)
{
CreditCardResultOuterClass.CreditCardInputResult localCreditCardInputResult = this.inputResult[j];
if (localCreditCardInputResult != null) {
i += CodedOutputByteBufferNano.computeMessageSize(6, localCreditCardInputResult);
}
}
}
if (!Arrays.equals(this.panCategoryToken, WireFormatNano.EMPTY_BYTES)) {
i += CodedOutputByteBufferNano.computeBytesSize(7, this.panCategoryToken);
}
return i;
}
示例11: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (this.voucherId != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, this.voucherId);
}
return i;
}
示例12: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (this.secureDataKey != 0) {
i += CodedOutputByteBufferNano.computeInt32Size(1, this.secureDataKey);
}
if (this.secureDataField != null) {
i += CodedOutputByteBufferNano.computeMessageSize(2, this.secureDataField);
}
return i;
}
示例13: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (this.rule != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, this.rule);
}
if ((this.actualStringValue != null) && (this.actualStringValue.length > 0))
{
int m = 0;
int n = 0;
for (int i1 = 0; i1 < this.actualStringValue.length; i1++)
{
String str = this.actualStringValue[i1];
if (str != null)
{
m++;
n += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
}
}
i = i + n + m * 1;
}
if ((this.actualLongValue != null) && (this.actualLongValue.length > 0))
{
int j = 0;
for (int k = 0; k < this.actualLongValue.length; k++) {
j += CodedOutputByteBufferNano.computeRawVarint64Size(this.actualLongValue[k]);
}
i = i + j + 1 * this.actualLongValue.length;
}
if ((this.actualBoolValue != null) && (this.actualBoolValue.length > 0)) {
i = i + 1 * this.actualBoolValue.length + 1 * this.actualBoolValue.length;
}
if ((this.actualDoubleValue != null) && (this.actualDoubleValue.length > 0)) {
i = i + 8 * this.actualDoubleValue.length + 1 * this.actualDoubleValue.length;
}
return i;
}
示例14: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.deviceFeatureInfo != null) && (this.deviceFeatureInfo.length > 0)) {
for (int j = 0; j < this.deviceFeatureInfo.length; j++)
{
DeviceFeatureInfo localDeviceFeatureInfo = this.deviceFeatureInfo[j];
if (localDeviceFeatureInfo != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, localDeviceFeatureInfo);
}
}
}
return i;
}
示例15: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (this.subForm != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, this.subForm);
}
if (this.field != null) {
i += CodedOutputByteBufferNano.computeMessageSize(2, this.field);
}
return i;
}