Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: xyz/block/ftl/v1/console/console.proto
// Protobuf Java Version: 3.25.4
package xyz.block.ftl.v1.console;
/**
* Protobuf type {@code xyz.block.ftl.v1.console.Event}
*/
public final class Event extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.console.Event)
EventOrBuilder {
private static final long serialVersionUID = 0L;
// Use Event.newBuilder() to construct.
private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Event() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Event();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.v1.console.Console.internal_static_xyz_block_ftl_v1_console_Event_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xyz.block.ftl.v1.console.Console.internal_static_xyz_block_ftl_v1_console_Event_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.v1.console.Event.class, xyz.block.ftl.v1.console.Event.Builder.class);
}
private int bitField0_;
private int entryCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object entry_;
public enum EntryCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
LOG(3),
CALL(4),
DEPLOYMENT_CREATED(5),
DEPLOYMENT_UPDATED(6),
ENTRY_NOT_SET(0);
private final int value;
private EntryCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EntryCase valueOf(int value) {
return forNumber(value);
}
public static EntryCase forNumber(int value) {
switch (value) {
case 3: return LOG;
case 4: return CALL;
case 5: return DEPLOYMENT_CREATED;
case 6: return DEPLOYMENT_UPDATED;
case 0: return ENTRY_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public EntryCase
getEntryCase() {
return EntryCase.forNumber(
entryCase_);
}
public static final int TIME_STAMP_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp timeStamp_;
/**
* .google.protobuf.Timestamp time_stamp = 1;
* @return Whether the timeStamp field is set.
*/
@java.lang.Override
public boolean hasTimeStamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .google.protobuf.Timestamp time_stamp = 1;
* @return The timeStamp.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getTimeStamp() {
return timeStamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timeStamp_;
}
/**
* .google.protobuf.Timestamp time_stamp = 1;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTimeStampOrBuilder() {
return timeStamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timeStamp_;
}
public static final int ID_FIELD_NUMBER = 2;
private long id_ = 0L;
/**
*
* Unique ID for event.
*
*
* int64 id = 2;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int LOG_FIELD_NUMBER = 3;
/**
* .xyz.block.ftl.v1.console.LogEvent log = 3;
* @return Whether the log field is set.
*/
@java.lang.Override
public boolean hasLog() {
return entryCase_ == 3;
}
/**
* .xyz.block.ftl.v1.console.LogEvent log = 3;
* @return The log.
*/
@java.lang.Override
public xyz.block.ftl.v1.console.LogEvent getLog() {
if (entryCase_ == 3) {
return (xyz.block.ftl.v1.console.LogEvent) entry_;
}
return xyz.block.ftl.v1.console.LogEvent.getDefaultInstance();
}
/**
* .xyz.block.ftl.v1.console.LogEvent log = 3;
*/
@java.lang.Override
public xyz.block.ftl.v1.console.LogEventOrBuilder getLogOrBuilder() {
if (entryCase_ == 3) {
return (xyz.block.ftl.v1.console.LogEvent) entry_;
}
return xyz.block.ftl.v1.console.LogEvent.getDefaultInstance();
}
public static final int CALL_FIELD_NUMBER = 4;
/**
* .xyz.block.ftl.v1.console.CallEvent call = 4;
* @return Whether the call field is set.
*/
@java.lang.Override
public boolean hasCall() {
return entryCase_ == 4;
}
/**
* .xyz.block.ftl.v1.console.CallEvent call = 4;
* @return The call.
*/
@java.lang.Override
public xyz.block.ftl.v1.console.CallEvent getCall() {
if (entryCase_ == 4) {
return (xyz.block.ftl.v1.console.CallEvent) entry_;
}
return xyz.block.ftl.v1.console.CallEvent.getDefaultInstance();
}
/**
* .xyz.block.ftl.v1.console.CallEvent call = 4;
*/
@java.lang.Override
public xyz.block.ftl.v1.console.CallEventOrBuilder getCallOrBuilder() {
if (entryCase_ == 4) {
return (xyz.block.ftl.v1.console.CallEvent) entry_;
}
return xyz.block.ftl.v1.console.CallEvent.getDefaultInstance();
}
public static final int DEPLOYMENT_CREATED_FIELD_NUMBER = 5;
/**
* .xyz.block.ftl.v1.console.DeploymentCreatedEvent deployment_created = 5;
* @return Whether the deploymentCreated field is set.
*/
@java.lang.Override
public boolean hasDeploymentCreated() {
return entryCase_ == 5;
}
/**
* .xyz.block.ftl.v1.console.DeploymentCreatedEvent deployment_created = 5;
* @return The deploymentCreated.
*/
@java.lang.Override
public xyz.block.ftl.v1.console.DeploymentCreatedEvent getDeploymentCreated() {
if (entryCase_ == 5) {
return (xyz.block.ftl.v1.console.DeploymentCreatedEvent) entry_;
}
return xyz.block.ftl.v1.console.DeploymentCreatedEvent.getDefaultInstance();
}
/**
* .xyz.block.ftl.v1.console.DeploymentCreatedEvent deployment_created = 5;
*/
@java.lang.Override
public xyz.block.ftl.v1.console.DeploymentCreatedEventOrBuilder getDeploymentCreatedOrBuilder() {
if (entryCase_ == 5) {
return (xyz.block.ftl.v1.console.DeploymentCreatedEvent) entry_;
}
return xyz.block.ftl.v1.console.DeploymentCreatedEvent.getDefaultInstance();
}
public static final int DEPLOYMENT_UPDATED_FIELD_NUMBER = 6;
/**
* .xyz.block.ftl.v1.console.DeploymentUpdatedEvent deployment_updated = 6;
* @return Whether the deploymentUpdated field is set.
*/
@java.lang.Override
public boolean hasDeploymentUpdated() {
return entryCase_ == 6;
}
/**
* .xyz.block.ftl.v1.console.DeploymentUpdatedEvent deployment_updated = 6;
* @return The deploymentUpdated.
*/
@java.lang.Override
public xyz.block.ftl.v1.console.DeploymentUpdatedEvent getDeploymentUpdated() {
if (entryCase_ == 6) {
return (xyz.block.ftl.v1.console.DeploymentUpdatedEvent) entry_;
}
return xyz.block.ftl.v1.console.DeploymentUpdatedEvent.getDefaultInstance();
}
/**
* .xyz.block.ftl.v1.console.DeploymentUpdatedEvent deployment_updated = 6;
*/
@java.lang.Override
public xyz.block.ftl.v1.console.DeploymentUpdatedEventOrBuilder getDeploymentUpdatedOrBuilder() {
if (entryCase_ == 6) {
return (xyz.block.ftl.v1.console.DeploymentUpdatedEvent) entry_;
}
return xyz.block.ftl.v1.console.DeploymentUpdatedEvent.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTimeStamp());
}
if (id_ != 0L) {
output.writeInt64(2, id_);
}
if (entryCase_ == 3) {
output.writeMessage(3, (xyz.block.ftl.v1.console.LogEvent) entry_);
}
if (entryCase_ == 4) {
output.writeMessage(4, (xyz.block.ftl.v1.console.CallEvent) entry_);
}
if (entryCase_ == 5) {
output.writeMessage(5, (xyz.block.ftl.v1.console.DeploymentCreatedEvent) entry_);
}
if (entryCase_ == 6) {
output.writeMessage(6, (xyz.block.ftl.v1.console.DeploymentUpdatedEvent) entry_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTimeStamp());
}
if (id_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, id_);
}
if (entryCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (xyz.block.ftl.v1.console.LogEvent) entry_);
}
if (entryCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (xyz.block.ftl.v1.console.CallEvent) entry_);
}
if (entryCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (xyz.block.ftl.v1.console.DeploymentCreatedEvent) entry_);
}
if (entryCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (xyz.block.ftl.v1.console.DeploymentUpdatedEvent) entry_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof xyz.block.ftl.v1.console.Event)) {
return super.equals(obj);
}
xyz.block.ftl.v1.console.Event other = (xyz.block.ftl.v1.console.Event) obj;
if (hasTimeStamp() != other.hasTimeStamp()) return false;
if (hasTimeStamp()) {
if (!getTimeStamp()
.equals(other.getTimeStamp())) return false;
}
if (getId()
!= other.getId()) return false;
if (!getEntryCase().equals(other.getEntryCase())) return false;
switch (entryCase_) {
case 3:
if (!getLog()
.equals(other.getLog())) return false;
break;
case 4:
if (!getCall()
.equals(other.getCall())) return false;
break;
case 5:
if (!getDeploymentCreated()
.equals(other.getDeploymentCreated())) return false;
break;
case 6:
if (!getDeploymentUpdated()
.equals(other.getDeploymentUpdated())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTimeStamp()) {
hash = (37 * hash) + TIME_STAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimeStamp().hashCode();
}
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
switch (entryCase_) {
case 3:
hash = (37 * hash) + LOG_FIELD_NUMBER;
hash = (53 * hash) + getLog().hashCode();
break;
case 4:
hash = (37 * hash) + CALL_FIELD_NUMBER;
hash = (53 * hash) + getCall().hashCode();
break;
case 5:
hash = (37 * hash) + DEPLOYMENT_CREATED_FIELD_NUMBER;
hash = (53 * hash) + getDeploymentCreated().hashCode();
break;
case 6:
hash = (37 * hash) + DEPLOYMENT_UPDATED_FIELD_NUMBER;
hash = (53 * hash) + getDeploymentUpdated().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static xyz.block.ftl.v1.console.Event parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.console.Event parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.v1.console.Event parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.console.Event parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.v1.console.Event parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.console.Event parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.v1.console.Event parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.console.Event parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static xyz.block.ftl.v1.console.Event parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.console.Event parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static xyz.block.ftl.v1.console.Event parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.console.Event parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(xyz.block.ftl.v1.console.Event prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code xyz.block.ftl.v1.console.Event}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.console.Event)
xyz.block.ftl.v1.console.EventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.v1.console.Console.internal_static_xyz_block_ftl_v1_console_Event_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xyz.block.ftl.v1.console.Console.internal_static_xyz_block_ftl_v1_console_Event_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.v1.console.Event.class, xyz.block.ftl.v1.console.Event.Builder.class);
}
// Construct using xyz.block.ftl.v1.console.Event.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTimeStampFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
timeStamp_ = null;
if (timeStampBuilder_ != null) {
timeStampBuilder_.dispose();
timeStampBuilder_ = null;
}
id_ = 0L;
if (logBuilder_ != null) {
logBuilder_.clear();
}
if (callBuilder_ != null) {
callBuilder_.clear();
}
if (deploymentCreatedBuilder_ != null) {
deploymentCreatedBuilder_.clear();
}
if (deploymentUpdatedBuilder_ != null) {
deploymentUpdatedBuilder_.clear();
}
entryCase_ = 0;
entry_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xyz.block.ftl.v1.console.Console.internal_static_xyz_block_ftl_v1_console_Event_descriptor;
}
@java.lang.Override
public xyz.block.ftl.v1.console.Event getDefaultInstanceForType() {
return xyz.block.ftl.v1.console.Event.getDefaultInstance();
}
@java.lang.Override
public xyz.block.ftl.v1.console.Event build() {
xyz.block.ftl.v1.console.Event result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xyz.block.ftl.v1.console.Event buildPartial() {
xyz.block.ftl.v1.console.Event result = new xyz.block.ftl.v1.console.Event(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(xyz.block.ftl.v1.console.Event result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.timeStamp_ = timeStampBuilder_ == null
? timeStamp_
: timeStampBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.id_ = id_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(xyz.block.ftl.v1.console.Event result) {
result.entryCase_ = entryCase_;
result.entry_ = this.entry_;
if (entryCase_ == 3 &&
logBuilder_ != null) {
result.entry_ = logBuilder_.build();
}
if (entryCase_ == 4 &&
callBuilder_ != null) {
result.entry_ = callBuilder_.build();
}
if (entryCase_ == 5 &&
deploymentCreatedBuilder_ != null) {
result.entry_ = deploymentCreatedBuilder_.build();
}
if (entryCase_ == 6 &&
deploymentUpdatedBuilder_ != null) {
result.entry_ = deploymentUpdatedBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xyz.block.ftl.v1.console.Event) {
return mergeFrom((xyz.block.ftl.v1.console.Event)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xyz.block.ftl.v1.console.Event other) {
if (other == xyz.block.ftl.v1.console.Event.getDefaultInstance()) return this;
if (other.hasTimeStamp()) {
mergeTimeStamp(other.getTimeStamp());
}
if (other.getId() != 0L) {
setId(other.getId());
}
switch (other.getEntryCase()) {
case LOG: {
mergeLog(other.getLog());
break;
}
case CALL: {
mergeCall(other.getCall());
break;
}
case DEPLOYMENT_CREATED: {
mergeDeploymentCreated(other.getDeploymentCreated());
break;
}
case DEPLOYMENT_UPDATED: {
mergeDeploymentUpdated(other.getDeploymentUpdated());
break;
}
case ENTRY_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getTimeStampFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
id_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getLogFieldBuilder().getBuilder(),
extensionRegistry);
entryCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getCallFieldBuilder().getBuilder(),
extensionRegistry);
entryCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getDeploymentCreatedFieldBuilder().getBuilder(),
extensionRegistry);
entryCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getDeploymentUpdatedFieldBuilder().getBuilder(),
extensionRegistry);
entryCase_ = 6;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int entryCase_ = 0;
private java.lang.Object entry_;
public EntryCase
getEntryCase() {
return EntryCase.forNumber(
entryCase_);
}
public Builder clearEntry() {
entryCase_ = 0;
entry_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.Timestamp timeStamp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeStampBuilder_;
/**
* .google.protobuf.Timestamp time_stamp = 1;
* @return Whether the timeStamp field is set.
*/
public boolean hasTimeStamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .google.protobuf.Timestamp time_stamp = 1;
* @return The timeStamp.
*/
public com.google.protobuf.Timestamp getTimeStamp() {
if (timeStampBuilder_ == null) {
return timeStamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timeStamp_;
} else {
return timeStampBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp time_stamp = 1;
*/
public Builder setTimeStamp(com.google.protobuf.Timestamp value) {
if (timeStampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timeStamp_ = value;
} else {
timeStampBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp time_stamp = 1;
*/
public Builder setTimeStamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timeStampBuilder_ == null) {
timeStamp_ = builderForValue.build();
} else {
timeStampBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp time_stamp = 1;
*/
public Builder mergeTimeStamp(com.google.protobuf.Timestamp value) {
if (timeStampBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
timeStamp_ != null &&
timeStamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getTimeStampBuilder().mergeFrom(value);
} else {
timeStamp_ = value;
}
} else {
timeStampBuilder_.mergeFrom(value);
}
if (timeStamp_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .google.protobuf.Timestamp time_stamp = 1;
*/
public Builder clearTimeStamp() {
bitField0_ = (bitField0_ & ~0x00000001);
timeStamp_ = null;
if (timeStampBuilder_ != null) {
timeStampBuilder_.dispose();
timeStampBuilder_ = null;
}
onChanged();
return this;
}
/**
* .google.protobuf.Timestamp time_stamp = 1;
*/
public com.google.protobuf.Timestamp.Builder getTimeStampBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTimeStampFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp time_stamp = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTimeStampOrBuilder() {
if (timeStampBuilder_ != null) {
return timeStampBuilder_.getMessageOrBuilder();
} else {
return timeStamp_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : timeStamp_;
}
}
/**
* .google.protobuf.Timestamp time_stamp = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTimeStampFieldBuilder() {
if (timeStampBuilder_ == null) {
timeStampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTimeStamp(),
getParentForChildren(),
isClean());
timeStamp_ = null;
}
return timeStampBuilder_;
}
private long id_ ;
/**
*
* Unique ID for event.
*
*
* int64 id = 2;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
*
* Unique ID for event.
*
*
* int64 id = 2;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*