com.rhythm.pb.MessageProtos Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: louie/message.proto
package com.rhythm.pb;
public final class MessageProtos {
private MessageProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface UpdateMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required uint64 id = 1;
/**
* required uint64 id = 1;
*/
boolean hasId();
/**
* required uint64 id = 1;
*/
long getId();
// required string type = 2;
/**
* required string type = 2;
*/
boolean hasType();
/**
* required string type = 2;
*/
java.lang.String getType();
/**
* required string type = 2;
*/
com.google.protobuf.ByteString
getTypeBytes();
// required .louie.DateTimePB when = 3;
/**
* required .louie.DateTimePB when = 3;
*/
boolean hasWhen();
/**
* required .louie.DateTimePB when = 3;
*/
com.rhythm.pb.DataTypeProtos.DateTimePB getWhen();
/**
* required .louie.DateTimePB when = 3;
*/
com.rhythm.pb.DataTypeProtos.DateTimePBOrBuilder getWhenOrBuilder();
// required string data = 4;
/**
* required string data = 4;
*/
boolean hasData();
/**
* required string data = 4;
*/
java.lang.String getData();
/**
* required string data = 4;
*/
com.google.protobuf.ByteString
getDataBytes();
// optional bool delete = 5;
/**
* optional bool delete = 5;
*/
boolean hasDelete();
/**
* optional bool delete = 5;
*/
boolean getDelete();
// optional bool new = 6;
/**
* optional bool new = 6;
*/
boolean hasNew();
/**
* optional bool new = 6;
*/
boolean getNew();
}
/**
* Protobuf type {@code louie.UpdateMessage}
*/
public static final class UpdateMessage extends
com.google.protobuf.GeneratedMessage
implements UpdateMessageOrBuilder {
// Use UpdateMessage.newBuilder() to construct.
private UpdateMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private UpdateMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final UpdateMessage defaultInstance;
public static UpdateMessage getDefaultInstance() {
return defaultInstance;
}
public UpdateMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateMessage(
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.readUInt64();
break;
}
case 18: {
bitField0_ |= 0x00000002;
type_ = input.readBytes();
break;
}
case 26: {
com.rhythm.pb.DataTypeProtos.DateTimePB.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = when_.toBuilder();
}
when_ = input.readMessage(com.rhythm.pb.DataTypeProtos.DateTimePB.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(when_);
when_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
bitField0_ |= 0x00000008;
data_ = input.readBytes();
break;
}
case 40: {
bitField0_ |= 0x00000010;
delete_ = input.readBool();
break;
}
case 48: {
bitField0_ |= 0x00000020;
new_ = input.readBool();
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 com.rhythm.pb.MessageProtos.internal_static_louie_UpdateMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.rhythm.pb.MessageProtos.internal_static_louie_UpdateMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.rhythm.pb.MessageProtos.UpdateMessage.class, com.rhythm.pb.MessageProtos.UpdateMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public UpdateMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required uint64 id = 1;
public static final int ID_FIELD_NUMBER = 1;
private long id_;
/**
* required uint64 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint64 id = 1;
*/
public long getId() {
return id_;
}
// required string type = 2;
public static final int TYPE_FIELD_NUMBER = 2;
private java.lang.Object type_;
/**
* required string type = 2;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string type = 2;
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
type_ = s;
}
return s;
}
}
/**
* required string type = 2;
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required .louie.DateTimePB when = 3;
public static final int WHEN_FIELD_NUMBER = 3;
private com.rhythm.pb.DataTypeProtos.DateTimePB when_;
/**
* required .louie.DateTimePB when = 3;
*/
public boolean hasWhen() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required .louie.DateTimePB when = 3;
*/
public com.rhythm.pb.DataTypeProtos.DateTimePB getWhen() {
return when_;
}
/**
* required .louie.DateTimePB when = 3;
*/
public com.rhythm.pb.DataTypeProtos.DateTimePBOrBuilder getWhenOrBuilder() {
return when_;
}
// required string data = 4;
public static final int DATA_FIELD_NUMBER = 4;
private java.lang.Object data_;
/**
* required string data = 4;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required string data = 4;
*/
public java.lang.String getData() {
java.lang.Object ref = data_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
data_ = s;
}
return s;
}
}
/**
* required string data = 4;
*/
public com.google.protobuf.ByteString
getDataBytes() {
java.lang.Object ref = data_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
data_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bool delete = 5;
public static final int DELETE_FIELD_NUMBER = 5;
private boolean delete_;
/**
* optional bool delete = 5;
*/
public boolean hasDelete() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bool delete = 5;
*/
public boolean getDelete() {
return delete_;
}
// optional bool new = 6;
public static final int NEW_FIELD_NUMBER = 6;
private boolean new_;
/**
* optional bool new = 6;
*/
public boolean hasNew() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional bool new = 6;
*/
public boolean getNew() {
return new_;
}
private void initFields() {
id_ = 0L;
type_ = "";
when_ = com.rhythm.pb.DataTypeProtos.DateTimePB.getDefaultInstance();
data_ = "";
delete_ = false;
new_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasWhen()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasData()) {
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.writeUInt64(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getTypeBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, when_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getDataBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBool(5, delete_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBool(6, new_);
}
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
.computeUInt64Size(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getTypeBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, when_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getDataBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, delete_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, new_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.rhythm.pb.MessageProtos.UpdateMessage)) {
return super.equals(obj);
}
com.rhythm.pb.MessageProtos.UpdateMessage other = (com.rhythm.pb.MessageProtos.UpdateMessage) obj;
boolean result = true;
result = result && (hasId() == other.hasId());
if (hasId()) {
result = result && (getId()
== other.getId());
}
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && getType()
.equals(other.getType());
}
result = result && (hasWhen() == other.hasWhen());
if (hasWhen()) {
result = result && getWhen()
.equals(other.getWhen());
}
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData()
.equals(other.getData());
}
result = result && (hasDelete() == other.hasDelete());
if (hasDelete()) {
result = result && (getDelete()
== other.getDelete());
}
result = result && (hasNew() == other.hasNew());
if (hasNew()) {
result = result && (getNew()
== other.getNew());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getId());
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
if (hasWhen()) {
hash = (37 * hash) + WHEN_FIELD_NUMBER;
hash = (53 * hash) + getWhen().hashCode();
}
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
if (hasDelete()) {
hash = (37 * hash) + DELETE_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getDelete());
}
if (hasNew()) {
hash = (37 * hash) + NEW_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getNew());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.rhythm.pb.MessageProtos.UpdateMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.rhythm.pb.MessageProtos.UpdateMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.rhythm.pb.MessageProtos.UpdateMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.rhythm.pb.MessageProtos.UpdateMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.rhythm.pb.MessageProtos.UpdateMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.rhythm.pb.MessageProtos.UpdateMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.rhythm.pb.MessageProtos.UpdateMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.rhythm.pb.MessageProtos.UpdateMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.rhythm.pb.MessageProtos.UpdateMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.rhythm.pb.MessageProtos.UpdateMessage 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(com.rhythm.pb.MessageProtos.UpdateMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code louie.UpdateMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements com.rhythm.pb.MessageProtos.UpdateMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.rhythm.pb.MessageProtos.internal_static_louie_UpdateMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.rhythm.pb.MessageProtos.internal_static_louie_UpdateMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.rhythm.pb.MessageProtos.UpdateMessage.class, com.rhythm.pb.MessageProtos.UpdateMessage.Builder.class);
}
// Construct using com.rhythm.pb.MessageProtos.UpdateMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getWhenFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
type_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (whenBuilder_ == null) {
when_ = com.rhythm.pb.DataTypeProtos.DateTimePB.getDefaultInstance();
} else {
whenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
data_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
delete_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
new_ = false;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.rhythm.pb.MessageProtos.internal_static_louie_UpdateMessage_descriptor;
}
public com.rhythm.pb.MessageProtos.UpdateMessage getDefaultInstanceForType() {
return com.rhythm.pb.MessageProtos.UpdateMessage.getDefaultInstance();
}
public com.rhythm.pb.MessageProtos.UpdateMessage build() {
com.rhythm.pb.MessageProtos.UpdateMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.rhythm.pb.MessageProtos.UpdateMessage buildPartial() {
com.rhythm.pb.MessageProtos.UpdateMessage result = new com.rhythm.pb.MessageProtos.UpdateMessage(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.type_ = type_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (whenBuilder_ == null) {
result.when_ = when_;
} else {
result.when_ = whenBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.data_ = data_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.delete_ = delete_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.new_ = new_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.rhythm.pb.MessageProtos.UpdateMessage) {
return mergeFrom((com.rhythm.pb.MessageProtos.UpdateMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.rhythm.pb.MessageProtos.UpdateMessage other) {
if (other == com.rhythm.pb.MessageProtos.UpdateMessage.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasType()) {
bitField0_ |= 0x00000002;
type_ = other.type_;
onChanged();
}
if (other.hasWhen()) {
mergeWhen(other.getWhen());
}
if (other.hasData()) {
bitField0_ |= 0x00000008;
data_ = other.data_;
onChanged();
}
if (other.hasDelete()) {
setDelete(other.getDelete());
}
if (other.hasNew()) {
setNew(other.getNew());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasId()) {
return false;
}
if (!hasType()) {
return false;
}
if (!hasWhen()) {
return false;
}
if (!hasData()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.rhythm.pb.MessageProtos.UpdateMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.rhythm.pb.MessageProtos.UpdateMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required uint64 id = 1;
private long id_ ;
/**
* required uint64 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint64 id = 1;
*/
public long getId() {
return id_;
}
/**
* required uint64 id = 1;
*/
public Builder setId(long value) {
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* required uint64 id = 1;
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
// required string type = 2;
private java.lang.Object type_ = "";
/**
* required string type = 2;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string type = 2;
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string type = 2;
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string type = 2;
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
type_ = value;
onChanged();
return this;
}
/**
* required string type = 2;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
* required string type = 2;
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
type_ = value;
onChanged();
return this;
}
// required .louie.DateTimePB when = 3;
private com.rhythm.pb.DataTypeProtos.DateTimePB when_ = com.rhythm.pb.DataTypeProtos.DateTimePB.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.rhythm.pb.DataTypeProtos.DateTimePB, com.rhythm.pb.DataTypeProtos.DateTimePB.Builder, com.rhythm.pb.DataTypeProtos.DateTimePBOrBuilder> whenBuilder_;
/**
* required .louie.DateTimePB when = 3;
*/
public boolean hasWhen() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required .louie.DateTimePB when = 3;
*/
public com.rhythm.pb.DataTypeProtos.DateTimePB getWhen() {
if (whenBuilder_ == null) {
return when_;
} else {
return whenBuilder_.getMessage();
}
}
/**
* required .louie.DateTimePB when = 3;
*/
public Builder setWhen(com.rhythm.pb.DataTypeProtos.DateTimePB value) {
if (whenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
when_ = value;
onChanged();
} else {
whenBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* required .louie.DateTimePB when = 3;
*/
public Builder setWhen(
com.rhythm.pb.DataTypeProtos.DateTimePB.Builder builderForValue) {
if (whenBuilder_ == null) {
when_ = builderForValue.build();
onChanged();
} else {
whenBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* required .louie.DateTimePB when = 3;
*/
public Builder mergeWhen(com.rhythm.pb.DataTypeProtos.DateTimePB value) {
if (whenBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
when_ != com.rhythm.pb.DataTypeProtos.DateTimePB.getDefaultInstance()) {
when_ =
com.rhythm.pb.DataTypeProtos.DateTimePB.newBuilder(when_).mergeFrom(value).buildPartial();
} else {
when_ = value;
}
onChanged();
} else {
whenBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* required .louie.DateTimePB when = 3;
*/
public Builder clearWhen() {
if (whenBuilder_ == null) {
when_ = com.rhythm.pb.DataTypeProtos.DateTimePB.getDefaultInstance();
onChanged();
} else {
whenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* required .louie.DateTimePB when = 3;
*/
public com.rhythm.pb.DataTypeProtos.DateTimePB.Builder getWhenBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getWhenFieldBuilder().getBuilder();
}
/**
* required .louie.DateTimePB when = 3;
*/
public com.rhythm.pb.DataTypeProtos.DateTimePBOrBuilder getWhenOrBuilder() {
if (whenBuilder_ != null) {
return whenBuilder_.getMessageOrBuilder();
} else {
return when_;
}
}
/**
* required .louie.DateTimePB when = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
com.rhythm.pb.DataTypeProtos.DateTimePB, com.rhythm.pb.DataTypeProtos.DateTimePB.Builder, com.rhythm.pb.DataTypeProtos.DateTimePBOrBuilder>
getWhenFieldBuilder() {
if (whenBuilder_ == null) {
whenBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.rhythm.pb.DataTypeProtos.DateTimePB, com.rhythm.pb.DataTypeProtos.DateTimePB.Builder, com.rhythm.pb.DataTypeProtos.DateTimePBOrBuilder>(
when_,
getParentForChildren(),
isClean());
when_ = null;
}
return whenBuilder_;
}
// required string data = 4;
private java.lang.Object data_ = "";
/**
* required string data = 4;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required string data = 4;
*/
public java.lang.String getData() {
java.lang.Object ref = data_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
data_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string data = 4;
*/
public com.google.protobuf.ByteString
getDataBytes() {
java.lang.Object ref = data_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
data_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string data = 4;
*/
public Builder setData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
data_ = value;
onChanged();
return this;
}
/**
* required string data = 4;
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000008);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
/**
* required string data = 4;
*/
public Builder setDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
data_ = value;
onChanged();
return this;
}
// optional bool delete = 5;
private boolean delete_ ;
/**
* optional bool delete = 5;
*/
public boolean hasDelete() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bool delete = 5;
*/
public boolean getDelete() {
return delete_;
}
/**
* optional bool delete = 5;
*/
public Builder setDelete(boolean value) {
bitField0_ |= 0x00000010;
delete_ = value;
onChanged();
return this;
}
/**
* optional bool delete = 5;
*/
public Builder clearDelete() {
bitField0_ = (bitField0_ & ~0x00000010);
delete_ = false;
onChanged();
return this;
}
// optional bool new = 6;
private boolean new_ ;
/**
* optional bool new = 6;
*/
public boolean hasNew() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional bool new = 6;
*/
public boolean getNew() {
return new_;
}
/**
* optional bool new = 6;
*/
public Builder setNew(boolean value) {
bitField0_ |= 0x00000020;
new_ = value;
onChanged();
return this;
}
/**
* optional bool new = 6;
*/
public Builder clearNew() {
bitField0_ = (bitField0_ & ~0x00000020);
new_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:louie.UpdateMessage)
}
static {
defaultInstance = new UpdateMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:louie.UpdateMessage)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_louie_UpdateMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_louie_UpdateMessage_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\023louie/message.proto\022\005louie\032\024louie/data" +
"type.proto\"u\n\rUpdateMessage\022\n\n\002id\030\001 \002(\004\022" +
"\014\n\004type\030\002 \002(\t\022\037\n\004when\030\003 \002(\0132\021.louie.Date" +
"TimePB\022\014\n\004data\030\004 \002(\t\022\016\n\006delete\030\005 \001(\010\022\013\n\003" +
"new\030\006 \001(\010B!\n\rcom.rhythm.pbB\rMessageProto" +
"s\240\001\001"
};
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_louie_UpdateMessage_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_louie_UpdateMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_louie_UpdateMessage_descriptor,
new java.lang.String[] { "Id", "Type", "When", "Data", "Delete", "New", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.rhythm.pb.DataTypeProtos.getDescriptor(),
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy