本文整理汇总了Java中com.google.protobuf.nano.CodedOutputByteBufferNano.computeGroupSize方法的典型用法代码示例。如果您正苦于以下问题:Java CodedOutputByteBufferNano.computeGroupSize方法的具体用法?Java CodedOutputByteBufferNano.computeGroupSize怎么用?Java CodedOutputByteBufferNano.computeGroupSize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.protobuf.nano.CodedOutputByteBufferNano
的用法示例。
在下文中一共展示了CodedOutputByteBufferNano.computeGroupSize方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
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;
}
示例2: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.offerType != 1) || (this.hasOfferType)) {
i += CodedOutputByteBufferNano.computeInt32Size(1, this.offerType);
}
if ((this.hasOfferAbbreviation) || (!this.offerAbbreviation.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.offerAbbreviation);
}
if ((this.hasRentalHeader) || (!this.rentalHeader.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(3, this.rentalHeader);
}
if ((this.term != null) && (this.term.length > 0)) {
for (int j = 0; j < this.term.length; j++)
{
Term localTerm = this.term[j];
if (localTerm != null) {
i += CodedOutputByteBufferNano.computeGroupSize(4, localTerm);
}
}
}
return i;
}
示例3: 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;
}
示例4: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (this.purchaseResponse != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, this.purchaseResponse);
}
if (this.checkoutInfo != null) {
i += CodedOutputByteBufferNano.computeGroupSize(2, this.checkoutInfo);
}
if ((this.hasContinueViaUrl) || (!this.continueViaUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(8, this.continueViaUrl);
}
if ((this.hasPurchaseStatusUrl) || (!this.purchaseStatusUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(9, this.purchaseStatusUrl);
}
if ((this.hasCheckoutServiceId) || (!this.checkoutServiceId.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(12, this.checkoutServiceId);
}
if ((this.hasBaseCheckoutUrl) || (!this.baseCheckoutUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(14, this.baseCheckoutUrl);
}
if ((this.tosCheckboxHtml != null) && (this.tosCheckboxHtml.length > 0))
{
int j = 0;
int k = 0;
for (int m = 0; m < this.tosCheckboxHtml.length; m++)
{
String str = this.tosCheckboxHtml[m];
if (str != null)
{
j++;
k += CodedOutputByteBufferNano.computeStringSizeNoTag(str);
}
}
i = i + k + j * 2;
}
if ((this.permissionError != 0) || (this.hasPermissionError)) {
i += CodedOutputByteBufferNano.computeInt32Size(38, this.permissionError);
}
if (this.purchaseStatusResponse != null) {
i += CodedOutputByteBufferNano.computeMessageSize(39, this.purchaseStatusResponse);
}
if ((this.hasPurchaseCookie) || (!this.purchaseCookie.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(46, this.purchaseCookie);
}
if (this.challenge != null) {
i += CodedOutputByteBufferNano.computeMessageSize(49, this.challenge);
}
if ((this.hasAddInstrumentPromptHtml) || (!this.addInstrumentPromptHtml.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(50, this.addInstrumentPromptHtml);
}
if ((this.hasConfirmButtonText) || (!this.confirmButtonText.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(51, this.confirmButtonText);
}
if ((this.hasPermissionErrorTitleText) || (!this.permissionErrorTitleText.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(52, this.permissionErrorTitleText);
}
if ((this.hasPermissionErrorMessageText) || (!this.permissionErrorMessageText.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(53, this.permissionErrorMessageText);
}
if ((this.hasServerLogsCookie) || (!Arrays.equals(this.serverLogsCookie, WireFormatNano.EMPTY_BYTES))) {
i += CodedOutputByteBufferNano.computeBytesSize(54, this.serverLogsCookie);
}
if ((this.hasEncodedDeliveryToken) || (!this.encodedDeliveryToken.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(55, this.encodedDeliveryToken);
}
return i;
}
示例5: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.imageType != 0) || (this.hasImageType)) {
i += CodedOutputByteBufferNano.computeInt32Size(1, this.imageType);
}
if (this.dimension != null) {
i += CodedOutputByteBufferNano.computeGroupSize(2, this.dimension);
}
if ((this.hasImageUrl) || (!this.imageUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(5, this.imageUrl);
}
if ((this.hasAltTextLocalized) || (!this.altTextLocalized.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(6, this.altTextLocalized);
}
if ((this.hasSecureUrl) || (!this.secureUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(7, this.secureUrl);
}
if ((this.hasPositionInSequence) || (this.positionInSequence != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(8, this.positionInSequence);
}
if ((this.hasSupportsFifeUrlOptions) || (this.supportsFifeUrlOptions)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(9);
}
if (this.citation != null) {
i += CodedOutputByteBufferNano.computeGroupSize(10, this.citation);
}
if ((this.hasDurationSeconds) || (this.durationSeconds != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(14, this.durationSeconds);
}
if ((this.hasFillColorRgb) || (!this.fillColorRgb.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(15, this.fillColorRgb);
}
if ((this.hasAutogen) || (this.autogen)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(16);
}
if (this.attribution != null) {
i += CodedOutputByteBufferNano.computeMessageSize(17, this.attribution);
}
if ((this.hasBackgroundColorRgb) || (!this.backgroundColorRgb.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(19, this.backgroundColorRgb);
}
if (this.palette != null) {
i += CodedOutputByteBufferNano.computeMessageSize(20, this.palette);
}
if ((this.deviceClass != 0) || (this.hasDeviceClass)) {
i += CodedOutputByteBufferNano.computeInt32Size(21, this.deviceClass);
}
return i;
}
示例6: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.restriction != 1) || (this.hasRestriction)) {
i += CodedOutputByteBufferNano.computeInt32Size(5, this.restriction);
}
if ((this.offerType != 1) || (this.hasOfferType)) {
i += CodedOutputByteBufferNano.computeInt32Size(6, this.offerType);
}
if (this.rule != null) {
i += CodedOutputByteBufferNano.computeMessageSize(7, this.rule);
}
if ((this.perDeviceAvailabilityRestriction != null) && (this.perDeviceAvailabilityRestriction.length > 0)) {
for (int m = 0; m < this.perDeviceAvailabilityRestriction.length; m++)
{
PerDeviceAvailabilityRestriction localPerDeviceAvailabilityRestriction = this.perDeviceAvailabilityRestriction[m];
if (localPerDeviceAvailabilityRestriction != null) {
i += CodedOutputByteBufferNano.computeGroupSize(9, localPerDeviceAvailabilityRestriction);
}
}
}
if ((this.hasAvailableIfOwned) || (this.availableIfOwned)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(13);
}
if ((this.install != null) && (this.install.length > 0)) {
for (int k = 0; k < this.install.length; k++)
{
Common.Install localInstall = this.install[k];
if (localInstall != null) {
i += CodedOutputByteBufferNano.computeMessageSize(14, localInstall);
}
}
}
if (this.filterInfo != null) {
i += CodedOutputByteBufferNano.computeMessageSize(16, this.filterInfo);
}
if (this.ownershipInfo != null) {
i += CodedOutputByteBufferNano.computeMessageSize(17, this.ownershipInfo);
}
if ((this.availabilityProblem != null) && (this.availabilityProblem.length > 0)) {
for (int j = 0; j < this.availabilityProblem.length; j++)
{
FilterRules.AvailabilityProblem localAvailabilityProblem = this.availabilityProblem[j];
if (localAvailabilityProblem != null) {
i += CodedOutputByteBufferNano.computeMessageSize(18, localAvailabilityProblem);
}
}
}
if ((this.hasHidden) || (this.hidden)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(21);
}
return i;
}