ai.promoted.proto.common.ClientInfo 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/common/common.proto
package ai.promoted.proto.common;
/**
* Protobuf type {@code common.ClientInfo}
*/
public final class ClientInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.ClientInfo)
ClientInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientInfo.newBuilder() to construct.
private ClientInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClientInfo() {
clientType_ = 0;
trafficType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClientInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClientInfo(
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: {
int rawValue = input.readEnum();
clientType_ = rawValue;
break;
}
case 16: {
int rawValue = input.readEnum();
trafficType_ = rawValue;
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.common.CommonProto.internal_static_common_ClientInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.promoted.proto.common.CommonProto.internal_static_common_ClientInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.promoted.proto.common.ClientInfo.class, ai.promoted.proto.common.ClientInfo.Builder.class);
}
/**
* Protobuf enum {@code common.ClientInfo.ClientType}
*/
public enum ClientType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN_REQUEST_CLIENT = 0;
*/
UNKNOWN_REQUEST_CLIENT(0),
/**
* PLATFORM_SERVER = 1;
*/
PLATFORM_SERVER(1),
/**
* PLATFORM_CLIENT = 2;
*/
PLATFORM_CLIENT(2),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN_REQUEST_CLIENT = 0;
*/
public static final int UNKNOWN_REQUEST_CLIENT_VALUE = 0;
/**
* PLATFORM_SERVER = 1;
*/
public static final int PLATFORM_SERVER_VALUE = 1;
/**
* PLATFORM_CLIENT = 2;
*/
public static final int PLATFORM_CLIENT_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ClientType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ClientType forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_REQUEST_CLIENT;
case 1: return PLATFORM_SERVER;
case 2: return PLATFORM_CLIENT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ClientType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ClientType findValueByNumber(int number) {
return ClientType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return ai.promoted.proto.common.ClientInfo.getDescriptor().getEnumTypes().get(0);
}
private static final ClientType[] VALUES = values();
public static ClientType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ClientType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:common.ClientInfo.ClientType)
}
/**
* Protobuf enum {@code common.ClientInfo.TrafficType}
*/
public enum TrafficType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN_TRAFFIC_TYPE = 0;
*/
UNKNOWN_TRAFFIC_TYPE(0),
/**
* PRODUCTION = 1;
*/
PRODUCTION(1),
/**
* REPLAY = 2;
*/
REPLAY(2),
/**
* SHADOW = 4;
*/
SHADOW(4),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN_TRAFFIC_TYPE = 0;
*/
public static final int UNKNOWN_TRAFFIC_TYPE_VALUE = 0;
/**
* PRODUCTION = 1;
*/
public static final int PRODUCTION_VALUE = 1;
/**
* REPLAY = 2;
*/
public static final int REPLAY_VALUE = 2;
/**
* SHADOW = 4;
*/
public static final int SHADOW_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TrafficType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static TrafficType forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_TRAFFIC_TYPE;
case 1: return PRODUCTION;
case 2: return REPLAY;
case 4: return SHADOW;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TrafficType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TrafficType findValueByNumber(int number) {
return TrafficType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return ai.promoted.proto.common.ClientInfo.getDescriptor().getEnumTypes().get(1);
}
private static final TrafficType[] VALUES = values();
public static TrafficType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private TrafficType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:common.ClientInfo.TrafficType)
}
public static final int CLIENT_TYPE_FIELD_NUMBER = 1;
private int clientType_;
/**
* .common.ClientInfo.ClientType client_type = 1 [json_name = "clientType"];
* @return The enum numeric value on the wire for clientType.
*/
@java.lang.Override public int getClientTypeValue() {
return clientType_;
}
/**
* .common.ClientInfo.ClientType client_type = 1 [json_name = "clientType"];
* @return The clientType.
*/
@java.lang.Override public ai.promoted.proto.common.ClientInfo.ClientType getClientType() {
@SuppressWarnings("deprecation")
ai.promoted.proto.common.ClientInfo.ClientType result = ai.promoted.proto.common.ClientInfo.ClientType.valueOf(clientType_);
return result == null ? ai.promoted.proto.common.ClientInfo.ClientType.UNRECOGNIZED : result;
}
public static final int TRAFFIC_TYPE_FIELD_NUMBER = 2;
private int trafficType_;
/**
* .common.ClientInfo.TrafficType traffic_type = 2 [json_name = "trafficType"];
* @return The enum numeric value on the wire for trafficType.
*/
@java.lang.Override public int getTrafficTypeValue() {
return trafficType_;
}
/**
* .common.ClientInfo.TrafficType traffic_type = 2 [json_name = "trafficType"];
* @return The trafficType.
*/
@java.lang.Override public ai.promoted.proto.common.ClientInfo.TrafficType getTrafficType() {
@SuppressWarnings("deprecation")
ai.promoted.proto.common.ClientInfo.TrafficType result = ai.promoted.proto.common.ClientInfo.TrafficType.valueOf(trafficType_);
return result == null ? ai.promoted.proto.common.ClientInfo.TrafficType.UNRECOGNIZED : result;
}
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 (clientType_ != ai.promoted.proto.common.ClientInfo.ClientType.UNKNOWN_REQUEST_CLIENT.getNumber()) {
output.writeEnum(1, clientType_);
}
if (trafficType_ != ai.promoted.proto.common.ClientInfo.TrafficType.UNKNOWN_TRAFFIC_TYPE.getNumber()) {
output.writeEnum(2, trafficType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (clientType_ != ai.promoted.proto.common.ClientInfo.ClientType.UNKNOWN_REQUEST_CLIENT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, clientType_);
}
if (trafficType_ != ai.promoted.proto.common.ClientInfo.TrafficType.UNKNOWN_TRAFFIC_TYPE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, trafficType_);
}
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.common.ClientInfo)) {
return super.equals(obj);
}
ai.promoted.proto.common.ClientInfo other = (ai.promoted.proto.common.ClientInfo) obj;
if (clientType_ != other.clientType_) return false;
if (trafficType_ != other.trafficType_) 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) + CLIENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + clientType_;
hash = (37 * hash) + TRAFFIC_TYPE_FIELD_NUMBER;
hash = (53 * hash) + trafficType_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.promoted.proto.common.ClientInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.common.ClientInfo 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.common.ClientInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.common.ClientInfo 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.common.ClientInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.common.ClientInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.promoted.proto.common.ClientInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.promoted.proto.common.ClientInfo 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.common.ClientInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.promoted.proto.common.ClientInfo 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.common.ClientInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.promoted.proto.common.ClientInfo 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.common.ClientInfo 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 common.ClientInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.ClientInfo)
ai.promoted.proto.common.ClientInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.promoted.proto.common.CommonProto.internal_static_common_ClientInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.promoted.proto.common.CommonProto.internal_static_common_ClientInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.promoted.proto.common.ClientInfo.class, ai.promoted.proto.common.ClientInfo.Builder.class);
}
// Construct using ai.promoted.proto.common.ClientInfo.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();
clientType_ = 0;
trafficType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.promoted.proto.common.CommonProto.internal_static_common_ClientInfo_descriptor;
}
@java.lang.Override
public ai.promoted.proto.common.ClientInfo getDefaultInstanceForType() {
return ai.promoted.proto.common.ClientInfo.getDefaultInstance();
}
@java.lang.Override
public ai.promoted.proto.common.ClientInfo build() {
ai.promoted.proto.common.ClientInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.promoted.proto.common.ClientInfo buildPartial() {
ai.promoted.proto.common.ClientInfo result = new ai.promoted.proto.common.ClientInfo(this);
result.clientType_ = clientType_;
result.trafficType_ = trafficType_;
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.common.ClientInfo) {
return mergeFrom((ai.promoted.proto.common.ClientInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.promoted.proto.common.ClientInfo other) {
if (other == ai.promoted.proto.common.ClientInfo.getDefaultInstance()) return this;
if (other.clientType_ != 0) {
setClientTypeValue(other.getClientTypeValue());
}
if (other.trafficType_ != 0) {
setTrafficTypeValue(other.getTrafficTypeValue());
}
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.common.ClientInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.promoted.proto.common.ClientInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int clientType_ = 0;
/**
* .common.ClientInfo.ClientType client_type = 1 [json_name = "clientType"];
* @return The enum numeric value on the wire for clientType.
*/
@java.lang.Override public int getClientTypeValue() {
return clientType_;
}
/**
* .common.ClientInfo.ClientType client_type = 1 [json_name = "clientType"];
* @param value The enum numeric value on the wire for clientType to set.
* @return This builder for chaining.
*/
public Builder setClientTypeValue(int value) {
clientType_ = value;
onChanged();
return this;
}
/**
* .common.ClientInfo.ClientType client_type = 1 [json_name = "clientType"];
* @return The clientType.
*/
@java.lang.Override
public ai.promoted.proto.common.ClientInfo.ClientType getClientType() {
@SuppressWarnings("deprecation")
ai.promoted.proto.common.ClientInfo.ClientType result = ai.promoted.proto.common.ClientInfo.ClientType.valueOf(clientType_);
return result == null ? ai.promoted.proto.common.ClientInfo.ClientType.UNRECOGNIZED : result;
}
/**
* .common.ClientInfo.ClientType client_type = 1 [json_name = "clientType"];
* @param value The clientType to set.
* @return This builder for chaining.
*/
public Builder setClientType(ai.promoted.proto.common.ClientInfo.ClientType value) {
if (value == null) {
throw new NullPointerException();
}
clientType_ = value.getNumber();
onChanged();
return this;
}
/**
* .common.ClientInfo.ClientType client_type = 1 [json_name = "clientType"];
* @return This builder for chaining.
*/
public Builder clearClientType() {
clientType_ = 0;
onChanged();
return this;
}
private int trafficType_ = 0;
/**
* .common.ClientInfo.TrafficType traffic_type = 2 [json_name = "trafficType"];
* @return The enum numeric value on the wire for trafficType.
*/
@java.lang.Override public int getTrafficTypeValue() {
return trafficType_;
}
/**
* .common.ClientInfo.TrafficType traffic_type = 2 [json_name = "trafficType"];
* @param value The enum numeric value on the wire for trafficType to set.
* @return This builder for chaining.
*/
public Builder setTrafficTypeValue(int value) {
trafficType_ = value;
onChanged();
return this;
}
/**
* .common.ClientInfo.TrafficType traffic_type = 2 [json_name = "trafficType"];
* @return The trafficType.
*/
@java.lang.Override
public ai.promoted.proto.common.ClientInfo.TrafficType getTrafficType() {
@SuppressWarnings("deprecation")
ai.promoted.proto.common.ClientInfo.TrafficType result = ai.promoted.proto.common.ClientInfo.TrafficType.valueOf(trafficType_);
return result == null ? ai.promoted.proto.common.ClientInfo.TrafficType.UNRECOGNIZED : result;
}
/**
* .common.ClientInfo.TrafficType traffic_type = 2 [json_name = "trafficType"];
* @param value The trafficType to set.
* @return This builder for chaining.
*/
public Builder setTrafficType(ai.promoted.proto.common.ClientInfo.TrafficType value) {
if (value == null) {
throw new NullPointerException();
}
trafficType_ = value.getNumber();
onChanged();
return this;
}
/**
* .common.ClientInfo.TrafficType traffic_type = 2 [json_name = "trafficType"];
* @return This builder for chaining.
*/
public Builder clearTrafficType() {
trafficType_ = 0;
onChanged();
return this;
}
@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:common.ClientInfo)
}
// @@protoc_insertion_point(class_scope:common.ClientInfo)
private static final ai.promoted.proto.common.ClientInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.promoted.proto.common.ClientInfo();
}
public static ai.promoted.proto.common.ClientInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClientInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClientInfo(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.common.ClientInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy