package nano; import com.google.protobuf.nano.CodedInputByteBufferNano; import com.google.protobuf.nano.CodedOutputByteBufferNano; import com.google.protobuf.nano.InternalNano; import com.google.protobuf.nano.InvalidProtocolBufferNanoException; import com.google.protobuf.nano.MessageNano; import com.google.protobuf.nano.WireFormatNano; import java.io.IOException; import nano.DownloadReferalGoodsGroupRequest; /* compiled from: TbsSdkJava */ public interface DownloadReferalGoodsGroupResponse { /* compiled from: TbsSdkJava */ public static final class DownloadReferalGoodsGroup_Response extends MessageNano { private static volatile DownloadReferalGoodsGroup_Response[] _emptyArray; public DownloadReferalGoodsGroupRequest.DownloadReferalGoodsGroup_Request input; public GroupDetail[] output; /* compiled from: TbsSdkJava */ public static final class GroupDetail extends MessageNano { private static volatile GroupDetail[] _emptyArray; private int bitField0_; private long id_; private String name_; public GroupDetail() { clear(); } public static GroupDetail[] emptyArray() { if (_emptyArray == null) { synchronized (InternalNano.LAZY_INIT_LOCK) { try { if (_emptyArray == null) { _emptyArray = new GroupDetail[0]; } } catch (Throwable th) { throw th; } } } return _emptyArray; } public static GroupDetail parseFrom(byte[] bArr) throws InvalidProtocolBufferNanoException { return (GroupDetail) MessageNano.mergeFrom(new GroupDetail(), bArr); } public GroupDetail clear() { this.bitField0_ = 0; this.id_ = 0; this.name_ = ""; this.cachedSize = -1; return this; } public GroupDetail clearId() { this.id_ = 0; this.bitField0_ &= -2; return this; } public GroupDetail clearName() { this.name_ = ""; this.bitField0_ &= -3; return this; } /* access modifiers changed from: protected */ public int computeSerializedSize() { int computeSerializedSize = super.computeSerializedSize(); if ((this.bitField0_ & 1) != 0) { computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(1, this.id_); } if ((this.bitField0_ & 2) != 0) { return computeSerializedSize + CodedOutputByteBufferNano.computeStringSize(2, this.name_); } return computeSerializedSize; } public long getId() { return this.id_; } public String getName() { return this.name_; } public boolean hasId() { if ((this.bitField0_ & 1) != 0) { return true; } return false; } public boolean hasName() { if ((this.bitField0_ & 2) != 0) { return true; } return false; } public GroupDetail setId(long j10) { this.id_ = j10; this.bitField0_ |= 1; return this; } public GroupDetail setName(String str) { str.getClass(); this.name_ = str; this.bitField0_ |= 2; return this; } public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException { if ((this.bitField0_ & 1) != 0) { codedOutputByteBufferNano.writeInt64(1, this.id_); } if ((this.bitField0_ & 2) != 0) { codedOutputByteBufferNano.writeString(2, this.name_); } super.writeTo(codedOutputByteBufferNano); } public static GroupDetail parseFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException { return new GroupDetail().mergeFrom(codedInputByteBufferNano); } public GroupDetail mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException { while (true) { int readTag = codedInputByteBufferNano.readTag(); if (readTag == 0) { return this; } if (readTag == 8) { this.id_ = codedInputByteBufferNano.readInt64(); this.bitField0_ |= 1; } else if (readTag == 18) { this.name_ = codedInputByteBufferNano.readString(); this.bitField0_ |= 2; } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) { return this; } } } } public DownloadReferalGoodsGroup_Response() { clear(); } public static DownloadReferalGoodsGroup_Response[] emptyArray() { if (_emptyArray == null) { synchronized (InternalNano.LAZY_INIT_LOCK) { try { if (_emptyArray == null) { _emptyArray = new DownloadReferalGoodsGroup_Response[0]; } } catch (Throwable th) { throw th; } } } return _emptyArray; } public static DownloadReferalGoodsGroup_Response parseFrom(byte[] bArr) throws InvalidProtocolBufferNanoException { return (DownloadReferalGoodsGroup_Response) MessageNano.mergeFrom(new DownloadReferalGoodsGroup_Response(), bArr); } public DownloadReferalGoodsGroup_Response clear() { this.input = null; this.output = GroupDetail.emptyArray(); this.cachedSize = -1; return this; } /* access modifiers changed from: protected */ public int computeSerializedSize() { int computeSerializedSize = super.computeSerializedSize(); DownloadReferalGoodsGroupRequest.DownloadReferalGoodsGroup_Request downloadReferalGoodsGroup_Request = this.input; if (downloadReferalGoodsGroup_Request != null) { computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, downloadReferalGoodsGroup_Request); } GroupDetail[] groupDetailArr = this.output; if (groupDetailArr != null && groupDetailArr.length > 0) { int i10 = 0; while (true) { GroupDetail[] groupDetailArr2 = this.output; if (i10 >= groupDetailArr2.length) { break; } GroupDetail groupDetail = groupDetailArr2[i10]; if (groupDetail != null) { computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, groupDetail); } i10++; } } return computeSerializedSize; } public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException { DownloadReferalGoodsGroupRequest.DownloadReferalGoodsGroup_Request downloadReferalGoodsGroup_Request = this.input; if (downloadReferalGoodsGroup_Request != null) { codedOutputByteBufferNano.writeMessage(1, downloadReferalGoodsGroup_Request); } GroupDetail[] groupDetailArr = this.output; if (groupDetailArr != null && groupDetailArr.length > 0) { int i10 = 0; while (true) { GroupDetail[] groupDetailArr2 = this.output; if (i10 >= groupDetailArr2.length) { break; } GroupDetail groupDetail = groupDetailArr2[i10]; if (groupDetail != null) { codedOutputByteBufferNano.writeMessage(2, groupDetail); } i10++; } } super.writeTo(codedOutputByteBufferNano); } public static DownloadReferalGoodsGroup_Response parseFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException { return new DownloadReferalGoodsGroup_Response().mergeFrom(codedInputByteBufferNano); } public DownloadReferalGoodsGroup_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException { while (true) { int readTag = codedInputByteBufferNano.readTag(); if (readTag == 0) { return this; } if (readTag == 10) { if (this.input == null) { this.input = new DownloadReferalGoodsGroupRequest.DownloadReferalGoodsGroup_Request(); } codedInputByteBufferNano.readMessage(this.input); } else if (readTag == 18) { int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18); GroupDetail[] groupDetailArr = this.output; int length = groupDetailArr == null ? 0 : groupDetailArr.length; int i10 = repeatedFieldArrayLength + length; GroupDetail[] groupDetailArr2 = new GroupDetail[i10]; if (length != 0) { System.arraycopy(groupDetailArr, 0, groupDetailArr2, 0, length); } while (length < i10 - 1) { GroupDetail groupDetail = new GroupDetail(); groupDetailArr2[length] = groupDetail; codedInputByteBufferNano.readMessage(groupDetail); codedInputByteBufferNano.readTag(); length++; } GroupDetail groupDetail2 = new GroupDetail(); groupDetailArr2[length] = groupDetail2; codedInputByteBufferNano.readMessage(groupDetail2); this.output = groupDetailArr2; } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) { return this; } } } } }