ai.promoted.proto.common.EntityPath 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.EntityPath}
*/
public final class EntityPath extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:common.EntityPath)
EntityPathOrBuilder {
private static final long serialVersionUID = 0L;
// Use EntityPath.newBuilder() to construct.
private EntityPath(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EntityPath() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EntityPath();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EntityPath(
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 16: {
customerId_ = input.readUInt64();
break;
}
case 24: {
contentId_ = input.readUInt64();
break;
}
case 32: {
accountId_ = input.readUInt64();
break;
}
case 40: {
campaignId_ = input.readUInt64();
break;
}
case 48: {
promotionId_ = input.readUInt64();
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_EntityPath_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.promoted.proto.common.CommonProto.internal_static_common_EntityPath_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.promoted.proto.common.EntityPath.class, ai.promoted.proto.common.EntityPath.Builder.class);
}
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 CUSTOMER_ID_FIELD_NUMBER = 2;
private long customerId_;
/**
* uint64 customer_id = 2 [json_name = "customerId"];
* @return The customerId.
*/
@java.lang.Override
public long getCustomerId() {
return customerId_;
}
public static final int ACCOUNT_ID_FIELD_NUMBER = 4;
private long accountId_;
/**
* uint64 account_id = 4 [json_name = "accountId"];
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
public static final int CAMPAIGN_ID_FIELD_NUMBER = 5;
private long campaignId_;
/**
* uint64 campaign_id = 5 [json_name = "campaignId"];
* @return The campaignId.
*/
@java.lang.Override
public long getCampaignId() {
return campaignId_;
}
public static final int PROMOTION_ID_FIELD_NUMBER = 6;
private long promotionId_;
/**
* uint64 promotion_id = 6 [json_name = "promotionId"];
* @return The promotionId.
*/
@java.lang.Override
public long getPromotionId() {
return promotionId_;
}
public static final int CONTENT_ID_FIELD_NUMBER = 3;
private long contentId_;
/**
* uint64 content_id = 3 [json_name = "contentId"];
* @return The contentId.
*/
@java.lang.Override
public long getContentId() {
return contentId_;
}
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 (customerId_ != 0L) {
output.writeUInt64(2, customerId_);
}
if (contentId_ != 0L) {
output.writeUInt64(3, contentId_);
}
if (accountId_ != 0L) {
output.writeUInt64(4, accountId_);
}
if (campaignId_ != 0L) {
output.writeUInt64(5, campaignId_);
}
if (promotionId_ != 0L) {
output.writeUInt64(6, promotionId_);
}
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 (customerId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, customerId_);
}
if (contentId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, contentId_);
}
if (accountId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, accountId_);
}
if (campaignId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, campaignId_);
}
if (promotionId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, promotionId_);
}
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.EntityPath)) {
return super.equals(obj);
}
ai.promoted.proto.common.EntityPath other = (ai.promoted.proto.common.EntityPath) obj;
if (getPlatformId()
!= other.getPlatformId()) return false;
if (getCustomerId()
!= other.getCustomerId()) return false;
if (getAccountId()
!= other.getAccountId()) return false;
if (getCampaignId()
!= other.getCampaignId()) return false;
if (getPromotionId()
!= other.getPromotionId()) return false;
if (getContentId()
!= other.getContentId()) 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) + PLATFORM_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPlatformId());
hash = (37 * hash) + CUSTOMER_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCustomerId());
hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAccountId());
hash = (37 * hash) + CAMPAIGN_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCampaignId());
hash = (37 * hash) + PROMOTION_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPromotionId());
hash = (37 * hash) + CONTENT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getContentId());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.promoted.proto.common.EntityPath parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.common.EntityPath 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.EntityPath parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.common.EntityPath 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.EntityPath parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.common.EntityPath parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.promoted.proto.common.EntityPath parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.promoted.proto.common.EntityPath 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.EntityPath parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.promoted.proto.common.EntityPath 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.EntityPath parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.promoted.proto.common.EntityPath 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.EntityPath 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.EntityPath}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:common.EntityPath)
ai.promoted.proto.common.EntityPathOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.promoted.proto.common.CommonProto.internal_static_common_EntityPath_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.promoted.proto.common.CommonProto.internal_static_common_EntityPath_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.promoted.proto.common.EntityPath.class, ai.promoted.proto.common.EntityPath.Builder.class);
}
// Construct using ai.promoted.proto.common.EntityPath.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;
customerId_ = 0L;
accountId_ = 0L;
campaignId_ = 0L;
promotionId_ = 0L;
contentId_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.promoted.proto.common.CommonProto.internal_static_common_EntityPath_descriptor;
}
@java.lang.Override
public ai.promoted.proto.common.EntityPath getDefaultInstanceForType() {
return ai.promoted.proto.common.EntityPath.getDefaultInstance();
}
@java.lang.Override
public ai.promoted.proto.common.EntityPath build() {
ai.promoted.proto.common.EntityPath result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.promoted.proto.common.EntityPath buildPartial() {
ai.promoted.proto.common.EntityPath result = new ai.promoted.proto.common.EntityPath(this);
result.platformId_ = platformId_;
result.customerId_ = customerId_;
result.accountId_ = accountId_;
result.campaignId_ = campaignId_;
result.promotionId_ = promotionId_;
result.contentId_ = contentId_;
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.EntityPath) {
return mergeFrom((ai.promoted.proto.common.EntityPath)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.promoted.proto.common.EntityPath other) {
if (other == ai.promoted.proto.common.EntityPath.getDefaultInstance()) return this;
if (other.getPlatformId() != 0L) {
setPlatformId(other.getPlatformId());
}
if (other.getCustomerId() != 0L) {
setCustomerId(other.getCustomerId());
}
if (other.getAccountId() != 0L) {
setAccountId(other.getAccountId());
}
if (other.getCampaignId() != 0L) {
setCampaignId(other.getCampaignId());
}
if (other.getPromotionId() != 0L) {
setPromotionId(other.getPromotionId());
}
if (other.getContentId() != 0L) {
setContentId(other.getContentId());
}
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.EntityPath parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.promoted.proto.common.EntityPath) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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 long customerId_ ;
/**
* uint64 customer_id = 2 [json_name = "customerId"];
* @return The customerId.
*/
@java.lang.Override
public long getCustomerId() {
return customerId_;
}
/**
* uint64 customer_id = 2 [json_name = "customerId"];
* @param value The customerId to set.
* @return This builder for chaining.
*/
public Builder setCustomerId(long value) {
customerId_ = value;
onChanged();
return this;
}
/**
* uint64 customer_id = 2 [json_name = "customerId"];
* @return This builder for chaining.
*/
public Builder clearCustomerId() {
customerId_ = 0L;
onChanged();
return this;
}
private long accountId_ ;
/**
* uint64 account_id = 4 [json_name = "accountId"];
* @return The accountId.
*/
@java.lang.Override
public long getAccountId() {
return accountId_;
}
/**
* uint64 account_id = 4 [json_name = "accountId"];
* @param value The accountId to set.
* @return This builder for chaining.
*/
public Builder setAccountId(long value) {
accountId_ = value;
onChanged();
return this;
}
/**
* uint64 account_id = 4 [json_name = "accountId"];
* @return This builder for chaining.
*/
public Builder clearAccountId() {
accountId_ = 0L;
onChanged();
return this;
}
private long campaignId_ ;
/**
* uint64 campaign_id = 5 [json_name = "campaignId"];
* @return The campaignId.
*/
@java.lang.Override
public long getCampaignId() {
return campaignId_;
}
/**
* uint64 campaign_id = 5 [json_name = "campaignId"];
* @param value The campaignId to set.
* @return This builder for chaining.
*/
public Builder setCampaignId(long value) {
campaignId_ = value;
onChanged();
return this;
}
/**
* uint64 campaign_id = 5 [json_name = "campaignId"];
* @return This builder for chaining.
*/
public Builder clearCampaignId() {
campaignId_ = 0L;
onChanged();
return this;
}
private long promotionId_ ;
/**
* uint64 promotion_id = 6 [json_name = "promotionId"];
* @return The promotionId.
*/
@java.lang.Override
public long getPromotionId() {
return promotionId_;
}
/**
* uint64 promotion_id = 6 [json_name = "promotionId"];
* @param value The promotionId to set.
* @return This builder for chaining.
*/
public Builder setPromotionId(long value) {
promotionId_ = value;
onChanged();
return this;
}
/**
* uint64 promotion_id = 6 [json_name = "promotionId"];
* @return This builder for chaining.
*/
public Builder clearPromotionId() {
promotionId_ = 0L;
onChanged();
return this;
}
private long contentId_ ;
/**
* uint64 content_id = 3 [json_name = "contentId"];
* @return The contentId.
*/
@java.lang.Override
public long getContentId() {
return contentId_;
}
/**
* uint64 content_id = 3 [json_name = "contentId"];
* @param value The contentId to set.
* @return This builder for chaining.
*/
public Builder setContentId(long value) {
contentId_ = value;
onChanged();
return this;
}
/**
* uint64 content_id = 3 [json_name = "contentId"];
* @return This builder for chaining.
*/
public Builder clearContentId() {
contentId_ = 0L;
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.EntityPath)
}
// @@protoc_insertion_point(class_scope:common.EntityPath)
private static final ai.promoted.proto.common.EntityPath DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.promoted.proto.common.EntityPath();
}
public static ai.promoted.proto.common.EntityPath getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EntityPath parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EntityPath(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.EntityPath getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy