
com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/adgear/anoa/test/ad_exchange/ad_exchange_protobuf.proto
package com.adgear.anoa.test.ad_exchange;
public final class AdExchangeProtobuf {
private AdExchangeProtobuf() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf enum {@code com.adgear.anoa.test.ad_exchange.LogEventType}
*/
public enum LogEventType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN_LOG_EVENT_TYPE = 0;
*/
UNKNOWN_LOG_EVENT_TYPE(0, 0),
/**
* REQUEST = 1;
*/
REQUEST(1, 1),
/**
* RESPONSE = 2;
*/
RESPONSE(2, 2),
/**
* ERROR = 3;
*/
ERROR(3, 3),
;
/**
* UNKNOWN_LOG_EVENT_TYPE = 0;
*/
public static final int UNKNOWN_LOG_EVENT_TYPE_VALUE = 0;
/**
* REQUEST = 1;
*/
public static final int REQUEST_VALUE = 1;
/**
* RESPONSE = 2;
*/
public static final int RESPONSE_VALUE = 2;
/**
* ERROR = 3;
*/
public static final int ERROR_VALUE = 3;
public final int getNumber() {
return value;
}
public static LogEventType valueOf(int value) {
switch (value) {
case 0: return UNKNOWN_LOG_EVENT_TYPE;
case 1: return REQUEST;
case 2: return RESPONSE;
case 3: return ERROR;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
LogEventType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public LogEventType findValueByNumber(int number) {
return LogEventType.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.getDescriptor().getEnumTypes().get(0);
}
private static final LogEventType[] VALUES = values();
public static LogEventType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private LogEventType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.adgear.anoa.test.ad_exchange.LogEventType)
}
public interface LogEventOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.adgear.anoa.test.ad_exchange.LogEvent)
com.google.protobuf.MessageOrBuilder {
/**
* optional bytes uuid = 1 [default = "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"];
*
*
** Log event unique identifier.
*
*/
boolean hasUuid();
/**
* optional bytes uuid = 1 [default = "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"];
*
*
** Log event unique identifier.
*
*/
com.google.protobuf.ByteString getUuid();
/**
* optional uint64 timestamp = 2;
*
*
** Log event timestamp, in milliseconds from epoch.
*
*/
boolean hasTimestamp();
/**
* optional uint64 timestamp = 2;
*
*
** Log event timestamp, in milliseconds from epoch.
*
*/
long getTimestamp();
/**
* optional .com.adgear.anoa.test.ad_exchange.LogEventType type = 3;
*
*
** Log event type.
*
*/
boolean hasType();
/**
* optional .com.adgear.anoa.test.ad_exchange.LogEventType type = 3;
*
*
** Log event type.
*
*/
com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEventType getType();
/**
* optional .open_rtb.BidRequest request = 4;
*/
boolean hasRequest();
/**
* optional .open_rtb.BidRequest request = 4;
*/
open_rtb.OpenRtbProtobuf.BidRequest getRequest();
/**
* optional .open_rtb.BidRequest request = 4;
*/
open_rtb.OpenRtbProtobuf.BidRequestOrBuilder getRequestOrBuilder();
/**
* optional .open_rtb.BidResponse response = 5;
*
*
** Bid response submitted to the real-time bidding ad exchange.
*
*/
boolean hasResponse();
/**
* optional .open_rtb.BidResponse response = 5;
*
*
** Bid response submitted to the real-time bidding ad exchange.
*
*/
open_rtb.OpenRtbProtobuf.BidResponse getResponse();
/**
* optional .open_rtb.BidResponse response = 5;
*
*
** Bid response submitted to the real-time bidding ad exchange.
*
*/
open_rtb.OpenRtbProtobuf.BidResponseOrBuilder getResponseOrBuilder();
/**
* map<string, string> properties = 6;
*
*
** Log event custom properties.
*
*/
java.util.Map
getProperties();
}
/**
* Protobuf type {@code com.adgear.anoa.test.ad_exchange.LogEvent}
*
*
** Log event for real-time bidding ad exchange client.
*
*/
public static final class LogEvent extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.adgear.anoa.test.ad_exchange.LogEvent)
LogEventOrBuilder {
// Use LogEvent.newBuilder() to construct.
private LogEvent(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private LogEvent() {
uuid_ = com.google.protobuf.Internal.bytesDefaultValue("\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000");
timestamp_ = 0L;
type_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LogEvent(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
uuid_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
timestamp_ = input.readUInt64();
break;
}
case 24: {
int rawValue = input.readEnum();
com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEventType value = com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEventType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
type_ = rawValue;
}
break;
}
case 34: {
open_rtb.OpenRtbProtobuf.BidRequest.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = request_.toBuilder();
}
request_ = input.readMessage(open_rtb.OpenRtbProtobuf.BidRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(request_);
request_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
open_rtb.OpenRtbProtobuf.BidResponse.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = response_.toBuilder();
}
response_ = input.readMessage(open_rtb.OpenRtbProtobuf.BidResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(response_);
response_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
properties_ = com.google.protobuf.MapField.newMapField(
PropertiesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000020;
}
com.google.protobuf.MapEntry
properties = input.readMessage(
PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
properties_.getMutableMap().put(properties.getKey(), properties.getValue());
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent.class, com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent.Builder.class);
}
private int bitField0_;
public static final int UUID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString uuid_;
/**
* optional bytes uuid = 1 [default = "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"];
*
*
** Log event unique identifier.
*
*/
public boolean hasUuid() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional bytes uuid = 1 [default = "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"];
*
*
** Log event unique identifier.
*
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 2;
private long timestamp_;
/**
* optional uint64 timestamp = 2;
*
*
** Log event timestamp, in milliseconds from epoch.
*
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 timestamp = 2;
*
*
** Log event timestamp, in milliseconds from epoch.
*
*/
public long getTimestamp() {
return timestamp_;
}
public static final int TYPE_FIELD_NUMBER = 3;
private int type_;
/**
* optional .com.adgear.anoa.test.ad_exchange.LogEventType type = 3;
*
*
** Log event type.
*
*/
public boolean hasType() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .com.adgear.anoa.test.ad_exchange.LogEventType type = 3;
*
*
** Log event type.
*
*/
public com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEventType getType() {
com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEventType result = com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEventType.valueOf(type_);
return result == null ? com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEventType.UNKNOWN_LOG_EVENT_TYPE : result;
}
public static final int REQUEST_FIELD_NUMBER = 4;
private open_rtb.OpenRtbProtobuf.BidRequest request_;
/**
* optional .open_rtb.BidRequest request = 4;
*/
public boolean hasRequest() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .open_rtb.BidRequest request = 4;
*/
public open_rtb.OpenRtbProtobuf.BidRequest getRequest() {
return request_ == null ? open_rtb.OpenRtbProtobuf.BidRequest.getDefaultInstance() : request_;
}
/**
* optional .open_rtb.BidRequest request = 4;
*/
public open_rtb.OpenRtbProtobuf.BidRequestOrBuilder getRequestOrBuilder() {
return request_ == null ? open_rtb.OpenRtbProtobuf.BidRequest.getDefaultInstance() : request_;
}
public static final int RESPONSE_FIELD_NUMBER = 5;
private open_rtb.OpenRtbProtobuf.BidResponse response_;
/**
* optional .open_rtb.BidResponse response = 5;
*
*
** Bid response submitted to the real-time bidding ad exchange.
*
*/
public boolean hasResponse() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .open_rtb.BidResponse response = 5;
*
*
** Bid response submitted to the real-time bidding ad exchange.
*
*/
public open_rtb.OpenRtbProtobuf.BidResponse getResponse() {
return response_ == null ? open_rtb.OpenRtbProtobuf.BidResponse.getDefaultInstance() : response_;
}
/**
* optional .open_rtb.BidResponse response = 5;
*
*
** Bid response submitted to the real-time bidding ad exchange.
*
*/
public open_rtb.OpenRtbProtobuf.BidResponseOrBuilder getResponseOrBuilder() {
return response_ == null ? open_rtb.OpenRtbProtobuf.BidResponse.getDefaultInstance() : response_;
}
public static final int PROPERTIES_FIELD_NUMBER = 6;
private static final class PropertiesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_PropertiesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> properties_;
private com.google.protobuf.MapField
internalGetProperties() {
if (properties_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PropertiesDefaultEntryHolder.defaultEntry);
}
return properties_;
}
/**
* map<string, string> properties = 6;
*
*
** Log event custom properties.
*
*/
public java.util.Map getProperties() {
return internalGetProperties().getMap();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, uuid_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(2, timestamp_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeEnum(3, type_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, getRequest());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, getResponse());
}
for (java.util.Map.Entry entry
: internalGetProperties().getMap().entrySet()) {
com.google.protobuf.MapEntry
properties = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
output.writeMessage(6, properties);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, uuid_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, timestamp_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, type_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getRequest());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getResponse());
}
for (java.util.Map.Entry entry
: internalGetProperties().getMap().entrySet()) {
com.google.protobuf.MapEntry
properties = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, properties);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.adgear.anoa.test.ad_exchange.LogEvent}
*
*
** Log event for real-time bidding ad exchange client.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:com.adgear.anoa.test.ad_exchange.LogEvent)
com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 6:
return internalGetMutableProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent.class, com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent.Builder.class);
}
// Construct using com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getRequestFieldBuilder();
getResponseFieldBuilder();
}
}
public Builder clear() {
super.clear();
uuid_ = com.google.protobuf.Internal.bytesDefaultValue("\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000");
bitField0_ = (bitField0_ & ~0x00000001);
timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
if (requestBuilder_ == null) {
request_ = null;
} else {
requestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (responseBuilder_ == null) {
response_ = null;
} else {
responseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
internalGetMutableProperties().clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_descriptor;
}
public com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent getDefaultInstanceForType() {
return com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent.getDefaultInstance();
}
public com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent build() {
com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent buildPartial() {
com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent result = new com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.uuid_ = uuid_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.timestamp_ = timestamp_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (requestBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = requestBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (responseBuilder_ == null) {
result.response_ = response_;
} else {
result.response_ = responseBuilder_.build();
}
result.properties_ = internalGetProperties();
result.properties_.makeImmutable();
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent) {
return mergeFrom((com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent other) {
if (other == com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent.getDefaultInstance()) return this;
if (other.hasUuid()) {
setUuid(other.getUuid());
}
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasRequest()) {
mergeRequest(other.getRequest());
}
if (other.hasResponse()) {
mergeResponse(other.getResponse());
}
internalGetMutableProperties().mergeFrom(
other.internalGetProperties());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString uuid_ = com.google.protobuf.Internal.bytesDefaultValue("\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000");
/**
* optional bytes uuid = 1 [default = "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"];
*
*
** Log event unique identifier.
*
*/
public boolean hasUuid() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional bytes uuid = 1 [default = "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"];
*
*
** Log event unique identifier.
*
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
/**
* optional bytes uuid = 1 [default = "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"];
*
*
** Log event unique identifier.
*
*/
public Builder setUuid(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
uuid_ = value;
onChanged();
return this;
}
/**
* optional bytes uuid = 1 [default = "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"];
*
*
** Log event unique identifier.
*
*/
public Builder clearUuid() {
bitField0_ = (bitField0_ & ~0x00000001);
uuid_ = getDefaultInstance().getUuid();
onChanged();
return this;
}
private long timestamp_ ;
/**
* optional uint64 timestamp = 2;
*
*
** Log event timestamp, in milliseconds from epoch.
*
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 timestamp = 2;
*
*
** Log event timestamp, in milliseconds from epoch.
*
*/
public long getTimestamp() {
return timestamp_;
}
/**
* optional uint64 timestamp = 2;
*
*
** Log event timestamp, in milliseconds from epoch.
*
*/
public Builder setTimestamp(long value) {
bitField0_ |= 0x00000002;
timestamp_ = value;
onChanged();
return this;
}
/**
* optional uint64 timestamp = 2;
*
*
** Log event timestamp, in milliseconds from epoch.
*
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000002);
timestamp_ = 0L;
onChanged();
return this;
}
private int type_ = 0;
/**
* optional .com.adgear.anoa.test.ad_exchange.LogEventType type = 3;
*
*
** Log event type.
*
*/
public boolean hasType() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .com.adgear.anoa.test.ad_exchange.LogEventType type = 3;
*
*
** Log event type.
*
*/
public com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEventType getType() {
com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEventType result = com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEventType.valueOf(type_);
return result == null ? com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEventType.UNKNOWN_LOG_EVENT_TYPE : result;
}
/**
* optional .com.adgear.anoa.test.ad_exchange.LogEventType type = 3;
*
*
** Log event type.
*
*/
public Builder setType(com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEventType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .com.adgear.anoa.test.ad_exchange.LogEventType type = 3;
*
*
** Log event type.
*
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000004);
type_ = 0;
onChanged();
return this;
}
private open_rtb.OpenRtbProtobuf.BidRequest request_ = null;
private com.google.protobuf.SingleFieldBuilder<
open_rtb.OpenRtbProtobuf.BidRequest, open_rtb.OpenRtbProtobuf.BidRequest.Builder, open_rtb.OpenRtbProtobuf.BidRequestOrBuilder> requestBuilder_;
/**
* optional .open_rtb.BidRequest request = 4;
*/
public boolean hasRequest() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .open_rtb.BidRequest request = 4;
*/
public open_rtb.OpenRtbProtobuf.BidRequest getRequest() {
if (requestBuilder_ == null) {
return request_ == null ? open_rtb.OpenRtbProtobuf.BidRequest.getDefaultInstance() : request_;
} else {
return requestBuilder_.getMessage();
}
}
/**
* optional .open_rtb.BidRequest request = 4;
*/
public Builder setRequest(open_rtb.OpenRtbProtobuf.BidRequest value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
requestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .open_rtb.BidRequest request = 4;
*/
public Builder setRequest(
open_rtb.OpenRtbProtobuf.BidRequest.Builder builderForValue) {
if (requestBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
requestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .open_rtb.BidRequest request = 4;
*/
public Builder mergeRequest(open_rtb.OpenRtbProtobuf.BidRequest value) {
if (requestBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
request_ != null &&
request_ != open_rtb.OpenRtbProtobuf.BidRequest.getDefaultInstance()) {
request_ =
open_rtb.OpenRtbProtobuf.BidRequest.newBuilder(request_).mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
requestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .open_rtb.BidRequest request = 4;
*/
public Builder clearRequest() {
if (requestBuilder_ == null) {
request_ = null;
onChanged();
} else {
requestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .open_rtb.BidRequest request = 4;
*/
public open_rtb.OpenRtbProtobuf.BidRequest.Builder getRequestBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
* optional .open_rtb.BidRequest request = 4;
*/
public open_rtb.OpenRtbProtobuf.BidRequestOrBuilder getRequestOrBuilder() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilder();
} else {
return request_ == null ?
open_rtb.OpenRtbProtobuf.BidRequest.getDefaultInstance() : request_;
}
}
/**
* optional .open_rtb.BidRequest request = 4;
*/
private com.google.protobuf.SingleFieldBuilder<
open_rtb.OpenRtbProtobuf.BidRequest, open_rtb.OpenRtbProtobuf.BidRequest.Builder, open_rtb.OpenRtbProtobuf.BidRequestOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
open_rtb.OpenRtbProtobuf.BidRequest, open_rtb.OpenRtbProtobuf.BidRequest.Builder, open_rtb.OpenRtbProtobuf.BidRequestOrBuilder>(
getRequest(),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
private open_rtb.OpenRtbProtobuf.BidResponse response_ = null;
private com.google.protobuf.SingleFieldBuilder<
open_rtb.OpenRtbProtobuf.BidResponse, open_rtb.OpenRtbProtobuf.BidResponse.Builder, open_rtb.OpenRtbProtobuf.BidResponseOrBuilder> responseBuilder_;
/**
* optional .open_rtb.BidResponse response = 5;
*
*
** Bid response submitted to the real-time bidding ad exchange.
*
*/
public boolean hasResponse() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .open_rtb.BidResponse response = 5;
*
*
** Bid response submitted to the real-time bidding ad exchange.
*
*/
public open_rtb.OpenRtbProtobuf.BidResponse getResponse() {
if (responseBuilder_ == null) {
return response_ == null ? open_rtb.OpenRtbProtobuf.BidResponse.getDefaultInstance() : response_;
} else {
return responseBuilder_.getMessage();
}
}
/**
* optional .open_rtb.BidResponse response = 5;
*
*
** Bid response submitted to the real-time bidding ad exchange.
*
*/
public Builder setResponse(open_rtb.OpenRtbProtobuf.BidResponse value) {
if (responseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
response_ = value;
onChanged();
} else {
responseBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .open_rtb.BidResponse response = 5;
*
*
** Bid response submitted to the real-time bidding ad exchange.
*
*/
public Builder setResponse(
open_rtb.OpenRtbProtobuf.BidResponse.Builder builderForValue) {
if (responseBuilder_ == null) {
response_ = builderForValue.build();
onChanged();
} else {
responseBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .open_rtb.BidResponse response = 5;
*
*
** Bid response submitted to the real-time bidding ad exchange.
*
*/
public Builder mergeResponse(open_rtb.OpenRtbProtobuf.BidResponse value) {
if (responseBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
response_ != null &&
response_ != open_rtb.OpenRtbProtobuf.BidResponse.getDefaultInstance()) {
response_ =
open_rtb.OpenRtbProtobuf.BidResponse.newBuilder(response_).mergeFrom(value).buildPartial();
} else {
response_ = value;
}
onChanged();
} else {
responseBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .open_rtb.BidResponse response = 5;
*
*
** Bid response submitted to the real-time bidding ad exchange.
*
*/
public Builder clearResponse() {
if (responseBuilder_ == null) {
response_ = null;
onChanged();
} else {
responseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .open_rtb.BidResponse response = 5;
*
*
** Bid response submitted to the real-time bidding ad exchange.
*
*/
public open_rtb.OpenRtbProtobuf.BidResponse.Builder getResponseBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getResponseFieldBuilder().getBuilder();
}
/**
* optional .open_rtb.BidResponse response = 5;
*
*
** Bid response submitted to the real-time bidding ad exchange.
*
*/
public open_rtb.OpenRtbProtobuf.BidResponseOrBuilder getResponseOrBuilder() {
if (responseBuilder_ != null) {
return responseBuilder_.getMessageOrBuilder();
} else {
return response_ == null ?
open_rtb.OpenRtbProtobuf.BidResponse.getDefaultInstance() : response_;
}
}
/**
* optional .open_rtb.BidResponse response = 5;
*
*
** Bid response submitted to the real-time bidding ad exchange.
*
*/
private com.google.protobuf.SingleFieldBuilder<
open_rtb.OpenRtbProtobuf.BidResponse, open_rtb.OpenRtbProtobuf.BidResponse.Builder, open_rtb.OpenRtbProtobuf.BidResponseOrBuilder>
getResponseFieldBuilder() {
if (responseBuilder_ == null) {
responseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
open_rtb.OpenRtbProtobuf.BidResponse, open_rtb.OpenRtbProtobuf.BidResponse.Builder, open_rtb.OpenRtbProtobuf.BidResponseOrBuilder>(
getResponse(),
getParentForChildren(),
isClean());
response_ = null;
}
return responseBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> properties_;
private com.google.protobuf.MapField
internalGetProperties() {
if (properties_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PropertiesDefaultEntryHolder.defaultEntry);
}
return properties_;
}
private com.google.protobuf.MapField
internalGetMutableProperties() {
onChanged();;
if (properties_ == null) {
properties_ = com.google.protobuf.MapField.newMapField(
PropertiesDefaultEntryHolder.defaultEntry);
}
if (!properties_.isMutable()) {
properties_ = properties_.copy();
}
return properties_;
}
/**
* map<string, string> properties = 6;
*
*
** Log event custom properties.
*
*/
public java.util.Map getProperties() {
return internalGetProperties().getMap();
}
/**
* map<string, string> properties = 6;
*
*
** Log event custom properties.
*
*/
public java.util.Map
getMutableProperties() {
return internalGetMutableProperties().getMutableMap();
}
/**
* map<string, string> properties = 6;
*
*
** Log event custom properties.
*
*/
public Builder putAllProperties(
java.util.Map values) {
getMutableProperties().putAll(values);
return this;
}
// @@protoc_insertion_point(builder_scope:com.adgear.anoa.test.ad_exchange.LogEvent)
}
// @@protoc_insertion_point(class_scope:com.adgear.anoa.test.ad_exchange.LogEvent)
private static final com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent();
}
public static com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public LogEvent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
try {
return new LogEvent(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
com.google.protobuf.InvalidProtocolBufferException) {
throw (com.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.adgear.anoa.test.ad_exchange.AdExchangeProtobuf.LogEvent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_PropertiesEntry_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_PropertiesEntry_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n;com/adgear/anoa/test/ad_exchange/ad_ex" +
"change_protobuf.proto\022 com.adgear.anoa.t" +
"est.ad_exchange\032 open_rtb/open_rtb_proto" +
"buf.proto\"\376\002\n\010LogEvent\022N\n\004uuid\030\001 \001(\014:@\\0" +
"00\\000\\000\\000\\000\\000\\000\\000\\000\\000\\0" +
"00\\000\\000\\000\\000\\000\022\021\n\ttimestamp\030\002 \001(" +
"\004\022<\n\004type\030\003 \001(\0162..com.adgear.anoa.test.a" +
"d_exchange.LogEventType\022%\n\007request\030\004 \001(\013" +
"2\024.open_rtb.BidRequest\022\'\n\010response\030\005 \001(\013" +
"2\025.open_rtb.BidResponse\022N\n\nproperties\030\006 ",
"\003(\0132:.com.adgear.anoa.test.ad_exchange.L" +
"ogEvent.PropertiesEntry\0321\n\017PropertiesEnt" +
"ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001*P\n\014Lo" +
"gEventType\022\032\n\026UNKNOWN_LOG_EVENT_TYPE\020\000\022\013" +
"\n\007REQUEST\020\001\022\014\n\010RESPONSE\020\002\022\t\n\005ERROR\020\003"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
open_rtb.OpenRtbProtobuf.getDescriptor(),
}, assigner);
internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_descriptor,
new java.lang.String[] { "Uuid", "Timestamp", "Type", "Request", "Response", "Properties", });
internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_PropertiesEntry_descriptor =
internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_descriptor.getNestedTypes().get(0);
internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_PropertiesEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_adgear_anoa_test_ad_exchange_LogEvent_PropertiesEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
open_rtb.OpenRtbProtobuf.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy