ai.promoted.proto.event.Diagnostics 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.Diagnostics}
*/
public final class Diagnostics extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:event.Diagnostics)
DiagnosticsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Diagnostics.newBuilder() to construct.
private Diagnostics(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Diagnostics() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Diagnostics();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Diagnostics(
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 8: {
platformId_ = input.readUInt64();
break;
}
case 18: {
ai.promoted.proto.common.UserInfo.Builder subBuilder = null;
if (userInfo_ != null) {
subBuilder = userInfo_.toBuilder();
}
userInfo_ = input.readMessage(ai.promoted.proto.common.UserInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userInfo_);
userInfo_ = subBuilder.buildPartial();
}
break;
}
case 26: {
ai.promoted.proto.common.Timing.Builder subBuilder = null;
if (timing_ != null) {
subBuilder = timing_.toBuilder();
}
timing_ = input.readMessage(ai.promoted.proto.common.Timing.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timing_);
timing_ = subBuilder.buildPartial();
}
break;
}
case 34: {
ai.promoted.proto.common.ClientInfo.Builder subBuilder = null;
if (clientInfo_ != null) {
subBuilder = clientInfo_.toBuilder();
}
clientInfo_ = input.readMessage(ai.promoted.proto.common.ClientInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clientInfo_);
clientInfo_ = subBuilder.buildPartial();
}
break;
}
case 42: {
ai.promoted.proto.event.MobileDiagnostics.Builder subBuilder = null;
if (diagnosticsMessageCase_ == 5) {
subBuilder = ((ai.promoted.proto.event.MobileDiagnostics) diagnosticsMessage_).toBuilder();
}
diagnosticsMessage_ =
input.readMessage(ai.promoted.proto.event.MobileDiagnostics.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.promoted.proto.event.MobileDiagnostics) diagnosticsMessage_);
diagnosticsMessage_ = subBuilder.buildPartial();
}
diagnosticsMessageCase_ = 5;
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_Diagnostics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.promoted.proto.event.Event.internal_static_event_Diagnostics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.promoted.proto.event.Diagnostics.class, ai.promoted.proto.event.Diagnostics.Builder.class);
}
private int diagnosticsMessageCase_ = 0;
private java.lang.Object diagnosticsMessage_;
public enum DiagnosticsMessageCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
MOBILE_DIAGNOSTICS(5),
DIAGNOSTICSMESSAGE_NOT_SET(0);
private final int value;
private DiagnosticsMessageCase(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 DiagnosticsMessageCase valueOf(int value) {
return forNumber(value);
}
public static DiagnosticsMessageCase forNumber(int value) {
switch (value) {
case 5: return MOBILE_DIAGNOSTICS;
case 0: return DIAGNOSTICSMESSAGE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DiagnosticsMessageCase
getDiagnosticsMessageCase() {
return DiagnosticsMessageCase.forNumber(
diagnosticsMessageCase_);
}
public static final int PLATFORM_ID_FIELD_NUMBER = 1;
private long platformId_;
/**
* uint64 platform_id = 1 [json_name = "platformId"];
* @return The platformId.
*/
@java.lang.Override
public long getPlatformId() {
return platformId_;
}
public static final int USER_INFO_FIELD_NUMBER = 2;
private ai.promoted.proto.common.UserInfo userInfo_;
/**
* .common.UserInfo user_info = 2 [json_name = "userInfo"];
* @return Whether the userInfo field is set.
*/
@java.lang.Override
public boolean hasUserInfo() {
return userInfo_ != null;
}
/**
* .common.UserInfo user_info = 2 [json_name = "userInfo"];
* @return The userInfo.
*/
@java.lang.Override
public ai.promoted.proto.common.UserInfo getUserInfo() {
return userInfo_ == null ? ai.promoted.proto.common.UserInfo.getDefaultInstance() : userInfo_;
}
/**
* .common.UserInfo user_info = 2 [json_name = "userInfo"];
*/
@java.lang.Override
public ai.promoted.proto.common.UserInfoOrBuilder getUserInfoOrBuilder() {
return getUserInfo();
}
public static final int TIMING_FIELD_NUMBER = 3;
private ai.promoted.proto.common.Timing timing_;
/**
* .common.Timing timing = 3 [json_name = "timing"];
* @return Whether the timing field is set.
*/
@java.lang.Override
public boolean hasTiming() {
return timing_ != null;
}
/**
* .common.Timing timing = 3 [json_name = "timing"];
* @return The timing.
*/
@java.lang.Override
public ai.promoted.proto.common.Timing getTiming() {
return timing_ == null ? ai.promoted.proto.common.Timing.getDefaultInstance() : timing_;
}
/**
* .common.Timing timing = 3 [json_name = "timing"];
*/
@java.lang.Override
public ai.promoted.proto.common.TimingOrBuilder getTimingOrBuilder() {
return getTiming();
}
public static final int CLIENT_INFO_FIELD_NUMBER = 4;
private ai.promoted.proto.common.ClientInfo clientInfo_;
/**
* .common.ClientInfo client_info = 4 [json_name = "clientInfo"];
* @return Whether the clientInfo field is set.
*/
@java.lang.Override
public boolean hasClientInfo() {
return clientInfo_ != null;
}
/**
* .common.ClientInfo client_info = 4 [json_name = "clientInfo"];
* @return The clientInfo.
*/
@java.lang.Override
public ai.promoted.proto.common.ClientInfo getClientInfo() {
return clientInfo_ == null ? ai.promoted.proto.common.ClientInfo.getDefaultInstance() : clientInfo_;
}
/**
* .common.ClientInfo client_info = 4 [json_name = "clientInfo"];
*/
@java.lang.Override
public ai.promoted.proto.common.ClientInfoOrBuilder getClientInfoOrBuilder() {
return getClientInfo();
}
public static final int MOBILE_DIAGNOSTICS_FIELD_NUMBER = 5;
/**
* .event.MobileDiagnostics mobile_diagnostics = 5 [json_name = "mobileDiagnostics"];
* @return Whether the mobileDiagnostics field is set.
*/
@java.lang.Override
public boolean hasMobileDiagnostics() {
return diagnosticsMessageCase_ == 5;
}
/**
* .event.MobileDiagnostics mobile_diagnostics = 5 [json_name = "mobileDiagnostics"];
* @return The mobileDiagnostics.
*/
@java.lang.Override
public ai.promoted.proto.event.MobileDiagnostics getMobileDiagnostics() {
if (diagnosticsMessageCase_ == 5) {
return (ai.promoted.proto.event.MobileDiagnostics) diagnosticsMessage_;
}
return ai.promoted.proto.event.MobileDiagnostics.getDefaultInstance();
}
/**
* .event.MobileDiagnostics mobile_diagnostics = 5 [json_name = "mobileDiagnostics"];
*/
@java.lang.Override
public ai.promoted.proto.event.MobileDiagnosticsOrBuilder getMobileDiagnosticsOrBuilder() {
if (diagnosticsMessageCase_ == 5) {
return (ai.promoted.proto.event.MobileDiagnostics) diagnosticsMessage_;
}
return ai.promoted.proto.event.MobileDiagnostics.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 (platformId_ != 0L) {
output.writeUInt64(1, platformId_);
}
if (userInfo_ != null) {
output.writeMessage(2, getUserInfo());
}
if (timing_ != null) {
output.writeMessage(3, getTiming());
}
if (clientInfo_ != null) {
output.writeMessage(4, getClientInfo());
}
if (diagnosticsMessageCase_ == 5) {
output.writeMessage(5, (ai.promoted.proto.event.MobileDiagnostics) diagnosticsMessage_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (platformId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, platformId_);
}
if (userInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUserInfo());
}
if (timing_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTiming());
}
if (clientInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getClientInfo());
}
if (diagnosticsMessageCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (ai.promoted.proto.event.MobileDiagnostics) diagnosticsMessage_);
}
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.Diagnostics)) {
return super.equals(obj);
}
ai.promoted.proto.event.Diagnostics other = (ai.promoted.proto.event.Diagnostics) obj;
if (getPlatformId()
!= other.getPlatformId()) return false;
if (hasUserInfo() != other.hasUserInfo()) return false;
if (hasUserInfo()) {
if (!getUserInfo()
.equals(other.getUserInfo())) return false;
}
if (hasTiming() != other.hasTiming()) return false;
if (hasTiming()) {
if (!getTiming()
.equals(other.getTiming())) return false;
}
if (hasClientInfo() != other.hasClientInfo()) return false;
if (hasClientInfo()) {
if (!getClientInfo()
.equals(other.getClientInfo())) return false;
}
if (!getDiagnosticsMessageCase().equals(other.getDiagnosticsMessageCase())) return false;
switch (diagnosticsMessageCase_) {
case 5:
if (!getMobileDiagnostics()
.equals(other.getMobileDiagnostics())) return false;
break;
case 0:
default:
}
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) + PLATFORM_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPlatformId());
if (hasUserInfo()) {
hash = (37 * hash) + USER_INFO_FIELD_NUMBER;
hash = (53 * hash) + getUserInfo().hashCode();
}
if (hasTiming()) {
hash = (37 * hash) + TIMING_FIELD_NUMBER;
hash = (53 * hash) + getTiming().hashCode();
}
if (hasClientInfo()) {
hash = (37 * hash) + CLIENT_INFO_FIELD_NUMBER;
hash = (53 * hash) + getClientInfo().hashCode();
}
switch (diagnosticsMessageCase_) {
case 5:
hash = (37 * hash) + MOBILE_DIAGNOSTICS_FIELD_NUMBER;
hash = (53 * hash) + getMobileDiagnostics().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.promoted.proto.event.Diagnostics parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.event.Diagnostics 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.Diagnostics parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.event.Diagnostics 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.Diagnostics parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.event.Diagnostics parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.promoted.proto.event.Diagnostics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.promoted.proto.event.Diagnostics 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.Diagnostics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.promoted.proto.event.Diagnostics 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.Diagnostics parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.promoted.proto.event.Diagnostics 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.Diagnostics 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.Diagnostics}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:event.Diagnostics)
ai.promoted.proto.event.DiagnosticsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.promoted.proto.event.Event.internal_static_event_Diagnostics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.promoted.proto.event.Event.internal_static_event_Diagnostics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.promoted.proto.event.Diagnostics.class, ai.promoted.proto.event.Diagnostics.Builder.class);
}
// Construct using ai.promoted.proto.event.Diagnostics.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();
platformId_ = 0L;
if (userInfoBuilder_ == null) {
userInfo_ = null;
} else {
userInfo_ = null;
userInfoBuilder_ = null;
}
if (timingBuilder_ == null) {
timing_ = null;
} else {
timing_ = null;
timingBuilder_ = null;
}
if (clientInfoBuilder_ == null) {
clientInfo_ = null;
} else {
clientInfo_ = null;
clientInfoBuilder_ = null;
}
diagnosticsMessageCase_ = 0;
diagnosticsMessage_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.promoted.proto.event.Event.internal_static_event_Diagnostics_descriptor;
}
@java.lang.Override
public ai.promoted.proto.event.Diagnostics getDefaultInstanceForType() {
return ai.promoted.proto.event.Diagnostics.getDefaultInstance();
}
@java.lang.Override
public ai.promoted.proto.event.Diagnostics build() {
ai.promoted.proto.event.Diagnostics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.promoted.proto.event.Diagnostics buildPartial() {
ai.promoted.proto.event.Diagnostics result = new ai.promoted.proto.event.Diagnostics(this);
result.platformId_ = platformId_;
if (userInfoBuilder_ == null) {
result.userInfo_ = userInfo_;
} else {
result.userInfo_ = userInfoBuilder_.build();
}
if (timingBuilder_ == null) {
result.timing_ = timing_;
} else {
result.timing_ = timingBuilder_.build();
}
if (clientInfoBuilder_ == null) {
result.clientInfo_ = clientInfo_;
} else {
result.clientInfo_ = clientInfoBuilder_.build();
}
if (diagnosticsMessageCase_ == 5) {
if (mobileDiagnosticsBuilder_ == null) {
result.diagnosticsMessage_ = diagnosticsMessage_;
} else {
result.diagnosticsMessage_ = mobileDiagnosticsBuilder_.build();
}
}
result.diagnosticsMessageCase_ = diagnosticsMessageCase_;
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.Diagnostics) {
return mergeFrom((ai.promoted.proto.event.Diagnostics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.promoted.proto.event.Diagnostics other) {
if (other == ai.promoted.proto.event.Diagnostics.getDefaultInstance()) return this;
if (other.getPlatformId() != 0L) {
setPlatformId(other.getPlatformId());
}
if (other.hasUserInfo()) {
mergeUserInfo(other.getUserInfo());
}
if (other.hasTiming()) {
mergeTiming(other.getTiming());
}
if (other.hasClientInfo()) {
mergeClientInfo(other.getClientInfo());
}
switch (other.getDiagnosticsMessageCase()) {
case MOBILE_DIAGNOSTICS: {
mergeMobileDiagnostics(other.getMobileDiagnostics());
break;
}
case DIAGNOSTICSMESSAGE_NOT_SET: {
break;
}
}
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.Diagnostics parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.promoted.proto.event.Diagnostics) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int diagnosticsMessageCase_ = 0;
private java.lang.Object diagnosticsMessage_;
public DiagnosticsMessageCase
getDiagnosticsMessageCase() {
return DiagnosticsMessageCase.forNumber(
diagnosticsMessageCase_);
}
public Builder clearDiagnosticsMessage() {
diagnosticsMessageCase_ = 0;
diagnosticsMessage_ = null;
onChanged();
return this;
}
private long platformId_ ;
/**
* uint64 platform_id = 1 [json_name = "platformId"];
* @return The platformId.
*/
@java.lang.Override
public long getPlatformId() {
return platformId_;
}
/**
* uint64 platform_id = 1 [json_name = "platformId"];
* @param value The platformId to set.
* @return This builder for chaining.
*/
public Builder setPlatformId(long value) {
platformId_ = value;
onChanged();
return this;
}
/**
* uint64 platform_id = 1 [json_name = "platformId"];
* @return This builder for chaining.
*/
public Builder clearPlatformId() {
platformId_ = 0L;
onChanged();
return this;
}
private ai.promoted.proto.common.UserInfo userInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.common.UserInfo, ai.promoted.proto.common.UserInfo.Builder, ai.promoted.proto.common.UserInfoOrBuilder> userInfoBuilder_;
/**
* .common.UserInfo user_info = 2 [json_name = "userInfo"];
* @return Whether the userInfo field is set.
*/
public boolean hasUserInfo() {
return userInfoBuilder_ != null || userInfo_ != null;
}
/**
* .common.UserInfo user_info = 2 [json_name = "userInfo"];
* @return The userInfo.
*/
public ai.promoted.proto.common.UserInfo getUserInfo() {
if (userInfoBuilder_ == null) {
return userInfo_ == null ? ai.promoted.proto.common.UserInfo.getDefaultInstance() : userInfo_;
} else {
return userInfoBuilder_.getMessage();
}
}
/**
* .common.UserInfo user_info = 2 [json_name = "userInfo"];
*/
public Builder setUserInfo(ai.promoted.proto.common.UserInfo value) {
if (userInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
userInfo_ = value;
onChanged();
} else {
userInfoBuilder_.setMessage(value);
}
return this;
}
/**
* .common.UserInfo user_info = 2 [json_name = "userInfo"];
*/
public Builder setUserInfo(
ai.promoted.proto.common.UserInfo.Builder builderForValue) {
if (userInfoBuilder_ == null) {
userInfo_ = builderForValue.build();
onChanged();
} else {
userInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .common.UserInfo user_info = 2 [json_name = "userInfo"];
*/
public Builder mergeUserInfo(ai.promoted.proto.common.UserInfo value) {
if (userInfoBuilder_ == null) {
if (userInfo_ != null) {
userInfo_ =
ai.promoted.proto.common.UserInfo.newBuilder(userInfo_).mergeFrom(value).buildPartial();
} else {
userInfo_ = value;
}
onChanged();
} else {
userInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .common.UserInfo user_info = 2 [json_name = "userInfo"];
*/
public Builder clearUserInfo() {
if (userInfoBuilder_ == null) {
userInfo_ = null;
onChanged();
} else {
userInfo_ = null;
userInfoBuilder_ = null;
}
return this;
}
/**
* .common.UserInfo user_info = 2 [json_name = "userInfo"];
*/
public ai.promoted.proto.common.UserInfo.Builder getUserInfoBuilder() {
onChanged();
return getUserInfoFieldBuilder().getBuilder();
}
/**
* .common.UserInfo user_info = 2 [json_name = "userInfo"];
*/
public ai.promoted.proto.common.UserInfoOrBuilder getUserInfoOrBuilder() {
if (userInfoBuilder_ != null) {
return userInfoBuilder_.getMessageOrBuilder();
} else {
return userInfo_ == null ?
ai.promoted.proto.common.UserInfo.getDefaultInstance() : userInfo_;
}
}
/**
* .common.UserInfo user_info = 2 [json_name = "userInfo"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.common.UserInfo, ai.promoted.proto.common.UserInfo.Builder, ai.promoted.proto.common.UserInfoOrBuilder>
getUserInfoFieldBuilder() {
if (userInfoBuilder_ == null) {
userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.common.UserInfo, ai.promoted.proto.common.UserInfo.Builder, ai.promoted.proto.common.UserInfoOrBuilder>(
getUserInfo(),
getParentForChildren(),
isClean());
userInfo_ = null;
}
return userInfoBuilder_;
}
private ai.promoted.proto.common.Timing timing_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.common.Timing, ai.promoted.proto.common.Timing.Builder, ai.promoted.proto.common.TimingOrBuilder> timingBuilder_;
/**
* .common.Timing timing = 3 [json_name = "timing"];
* @return Whether the timing field is set.
*/
public boolean hasTiming() {
return timingBuilder_ != null || timing_ != null;
}
/**
* .common.Timing timing = 3 [json_name = "timing"];
* @return The timing.
*/
public ai.promoted.proto.common.Timing getTiming() {
if (timingBuilder_ == null) {
return timing_ == null ? ai.promoted.proto.common.Timing.getDefaultInstance() : timing_;
} else {
return timingBuilder_.getMessage();
}
}
/**
* .common.Timing timing = 3 [json_name = "timing"];
*/
public Builder setTiming(ai.promoted.proto.common.Timing value) {
if (timingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timing_ = value;
onChanged();
} else {
timingBuilder_.setMessage(value);
}
return this;
}
/**
* .common.Timing timing = 3 [json_name = "timing"];
*/
public Builder setTiming(
ai.promoted.proto.common.Timing.Builder builderForValue) {
if (timingBuilder_ == null) {
timing_ = builderForValue.build();
onChanged();
} else {
timingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .common.Timing timing = 3 [json_name = "timing"];
*/
public Builder mergeTiming(ai.promoted.proto.common.Timing value) {
if (timingBuilder_ == null) {
if (timing_ != null) {
timing_ =
ai.promoted.proto.common.Timing.newBuilder(timing_).mergeFrom(value).buildPartial();
} else {
timing_ = value;
}
onChanged();
} else {
timingBuilder_.mergeFrom(value);
}
return this;
}
/**
* .common.Timing timing = 3 [json_name = "timing"];
*/
public Builder clearTiming() {
if (timingBuilder_ == null) {
timing_ = null;
onChanged();
} else {
timing_ = null;
timingBuilder_ = null;
}
return this;
}
/**
* .common.Timing timing = 3 [json_name = "timing"];
*/
public ai.promoted.proto.common.Timing.Builder getTimingBuilder() {
onChanged();
return getTimingFieldBuilder().getBuilder();
}
/**
* .common.Timing timing = 3 [json_name = "timing"];
*/
public ai.promoted.proto.common.TimingOrBuilder getTimingOrBuilder() {
if (timingBuilder_ != null) {
return timingBuilder_.getMessageOrBuilder();
} else {
return timing_ == null ?
ai.promoted.proto.common.Timing.getDefaultInstance() : timing_;
}
}
/**
* .common.Timing timing = 3 [json_name = "timing"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.common.Timing, ai.promoted.proto.common.Timing.Builder, ai.promoted.proto.common.TimingOrBuilder>
getTimingFieldBuilder() {
if (timingBuilder_ == null) {
timingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.common.Timing, ai.promoted.proto.common.Timing.Builder, ai.promoted.proto.common.TimingOrBuilder>(
getTiming(),
getParentForChildren(),
isClean());
timing_ = null;
}
return timingBuilder_;
}
private ai.promoted.proto.common.ClientInfo clientInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.common.ClientInfo, ai.promoted.proto.common.ClientInfo.Builder, ai.promoted.proto.common.ClientInfoOrBuilder> clientInfoBuilder_;
/**
* .common.ClientInfo client_info = 4 [json_name = "clientInfo"];
* @return Whether the clientInfo field is set.
*/
public boolean hasClientInfo() {
return clientInfoBuilder_ != null || clientInfo_ != null;
}
/**
* .common.ClientInfo client_info = 4 [json_name = "clientInfo"];
* @return The clientInfo.
*/
public ai.promoted.proto.common.ClientInfo getClientInfo() {
if (clientInfoBuilder_ == null) {
return clientInfo_ == null ? ai.promoted.proto.common.ClientInfo.getDefaultInstance() : clientInfo_;
} else {
return clientInfoBuilder_.getMessage();
}
}
/**
* .common.ClientInfo client_info = 4 [json_name = "clientInfo"];
*/
public Builder setClientInfo(ai.promoted.proto.common.ClientInfo value) {
if (clientInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
clientInfo_ = value;
onChanged();
} else {
clientInfoBuilder_.setMessage(value);
}
return this;
}
/**
* .common.ClientInfo client_info = 4 [json_name = "clientInfo"];
*/
public Builder setClientInfo(
ai.promoted.proto.common.ClientInfo.Builder builderForValue) {
if (clientInfoBuilder_ == null) {
clientInfo_ = builderForValue.build();
onChanged();
} else {
clientInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .common.ClientInfo client_info = 4 [json_name = "clientInfo"];
*/
public Builder mergeClientInfo(ai.promoted.proto.common.ClientInfo value) {
if (clientInfoBuilder_ == null) {
if (clientInfo_ != null) {
clientInfo_ =
ai.promoted.proto.common.ClientInfo.newBuilder(clientInfo_).mergeFrom(value).buildPartial();
} else {
clientInfo_ = value;
}
onChanged();
} else {
clientInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .common.ClientInfo client_info = 4 [json_name = "clientInfo"];
*/
public Builder clearClientInfo() {
if (clientInfoBuilder_ == null) {
clientInfo_ = null;
onChanged();
} else {
clientInfo_ = null;
clientInfoBuilder_ = null;
}
return this;
}
/**
* .common.ClientInfo client_info = 4 [json_name = "clientInfo"];
*/
public ai.promoted.proto.common.ClientInfo.Builder getClientInfoBuilder() {
onChanged();
return getClientInfoFieldBuilder().getBuilder();
}
/**
* .common.ClientInfo client_info = 4 [json_name = "clientInfo"];
*/
public ai.promoted.proto.common.ClientInfoOrBuilder getClientInfoOrBuilder() {
if (clientInfoBuilder_ != null) {
return clientInfoBuilder_.getMessageOrBuilder();
} else {
return clientInfo_ == null ?
ai.promoted.proto.common.ClientInfo.getDefaultInstance() : clientInfo_;
}
}
/**
* .common.ClientInfo client_info = 4 [json_name = "clientInfo"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.common.ClientInfo, ai.promoted.proto.common.ClientInfo.Builder, ai.promoted.proto.common.ClientInfoOrBuilder>
getClientInfoFieldBuilder() {
if (clientInfoBuilder_ == null) {
clientInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.common.ClientInfo, ai.promoted.proto.common.ClientInfo.Builder, ai.promoted.proto.common.ClientInfoOrBuilder>(
getClientInfo(),
getParentForChildren(),
isClean());
clientInfo_ = null;
}
return clientInfoBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.event.MobileDiagnostics, ai.promoted.proto.event.MobileDiagnostics.Builder, ai.promoted.proto.event.MobileDiagnosticsOrBuilder> mobileDiagnosticsBuilder_;
/**
* .event.MobileDiagnostics mobile_diagnostics = 5 [json_name = "mobileDiagnostics"];
* @return Whether the mobileDiagnostics field is set.
*/
@java.lang.Override
public boolean hasMobileDiagnostics() {
return diagnosticsMessageCase_ == 5;
}
/**
* .event.MobileDiagnostics mobile_diagnostics = 5 [json_name = "mobileDiagnostics"];
* @return The mobileDiagnostics.
*/
@java.lang.Override
public ai.promoted.proto.event.MobileDiagnostics getMobileDiagnostics() {
if (mobileDiagnosticsBuilder_ == null) {
if (diagnosticsMessageCase_ == 5) {
return (ai.promoted.proto.event.MobileDiagnostics) diagnosticsMessage_;
}
return ai.promoted.proto.event.MobileDiagnostics.getDefaultInstance();
} else {
if (diagnosticsMessageCase_ == 5) {
return mobileDiagnosticsBuilder_.getMessage();
}
return ai.promoted.proto.event.MobileDiagnostics.getDefaultInstance();
}
}
/**
* .event.MobileDiagnostics mobile_diagnostics = 5 [json_name = "mobileDiagnostics"];
*/
public Builder setMobileDiagnostics(ai.promoted.proto.event.MobileDiagnostics value) {
if (mobileDiagnosticsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
diagnosticsMessage_ = value;
onChanged();
} else {
mobileDiagnosticsBuilder_.setMessage(value);
}
diagnosticsMessageCase_ = 5;
return this;
}
/**
* .event.MobileDiagnostics mobile_diagnostics = 5 [json_name = "mobileDiagnostics"];
*/
public Builder setMobileDiagnostics(
ai.promoted.proto.event.MobileDiagnostics.Builder builderForValue) {
if (mobileDiagnosticsBuilder_ == null) {
diagnosticsMessage_ = builderForValue.build();
onChanged();
} else {
mobileDiagnosticsBuilder_.setMessage(builderForValue.build());
}
diagnosticsMessageCase_ = 5;
return this;
}
/**
* .event.MobileDiagnostics mobile_diagnostics = 5 [json_name = "mobileDiagnostics"];
*/
public Builder mergeMobileDiagnostics(ai.promoted.proto.event.MobileDiagnostics value) {
if (mobileDiagnosticsBuilder_ == null) {
if (diagnosticsMessageCase_ == 5 &&
diagnosticsMessage_ != ai.promoted.proto.event.MobileDiagnostics.getDefaultInstance()) {
diagnosticsMessage_ = ai.promoted.proto.event.MobileDiagnostics.newBuilder((ai.promoted.proto.event.MobileDiagnostics) diagnosticsMessage_)
.mergeFrom(value).buildPartial();
} else {
diagnosticsMessage_ = value;
}
onChanged();
} else {
if (diagnosticsMessageCase_ == 5) {
mobileDiagnosticsBuilder_.mergeFrom(value);
}
mobileDiagnosticsBuilder_.setMessage(value);
}
diagnosticsMessageCase_ = 5;
return this;
}
/**
* .event.MobileDiagnostics mobile_diagnostics = 5 [json_name = "mobileDiagnostics"];
*/
public Builder clearMobileDiagnostics() {
if (mobileDiagnosticsBuilder_ == null) {
if (diagnosticsMessageCase_ == 5) {
diagnosticsMessageCase_ = 0;
diagnosticsMessage_ = null;
onChanged();
}
} else {
if (diagnosticsMessageCase_ == 5) {
diagnosticsMessageCase_ = 0;
diagnosticsMessage_ = null;
}
mobileDiagnosticsBuilder_.clear();
}
return this;
}
/**
* .event.MobileDiagnostics mobile_diagnostics = 5 [json_name = "mobileDiagnostics"];
*/
public ai.promoted.proto.event.MobileDiagnostics.Builder getMobileDiagnosticsBuilder() {
return getMobileDiagnosticsFieldBuilder().getBuilder();
}
/**
* .event.MobileDiagnostics mobile_diagnostics = 5 [json_name = "mobileDiagnostics"];
*/
@java.lang.Override
public ai.promoted.proto.event.MobileDiagnosticsOrBuilder getMobileDiagnosticsOrBuilder() {
if ((diagnosticsMessageCase_ == 5) && (mobileDiagnosticsBuilder_ != null)) {
return mobileDiagnosticsBuilder_.getMessageOrBuilder();
} else {
if (diagnosticsMessageCase_ == 5) {
return (ai.promoted.proto.event.MobileDiagnostics) diagnosticsMessage_;
}
return ai.promoted.proto.event.MobileDiagnostics.getDefaultInstance();
}
}
/**
* .event.MobileDiagnostics mobile_diagnostics = 5 [json_name = "mobileDiagnostics"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.event.MobileDiagnostics, ai.promoted.proto.event.MobileDiagnostics.Builder, ai.promoted.proto.event.MobileDiagnosticsOrBuilder>
getMobileDiagnosticsFieldBuilder() {
if (mobileDiagnosticsBuilder_ == null) {
if (!(diagnosticsMessageCase_ == 5)) {
diagnosticsMessage_ = ai.promoted.proto.event.MobileDiagnostics.getDefaultInstance();
}
mobileDiagnosticsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.event.MobileDiagnostics, ai.promoted.proto.event.MobileDiagnostics.Builder, ai.promoted.proto.event.MobileDiagnosticsOrBuilder>(
(ai.promoted.proto.event.MobileDiagnostics) diagnosticsMessage_,
getParentForChildren(),
isClean());
diagnosticsMessage_ = null;
}
diagnosticsMessageCase_ = 5;
onChanged();;
return mobileDiagnosticsBuilder_;
}
@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.Diagnostics)
}
// @@protoc_insertion_point(class_scope:event.Diagnostics)
private static final ai.promoted.proto.event.Diagnostics DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.promoted.proto.event.Diagnostics();
}
public static ai.promoted.proto.event.Diagnostics getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Diagnostics parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Diagnostics(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.Diagnostics getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy