本文整理汇总了Java中com.google.protobuf.nano.CodedOutputByteBufferNano.writeInt32方法的典型用法代码示例。如果您正苦于以下问题:Java CodedOutputByteBufferNano.writeInt32方法的具体用法?Java CodedOutputByteBufferNano.writeInt32怎么用?Java CodedOutputByteBufferNano.writeInt32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.protobuf.nano.CodedOutputByteBufferNano
的用法示例。
在下文中一共展示了CodedOutputByteBufferNano.writeInt32方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if ((this.authenticationPreference != 0) || (this.hasAuthenticationPreference)) {
paramCodedOutputByteBufferNano.writeInt32(1, this.authenticationPreference);
}
if ((this.hasLastAuthTimestampMillis) || (this.lastAuthTimestampMillis != 0L)) {
paramCodedOutputByteBufferNano.writeInt64(2, this.lastAuthTimestampMillis);
}
if ((this.hasFlowStartedTimestampMillis) || (this.flowStartedTimestampMillis != 0L)) {
paramCodedOutputByteBufferNano.writeInt64(3, this.flowStartedTimestampMillis);
}
if ((this.authenticationMethod != 0) || (this.hasAuthenticationMethod)) {
paramCodedOutputByteBufferNano.writeInt32(4, this.authenticationMethod);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例2: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if (!this.start.equals("")) {
paramCodedOutputByteBufferNano.writeString(1, this.start);
}
if (!this.end.equals("")) {
paramCodedOutputByteBufferNano.writeString(2, this.end);
}
if (this.cardNumberLength != 0) {
paramCodedOutputByteBufferNano.writeInt32(3, this.cardNumberLength);
}
if ((this.digitGrouping != null) && (this.digitGrouping.length > 0)) {
for (int i = 0; i < this.digitGrouping.length; i++) {
paramCodedOutputByteBufferNano.writeInt32(4, this.digitGrouping[i]);
}
}
if (!this.errorMessage.equals("")) {
paramCodedOutputByteBufferNano.writeString(5, this.errorMessage);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例3: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if ((this.hasName) || (!this.name.equals(""))) {
paramCodedOutputByteBufferNano.writeString(1, this.name);
}
if (this.image != null) {
paramCodedOutputByteBufferNano.writeMessage(2, this.image);
}
if (this.link != null) {
paramCodedOutputByteBufferNano.writeMessage(3, this.link);
}
if ((this.hasDisplayRequired) || (this.displayRequired)) {
paramCodedOutputByteBufferNano.writeBool(4, this.displayRequired);
}
if ((this.hasServerLogsCookie) || (!Arrays.equals(this.serverLogsCookie, WireFormatNano.EMPTY_BYTES))) {
paramCodedOutputByteBufferNano.writeBytes(5, this.serverLogsCookie);
}
if ((this.backendId != 0) || (this.hasBackendId)) {
paramCodedOutputByteBufferNano.writeInt32(6, this.backendId);
}
if ((this.hasPrismStyle) || (this.prismStyle)) {
paramCodedOutputByteBufferNano.writeBool(7, this.prismStyle);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例4: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if ((this.creditType != 0) || (this.hasCreditType)) {
paramCodedOutputByteBufferNano.writeInt32(1, this.creditType);
}
if ((this.hasCredit) || (!this.credit.equals(""))) {
paramCodedOutputByteBufferNano.writeString(2, this.credit);
}
if ((this.name != null) && (this.name.length > 0)) {
for (int i = 0; i < this.name.length; i++)
{
String str = this.name[i];
if (str != null) {
paramCodedOutputByteBufferNano.writeString(3, str);
}
}
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例5: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if ((this.hasDeviceId) || (!this.deviceId.equals(""))) {
paramCodedOutputByteBufferNano.writeString(1, this.deviceId);
}
if ((this.os != 0) || (this.hasOs)) {
paramCodedOutputByteBufferNano.writeInt32(2, this.os);
}
if ((this.hasAppId) || (!this.appId.equals(""))) {
paramCodedOutputByteBufferNano.writeString(3, this.appId);
}
if ((this.hasAppVersion) || (!this.appVersion.equals(""))) {
paramCodedOutputByteBufferNano.writeString(4, this.appVersion);
}
if ((this.hasMccMnc) || (!this.mccMnc.equals(""))) {
paramCodedOutputByteBufferNano.writeString(5, this.mccMnc);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例6: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if ((this.hasPublisherId) || (this.publisherId != 0L)) {
paramCodedOutputByteBufferNano.writeInt64(1, this.publisherId);
}
if ((this.hasCampaignId) || (this.campaignId != 0L)) {
paramCodedOutputByteBufferNano.writeInt64(2, this.campaignId);
}
if ((this.hasCodeGroupId) || (this.codeGroupId != 0L)) {
paramCodedOutputByteBufferNano.writeInt64(3, this.codeGroupId);
}
if ((this.hasRecordId) || (this.recordId != 0L)) {
paramCodedOutputByteBufferNano.writeInt64(4, this.recordId);
}
if ((this.type != 1) || (this.hasType)) {
paramCodedOutputByteBufferNano.writeInt32(5, this.type);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例7: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if ((this.type != 0) || (this.hasType)) {
paramCodedOutputByteBufferNano.writeInt32(1, this.type);
}
if ((this.hasServerLogsCookie) || (!Arrays.equals(this.serverLogsCookie, WireFormatNano.EMPTY_BYTES))) {
paramCodedOutputByteBufferNano.writeBytes(2, this.serverLogsCookie);
}
if (this.clientLogsCookie != null) {
paramCodedOutputByteBufferNano.writeMessage(3, this.clientLogsCookie);
}
if ((this.child != null) && (this.child.length > 0)) {
for (int i = 0; i < this.child.length; i++)
{
PlayStoreUiElement localPlayStoreUiElement = this.child[i];
if (localPlayStoreUiElement != null) {
paramCodedOutputByteBufferNano.writeMessage(4, localPlayStoreUiElement);
}
}
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例8: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if (!this.message.equals("")) {
paramCodedOutputByteBufferNano.writeString(1, this.message);
}
if ((this.formFieldMessage != null) && (this.formFieldMessage.length > 0)) {
for (int i = 0; i < this.formFieldMessage.length; i++)
{
UiErrorOuterClass.FormFieldMessage localFormFieldMessage = this.formFieldMessage[i];
if (localFormFieldMessage != null) {
paramCodedOutputByteBufferNano.writeMessage(2, localFormFieldMessage);
}
}
}
if (!this.errorCode.equals("")) {
paramCodedOutputByteBufferNano.writeString(3, this.errorCode);
}
if (!this.internalDetails.equals("")) {
paramCodedOutputByteBufferNano.writeString(4, this.internalDetails);
}
if (this.action != 1) {
paramCodedOutputByteBufferNano.writeInt32(5, this.action);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例9: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if ((this.hasUri) || (!this.uri.equals(""))) {
paramCodedOutputByteBufferNano.writeString(1, this.uri);
}
if (this.resolvedLink != null) {
paramCodedOutputByteBufferNano.writeMessage(2, this.resolvedLink);
}
if ((this.uriBackend != 0) || (this.hasUriBackend)) {
paramCodedOutputByteBufferNano.writeInt32(3, this.uriBackend);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例10: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if (!this.formId.equals("")) {
paramCodedOutputByteBufferNano.writeString(1, this.formId);
}
if (this.fieldId != 0) {
paramCodedOutputByteBufferNano.writeInt32(2, this.fieldId);
}
if (this.repeatedFieldIndex != -1) {
paramCodedOutputByteBufferNano.writeInt32(3, this.repeatedFieldIndex);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例11: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if ((this.hasMessageHtml) || (!this.messageHtml.equals(""))) {
paramCodedOutputByteBufferNano.writeString(1, this.messageHtml);
}
if ((this.hasDismissMillisecond) || (this.dismissMillisecond != 0)) {
paramCodedOutputByteBufferNano.writeInt32(2, this.dismissMillisecond);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例12: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if ((this.hasKey) || (this.key != 0)) {
paramCodedOutputByteBufferNano.writeInt32(1, this.key);
}
if ((this.hasValue) || (!this.value.equals(""))) {
paramCodedOutputByteBufferNano.writeString(2, this.value);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例13: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if ((this.hasVersion) || (this.version != 1)) {
paramCodedOutputByteBufferNano.writeInt32(1, this.version);
}
if ((this.hasEncryptionKey) || (!this.encryptionKey.equals(""))) {
paramCodedOutputByteBufferNano.writeString(2, this.encryptionKey);
}
if ((this.hasHmacKey) || (!this.hmacKey.equals(""))) {
paramCodedOutputByteBufferNano.writeString(3, this.hmacKey);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例14: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if (!this.name.equals("")) {
paramCodedOutputByteBufferNano.writeString(1, this.name);
}
if (this.isSecure) {
paramCodedOutputByteBufferNano.writeBool(2, this.isSecure);
}
if (this.isOptional) {
paramCodedOutputByteBufferNano.writeBool(3, this.isOptional);
}
if (!this.label.equals("")) {
paramCodedOutputByteBufferNano.writeString(4, this.label);
}
if (this.textField != null) {
paramCodedOutputByteBufferNano.writeMessage(6, this.textField);
}
if (this.selectField != null) {
paramCodedOutputByteBufferNano.writeMessage(7, this.selectField);
}
if (this.tooltip != null) {
paramCodedOutputByteBufferNano.writeMessage(9, this.tooltip);
}
if (this.isDisabled) {
paramCodedOutputByteBufferNano.writeBool(11, this.isDisabled);
}
if (!Arrays.equals(this.dataToken, WireFormatNano.EMPTY_BYTES)) {
paramCodedOutputByteBufferNano.writeBytes(14, this.dataToken);
}
if (this.uiReference != 0) {
paramCodedOutputByteBufferNano.writeInt32(15, this.uiReference);
}
if (this.dateField != null) {
paramCodedOutputByteBufferNano.writeMessage(16, this.dateField);
}
if (this.semanticHint != 0) {
paramCodedOutputByteBufferNano.writeInt32(18, this.semanticHint);
}
super.writeTo(paramCodedOutputByteBufferNano);
}
示例15: writeTo
import com.google.protobuf.nano.CodedOutputByteBufferNano; //导入方法依赖的package包/类
public final void writeTo(CodedOutputByteBufferNano paramCodedOutputByteBufferNano)
throws IOException
{
if ((this.hasPackageName) || (!this.packageName.equals(""))) {
paramCodedOutputByteBufferNano.writeString(1, this.packageName);
}
if ((this.hasVersionCode) || (this.versionCode != 0)) {
paramCodedOutputByteBufferNano.writeInt32(2, this.versionCode);
}
if ((this.files != null) && (this.files.length > 0)) {
for (int i = 0; i < this.files.length; i++)
{
CsdClient.ClientDownloadRequest.FileInfo localFileInfo = this.files[i];
if (localFileInfo != null) {
paramCodedOutputByteBufferNano.writeMessage(3, localFileInfo);
}
}
}
if ((this.hasInstalledByPlay) || (this.installedByPlay)) {
paramCodedOutputByteBufferNano.writeBool(4, this.installedByPlay);
}
if ((this.hasForwardLocked) || (this.forwardLocked)) {
paramCodedOutputByteBufferNano.writeBool(5, this.forwardLocked);
}
if ((this.hasInStoppedState) || (this.inStoppedState)) {
paramCodedOutputByteBufferNano.writeBool(6, this.inStoppedState);
}
if ((this.hasDontWarnAgain) || (this.dontWarnAgain)) {
paramCodedOutputByteBufferNano.writeBool(7, this.dontWarnAgain);
}
if ((this.hasSystemApplication) || (this.systemApplication)) {
paramCodedOutputByteBufferNano.writeBool(8, this.systemApplication);
}
if ((this.hasUpdatedSystemApplication) || (this.updatedSystemApplication)) {
paramCodedOutputByteBufferNano.writeBool(9, this.updatedSystemApplication);
}
if ((this.hasDebuggable) || (this.debuggable)) {
paramCodedOutputByteBufferNano.writeBool(10, this.debuggable);
}
super.writeTo(paramCodedOutputByteBufferNano);
}