Back to project page droidkit-engines.
The source code is released under:
MIT License
If you think the Android project droidkit-engines listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: test.proto /*from w w w . j a va 2 s. c om*/ package com.droidkit.sample.listenginetest; public final class TestProto { private TestProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface DialogTestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int64 id = 1; /** * <code>required int64 id = 1;</code> */ boolean hasId(); /** * <code>required int64 id = 1;</code> */ long getId(); // required int64 time = 2; /** * <code>required int64 time = 2;</code> */ boolean hasTime(); /** * <code>required int64 time = 2;</code> */ long getTime(); // required string title = 3; /** * <code>required string title = 3;</code> */ boolean hasTitle(); /** * <code>required string title = 3;</code> */ String getTitle(); /** * <code>required string title = 3;</code> */ com.google.protobuf.ByteString getTitleBytes(); // required string text = 4; /** * <code>required string text = 4;</code> */ boolean hasText(); /** * <code>required string text = 4;</code> */ String getText(); /** * <code>required string text = 4;</code> */ com.google.protobuf.ByteString getTextBytes(); // required int32 status = 5; /** * <code>required int32 status = 5;</code> */ boolean hasStatus(); /** * <code>required int32 status = 5;</code> */ int getStatus(); // required string imageUrl = 6; /** * <code>required string imageUrl = 6;</code> */ boolean hasImageUrl(); /** * <code>required string imageUrl = 6;</code> */ String getImageUrl(); /** * <code>required string imageUrl = 6;</code> */ com.google.protobuf.ByteString getImageUrlBytes(); // required string lastMessageSenderName = 7; /** * <code>required string lastMessageSenderName = 7;</code> */ boolean hasLastMessageSenderName(); /** * <code>required string lastMessageSenderName = 7;</code> */ String getLastMessageSenderName(); /** * <code>required string lastMessageSenderName = 7;</code> */ com.google.protobuf.ByteString getLastMessageSenderNameBytes(); } /** * Protobuf type {@code proto.DialogTest} */ public static final class DialogTest extends com.google.protobuf.GeneratedMessage implements DialogTestOrBuilder { // Use DialogTest.newBuilder() to construct. private DialogTest(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private DialogTest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final DialogTest defaultInstance; public static DialogTest getDefaultInstance() { return defaultInstance; } public DialogTest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DialogTest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; id_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; time_ = input.readInt64(); break; } case 26: { bitField0_ |= 0x00000004; title_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; text_ = input.readBytes(); break; } case 40: { bitField0_ |= 0x00000010; status_ = input.readInt32(); break; } case 50: { bitField0_ |= 0x00000020; imageUrl_ = input.readBytes(); break; } case 58: { bitField0_ |= 0x00000040; lastMessageSenderName_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return TestProto.internal_static_proto_DialogTest_descriptor; } protected FieldAccessorTable internalGetFieldAccessorTable() { return TestProto.internal_static_proto_DialogTest_fieldAccessorTable .ensureFieldAccessorsInitialized( DialogTest.class, Builder.class); } public static com.google.protobuf.Parser<DialogTest> PARSER = new com.google.protobuf.AbstractParser<DialogTest>() { public DialogTest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DialogTest(input, extensionRegistry); } }; @Override public com.google.protobuf.Parser<DialogTest> getParserForType() { return PARSER; } private int bitField0_; // required int64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * <code>required int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required int64 id = 1;</code> */ public long getId() { return id_; } // required int64 time = 2; public static final int TIME_FIELD_NUMBER = 2; private long time_; /** * <code>required int64 time = 2;</code> */ public boolean hasTime() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required int64 time = 2;</code> */ public long getTime() { return time_; } // required string title = 3; public static final int TITLE_FIELD_NUMBER = 3; private Object title_; /** * <code>required string title = 3;</code> */ public boolean hasTitle() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required string title = 3;</code> */ public String getTitle() { Object ref = title_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { title_ = s; } return s; } } /** * <code>required string title = 3;</code> */ public com.google.protobuf.ByteString getTitleBytes() { Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string text = 4; public static final int TEXT_FIELD_NUMBER = 4; private Object text_; /** * <code>required string text = 4;</code> */ public boolean hasText() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required string text = 4;</code> */ public String getText() { Object ref = text_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { text_ = s; } return s; } } /** * <code>required string text = 4;</code> */ public com.google.protobuf.ByteString getTextBytes() { Object ref = text_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 status = 5; public static final int STATUS_FIELD_NUMBER = 5; private int status_; /** * <code>required int32 status = 5;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>required int32 status = 5;</code> */ public int getStatus() { return status_; } // required string imageUrl = 6; public static final int IMAGEURL_FIELD_NUMBER = 6; private Object imageUrl_; /** * <code>required string imageUrl = 6;</code> */ public boolean hasImageUrl() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>required string imageUrl = 6;</code> */ public String getImageUrl() { Object ref = imageUrl_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { imageUrl_ = s; } return s; } } /** * <code>required string imageUrl = 6;</code> */ public com.google.protobuf.ByteString getImageUrlBytes() { Object ref = imageUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); imageUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string lastMessageSenderName = 7; public static final int LASTMESSAGESENDERNAME_FIELD_NUMBER = 7; private Object lastMessageSenderName_; /** * <code>required string lastMessageSenderName = 7;</code> */ public boolean hasLastMessageSenderName() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>required string lastMessageSenderName = 7;</code> */ public String getLastMessageSenderName() { Object ref = lastMessageSenderName_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { lastMessageSenderName_ = s; } return s; } } /** * <code>required string lastMessageSenderName = 7;</code> */ public com.google.protobuf.ByteString getLastMessageSenderNameBytes() { Object ref = lastMessageSenderName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); lastMessageSenderName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { id_ = 0L; time_ = 0L; title_ = ""; text_ = ""; status_ = 0; imageUrl_ = ""; lastMessageSenderName_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasId()) { memoizedIsInitialized = 0; return false; } if (!hasTime()) { memoizedIsInitialized = 0; return false; } if (!hasTitle()) { memoizedIsInitialized = 0; return false; } if (!hasText()) { memoizedIsInitialized = 0; return false; } if (!hasStatus()) { memoizedIsInitialized = 0; return false; } if (!hasImageUrl()) { memoizedIsInitialized = 0; return false; } if (!hasLastMessageSenderName()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, time_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getTitleBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getTextBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, status_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getImageUrlBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(7, getLastMessageSenderNameBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, time_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getTitleBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getTextBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, status_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getImageUrlBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, getLastMessageSenderNameBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static DialogTest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static DialogTest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static DialogTest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static DialogTest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static DialogTest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static DialogTest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static DialogTest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static DialogTest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static DialogTest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static DialogTest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(DialogTest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @Override protected Builder newBuilderForType( BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code proto.DialogTest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements DialogTestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return TestProto.internal_static_proto_DialogTest_descriptor; } protected FieldAccessorTable internalGetFieldAccessorTable() { return TestProto.internal_static_proto_DialogTest_fieldAccessorTable .ensureFieldAccessorsInitialized( DialogTest.class, Builder.class); } // Construct using com.getsecretapp.proto.test.TestProto.DialogTest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); time_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); title_ = ""; bitField0_ = (bitField0_ & ~0x00000004); text_ = ""; bitField0_ = (bitField0_ & ~0x00000008); status_ = 0; bitField0_ = (bitField0_ & ~0x00000010); imageUrl_ = ""; bitField0_ = (bitField0_ & ~0x00000020); lastMessageSenderName_ = ""; bitField0_ = (bitField0_ & ~0x00000040); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return TestProto.internal_static_proto_DialogTest_descriptor; } public DialogTest getDefaultInstanceForType() { return DialogTest.getDefaultInstance(); } public DialogTest build() { DialogTest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public DialogTest buildPartial() { DialogTest result = new DialogTest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.time_ = time_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.title_ = title_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.text_ = text_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.status_ = status_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.imageUrl_ = imageUrl_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.lastMessageSenderName_ = lastMessageSenderName_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof DialogTest) { return mergeFrom((DialogTest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(DialogTest other) { if (other == DialogTest.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasTime()) { setTime(other.getTime()); } if (other.hasTitle()) { bitField0_ |= 0x00000004; title_ = other.title_; onChanged(); } if (other.hasText()) { bitField0_ |= 0x00000008; text_ = other.text_; onChanged(); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasImageUrl()) { bitField0_ |= 0x00000020; imageUrl_ = other.imageUrl_; onChanged(); } if (other.hasLastMessageSenderName()) { bitField0_ |= 0x00000040; lastMessageSenderName_ = other.lastMessageSenderName_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasId()) { return false; } if (!hasTime()) { return false; } if (!hasTitle()) { return false; } if (!hasText()) { return false; } if (!hasStatus()) { return false; } if (!hasImageUrl()) { return false; } if (!hasLastMessageSenderName()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { DialogTest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (DialogTest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int64 id = 1; private long id_ ; /** * <code>required int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required int64 id = 1;</code> */ public long getId() { return id_; } /** * <code>required int64 id = 1;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * <code>required int64 id = 1;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // required int64 time = 2; private long time_ ; /** * <code>required int64 time = 2;</code> */ public boolean hasTime() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required int64 time = 2;</code> */ public long getTime() { return time_; } /** * <code>required int64 time = 2;</code> */ public Builder setTime(long value) { bitField0_ |= 0x00000002; time_ = value; onChanged(); return this; } /** * <code>required int64 time = 2;</code> */ public Builder clearTime() { bitField0_ = (bitField0_ & ~0x00000002); time_ = 0L; onChanged(); return this; } // required string title = 3; private Object title_ = ""; /** * <code>required string title = 3;</code> */ public boolean hasTitle() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required string title = 3;</code> */ public String getTitle() { Object ref = title_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); title_ = s; return s; } else { return (String) ref; } } /** * <code>required string title = 3;</code> */ public com.google.protobuf.ByteString getTitleBytes() { Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string title = 3;</code> */ public Builder setTitle( String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; title_ = value; onChanged(); return this; } /** * <code>required string title = 3;</code> */ public Builder clearTitle() { bitField0_ = (bitField0_ & ~0x00000004); title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** * <code>required string title = 3;</code> */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; title_ = value; onChanged(); return this; } // required string text = 4; private Object text_ = ""; /** * <code>required string text = 4;</code> */ public boolean hasText() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required string text = 4;</code> */ public String getText() { Object ref = text_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); text_ = s; return s; } else { return (String) ref; } } /** * <code>required string text = 4;</code> */ public com.google.protobuf.ByteString getTextBytes() { Object ref = text_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string text = 4;</code> */ public Builder setText( String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; text_ = value; onChanged(); return this; } /** * <code>required string text = 4;</code> */ public Builder clearText() { bitField0_ = (bitField0_ & ~0x00000008); text_ = getDefaultInstance().getText(); onChanged(); return this; } /** * <code>required string text = 4;</code> */ public Builder setTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; text_ = value; onChanged(); return this; } // required int32 status = 5; private int status_ ; /** * <code>required int32 status = 5;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>required int32 status = 5;</code> */ public int getStatus() { return status_; } /** * <code>required int32 status = 5;</code> */ public Builder setStatus(int value) { bitField0_ |= 0x00000010; status_ = value; onChanged(); return this; } /** * <code>required int32 status = 5;</code> */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000010); status_ = 0; onChanged(); return this; } // required string imageUrl = 6; private Object imageUrl_ = ""; /** * <code>required string imageUrl = 6;</code> */ public boolean hasImageUrl() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>required string imageUrl = 6;</code> */ public String getImageUrl() { Object ref = imageUrl_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); imageUrl_ = s; return s; } else { return (String) ref; } } /** * <code>required string imageUrl = 6;</code> */ public com.google.protobuf.ByteString getImageUrlBytes() { Object ref = imageUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); imageUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string imageUrl = 6;</code> */ public Builder setImageUrl( String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; imageUrl_ = value; onChanged(); return this; } /** * <code>required string imageUrl = 6;</code> */ public Builder clearImageUrl() { bitField0_ = (bitField0_ & ~0x00000020); imageUrl_ = getDefaultInstance().getImageUrl(); onChanged(); return this; } /** * <code>required string imageUrl = 6;</code> */ public Builder setImageUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; imageUrl_ = value; onChanged(); return this; } // required string lastMessageSenderName = 7; private Object lastMessageSenderName_ = ""; /** * <code>required string lastMessageSenderName = 7;</code> */ public boolean hasLastMessageSenderName() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>required string lastMessageSenderName = 7;</code> */ public String getLastMessageSenderName() { Object ref = lastMessageSenderName_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); lastMessageSenderName_ = s; return s; } else { return (String) ref; } } /** * <code>required string lastMessageSenderName = 7;</code> */ public com.google.protobuf.ByteString getLastMessageSenderNameBytes() { Object ref = lastMessageSenderName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (String) ref); lastMessageSenderName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string lastMessageSenderName = 7;</code> */ public Builder setLastMessageSenderName( String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; lastMessageSenderName_ = value; onChanged(); return this; } /** * <code>required string lastMessageSenderName = 7;</code> */ public Builder clearLastMessageSenderName() { bitField0_ = (bitField0_ & ~0x00000040); lastMessageSenderName_ = getDefaultInstance().getLastMessageSenderName(); onChanged(); return this; } /** * <code>required string lastMessageSenderName = 7;</code> */ public Builder setLastMessageSenderNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; lastMessageSenderName_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:proto.DialogTest) } static { defaultInstance = new DialogTest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:proto.DialogTest) } private static com.google.protobuf.Descriptors.Descriptor internal_static_proto_DialogTest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_proto_DialogTest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { String[] descriptorData = { "\n\ntest.proto\022\005proto\"\204\001\n\nDialogTest\022\n\n\002id" + "\030\001 \002(\003\022\014\n\004time\030\002 \002(\003\022\r\n\005title\030\003 \002(\t\022\014\n\004t" + "ext\030\004 \002(\t\022\016\n\006status\030\005 \002(\005\022\020\n\010imageUrl\030\006 " + "\002(\t\022\035\n\025lastMessageSenderName\030\007 \002(\tB(\n\033co" + "m.getsecretapp.proto.testB\tTestProto" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_proto_DialogTest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_proto_DialogTest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_proto_DialogTest_descriptor, new String[] { "Id", "Time", "Title", "Text", "Status", "ImageUrl", "LastMessageSenderName", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }