ai.promoted.proto.event.MobileDiagnostics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deliveryclient Show documentation
Show all versions of deliveryclient Show documentation
A Java Client to contact the Promoted.ai Delivery API.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/event/event.proto
package ai.promoted.proto.event;
/**
* Protobuf type {@code event.MobileDiagnostics}
*/
public final class MobileDiagnostics extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:event.MobileDiagnostics)
MobileDiagnosticsOrBuilder {
private static final long serialVersionUID = 0L;
// Use MobileDiagnostics.newBuilder() to construct.
private MobileDiagnostics(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MobileDiagnostics() {
deviceIdentifier_ = "";
clientVersion_ = "";
promotedLibraryVersion_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MobileDiagnostics();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MobileDiagnostics(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
deviceIdentifier_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
clientVersion_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
promotedLibraryVersion_ = s;
break;
}
case 32: {
batchesAttempted_ = input.readInt32();
break;
}
case 40: {
batchesSentSuccessfully_ = input.readInt32();
break;
}
case 48: {
batchesWithErrors_ = input.readInt32();
break;
}
case 58: {
ai.promoted.proto.event.ErrorHistory.Builder subBuilder = null;
if (errorHistory_ != null) {
subBuilder = errorHistory_.toBuilder();
}
errorHistory_ = input.readMessage(ai.promoted.proto.event.ErrorHistory.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(errorHistory_);
errorHistory_ = subBuilder.buildPartial();
}
break;
}
case 66: {
ai.promoted.proto.event.AncestorIdHistory.Builder subBuilder = null;
if (ancestorIdHistory_ != null) {
subBuilder = ancestorIdHistory_.toBuilder();
}
ancestorIdHistory_ = input.readMessage(ai.promoted.proto.event.AncestorIdHistory.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ancestorIdHistory_);
ancestorIdHistory_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.promoted.proto.event.Event.internal_static_event_MobileDiagnostics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.promoted.proto.event.Event.internal_static_event_MobileDiagnostics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.promoted.proto.event.MobileDiagnostics.class, ai.promoted.proto.event.MobileDiagnostics.Builder.class);
}
public static final int DEVICE_IDENTIFIER_FIELD_NUMBER = 1;
private volatile java.lang.Object deviceIdentifier_;
/**
* string device_identifier = 1 [json_name = "deviceIdentifier"];
* @return The deviceIdentifier.
*/
@java.lang.Override
public java.lang.String getDeviceIdentifier() {
java.lang.Object ref = deviceIdentifier_;
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();
deviceIdentifier_ = s;
return s;
}
}
/**
* string device_identifier = 1 [json_name = "deviceIdentifier"];
* @return The bytes for deviceIdentifier.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeviceIdentifierBytes() {
java.lang.Object ref = deviceIdentifier_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceIdentifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENT_VERSION_FIELD_NUMBER = 2;
private volatile java.lang.Object clientVersion_;
/**
* string client_version = 2 [json_name = "clientVersion", deprecated = true];
* @return The clientVersion.
*/
@java.lang.Override
@java.lang.Deprecated public java.lang.String getClientVersion() {
java.lang.Object ref = clientVersion_;
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();
clientVersion_ = s;
return s;
}
}
/**
* string client_version = 2 [json_name = "clientVersion", deprecated = true];
* @return The bytes for clientVersion.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString
getClientVersionBytes() {
java.lang.Object ref = clientVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROMOTED_LIBRARY_VERSION_FIELD_NUMBER = 3;
private volatile java.lang.Object promotedLibraryVersion_;
/**
* string promoted_library_version = 3 [json_name = "promotedLibraryVersion", deprecated = true];
* @return The promotedLibraryVersion.
*/
@java.lang.Override
@java.lang.Deprecated public java.lang.String getPromotedLibraryVersion() {
java.lang.Object ref = promotedLibraryVersion_;
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();
promotedLibraryVersion_ = s;
return s;
}
}
/**
* string promoted_library_version = 3 [json_name = "promotedLibraryVersion", deprecated = true];
* @return The bytes for promotedLibraryVersion.
*/
@java.lang.Override
@java.lang.Deprecated public com.google.protobuf.ByteString
getPromotedLibraryVersionBytes() {
java.lang.Object ref = promotedLibraryVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
promotedLibraryVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BATCHES_ATTEMPTED_FIELD_NUMBER = 4;
private int batchesAttempted_;
/**
* int32 batches_attempted = 4 [json_name = "batchesAttempted"];
* @return The batchesAttempted.
*/
@java.lang.Override
public int getBatchesAttempted() {
return batchesAttempted_;
}
public static final int BATCHES_SENT_SUCCESSFULLY_FIELD_NUMBER = 5;
private int batchesSentSuccessfully_;
/**
* int32 batches_sent_successfully = 5 [json_name = "batchesSentSuccessfully"];
* @return The batchesSentSuccessfully.
*/
@java.lang.Override
public int getBatchesSentSuccessfully() {
return batchesSentSuccessfully_;
}
public static final int BATCHES_WITH_ERRORS_FIELD_NUMBER = 6;
private int batchesWithErrors_;
/**
* int32 batches_with_errors = 6 [json_name = "batchesWithErrors"];
* @return The batchesWithErrors.
*/
@java.lang.Override
public int getBatchesWithErrors() {
return batchesWithErrors_;
}
public static final int ERROR_HISTORY_FIELD_NUMBER = 7;
private ai.promoted.proto.event.ErrorHistory errorHistory_;
/**
* .event.ErrorHistory error_history = 7 [json_name = "errorHistory"];
* @return Whether the errorHistory field is set.
*/
@java.lang.Override
public boolean hasErrorHistory() {
return errorHistory_ != null;
}
/**
* .event.ErrorHistory error_history = 7 [json_name = "errorHistory"];
* @return The errorHistory.
*/
@java.lang.Override
public ai.promoted.proto.event.ErrorHistory getErrorHistory() {
return errorHistory_ == null ? ai.promoted.proto.event.ErrorHistory.getDefaultInstance() : errorHistory_;
}
/**
* .event.ErrorHistory error_history = 7 [json_name = "errorHistory"];
*/
@java.lang.Override
public ai.promoted.proto.event.ErrorHistoryOrBuilder getErrorHistoryOrBuilder() {
return getErrorHistory();
}
public static final int ANCESTOR_ID_HISTORY_FIELD_NUMBER = 8;
private ai.promoted.proto.event.AncestorIdHistory ancestorIdHistory_;
/**
* .event.AncestorIdHistory ancestor_id_history = 8 [json_name = "ancestorIdHistory"];
* @return Whether the ancestorIdHistory field is set.
*/
@java.lang.Override
public boolean hasAncestorIdHistory() {
return ancestorIdHistory_ != null;
}
/**
* .event.AncestorIdHistory ancestor_id_history = 8 [json_name = "ancestorIdHistory"];
* @return The ancestorIdHistory.
*/
@java.lang.Override
public ai.promoted.proto.event.AncestorIdHistory getAncestorIdHistory() {
return ancestorIdHistory_ == null ? ai.promoted.proto.event.AncestorIdHistory.getDefaultInstance() : ancestorIdHistory_;
}
/**
* .event.AncestorIdHistory ancestor_id_history = 8 [json_name = "ancestorIdHistory"];
*/
@java.lang.Override
public ai.promoted.proto.event.AncestorIdHistoryOrBuilder getAncestorIdHistoryOrBuilder() {
return getAncestorIdHistory();
}
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 (!getDeviceIdentifierBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceIdentifier_);
}
if (!getClientVersionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientVersion_);
}
if (!getPromotedLibraryVersionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, promotedLibraryVersion_);
}
if (batchesAttempted_ != 0) {
output.writeInt32(4, batchesAttempted_);
}
if (batchesSentSuccessfully_ != 0) {
output.writeInt32(5, batchesSentSuccessfully_);
}
if (batchesWithErrors_ != 0) {
output.writeInt32(6, batchesWithErrors_);
}
if (errorHistory_ != null) {
output.writeMessage(7, getErrorHistory());
}
if (ancestorIdHistory_ != null) {
output.writeMessage(8, getAncestorIdHistory());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getDeviceIdentifierBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceIdentifier_);
}
if (!getClientVersionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientVersion_);
}
if (!getPromotedLibraryVersionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, promotedLibraryVersion_);
}
if (batchesAttempted_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, batchesAttempted_);
}
if (batchesSentSuccessfully_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, batchesSentSuccessfully_);
}
if (batchesWithErrors_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, batchesWithErrors_);
}
if (errorHistory_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getErrorHistory());
}
if (ancestorIdHistory_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getAncestorIdHistory());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.promoted.proto.event.MobileDiagnostics)) {
return super.equals(obj);
}
ai.promoted.proto.event.MobileDiagnostics other = (ai.promoted.proto.event.MobileDiagnostics) obj;
if (!getDeviceIdentifier()
.equals(other.getDeviceIdentifier())) return false;
if (!getClientVersion()
.equals(other.getClientVersion())) return false;
if (!getPromotedLibraryVersion()
.equals(other.getPromotedLibraryVersion())) return false;
if (getBatchesAttempted()
!= other.getBatchesAttempted()) return false;
if (getBatchesSentSuccessfully()
!= other.getBatchesSentSuccessfully()) return false;
if (getBatchesWithErrors()
!= other.getBatchesWithErrors()) return false;
if (hasErrorHistory() != other.hasErrorHistory()) return false;
if (hasErrorHistory()) {
if (!getErrorHistory()
.equals(other.getErrorHistory())) return false;
}
if (hasAncestorIdHistory() != other.hasAncestorIdHistory()) return false;
if (hasAncestorIdHistory()) {
if (!getAncestorIdHistory()
.equals(other.getAncestorIdHistory())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DEVICE_IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getDeviceIdentifier().hashCode();
hash = (37 * hash) + CLIENT_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion().hashCode();
hash = (37 * hash) + PROMOTED_LIBRARY_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getPromotedLibraryVersion().hashCode();
hash = (37 * hash) + BATCHES_ATTEMPTED_FIELD_NUMBER;
hash = (53 * hash) + getBatchesAttempted();
hash = (37 * hash) + BATCHES_SENT_SUCCESSFULLY_FIELD_NUMBER;
hash = (53 * hash) + getBatchesSentSuccessfully();
hash = (37 * hash) + BATCHES_WITH_ERRORS_FIELD_NUMBER;
hash = (53 * hash) + getBatchesWithErrors();
if (hasErrorHistory()) {
hash = (37 * hash) + ERROR_HISTORY_FIELD_NUMBER;
hash = (53 * hash) + getErrorHistory().hashCode();
}
if (hasAncestorIdHistory()) {
hash = (37 * hash) + ANCESTOR_ID_HISTORY_FIELD_NUMBER;
hash = (53 * hash) + getAncestorIdHistory().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.promoted.proto.event.MobileDiagnostics parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.event.MobileDiagnostics parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.promoted.proto.event.MobileDiagnostics parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.event.MobileDiagnostics parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.promoted.proto.event.MobileDiagnostics parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.event.MobileDiagnostics parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.promoted.proto.event.MobileDiagnostics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.promoted.proto.event.MobileDiagnostics 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 ai.promoted.proto.event.MobileDiagnostics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.promoted.proto.event.MobileDiagnostics 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 ai.promoted.proto.event.MobileDiagnostics parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.promoted.proto.event.MobileDiagnostics 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(ai.promoted.proto.event.MobileDiagnostics 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 event.MobileDiagnostics}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:event.MobileDiagnostics)
ai.promoted.proto.event.MobileDiagnosticsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.promoted.proto.event.Event.internal_static_event_MobileDiagnostics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.promoted.proto.event.Event.internal_static_event_MobileDiagnostics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.promoted.proto.event.MobileDiagnostics.class, ai.promoted.proto.event.MobileDiagnostics.Builder.class);
}
// Construct using ai.promoted.proto.event.MobileDiagnostics.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
deviceIdentifier_ = "";
clientVersion_ = "";
promotedLibraryVersion_ = "";
batchesAttempted_ = 0;
batchesSentSuccessfully_ = 0;
batchesWithErrors_ = 0;
if (errorHistoryBuilder_ == null) {
errorHistory_ = null;
} else {
errorHistory_ = null;
errorHistoryBuilder_ = null;
}
if (ancestorIdHistoryBuilder_ == null) {
ancestorIdHistory_ = null;
} else {
ancestorIdHistory_ = null;
ancestorIdHistoryBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.promoted.proto.event.Event.internal_static_event_MobileDiagnostics_descriptor;
}
@java.lang.Override
public ai.promoted.proto.event.MobileDiagnostics getDefaultInstanceForType() {
return ai.promoted.proto.event.MobileDiagnostics.getDefaultInstance();
}
@java.lang.Override
public ai.promoted.proto.event.MobileDiagnostics build() {
ai.promoted.proto.event.MobileDiagnostics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.promoted.proto.event.MobileDiagnostics buildPartial() {
ai.promoted.proto.event.MobileDiagnostics result = new ai.promoted.proto.event.MobileDiagnostics(this);
result.deviceIdentifier_ = deviceIdentifier_;
result.clientVersion_ = clientVersion_;
result.promotedLibraryVersion_ = promotedLibraryVersion_;
result.batchesAttempted_ = batchesAttempted_;
result.batchesSentSuccessfully_ = batchesSentSuccessfully_;
result.batchesWithErrors_ = batchesWithErrors_;
if (errorHistoryBuilder_ == null) {
result.errorHistory_ = errorHistory_;
} else {
result.errorHistory_ = errorHistoryBuilder_.build();
}
if (ancestorIdHistoryBuilder_ == null) {
result.ancestorIdHistory_ = ancestorIdHistory_;
} else {
result.ancestorIdHistory_ = ancestorIdHistoryBuilder_.build();
}
onBuilt();
return result;
}
@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 ai.promoted.proto.event.MobileDiagnostics) {
return mergeFrom((ai.promoted.proto.event.MobileDiagnostics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.promoted.proto.event.MobileDiagnostics other) {
if (other == ai.promoted.proto.event.MobileDiagnostics.getDefaultInstance()) return this;
if (!other.getDeviceIdentifier().isEmpty()) {
deviceIdentifier_ = other.deviceIdentifier_;
onChanged();
}
if (!other.getClientVersion().isEmpty()) {
clientVersion_ = other.clientVersion_;
onChanged();
}
if (!other.getPromotedLibraryVersion().isEmpty()) {
promotedLibraryVersion_ = other.promotedLibraryVersion_;
onChanged();
}
if (other.getBatchesAttempted() != 0) {
setBatchesAttempted(other.getBatchesAttempted());
}
if (other.getBatchesSentSuccessfully() != 0) {
setBatchesSentSuccessfully(other.getBatchesSentSuccessfully());
}
if (other.getBatchesWithErrors() != 0) {
setBatchesWithErrors(other.getBatchesWithErrors());
}
if (other.hasErrorHistory()) {
mergeErrorHistory(other.getErrorHistory());
}
if (other.hasAncestorIdHistory()) {
mergeAncestorIdHistory(other.getAncestorIdHistory());
}
this.mergeUnknownFields(other.unknownFields);
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 {
ai.promoted.proto.event.MobileDiagnostics parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.promoted.proto.event.MobileDiagnostics) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object deviceIdentifier_ = "";
/**
* string device_identifier = 1 [json_name = "deviceIdentifier"];
* @return The deviceIdentifier.
*/
public java.lang.String getDeviceIdentifier() {
java.lang.Object ref = deviceIdentifier_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deviceIdentifier_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string device_identifier = 1 [json_name = "deviceIdentifier"];
* @return The bytes for deviceIdentifier.
*/
public com.google.protobuf.ByteString
getDeviceIdentifierBytes() {
java.lang.Object ref = deviceIdentifier_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceIdentifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string device_identifier = 1 [json_name = "deviceIdentifier"];
* @param value The deviceIdentifier to set.
* @return This builder for chaining.
*/
public Builder setDeviceIdentifier(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
deviceIdentifier_ = value;
onChanged();
return this;
}
/**
* string device_identifier = 1 [json_name = "deviceIdentifier"];
* @return This builder for chaining.
*/
public Builder clearDeviceIdentifier() {
deviceIdentifier_ = getDefaultInstance().getDeviceIdentifier();
onChanged();
return this;
}
/**
* string device_identifier = 1 [json_name = "deviceIdentifier"];
* @param value The bytes for deviceIdentifier to set.
* @return This builder for chaining.
*/
public Builder setDeviceIdentifierBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
deviceIdentifier_ = value;
onChanged();
return this;
}
private java.lang.Object clientVersion_ = "";
/**
* string client_version = 2 [json_name = "clientVersion", deprecated = true];
* @return The clientVersion.
*/
@java.lang.Deprecated public java.lang.String getClientVersion() {
java.lang.Object ref = clientVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string client_version = 2 [json_name = "clientVersion", deprecated = true];
* @return The bytes for clientVersion.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getClientVersionBytes() {
java.lang.Object ref = clientVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string client_version = 2 [json_name = "clientVersion", deprecated = true];
* @param value The clientVersion to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setClientVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clientVersion_ = value;
onChanged();
return this;
}
/**
* string client_version = 2 [json_name = "clientVersion", deprecated = true];
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearClientVersion() {
clientVersion_ = getDefaultInstance().getClientVersion();
onChanged();
return this;
}
/**
* string client_version = 2 [json_name = "clientVersion", deprecated = true];
* @param value The bytes for clientVersion to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setClientVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clientVersion_ = value;
onChanged();
return this;
}
private java.lang.Object promotedLibraryVersion_ = "";
/**
* string promoted_library_version = 3 [json_name = "promotedLibraryVersion", deprecated = true];
* @return The promotedLibraryVersion.
*/
@java.lang.Deprecated public java.lang.String getPromotedLibraryVersion() {
java.lang.Object ref = promotedLibraryVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
promotedLibraryVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string promoted_library_version = 3 [json_name = "promotedLibraryVersion", deprecated = true];
* @return The bytes for promotedLibraryVersion.
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getPromotedLibraryVersionBytes() {
java.lang.Object ref = promotedLibraryVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
promotedLibraryVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string promoted_library_version = 3 [json_name = "promotedLibraryVersion", deprecated = true];
* @param value The promotedLibraryVersion to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setPromotedLibraryVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
promotedLibraryVersion_ = value;
onChanged();
return this;
}
/**
* string promoted_library_version = 3 [json_name = "promotedLibraryVersion", deprecated = true];
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearPromotedLibraryVersion() {
promotedLibraryVersion_ = getDefaultInstance().getPromotedLibraryVersion();
onChanged();
return this;
}
/**
* string promoted_library_version = 3 [json_name = "promotedLibraryVersion", deprecated = true];
* @param value The bytes for promotedLibraryVersion to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setPromotedLibraryVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
promotedLibraryVersion_ = value;
onChanged();
return this;
}
private int batchesAttempted_ ;
/**
* int32 batches_attempted = 4 [json_name = "batchesAttempted"];
* @return The batchesAttempted.
*/
@java.lang.Override
public int getBatchesAttempted() {
return batchesAttempted_;
}
/**
* int32 batches_attempted = 4 [json_name = "batchesAttempted"];
* @param value The batchesAttempted to set.
* @return This builder for chaining.
*/
public Builder setBatchesAttempted(int value) {
batchesAttempted_ = value;
onChanged();
return this;
}
/**
* int32 batches_attempted = 4 [json_name = "batchesAttempted"];
* @return This builder for chaining.
*/
public Builder clearBatchesAttempted() {
batchesAttempted_ = 0;
onChanged();
return this;
}
private int batchesSentSuccessfully_ ;
/**
* int32 batches_sent_successfully = 5 [json_name = "batchesSentSuccessfully"];
* @return The batchesSentSuccessfully.
*/
@java.lang.Override
public int getBatchesSentSuccessfully() {
return batchesSentSuccessfully_;
}
/**
* int32 batches_sent_successfully = 5 [json_name = "batchesSentSuccessfully"];
* @param value The batchesSentSuccessfully to set.
* @return This builder for chaining.
*/
public Builder setBatchesSentSuccessfully(int value) {
batchesSentSuccessfully_ = value;
onChanged();
return this;
}
/**
* int32 batches_sent_successfully = 5 [json_name = "batchesSentSuccessfully"];
* @return This builder for chaining.
*/
public Builder clearBatchesSentSuccessfully() {
batchesSentSuccessfully_ = 0;
onChanged();
return this;
}
private int batchesWithErrors_ ;
/**
* int32 batches_with_errors = 6 [json_name = "batchesWithErrors"];
* @return The batchesWithErrors.
*/
@java.lang.Override
public int getBatchesWithErrors() {
return batchesWithErrors_;
}
/**
* int32 batches_with_errors = 6 [json_name = "batchesWithErrors"];
* @param value The batchesWithErrors to set.
* @return This builder for chaining.
*/
public Builder setBatchesWithErrors(int value) {
batchesWithErrors_ = value;
onChanged();
return this;
}
/**
* int32 batches_with_errors = 6 [json_name = "batchesWithErrors"];
* @return This builder for chaining.
*/
public Builder clearBatchesWithErrors() {
batchesWithErrors_ = 0;
onChanged();
return this;
}
private ai.promoted.proto.event.ErrorHistory errorHistory_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.event.ErrorHistory, ai.promoted.proto.event.ErrorHistory.Builder, ai.promoted.proto.event.ErrorHistoryOrBuilder> errorHistoryBuilder_;
/**
* .event.ErrorHistory error_history = 7 [json_name = "errorHistory"];
* @return Whether the errorHistory field is set.
*/
public boolean hasErrorHistory() {
return errorHistoryBuilder_ != null || errorHistory_ != null;
}
/**
* .event.ErrorHistory error_history = 7 [json_name = "errorHistory"];
* @return The errorHistory.
*/
public ai.promoted.proto.event.ErrorHistory getErrorHistory() {
if (errorHistoryBuilder_ == null) {
return errorHistory_ == null ? ai.promoted.proto.event.ErrorHistory.getDefaultInstance() : errorHistory_;
} else {
return errorHistoryBuilder_.getMessage();
}
}
/**
* .event.ErrorHistory error_history = 7 [json_name = "errorHistory"];
*/
public Builder setErrorHistory(ai.promoted.proto.event.ErrorHistory value) {
if (errorHistoryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
errorHistory_ = value;
onChanged();
} else {
errorHistoryBuilder_.setMessage(value);
}
return this;
}
/**
* .event.ErrorHistory error_history = 7 [json_name = "errorHistory"];
*/
public Builder setErrorHistory(
ai.promoted.proto.event.ErrorHistory.Builder builderForValue) {
if (errorHistoryBuilder_ == null) {
errorHistory_ = builderForValue.build();
onChanged();
} else {
errorHistoryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .event.ErrorHistory error_history = 7 [json_name = "errorHistory"];
*/
public Builder mergeErrorHistory(ai.promoted.proto.event.ErrorHistory value) {
if (errorHistoryBuilder_ == null) {
if (errorHistory_ != null) {
errorHistory_ =
ai.promoted.proto.event.ErrorHistory.newBuilder(errorHistory_).mergeFrom(value).buildPartial();
} else {
errorHistory_ = value;
}
onChanged();
} else {
errorHistoryBuilder_.mergeFrom(value);
}
return this;
}
/**
* .event.ErrorHistory error_history = 7 [json_name = "errorHistory"];
*/
public Builder clearErrorHistory() {
if (errorHistoryBuilder_ == null) {
errorHistory_ = null;
onChanged();
} else {
errorHistory_ = null;
errorHistoryBuilder_ = null;
}
return this;
}
/**
* .event.ErrorHistory error_history = 7 [json_name = "errorHistory"];
*/
public ai.promoted.proto.event.ErrorHistory.Builder getErrorHistoryBuilder() {
onChanged();
return getErrorHistoryFieldBuilder().getBuilder();
}
/**
* .event.ErrorHistory error_history = 7 [json_name = "errorHistory"];
*/
public ai.promoted.proto.event.ErrorHistoryOrBuilder getErrorHistoryOrBuilder() {
if (errorHistoryBuilder_ != null) {
return errorHistoryBuilder_.getMessageOrBuilder();
} else {
return errorHistory_ == null ?
ai.promoted.proto.event.ErrorHistory.getDefaultInstance() : errorHistory_;
}
}
/**
* .event.ErrorHistory error_history = 7 [json_name = "errorHistory"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.event.ErrorHistory, ai.promoted.proto.event.ErrorHistory.Builder, ai.promoted.proto.event.ErrorHistoryOrBuilder>
getErrorHistoryFieldBuilder() {
if (errorHistoryBuilder_ == null) {
errorHistoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.event.ErrorHistory, ai.promoted.proto.event.ErrorHistory.Builder, ai.promoted.proto.event.ErrorHistoryOrBuilder>(
getErrorHistory(),
getParentForChildren(),
isClean());
errorHistory_ = null;
}
return errorHistoryBuilder_;
}
private ai.promoted.proto.event.AncestorIdHistory ancestorIdHistory_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.event.AncestorIdHistory, ai.promoted.proto.event.AncestorIdHistory.Builder, ai.promoted.proto.event.AncestorIdHistoryOrBuilder> ancestorIdHistoryBuilder_;
/**
* .event.AncestorIdHistory ancestor_id_history = 8 [json_name = "ancestorIdHistory"];
* @return Whether the ancestorIdHistory field is set.
*/
public boolean hasAncestorIdHistory() {
return ancestorIdHistoryBuilder_ != null || ancestorIdHistory_ != null;
}
/**
* .event.AncestorIdHistory ancestor_id_history = 8 [json_name = "ancestorIdHistory"];
* @return The ancestorIdHistory.
*/
public ai.promoted.proto.event.AncestorIdHistory getAncestorIdHistory() {
if (ancestorIdHistoryBuilder_ == null) {
return ancestorIdHistory_ == null ? ai.promoted.proto.event.AncestorIdHistory.getDefaultInstance() : ancestorIdHistory_;
} else {
return ancestorIdHistoryBuilder_.getMessage();
}
}
/**
* .event.AncestorIdHistory ancestor_id_history = 8 [json_name = "ancestorIdHistory"];
*/
public Builder setAncestorIdHistory(ai.promoted.proto.event.AncestorIdHistory value) {
if (ancestorIdHistoryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ancestorIdHistory_ = value;
onChanged();
} else {
ancestorIdHistoryBuilder_.setMessage(value);
}
return this;
}
/**
* .event.AncestorIdHistory ancestor_id_history = 8 [json_name = "ancestorIdHistory"];
*/
public Builder setAncestorIdHistory(
ai.promoted.proto.event.AncestorIdHistory.Builder builderForValue) {
if (ancestorIdHistoryBuilder_ == null) {
ancestorIdHistory_ = builderForValue.build();
onChanged();
} else {
ancestorIdHistoryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .event.AncestorIdHistory ancestor_id_history = 8 [json_name = "ancestorIdHistory"];
*/
public Builder mergeAncestorIdHistory(ai.promoted.proto.event.AncestorIdHistory value) {
if (ancestorIdHistoryBuilder_ == null) {
if (ancestorIdHistory_ != null) {
ancestorIdHistory_ =
ai.promoted.proto.event.AncestorIdHistory.newBuilder(ancestorIdHistory_).mergeFrom(value).buildPartial();
} else {
ancestorIdHistory_ = value;
}
onChanged();
} else {
ancestorIdHistoryBuilder_.mergeFrom(value);
}
return this;
}
/**
* .event.AncestorIdHistory ancestor_id_history = 8 [json_name = "ancestorIdHistory"];
*/
public Builder clearAncestorIdHistory() {
if (ancestorIdHistoryBuilder_ == null) {
ancestorIdHistory_ = null;
onChanged();
} else {
ancestorIdHistory_ = null;
ancestorIdHistoryBuilder_ = null;
}
return this;
}
/**
* .event.AncestorIdHistory ancestor_id_history = 8 [json_name = "ancestorIdHistory"];
*/
public ai.promoted.proto.event.AncestorIdHistory.Builder getAncestorIdHistoryBuilder() {
onChanged();
return getAncestorIdHistoryFieldBuilder().getBuilder();
}
/**
* .event.AncestorIdHistory ancestor_id_history = 8 [json_name = "ancestorIdHistory"];
*/
public ai.promoted.proto.event.AncestorIdHistoryOrBuilder getAncestorIdHistoryOrBuilder() {
if (ancestorIdHistoryBuilder_ != null) {
return ancestorIdHistoryBuilder_.getMessageOrBuilder();
} else {
return ancestorIdHistory_ == null ?
ai.promoted.proto.event.AncestorIdHistory.getDefaultInstance() : ancestorIdHistory_;
}
}
/**
* .event.AncestorIdHistory ancestor_id_history = 8 [json_name = "ancestorIdHistory"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.event.AncestorIdHistory, ai.promoted.proto.event.AncestorIdHistory.Builder, ai.promoted.proto.event.AncestorIdHistoryOrBuilder>
getAncestorIdHistoryFieldBuilder() {
if (ancestorIdHistoryBuilder_ == null) {
ancestorIdHistoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.event.AncestorIdHistory, ai.promoted.proto.event.AncestorIdHistory.Builder, ai.promoted.proto.event.AncestorIdHistoryOrBuilder>(
getAncestorIdHistory(),
getParentForChildren(),
isClean());
ancestorIdHistory_ = null;
}
return ancestorIdHistoryBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:event.MobileDiagnostics)
}
// @@protoc_insertion_point(class_scope:event.MobileDiagnostics)
private static final ai.promoted.proto.event.MobileDiagnostics DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.promoted.proto.event.MobileDiagnostics();
}
public static ai.promoted.proto.event.MobileDiagnostics getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MobileDiagnostics parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MobileDiagnostics(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public ai.promoted.proto.event.MobileDiagnostics getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy