本文整理汇总了Java中com.google.protobuf.nano.CodedOutputByteBufferNano.computeStringSize方法的典型用法代码示例。如果您正苦于以下问题:Java CodedOutputByteBufferNano.computeStringSize方法的具体用法?Java CodedOutputByteBufferNano.computeStringSize怎么用?Java CodedOutputByteBufferNano.computeStringSize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.protobuf.nano.CodedOutputByteBufferNano
的用法示例。
在下文中一共展示了CodedOutputByteBufferNano.computeStringSize方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasBundle) || (this.bundle)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(1);
}
if ((this.hasBundleContentListUrl) || (!this.bundleContentListUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.bundleContentListUrl);
}
if ((this.hasExtrasContentListUrl) || (!this.extrasContentListUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(3, this.extrasContentListUrl);
}
if ((this.hasAlsoAvailableInListUrl) || (!this.alsoAvailableInListUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(4, this.alsoAvailableInListUrl);
}
if ((this.bundleDocid != null) && (this.bundleDocid.length > 0)) {
for (int j = 0; j < this.bundleDocid.length; j++)
{
Common.Docid localDocid = this.bundleDocid[j];
if (localDocid != null) {
i += CodedOutputByteBufferNano.computeMessageSize(5, localDocid);
}
}
}
return i;
}
示例2: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.gaiaGroupId != null) && (this.gaiaGroupId.length > 0)) {
i = i + 8 * this.gaiaGroupId.length + 1 * this.gaiaGroupId.length;
}
if ((this.hasGroupLicenseCheckoutOrderId) || (!this.groupLicenseCheckoutOrderId.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.groupLicenseCheckoutOrderId);
}
if (this.groupLicenseKey != null) {
i += CodedOutputByteBufferNano.computeMessageSize(3, this.groupLicenseKey);
}
if ((this.hasAssignedByGaiaId) || (this.assignedByGaiaId != 0L)) {
i += 8 + CodedOutputByteBufferNano.computeTagSize(4);
}
if ((this.hasDEPRECATEDAssignmentId) || (!this.dEPRECATEDAssignmentId.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(5, this.dEPRECATEDAssignmentId);
}
return i;
}
示例3: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasTitle) || (!this.title.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.title);
}
if ((this.hasDescriptionHtml) || (!this.descriptionHtml.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.descriptionHtml);
}
if (this.smsCode != null) {
i += CodedOutputByteBufferNano.computeMessageSize(3, this.smsCode);
}
if (this.resendCodeButton != null) {
i += CodedOutputByteBufferNano.computeMessageSize(4, this.resendCodeButton);
}
if (this.submitButton != null) {
i += CodedOutputByteBufferNano.computeMessageSize(5, this.submitButton);
}
return i;
}
示例4: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (!this.cardNumber.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.cardNumber);
}
if (this.expMonth != 0) {
i += CodedOutputByteBufferNano.computeInt32Size(2, this.expMonth);
}
if (this.expYear != 0) {
i += CodedOutputByteBufferNano.computeInt32Size(3, this.expYear);
}
if (this.dominantColor != 0) {
i += CodedOutputByteBufferNano.computeInt32Size(4, this.dominantColor);
}
if (!this.cardholderName.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(6, this.cardholderName);
}
if (this.inputType != 0) {
i += CodedOutputByteBufferNano.computeInt32Size(7, this.inputType);
}
if (!this.cardholderRawName.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(8, this.cardholderRawName);
}
return i;
}
示例5: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (this.docid != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, this.docid);
}
if ((this.hasTitle) || (!this.title.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.title);
}
if ((this.hasVersionCode) || (this.versionCode != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(3, this.versionCode);
}
if ((this.hasBackground) || (this.background)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(4);
}
if ((this.hasCritical) || (this.critical)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(5);
}
return i;
}
示例6: 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.cardFieldValue != null) && (this.cardFieldValue.length > 0)) {
for (int j = 0; j < this.cardFieldValue.length; j++)
{
CardFormOuterClass.CardFieldValue localCardFieldValue = this.cardFieldValue[j];
if (localCardFieldValue != null) {
i += CodedOutputByteBufferNano.computeMessageSize(3, localCardFieldValue);
}
}
}
if (!this.legalDocData.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(4, this.legalDocData);
}
return i;
}
示例7: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (this.username != null) {
i += CodedOutputByteBufferNano.computeMessageSize(1, this.username);
}
if (this.password != null) {
i += CodedOutputByteBufferNano.computeMessageSize(2, this.password);
}
if (this.encryptionType != 0) {
i += CodedOutputByteBufferNano.computeInt32Size(3, this.encryptionType);
}
if (!this.legalDocData.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(4, this.legalDocData);
}
if (!this.hashedDeviceId.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(5, this.hashedDeviceId);
}
return i;
}
示例8: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (!this.displayValue.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.displayValue);
}
if (!this.value.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.value);
}
if (this.extendedDescriptionInfo != null) {
i += CodedOutputByteBufferNano.computeMessageSize(4, this.extendedDescriptionInfo);
}
if (this.uiReference != 0) {
i += CodedOutputByteBufferNano.computeInt32Size(5, this.uiReference);
}
if (this.icon != null) {
i += CodedOutputByteBufferNano.computeMessageSize(6, this.icon);
}
return i;
}
示例9: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasQuery) || (!this.query.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.query);
}
if ((this.hasQueryUrl) || (!this.queryUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.queryUrl);
}
if ((this.hasReferrerUrl) || (!this.referrerUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(3, this.referrerUrl);
}
return i;
}
示例10: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasCheckoutOrderId) || (!this.checkoutOrderId.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.checkoutOrderId);
}
if ((this.hasInAppNotificationId) || (!this.inAppNotificationId.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.inAppNotificationId);
}
return i;
}
示例11: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasDocid) || (!this.docid.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.docid);
}
if (this.selectedChild != null) {
i += CodedOutputByteBufferNano.computeMessageSize(2, this.selectedChild);
}
return i;
}
示例12: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasId) || (!this.id.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.id);
}
if ((this.hasName) || (!this.name.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.name);
}
if ((this.hasApiVersion) || (this.apiVersion != 0)) {
i += CodedOutputByteBufferNano.computeInt32Size(3, this.apiVersion);
}
if ((this.hasProvisioningUrl) || (!this.provisioningUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(4, this.provisioningUrl);
}
if ((this.hasCredentialsUrl) || (!this.credentialsUrl.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(5, this.credentialsUrl);
}
if ((this.hasTosRequired) || (this.tosRequired)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(6);
}
if ((this.hasPerTransactionCredentialsRequired) || (this.perTransactionCredentialsRequired)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(7);
}
if ((this.hasSendSubscriberIdWithCarrierBillingRequests) || (this.sendSubscriberIdWithCarrierBillingRequests)) {
i += 1 + CodedOutputByteBufferNano.computeTagSize(8);
}
return i;
}
示例13: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (!this.placeholderCharacter.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(1, this.placeholderCharacter);
}
if (!this.displayCharacter.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.displayCharacter);
}
if (!this.regex.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(3, this.regex);
}
return i;
}
示例14: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if (!this.viewerUrl.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(2, this.viewerUrl);
}
if (!this.opaqueData.equals("")) {
i += CodedOutputByteBufferNano.computeStringSize(3, this.opaqueData);
}
if (this.messageText != null) {
i += CodedOutputByteBufferNano.computeMessageSize(5, this.messageText);
}
return i;
}
示例15: computeSerializedSize
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
protected final int computeSerializedSize()
{
int i = super.computeSerializedSize();
if ((this.hasName) || (!this.name.equals(""))) {
i += CodedOutputByteBufferNano.computeStringSize(3, this.name);
}
if ((this.hasTimeInMs) || (Double.doubleToLongBits(this.timeInMs) != Double.doubleToLongBits(0.0D))) {
i += 8 + CodedOutputByteBufferNano.computeTagSize(4);
}
return i;
}