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