io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java RPCAPI client for the Bloombox Cloud.
The newest version!
/*
* Copyright 2019, Momentum Ideas, Co. All rights reserved.
*
* Source and object computer code contained herein is the private intellectual
* property of Momentum Ideas Co., a Delaware Corporation. Use of this
* code in source form requires permission in writing before use or the
* assembly, distribution, or publishing of derivative works, for commercial
* purposes or any other purpose, from a duly authorized officer of Momentum
* Ideas Co.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: telemetry/v1beta4/TelemetryService_Beta4.proto
package io.bloombox.schema.services.telemetry.v1beta4;
/**
*
* Specifies an event related to commercial services. This includes product events, section events, and order events.
*
*
* Protobuf type {@code bloombox.services.telemetry.v1beta4.CommercialEvent}
*/
public final class CommercialEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.telemetry.v1beta4.CommercialEvent)
CommercialEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommercialEvent.newBuilder() to construct.
private CommercialEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommercialEvent() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommercialEvent(
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;
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 io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.class, io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Builder.class);
}
public interface ImpressionOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.services.telemetry.v1beta4.CommercialEvent.Impression)
com.google.protobuf.MessageOrBuilder {
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
boolean hasContext();
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
io.bloombox.schema.telemetry.AnalyticsContext.Context getContext();
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder getContextOrBuilder();
/**
*
* Impression event on a menu section.
*
*
* .bloombox.analytics.section.Impression section = 10;
*/
boolean hasSection();
/**
*
* Impression event on a menu section.
*
*
* .bloombox.analytics.section.Impression section = 10;
*/
io.bloombox.schema.analytics.section.SectionAnalytics.Impression getSection();
/**
*
* Impression event on a menu section.
*
*
* .bloombox.analytics.section.Impression section = 10;
*/
io.bloombox.schema.analytics.section.SectionAnalytics.ImpressionOrBuilder getSectionOrBuilder();
/**
*
* Impression event on a menu product.
*
*
* .bloombox.analytics.product.Impression product = 11;
*/
boolean hasProduct();
/**
*
* Impression event on a menu product.
*
*
* .bloombox.analytics.product.Impression product = 11;
*/
io.bloombox.schema.analytics.product.ProductAnalytics.Impression getProduct();
/**
*
* Impression event on a menu product.
*
*
* .bloombox.analytics.product.Impression product = 11;
*/
io.bloombox.schema.analytics.product.ProductAnalytics.ImpressionOrBuilder getProductOrBuilder();
/**
*
* Impression event for a commercial shop.
*
*
* .bloombox.analytics.shop.Impression shop = 12;
*/
boolean hasShop();
/**
*
* Impression event for a commercial shop.
*
*
* .bloombox.analytics.shop.Impression shop = 12;
*/
io.bloombox.schema.analytics.shop.ShopAnalytics.Impression getShop();
/**
*
* Impression event for a commercial shop.
*
*
* .bloombox.analytics.shop.Impression shop = 12;
*/
io.bloombox.schema.analytics.shop.ShopAnalytics.ImpressionOrBuilder getShopOrBuilder();
public io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression.EventCase getEventCase();
}
/**
*
* Specifies an impression-type event.
*
*
* Protobuf type {@code bloombox.services.telemetry.v1beta4.CommercialEvent.Impression}
*/
public static final class Impression extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.telemetry.v1beta4.CommercialEvent.Impression)
ImpressionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Impression.newBuilder() to construct.
private Impression(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Impression() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Impression(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder subBuilder = null;
if (context_ != null) {
subBuilder = context_.toBuilder();
}
context_ = input.readMessage(io.bloombox.schema.telemetry.AnalyticsContext.Context.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(context_);
context_ = subBuilder.buildPartial();
}
break;
}
case 82: {
io.bloombox.schema.analytics.section.SectionAnalytics.Impression.Builder subBuilder = null;
if (eventCase_ == 10) {
subBuilder = ((io.bloombox.schema.analytics.section.SectionAnalytics.Impression) event_).toBuilder();
}
event_ =
input.readMessage(io.bloombox.schema.analytics.section.SectionAnalytics.Impression.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.bloombox.schema.analytics.section.SectionAnalytics.Impression) event_);
event_ = subBuilder.buildPartial();
}
eventCase_ = 10;
break;
}
case 90: {
io.bloombox.schema.analytics.product.ProductAnalytics.Impression.Builder subBuilder = null;
if (eventCase_ == 11) {
subBuilder = ((io.bloombox.schema.analytics.product.ProductAnalytics.Impression) event_).toBuilder();
}
event_ =
input.readMessage(io.bloombox.schema.analytics.product.ProductAnalytics.Impression.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.bloombox.schema.analytics.product.ProductAnalytics.Impression) event_);
event_ = subBuilder.buildPartial();
}
eventCase_ = 11;
break;
}
case 98: {
io.bloombox.schema.analytics.shop.ShopAnalytics.Impression.Builder subBuilder = null;
if (eventCase_ == 12) {
subBuilder = ((io.bloombox.schema.analytics.shop.ShopAnalytics.Impression) event_).toBuilder();
}
event_ =
input.readMessage(io.bloombox.schema.analytics.shop.ShopAnalytics.Impression.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.bloombox.schema.analytics.shop.ShopAnalytics.Impression) event_);
event_ = subBuilder.buildPartial();
}
eventCase_ = 12;
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 io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_Impression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_Impression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression.class, io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression.Builder.class);
}
private int eventCase_ = 0;
private java.lang.Object event_;
public enum EventCase
implements com.google.protobuf.Internal.EnumLite {
SECTION(10),
PRODUCT(11),
SHOP(12),
EVENT_NOT_SET(0);
private final int value;
private EventCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EventCase valueOf(int value) {
return forNumber(value);
}
public static EventCase forNumber(int value) {
switch (value) {
case 10: return SECTION;
case 11: return PRODUCT;
case 12: return SHOP;
case 0: return EVENT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public EventCase
getEventCase() {
return EventCase.forNumber(
eventCase_);
}
public static final int CONTEXT_FIELD_NUMBER = 1;
private io.bloombox.schema.telemetry.AnalyticsContext.Context context_;
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public boolean hasContext() {
return context_ != null;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public io.bloombox.schema.telemetry.AnalyticsContext.Context getContext() {
return context_ == null ? io.bloombox.schema.telemetry.AnalyticsContext.Context.getDefaultInstance() : context_;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder getContextOrBuilder() {
return getContext();
}
public static final int SECTION_FIELD_NUMBER = 10;
/**
*
* Impression event on a menu section.
*
*
* .bloombox.analytics.section.Impression section = 10;
*/
public boolean hasSection() {
return eventCase_ == 10;
}
/**
*
* Impression event on a menu section.
*
*
* .bloombox.analytics.section.Impression section = 10;
*/
public io.bloombox.schema.analytics.section.SectionAnalytics.Impression getSection() {
if (eventCase_ == 10) {
return (io.bloombox.schema.analytics.section.SectionAnalytics.Impression) event_;
}
return io.bloombox.schema.analytics.section.SectionAnalytics.Impression.getDefaultInstance();
}
/**
*
* Impression event on a menu section.
*
*
* .bloombox.analytics.section.Impression section = 10;
*/
public io.bloombox.schema.analytics.section.SectionAnalytics.ImpressionOrBuilder getSectionOrBuilder() {
if (eventCase_ == 10) {
return (io.bloombox.schema.analytics.section.SectionAnalytics.Impression) event_;
}
return io.bloombox.schema.analytics.section.SectionAnalytics.Impression.getDefaultInstance();
}
public static final int PRODUCT_FIELD_NUMBER = 11;
/**
*
* Impression event on a menu product.
*
*
* .bloombox.analytics.product.Impression product = 11;
*/
public boolean hasProduct() {
return eventCase_ == 11;
}
/**
*
* Impression event on a menu product.
*
*
* .bloombox.analytics.product.Impression product = 11;
*/
public io.bloombox.schema.analytics.product.ProductAnalytics.Impression getProduct() {
if (eventCase_ == 11) {
return (io.bloombox.schema.analytics.product.ProductAnalytics.Impression) event_;
}
return io.bloombox.schema.analytics.product.ProductAnalytics.Impression.getDefaultInstance();
}
/**
*
* Impression event on a menu product.
*
*
* .bloombox.analytics.product.Impression product = 11;
*/
public io.bloombox.schema.analytics.product.ProductAnalytics.ImpressionOrBuilder getProductOrBuilder() {
if (eventCase_ == 11) {
return (io.bloombox.schema.analytics.product.ProductAnalytics.Impression) event_;
}
return io.bloombox.schema.analytics.product.ProductAnalytics.Impression.getDefaultInstance();
}
public static final int SHOP_FIELD_NUMBER = 12;
/**
*
* Impression event for a commercial shop.
*
*
* .bloombox.analytics.shop.Impression shop = 12;
*/
public boolean hasShop() {
return eventCase_ == 12;
}
/**
*
* Impression event for a commercial shop.
*
*
* .bloombox.analytics.shop.Impression shop = 12;
*/
public io.bloombox.schema.analytics.shop.ShopAnalytics.Impression getShop() {
if (eventCase_ == 12) {
return (io.bloombox.schema.analytics.shop.ShopAnalytics.Impression) event_;
}
return io.bloombox.schema.analytics.shop.ShopAnalytics.Impression.getDefaultInstance();
}
/**
*
* Impression event for a commercial shop.
*
*
* .bloombox.analytics.shop.Impression shop = 12;
*/
public io.bloombox.schema.analytics.shop.ShopAnalytics.ImpressionOrBuilder getShopOrBuilder() {
if (eventCase_ == 12) {
return (io.bloombox.schema.analytics.shop.ShopAnalytics.Impression) event_;
}
return io.bloombox.schema.analytics.shop.ShopAnalytics.Impression.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 (context_ != null) {
output.writeMessage(1, getContext());
}
if (eventCase_ == 10) {
output.writeMessage(10, (io.bloombox.schema.analytics.section.SectionAnalytics.Impression) event_);
}
if (eventCase_ == 11) {
output.writeMessage(11, (io.bloombox.schema.analytics.product.ProductAnalytics.Impression) event_);
}
if (eventCase_ == 12) {
output.writeMessage(12, (io.bloombox.schema.analytics.shop.ShopAnalytics.Impression) event_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (context_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getContext());
}
if (eventCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (io.bloombox.schema.analytics.section.SectionAnalytics.Impression) event_);
}
if (eventCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (io.bloombox.schema.analytics.product.ProductAnalytics.Impression) event_);
}
if (eventCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (io.bloombox.schema.analytics.shop.ShopAnalytics.Impression) event_);
}
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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression)) {
return super.equals(obj);
}
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression other = (io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression) obj;
if (hasContext() != other.hasContext()) return false;
if (hasContext()) {
if (!getContext()
.equals(other.getContext())) return false;
}
if (!getEventCase().equals(other.getEventCase())) return false;
switch (eventCase_) {
case 10:
if (!getSection()
.equals(other.getSection())) return false;
break;
case 11:
if (!getProduct()
.equals(other.getProduct())) return false;
break;
case 12:
if (!getShop()
.equals(other.getShop())) 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();
if (hasContext()) {
hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getContext().hashCode();
}
switch (eventCase_) {
case 10:
hash = (37 * hash) + SECTION_FIELD_NUMBER;
hash = (53 * hash) + getSection().hashCode();
break;
case 11:
hash = (37 * hash) + PRODUCT_FIELD_NUMBER;
hash = (53 * hash) + getProduct().hashCode();
break;
case 12:
hash = (37 * hash) + SHOP_FIELD_NUMBER;
hash = (53 * hash) + getShop().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression 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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression 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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression 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(io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression 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;
}
/**
*
* Specifies an impression-type event.
*
*
* Protobuf type {@code bloombox.services.telemetry.v1beta4.CommercialEvent.Impression}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.telemetry.v1beta4.CommercialEvent.Impression)
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.ImpressionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_Impression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_Impression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression.class, io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression.Builder.class);
}
// Construct using io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression.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();
if (contextBuilder_ == null) {
context_ = null;
} else {
context_ = null;
contextBuilder_ = null;
}
eventCase_ = 0;
event_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_Impression_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression getDefaultInstanceForType() {
return io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression build() {
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression buildPartial() {
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression result = new io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression(this);
if (contextBuilder_ == null) {
result.context_ = context_;
} else {
result.context_ = contextBuilder_.build();
}
if (eventCase_ == 10) {
if (sectionBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = sectionBuilder_.build();
}
}
if (eventCase_ == 11) {
if (productBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = productBuilder_.build();
}
}
if (eventCase_ == 12) {
if (shopBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = shopBuilder_.build();
}
}
result.eventCase_ = eventCase_;
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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression) {
return mergeFrom((io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression other) {
if (other == io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression.getDefaultInstance()) return this;
if (other.hasContext()) {
mergeContext(other.getContext());
}
switch (other.getEventCase()) {
case SECTION: {
mergeSection(other.getSection());
break;
}
case PRODUCT: {
mergeProduct(other.getProduct());
break;
}
case SHOP: {
mergeShop(other.getShop());
break;
}
case EVENT_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 {
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int eventCase_ = 0;
private java.lang.Object event_;
public EventCase
getEventCase() {
return EventCase.forNumber(
eventCase_);
}
public Builder clearEvent() {
eventCase_ = 0;
event_ = null;
onChanged();
return this;
}
private io.bloombox.schema.telemetry.AnalyticsContext.Context context_;
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.telemetry.AnalyticsContext.Context, io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder, io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder> contextBuilder_;
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public boolean hasContext() {
return contextBuilder_ != null || context_ != null;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public io.bloombox.schema.telemetry.AnalyticsContext.Context getContext() {
if (contextBuilder_ == null) {
return context_ == null ? io.bloombox.schema.telemetry.AnalyticsContext.Context.getDefaultInstance() : context_;
} else {
return contextBuilder_.getMessage();
}
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public Builder setContext(io.bloombox.schema.telemetry.AnalyticsContext.Context value) {
if (contextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
context_ = value;
onChanged();
} else {
contextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public Builder setContext(
io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder builderForValue) {
if (contextBuilder_ == null) {
context_ = builderForValue.build();
onChanged();
} else {
contextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public Builder mergeContext(io.bloombox.schema.telemetry.AnalyticsContext.Context value) {
if (contextBuilder_ == null) {
if (context_ != null) {
context_ =
io.bloombox.schema.telemetry.AnalyticsContext.Context.newBuilder(context_).mergeFrom(value).buildPartial();
} else {
context_ = value;
}
onChanged();
} else {
contextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public Builder clearContext() {
if (contextBuilder_ == null) {
context_ = null;
onChanged();
} else {
context_ = null;
contextBuilder_ = null;
}
return this;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder getContextBuilder() {
onChanged();
return getContextFieldBuilder().getBuilder();
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder getContextOrBuilder() {
if (contextBuilder_ != null) {
return contextBuilder_.getMessageOrBuilder();
} else {
return context_ == null ?
io.bloombox.schema.telemetry.AnalyticsContext.Context.getDefaultInstance() : context_;
}
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.telemetry.AnalyticsContext.Context, io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder, io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder>
getContextFieldBuilder() {
if (contextBuilder_ == null) {
contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.telemetry.AnalyticsContext.Context, io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder, io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder>(
getContext(),
getParentForChildren(),
isClean());
context_ = null;
}
return contextBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.section.SectionAnalytics.Impression, io.bloombox.schema.analytics.section.SectionAnalytics.Impression.Builder, io.bloombox.schema.analytics.section.SectionAnalytics.ImpressionOrBuilder> sectionBuilder_;
/**
*
* Impression event on a menu section.
*
*
* .bloombox.analytics.section.Impression section = 10;
*/
public boolean hasSection() {
return eventCase_ == 10;
}
/**
*
* Impression event on a menu section.
*
*
* .bloombox.analytics.section.Impression section = 10;
*/
public io.bloombox.schema.analytics.section.SectionAnalytics.Impression getSection() {
if (sectionBuilder_ == null) {
if (eventCase_ == 10) {
return (io.bloombox.schema.analytics.section.SectionAnalytics.Impression) event_;
}
return io.bloombox.schema.analytics.section.SectionAnalytics.Impression.getDefaultInstance();
} else {
if (eventCase_ == 10) {
return sectionBuilder_.getMessage();
}
return io.bloombox.schema.analytics.section.SectionAnalytics.Impression.getDefaultInstance();
}
}
/**
*
* Impression event on a menu section.
*
*
* .bloombox.analytics.section.Impression section = 10;
*/
public Builder setSection(io.bloombox.schema.analytics.section.SectionAnalytics.Impression value) {
if (sectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
sectionBuilder_.setMessage(value);
}
eventCase_ = 10;
return this;
}
/**
*
* Impression event on a menu section.
*
*
* .bloombox.analytics.section.Impression section = 10;
*/
public Builder setSection(
io.bloombox.schema.analytics.section.SectionAnalytics.Impression.Builder builderForValue) {
if (sectionBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
sectionBuilder_.setMessage(builderForValue.build());
}
eventCase_ = 10;
return this;
}
/**
*
* Impression event on a menu section.
*
*
* .bloombox.analytics.section.Impression section = 10;
*/
public Builder mergeSection(io.bloombox.schema.analytics.section.SectionAnalytics.Impression value) {
if (sectionBuilder_ == null) {
if (eventCase_ == 10 &&
event_ != io.bloombox.schema.analytics.section.SectionAnalytics.Impression.getDefaultInstance()) {
event_ = io.bloombox.schema.analytics.section.SectionAnalytics.Impression.newBuilder((io.bloombox.schema.analytics.section.SectionAnalytics.Impression) event_)
.mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
if (eventCase_ == 10) {
sectionBuilder_.mergeFrom(value);
}
sectionBuilder_.setMessage(value);
}
eventCase_ = 10;
return this;
}
/**
*
* Impression event on a menu section.
*
*
* .bloombox.analytics.section.Impression section = 10;
*/
public Builder clearSection() {
if (sectionBuilder_ == null) {
if (eventCase_ == 10) {
eventCase_ = 0;
event_ = null;
onChanged();
}
} else {
if (eventCase_ == 10) {
eventCase_ = 0;
event_ = null;
}
sectionBuilder_.clear();
}
return this;
}
/**
*
* Impression event on a menu section.
*
*
* .bloombox.analytics.section.Impression section = 10;
*/
public io.bloombox.schema.analytics.section.SectionAnalytics.Impression.Builder getSectionBuilder() {
return getSectionFieldBuilder().getBuilder();
}
/**
*
* Impression event on a menu section.
*
*
* .bloombox.analytics.section.Impression section = 10;
*/
public io.bloombox.schema.analytics.section.SectionAnalytics.ImpressionOrBuilder getSectionOrBuilder() {
if ((eventCase_ == 10) && (sectionBuilder_ != null)) {
return sectionBuilder_.getMessageOrBuilder();
} else {
if (eventCase_ == 10) {
return (io.bloombox.schema.analytics.section.SectionAnalytics.Impression) event_;
}
return io.bloombox.schema.analytics.section.SectionAnalytics.Impression.getDefaultInstance();
}
}
/**
*
* Impression event on a menu section.
*
*
* .bloombox.analytics.section.Impression section = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.section.SectionAnalytics.Impression, io.bloombox.schema.analytics.section.SectionAnalytics.Impression.Builder, io.bloombox.schema.analytics.section.SectionAnalytics.ImpressionOrBuilder>
getSectionFieldBuilder() {
if (sectionBuilder_ == null) {
if (!(eventCase_ == 10)) {
event_ = io.bloombox.schema.analytics.section.SectionAnalytics.Impression.getDefaultInstance();
}
sectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.section.SectionAnalytics.Impression, io.bloombox.schema.analytics.section.SectionAnalytics.Impression.Builder, io.bloombox.schema.analytics.section.SectionAnalytics.ImpressionOrBuilder>(
(io.bloombox.schema.analytics.section.SectionAnalytics.Impression) event_,
getParentForChildren(),
isClean());
event_ = null;
}
eventCase_ = 10;
onChanged();;
return sectionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.product.ProductAnalytics.Impression, io.bloombox.schema.analytics.product.ProductAnalytics.Impression.Builder, io.bloombox.schema.analytics.product.ProductAnalytics.ImpressionOrBuilder> productBuilder_;
/**
*
* Impression event on a menu product.
*
*
* .bloombox.analytics.product.Impression product = 11;
*/
public boolean hasProduct() {
return eventCase_ == 11;
}
/**
*
* Impression event on a menu product.
*
*
* .bloombox.analytics.product.Impression product = 11;
*/
public io.bloombox.schema.analytics.product.ProductAnalytics.Impression getProduct() {
if (productBuilder_ == null) {
if (eventCase_ == 11) {
return (io.bloombox.schema.analytics.product.ProductAnalytics.Impression) event_;
}
return io.bloombox.schema.analytics.product.ProductAnalytics.Impression.getDefaultInstance();
} else {
if (eventCase_ == 11) {
return productBuilder_.getMessage();
}
return io.bloombox.schema.analytics.product.ProductAnalytics.Impression.getDefaultInstance();
}
}
/**
*
* Impression event on a menu product.
*
*
* .bloombox.analytics.product.Impression product = 11;
*/
public Builder setProduct(io.bloombox.schema.analytics.product.ProductAnalytics.Impression value) {
if (productBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
productBuilder_.setMessage(value);
}
eventCase_ = 11;
return this;
}
/**
*
* Impression event on a menu product.
*
*
* .bloombox.analytics.product.Impression product = 11;
*/
public Builder setProduct(
io.bloombox.schema.analytics.product.ProductAnalytics.Impression.Builder builderForValue) {
if (productBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
productBuilder_.setMessage(builderForValue.build());
}
eventCase_ = 11;
return this;
}
/**
*
* Impression event on a menu product.
*
*
* .bloombox.analytics.product.Impression product = 11;
*/
public Builder mergeProduct(io.bloombox.schema.analytics.product.ProductAnalytics.Impression value) {
if (productBuilder_ == null) {
if (eventCase_ == 11 &&
event_ != io.bloombox.schema.analytics.product.ProductAnalytics.Impression.getDefaultInstance()) {
event_ = io.bloombox.schema.analytics.product.ProductAnalytics.Impression.newBuilder((io.bloombox.schema.analytics.product.ProductAnalytics.Impression) event_)
.mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
if (eventCase_ == 11) {
productBuilder_.mergeFrom(value);
}
productBuilder_.setMessage(value);
}
eventCase_ = 11;
return this;
}
/**
*
* Impression event on a menu product.
*
*
* .bloombox.analytics.product.Impression product = 11;
*/
public Builder clearProduct() {
if (productBuilder_ == null) {
if (eventCase_ == 11) {
eventCase_ = 0;
event_ = null;
onChanged();
}
} else {
if (eventCase_ == 11) {
eventCase_ = 0;
event_ = null;
}
productBuilder_.clear();
}
return this;
}
/**
*
* Impression event on a menu product.
*
*
* .bloombox.analytics.product.Impression product = 11;
*/
public io.bloombox.schema.analytics.product.ProductAnalytics.Impression.Builder getProductBuilder() {
return getProductFieldBuilder().getBuilder();
}
/**
*
* Impression event on a menu product.
*
*
* .bloombox.analytics.product.Impression product = 11;
*/
public io.bloombox.schema.analytics.product.ProductAnalytics.ImpressionOrBuilder getProductOrBuilder() {
if ((eventCase_ == 11) && (productBuilder_ != null)) {
return productBuilder_.getMessageOrBuilder();
} else {
if (eventCase_ == 11) {
return (io.bloombox.schema.analytics.product.ProductAnalytics.Impression) event_;
}
return io.bloombox.schema.analytics.product.ProductAnalytics.Impression.getDefaultInstance();
}
}
/**
*
* Impression event on a menu product.
*
*
* .bloombox.analytics.product.Impression product = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.product.ProductAnalytics.Impression, io.bloombox.schema.analytics.product.ProductAnalytics.Impression.Builder, io.bloombox.schema.analytics.product.ProductAnalytics.ImpressionOrBuilder>
getProductFieldBuilder() {
if (productBuilder_ == null) {
if (!(eventCase_ == 11)) {
event_ = io.bloombox.schema.analytics.product.ProductAnalytics.Impression.getDefaultInstance();
}
productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.product.ProductAnalytics.Impression, io.bloombox.schema.analytics.product.ProductAnalytics.Impression.Builder, io.bloombox.schema.analytics.product.ProductAnalytics.ImpressionOrBuilder>(
(io.bloombox.schema.analytics.product.ProductAnalytics.Impression) event_,
getParentForChildren(),
isClean());
event_ = null;
}
eventCase_ = 11;
onChanged();;
return productBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.shop.ShopAnalytics.Impression, io.bloombox.schema.analytics.shop.ShopAnalytics.Impression.Builder, io.bloombox.schema.analytics.shop.ShopAnalytics.ImpressionOrBuilder> shopBuilder_;
/**
*
* Impression event for a commercial shop.
*
*
* .bloombox.analytics.shop.Impression shop = 12;
*/
public boolean hasShop() {
return eventCase_ == 12;
}
/**
*
* Impression event for a commercial shop.
*
*
* .bloombox.analytics.shop.Impression shop = 12;
*/
public io.bloombox.schema.analytics.shop.ShopAnalytics.Impression getShop() {
if (shopBuilder_ == null) {
if (eventCase_ == 12) {
return (io.bloombox.schema.analytics.shop.ShopAnalytics.Impression) event_;
}
return io.bloombox.schema.analytics.shop.ShopAnalytics.Impression.getDefaultInstance();
} else {
if (eventCase_ == 12) {
return shopBuilder_.getMessage();
}
return io.bloombox.schema.analytics.shop.ShopAnalytics.Impression.getDefaultInstance();
}
}
/**
*
* Impression event for a commercial shop.
*
*
* .bloombox.analytics.shop.Impression shop = 12;
*/
public Builder setShop(io.bloombox.schema.analytics.shop.ShopAnalytics.Impression value) {
if (shopBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
shopBuilder_.setMessage(value);
}
eventCase_ = 12;
return this;
}
/**
*
* Impression event for a commercial shop.
*
*
* .bloombox.analytics.shop.Impression shop = 12;
*/
public Builder setShop(
io.bloombox.schema.analytics.shop.ShopAnalytics.Impression.Builder builderForValue) {
if (shopBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
shopBuilder_.setMessage(builderForValue.build());
}
eventCase_ = 12;
return this;
}
/**
*
* Impression event for a commercial shop.
*
*
* .bloombox.analytics.shop.Impression shop = 12;
*/
public Builder mergeShop(io.bloombox.schema.analytics.shop.ShopAnalytics.Impression value) {
if (shopBuilder_ == null) {
if (eventCase_ == 12 &&
event_ != io.bloombox.schema.analytics.shop.ShopAnalytics.Impression.getDefaultInstance()) {
event_ = io.bloombox.schema.analytics.shop.ShopAnalytics.Impression.newBuilder((io.bloombox.schema.analytics.shop.ShopAnalytics.Impression) event_)
.mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
if (eventCase_ == 12) {
shopBuilder_.mergeFrom(value);
}
shopBuilder_.setMessage(value);
}
eventCase_ = 12;
return this;
}
/**
*
* Impression event for a commercial shop.
*
*
* .bloombox.analytics.shop.Impression shop = 12;
*/
public Builder clearShop() {
if (shopBuilder_ == null) {
if (eventCase_ == 12) {
eventCase_ = 0;
event_ = null;
onChanged();
}
} else {
if (eventCase_ == 12) {
eventCase_ = 0;
event_ = null;
}
shopBuilder_.clear();
}
return this;
}
/**
*
* Impression event for a commercial shop.
*
*
* .bloombox.analytics.shop.Impression shop = 12;
*/
public io.bloombox.schema.analytics.shop.ShopAnalytics.Impression.Builder getShopBuilder() {
return getShopFieldBuilder().getBuilder();
}
/**
*
* Impression event for a commercial shop.
*
*
* .bloombox.analytics.shop.Impression shop = 12;
*/
public io.bloombox.schema.analytics.shop.ShopAnalytics.ImpressionOrBuilder getShopOrBuilder() {
if ((eventCase_ == 12) && (shopBuilder_ != null)) {
return shopBuilder_.getMessageOrBuilder();
} else {
if (eventCase_ == 12) {
return (io.bloombox.schema.analytics.shop.ShopAnalytics.Impression) event_;
}
return io.bloombox.schema.analytics.shop.ShopAnalytics.Impression.getDefaultInstance();
}
}
/**
*
* Impression event for a commercial shop.
*
*
* .bloombox.analytics.shop.Impression shop = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.shop.ShopAnalytics.Impression, io.bloombox.schema.analytics.shop.ShopAnalytics.Impression.Builder, io.bloombox.schema.analytics.shop.ShopAnalytics.ImpressionOrBuilder>
getShopFieldBuilder() {
if (shopBuilder_ == null) {
if (!(eventCase_ == 12)) {
event_ = io.bloombox.schema.analytics.shop.ShopAnalytics.Impression.getDefaultInstance();
}
shopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.shop.ShopAnalytics.Impression, io.bloombox.schema.analytics.shop.ShopAnalytics.Impression.Builder, io.bloombox.schema.analytics.shop.ShopAnalytics.ImpressionOrBuilder>(
(io.bloombox.schema.analytics.shop.ShopAnalytics.Impression) event_,
getParentForChildren(),
isClean());
event_ = null;
}
eventCase_ = 12;
onChanged();;
return shopBuilder_;
}
@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:bloombox.services.telemetry.v1beta4.CommercialEvent.Impression)
}
// @@protoc_insertion_point(class_scope:bloombox.services.telemetry.v1beta4.CommercialEvent.Impression)
private static final io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression();
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Impression parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Impression(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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Impression getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ViewOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.services.telemetry.v1beta4.CommercialEvent.View)
com.google.protobuf.MessageOrBuilder {
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
boolean hasContext();
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
io.bloombox.schema.telemetry.AnalyticsContext.Context getContext();
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder getContextOrBuilder();
/**
*
* View event on a menu section.
*
*
* .bloombox.analytics.section.View section = 10;
*/
boolean hasSection();
/**
*
* View event on a menu section.
*
*
* .bloombox.analytics.section.View section = 10;
*/
io.bloombox.schema.analytics.section.SectionAnalytics.View getSection();
/**
*
* View event on a menu section.
*
*
* .bloombox.analytics.section.View section = 10;
*/
io.bloombox.schema.analytics.section.SectionAnalytics.ViewOrBuilder getSectionOrBuilder();
/**
*
* View event on a menu product.
*
*
* .bloombox.analytics.product.View product = 11;
*/
boolean hasProduct();
/**
*
* View event on a menu product.
*
*
* .bloombox.analytics.product.View product = 11;
*/
io.bloombox.schema.analytics.product.ProductAnalytics.View getProduct();
/**
*
* View event on a menu product.
*
*
* .bloombox.analytics.product.View product = 11;
*/
io.bloombox.schema.analytics.product.ProductAnalytics.ViewOrBuilder getProductOrBuilder();
/**
*
* View event for a commercial shop.
*
*
* .bloombox.analytics.shop.View shop = 12;
*/
boolean hasShop();
/**
*
* View event for a commercial shop.
*
*
* .bloombox.analytics.shop.View shop = 12;
*/
io.bloombox.schema.analytics.shop.ShopAnalytics.View getShop();
/**
*
* View event for a commercial shop.
*
*
* .bloombox.analytics.shop.View shop = 12;
*/
io.bloombox.schema.analytics.shop.ShopAnalytics.ViewOrBuilder getShopOrBuilder();
public io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View.EventCase getEventCase();
}
/**
*
* Specifies a view-type event.
*
*
* Protobuf type {@code bloombox.services.telemetry.v1beta4.CommercialEvent.View}
*/
public static final class View extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.telemetry.v1beta4.CommercialEvent.View)
ViewOrBuilder {
private static final long serialVersionUID = 0L;
// Use View.newBuilder() to construct.
private View(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private View() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private View(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder subBuilder = null;
if (context_ != null) {
subBuilder = context_.toBuilder();
}
context_ = input.readMessage(io.bloombox.schema.telemetry.AnalyticsContext.Context.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(context_);
context_ = subBuilder.buildPartial();
}
break;
}
case 82: {
io.bloombox.schema.analytics.section.SectionAnalytics.View.Builder subBuilder = null;
if (eventCase_ == 10) {
subBuilder = ((io.bloombox.schema.analytics.section.SectionAnalytics.View) event_).toBuilder();
}
event_ =
input.readMessage(io.bloombox.schema.analytics.section.SectionAnalytics.View.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.bloombox.schema.analytics.section.SectionAnalytics.View) event_);
event_ = subBuilder.buildPartial();
}
eventCase_ = 10;
break;
}
case 90: {
io.bloombox.schema.analytics.product.ProductAnalytics.View.Builder subBuilder = null;
if (eventCase_ == 11) {
subBuilder = ((io.bloombox.schema.analytics.product.ProductAnalytics.View) event_).toBuilder();
}
event_ =
input.readMessage(io.bloombox.schema.analytics.product.ProductAnalytics.View.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.bloombox.schema.analytics.product.ProductAnalytics.View) event_);
event_ = subBuilder.buildPartial();
}
eventCase_ = 11;
break;
}
case 98: {
io.bloombox.schema.analytics.shop.ShopAnalytics.View.Builder subBuilder = null;
if (eventCase_ == 12) {
subBuilder = ((io.bloombox.schema.analytics.shop.ShopAnalytics.View) event_).toBuilder();
}
event_ =
input.readMessage(io.bloombox.schema.analytics.shop.ShopAnalytics.View.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.bloombox.schema.analytics.shop.ShopAnalytics.View) event_);
event_ = subBuilder.buildPartial();
}
eventCase_ = 12;
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 io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_View_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_View_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View.class, io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View.Builder.class);
}
private int eventCase_ = 0;
private java.lang.Object event_;
public enum EventCase
implements com.google.protobuf.Internal.EnumLite {
SECTION(10),
PRODUCT(11),
SHOP(12),
EVENT_NOT_SET(0);
private final int value;
private EventCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EventCase valueOf(int value) {
return forNumber(value);
}
public static EventCase forNumber(int value) {
switch (value) {
case 10: return SECTION;
case 11: return PRODUCT;
case 12: return SHOP;
case 0: return EVENT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public EventCase
getEventCase() {
return EventCase.forNumber(
eventCase_);
}
public static final int CONTEXT_FIELD_NUMBER = 1;
private io.bloombox.schema.telemetry.AnalyticsContext.Context context_;
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public boolean hasContext() {
return context_ != null;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public io.bloombox.schema.telemetry.AnalyticsContext.Context getContext() {
return context_ == null ? io.bloombox.schema.telemetry.AnalyticsContext.Context.getDefaultInstance() : context_;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder getContextOrBuilder() {
return getContext();
}
public static final int SECTION_FIELD_NUMBER = 10;
/**
*
* View event on a menu section.
*
*
* .bloombox.analytics.section.View section = 10;
*/
public boolean hasSection() {
return eventCase_ == 10;
}
/**
*
* View event on a menu section.
*
*
* .bloombox.analytics.section.View section = 10;
*/
public io.bloombox.schema.analytics.section.SectionAnalytics.View getSection() {
if (eventCase_ == 10) {
return (io.bloombox.schema.analytics.section.SectionAnalytics.View) event_;
}
return io.bloombox.schema.analytics.section.SectionAnalytics.View.getDefaultInstance();
}
/**
*
* View event on a menu section.
*
*
* .bloombox.analytics.section.View section = 10;
*/
public io.bloombox.schema.analytics.section.SectionAnalytics.ViewOrBuilder getSectionOrBuilder() {
if (eventCase_ == 10) {
return (io.bloombox.schema.analytics.section.SectionAnalytics.View) event_;
}
return io.bloombox.schema.analytics.section.SectionAnalytics.View.getDefaultInstance();
}
public static final int PRODUCT_FIELD_NUMBER = 11;
/**
*
* View event on a menu product.
*
*
* .bloombox.analytics.product.View product = 11;
*/
public boolean hasProduct() {
return eventCase_ == 11;
}
/**
*
* View event on a menu product.
*
*
* .bloombox.analytics.product.View product = 11;
*/
public io.bloombox.schema.analytics.product.ProductAnalytics.View getProduct() {
if (eventCase_ == 11) {
return (io.bloombox.schema.analytics.product.ProductAnalytics.View) event_;
}
return io.bloombox.schema.analytics.product.ProductAnalytics.View.getDefaultInstance();
}
/**
*
* View event on a menu product.
*
*
* .bloombox.analytics.product.View product = 11;
*/
public io.bloombox.schema.analytics.product.ProductAnalytics.ViewOrBuilder getProductOrBuilder() {
if (eventCase_ == 11) {
return (io.bloombox.schema.analytics.product.ProductAnalytics.View) event_;
}
return io.bloombox.schema.analytics.product.ProductAnalytics.View.getDefaultInstance();
}
public static final int SHOP_FIELD_NUMBER = 12;
/**
*
* View event for a commercial shop.
*
*
* .bloombox.analytics.shop.View shop = 12;
*/
public boolean hasShop() {
return eventCase_ == 12;
}
/**
*
* View event for a commercial shop.
*
*
* .bloombox.analytics.shop.View shop = 12;
*/
public io.bloombox.schema.analytics.shop.ShopAnalytics.View getShop() {
if (eventCase_ == 12) {
return (io.bloombox.schema.analytics.shop.ShopAnalytics.View) event_;
}
return io.bloombox.schema.analytics.shop.ShopAnalytics.View.getDefaultInstance();
}
/**
*
* View event for a commercial shop.
*
*
* .bloombox.analytics.shop.View shop = 12;
*/
public io.bloombox.schema.analytics.shop.ShopAnalytics.ViewOrBuilder getShopOrBuilder() {
if (eventCase_ == 12) {
return (io.bloombox.schema.analytics.shop.ShopAnalytics.View) event_;
}
return io.bloombox.schema.analytics.shop.ShopAnalytics.View.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 (context_ != null) {
output.writeMessage(1, getContext());
}
if (eventCase_ == 10) {
output.writeMessage(10, (io.bloombox.schema.analytics.section.SectionAnalytics.View) event_);
}
if (eventCase_ == 11) {
output.writeMessage(11, (io.bloombox.schema.analytics.product.ProductAnalytics.View) event_);
}
if (eventCase_ == 12) {
output.writeMessage(12, (io.bloombox.schema.analytics.shop.ShopAnalytics.View) event_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (context_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getContext());
}
if (eventCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (io.bloombox.schema.analytics.section.SectionAnalytics.View) event_);
}
if (eventCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (io.bloombox.schema.analytics.product.ProductAnalytics.View) event_);
}
if (eventCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (io.bloombox.schema.analytics.shop.ShopAnalytics.View) event_);
}
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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View)) {
return super.equals(obj);
}
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View other = (io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View) obj;
if (hasContext() != other.hasContext()) return false;
if (hasContext()) {
if (!getContext()
.equals(other.getContext())) return false;
}
if (!getEventCase().equals(other.getEventCase())) return false;
switch (eventCase_) {
case 10:
if (!getSection()
.equals(other.getSection())) return false;
break;
case 11:
if (!getProduct()
.equals(other.getProduct())) return false;
break;
case 12:
if (!getShop()
.equals(other.getShop())) 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();
if (hasContext()) {
hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getContext().hashCode();
}
switch (eventCase_) {
case 10:
hash = (37 * hash) + SECTION_FIELD_NUMBER;
hash = (53 * hash) + getSection().hashCode();
break;
case 11:
hash = (37 * hash) + PRODUCT_FIELD_NUMBER;
hash = (53 * hash) + getProduct().hashCode();
break;
case 12:
hash = (37 * hash) + SHOP_FIELD_NUMBER;
hash = (53 * hash) + getShop().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View 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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View 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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View 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(io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View 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;
}
/**
*
* Specifies a view-type event.
*
*
* Protobuf type {@code bloombox.services.telemetry.v1beta4.CommercialEvent.View}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.telemetry.v1beta4.CommercialEvent.View)
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.ViewOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_View_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_View_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View.class, io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View.Builder.class);
}
// Construct using io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View.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();
if (contextBuilder_ == null) {
context_ = null;
} else {
context_ = null;
contextBuilder_ = null;
}
eventCase_ = 0;
event_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_View_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View getDefaultInstanceForType() {
return io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View build() {
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View buildPartial() {
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View result = new io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View(this);
if (contextBuilder_ == null) {
result.context_ = context_;
} else {
result.context_ = contextBuilder_.build();
}
if (eventCase_ == 10) {
if (sectionBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = sectionBuilder_.build();
}
}
if (eventCase_ == 11) {
if (productBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = productBuilder_.build();
}
}
if (eventCase_ == 12) {
if (shopBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = shopBuilder_.build();
}
}
result.eventCase_ = eventCase_;
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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View) {
return mergeFrom((io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View other) {
if (other == io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View.getDefaultInstance()) return this;
if (other.hasContext()) {
mergeContext(other.getContext());
}
switch (other.getEventCase()) {
case SECTION: {
mergeSection(other.getSection());
break;
}
case PRODUCT: {
mergeProduct(other.getProduct());
break;
}
case SHOP: {
mergeShop(other.getShop());
break;
}
case EVENT_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 {
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int eventCase_ = 0;
private java.lang.Object event_;
public EventCase
getEventCase() {
return EventCase.forNumber(
eventCase_);
}
public Builder clearEvent() {
eventCase_ = 0;
event_ = null;
onChanged();
return this;
}
private io.bloombox.schema.telemetry.AnalyticsContext.Context context_;
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.telemetry.AnalyticsContext.Context, io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder, io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder> contextBuilder_;
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public boolean hasContext() {
return contextBuilder_ != null || context_ != null;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public io.bloombox.schema.telemetry.AnalyticsContext.Context getContext() {
if (contextBuilder_ == null) {
return context_ == null ? io.bloombox.schema.telemetry.AnalyticsContext.Context.getDefaultInstance() : context_;
} else {
return contextBuilder_.getMessage();
}
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public Builder setContext(io.bloombox.schema.telemetry.AnalyticsContext.Context value) {
if (contextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
context_ = value;
onChanged();
} else {
contextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public Builder setContext(
io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder builderForValue) {
if (contextBuilder_ == null) {
context_ = builderForValue.build();
onChanged();
} else {
contextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public Builder mergeContext(io.bloombox.schema.telemetry.AnalyticsContext.Context value) {
if (contextBuilder_ == null) {
if (context_ != null) {
context_ =
io.bloombox.schema.telemetry.AnalyticsContext.Context.newBuilder(context_).mergeFrom(value).buildPartial();
} else {
context_ = value;
}
onChanged();
} else {
contextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public Builder clearContext() {
if (contextBuilder_ == null) {
context_ = null;
onChanged();
} else {
context_ = null;
contextBuilder_ = null;
}
return this;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder getContextBuilder() {
onChanged();
return getContextFieldBuilder().getBuilder();
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
public io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder getContextOrBuilder() {
if (contextBuilder_ != null) {
return contextBuilder_.getMessageOrBuilder();
} else {
return context_ == null ?
io.bloombox.schema.telemetry.AnalyticsContext.Context.getDefaultInstance() : context_;
}
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.telemetry.AnalyticsContext.Context, io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder, io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder>
getContextFieldBuilder() {
if (contextBuilder_ == null) {
contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.telemetry.AnalyticsContext.Context, io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder, io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder>(
getContext(),
getParentForChildren(),
isClean());
context_ = null;
}
return contextBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.section.SectionAnalytics.View, io.bloombox.schema.analytics.section.SectionAnalytics.View.Builder, io.bloombox.schema.analytics.section.SectionAnalytics.ViewOrBuilder> sectionBuilder_;
/**
*
* View event on a menu section.
*
*
* .bloombox.analytics.section.View section = 10;
*/
public boolean hasSection() {
return eventCase_ == 10;
}
/**
*
* View event on a menu section.
*
*
* .bloombox.analytics.section.View section = 10;
*/
public io.bloombox.schema.analytics.section.SectionAnalytics.View getSection() {
if (sectionBuilder_ == null) {
if (eventCase_ == 10) {
return (io.bloombox.schema.analytics.section.SectionAnalytics.View) event_;
}
return io.bloombox.schema.analytics.section.SectionAnalytics.View.getDefaultInstance();
} else {
if (eventCase_ == 10) {
return sectionBuilder_.getMessage();
}
return io.bloombox.schema.analytics.section.SectionAnalytics.View.getDefaultInstance();
}
}
/**
*
* View event on a menu section.
*
*
* .bloombox.analytics.section.View section = 10;
*/
public Builder setSection(io.bloombox.schema.analytics.section.SectionAnalytics.View value) {
if (sectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
sectionBuilder_.setMessage(value);
}
eventCase_ = 10;
return this;
}
/**
*
* View event on a menu section.
*
*
* .bloombox.analytics.section.View section = 10;
*/
public Builder setSection(
io.bloombox.schema.analytics.section.SectionAnalytics.View.Builder builderForValue) {
if (sectionBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
sectionBuilder_.setMessage(builderForValue.build());
}
eventCase_ = 10;
return this;
}
/**
*
* View event on a menu section.
*
*
* .bloombox.analytics.section.View section = 10;
*/
public Builder mergeSection(io.bloombox.schema.analytics.section.SectionAnalytics.View value) {
if (sectionBuilder_ == null) {
if (eventCase_ == 10 &&
event_ != io.bloombox.schema.analytics.section.SectionAnalytics.View.getDefaultInstance()) {
event_ = io.bloombox.schema.analytics.section.SectionAnalytics.View.newBuilder((io.bloombox.schema.analytics.section.SectionAnalytics.View) event_)
.mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
if (eventCase_ == 10) {
sectionBuilder_.mergeFrom(value);
}
sectionBuilder_.setMessage(value);
}
eventCase_ = 10;
return this;
}
/**
*
* View event on a menu section.
*
*
* .bloombox.analytics.section.View section = 10;
*/
public Builder clearSection() {
if (sectionBuilder_ == null) {
if (eventCase_ == 10) {
eventCase_ = 0;
event_ = null;
onChanged();
}
} else {
if (eventCase_ == 10) {
eventCase_ = 0;
event_ = null;
}
sectionBuilder_.clear();
}
return this;
}
/**
*
* View event on a menu section.
*
*
* .bloombox.analytics.section.View section = 10;
*/
public io.bloombox.schema.analytics.section.SectionAnalytics.View.Builder getSectionBuilder() {
return getSectionFieldBuilder().getBuilder();
}
/**
*
* View event on a menu section.
*
*
* .bloombox.analytics.section.View section = 10;
*/
public io.bloombox.schema.analytics.section.SectionAnalytics.ViewOrBuilder getSectionOrBuilder() {
if ((eventCase_ == 10) && (sectionBuilder_ != null)) {
return sectionBuilder_.getMessageOrBuilder();
} else {
if (eventCase_ == 10) {
return (io.bloombox.schema.analytics.section.SectionAnalytics.View) event_;
}
return io.bloombox.schema.analytics.section.SectionAnalytics.View.getDefaultInstance();
}
}
/**
*
* View event on a menu section.
*
*
* .bloombox.analytics.section.View section = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.section.SectionAnalytics.View, io.bloombox.schema.analytics.section.SectionAnalytics.View.Builder, io.bloombox.schema.analytics.section.SectionAnalytics.ViewOrBuilder>
getSectionFieldBuilder() {
if (sectionBuilder_ == null) {
if (!(eventCase_ == 10)) {
event_ = io.bloombox.schema.analytics.section.SectionAnalytics.View.getDefaultInstance();
}
sectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.section.SectionAnalytics.View, io.bloombox.schema.analytics.section.SectionAnalytics.View.Builder, io.bloombox.schema.analytics.section.SectionAnalytics.ViewOrBuilder>(
(io.bloombox.schema.analytics.section.SectionAnalytics.View) event_,
getParentForChildren(),
isClean());
event_ = null;
}
eventCase_ = 10;
onChanged();;
return sectionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.product.ProductAnalytics.View, io.bloombox.schema.analytics.product.ProductAnalytics.View.Builder, io.bloombox.schema.analytics.product.ProductAnalytics.ViewOrBuilder> productBuilder_;
/**
*
* View event on a menu product.
*
*
* .bloombox.analytics.product.View product = 11;
*/
public boolean hasProduct() {
return eventCase_ == 11;
}
/**
*
* View event on a menu product.
*
*
* .bloombox.analytics.product.View product = 11;
*/
public io.bloombox.schema.analytics.product.ProductAnalytics.View getProduct() {
if (productBuilder_ == null) {
if (eventCase_ == 11) {
return (io.bloombox.schema.analytics.product.ProductAnalytics.View) event_;
}
return io.bloombox.schema.analytics.product.ProductAnalytics.View.getDefaultInstance();
} else {
if (eventCase_ == 11) {
return productBuilder_.getMessage();
}
return io.bloombox.schema.analytics.product.ProductAnalytics.View.getDefaultInstance();
}
}
/**
*
* View event on a menu product.
*
*
* .bloombox.analytics.product.View product = 11;
*/
public Builder setProduct(io.bloombox.schema.analytics.product.ProductAnalytics.View value) {
if (productBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
productBuilder_.setMessage(value);
}
eventCase_ = 11;
return this;
}
/**
*
* View event on a menu product.
*
*
* .bloombox.analytics.product.View product = 11;
*/
public Builder setProduct(
io.bloombox.schema.analytics.product.ProductAnalytics.View.Builder builderForValue) {
if (productBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
productBuilder_.setMessage(builderForValue.build());
}
eventCase_ = 11;
return this;
}
/**
*
* View event on a menu product.
*
*
* .bloombox.analytics.product.View product = 11;
*/
public Builder mergeProduct(io.bloombox.schema.analytics.product.ProductAnalytics.View value) {
if (productBuilder_ == null) {
if (eventCase_ == 11 &&
event_ != io.bloombox.schema.analytics.product.ProductAnalytics.View.getDefaultInstance()) {
event_ = io.bloombox.schema.analytics.product.ProductAnalytics.View.newBuilder((io.bloombox.schema.analytics.product.ProductAnalytics.View) event_)
.mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
if (eventCase_ == 11) {
productBuilder_.mergeFrom(value);
}
productBuilder_.setMessage(value);
}
eventCase_ = 11;
return this;
}
/**
*
* View event on a menu product.
*
*
* .bloombox.analytics.product.View product = 11;
*/
public Builder clearProduct() {
if (productBuilder_ == null) {
if (eventCase_ == 11) {
eventCase_ = 0;
event_ = null;
onChanged();
}
} else {
if (eventCase_ == 11) {
eventCase_ = 0;
event_ = null;
}
productBuilder_.clear();
}
return this;
}
/**
*
* View event on a menu product.
*
*
* .bloombox.analytics.product.View product = 11;
*/
public io.bloombox.schema.analytics.product.ProductAnalytics.View.Builder getProductBuilder() {
return getProductFieldBuilder().getBuilder();
}
/**
*
* View event on a menu product.
*
*
* .bloombox.analytics.product.View product = 11;
*/
public io.bloombox.schema.analytics.product.ProductAnalytics.ViewOrBuilder getProductOrBuilder() {
if ((eventCase_ == 11) && (productBuilder_ != null)) {
return productBuilder_.getMessageOrBuilder();
} else {
if (eventCase_ == 11) {
return (io.bloombox.schema.analytics.product.ProductAnalytics.View) event_;
}
return io.bloombox.schema.analytics.product.ProductAnalytics.View.getDefaultInstance();
}
}
/**
*
* View event on a menu product.
*
*
* .bloombox.analytics.product.View product = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.product.ProductAnalytics.View, io.bloombox.schema.analytics.product.ProductAnalytics.View.Builder, io.bloombox.schema.analytics.product.ProductAnalytics.ViewOrBuilder>
getProductFieldBuilder() {
if (productBuilder_ == null) {
if (!(eventCase_ == 11)) {
event_ = io.bloombox.schema.analytics.product.ProductAnalytics.View.getDefaultInstance();
}
productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.product.ProductAnalytics.View, io.bloombox.schema.analytics.product.ProductAnalytics.View.Builder, io.bloombox.schema.analytics.product.ProductAnalytics.ViewOrBuilder>(
(io.bloombox.schema.analytics.product.ProductAnalytics.View) event_,
getParentForChildren(),
isClean());
event_ = null;
}
eventCase_ = 11;
onChanged();;
return productBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.shop.ShopAnalytics.View, io.bloombox.schema.analytics.shop.ShopAnalytics.View.Builder, io.bloombox.schema.analytics.shop.ShopAnalytics.ViewOrBuilder> shopBuilder_;
/**
*
* View event for a commercial shop.
*
*
* .bloombox.analytics.shop.View shop = 12;
*/
public boolean hasShop() {
return eventCase_ == 12;
}
/**
*
* View event for a commercial shop.
*
*
* .bloombox.analytics.shop.View shop = 12;
*/
public io.bloombox.schema.analytics.shop.ShopAnalytics.View getShop() {
if (shopBuilder_ == null) {
if (eventCase_ == 12) {
return (io.bloombox.schema.analytics.shop.ShopAnalytics.View) event_;
}
return io.bloombox.schema.analytics.shop.ShopAnalytics.View.getDefaultInstance();
} else {
if (eventCase_ == 12) {
return shopBuilder_.getMessage();
}
return io.bloombox.schema.analytics.shop.ShopAnalytics.View.getDefaultInstance();
}
}
/**
*
* View event for a commercial shop.
*
*
* .bloombox.analytics.shop.View shop = 12;
*/
public Builder setShop(io.bloombox.schema.analytics.shop.ShopAnalytics.View value) {
if (shopBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
shopBuilder_.setMessage(value);
}
eventCase_ = 12;
return this;
}
/**
*
* View event for a commercial shop.
*
*
* .bloombox.analytics.shop.View shop = 12;
*/
public Builder setShop(
io.bloombox.schema.analytics.shop.ShopAnalytics.View.Builder builderForValue) {
if (shopBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
shopBuilder_.setMessage(builderForValue.build());
}
eventCase_ = 12;
return this;
}
/**
*
* View event for a commercial shop.
*
*
* .bloombox.analytics.shop.View shop = 12;
*/
public Builder mergeShop(io.bloombox.schema.analytics.shop.ShopAnalytics.View value) {
if (shopBuilder_ == null) {
if (eventCase_ == 12 &&
event_ != io.bloombox.schema.analytics.shop.ShopAnalytics.View.getDefaultInstance()) {
event_ = io.bloombox.schema.analytics.shop.ShopAnalytics.View.newBuilder((io.bloombox.schema.analytics.shop.ShopAnalytics.View) event_)
.mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
if (eventCase_ == 12) {
shopBuilder_.mergeFrom(value);
}
shopBuilder_.setMessage(value);
}
eventCase_ = 12;
return this;
}
/**
*
* View event for a commercial shop.
*
*
* .bloombox.analytics.shop.View shop = 12;
*/
public Builder clearShop() {
if (shopBuilder_ == null) {
if (eventCase_ == 12) {
eventCase_ = 0;
event_ = null;
onChanged();
}
} else {
if (eventCase_ == 12) {
eventCase_ = 0;
event_ = null;
}
shopBuilder_.clear();
}
return this;
}
/**
*
* View event for a commercial shop.
*
*
* .bloombox.analytics.shop.View shop = 12;
*/
public io.bloombox.schema.analytics.shop.ShopAnalytics.View.Builder getShopBuilder() {
return getShopFieldBuilder().getBuilder();
}
/**
*
* View event for a commercial shop.
*
*
* .bloombox.analytics.shop.View shop = 12;
*/
public io.bloombox.schema.analytics.shop.ShopAnalytics.ViewOrBuilder getShopOrBuilder() {
if ((eventCase_ == 12) && (shopBuilder_ != null)) {
return shopBuilder_.getMessageOrBuilder();
} else {
if (eventCase_ == 12) {
return (io.bloombox.schema.analytics.shop.ShopAnalytics.View) event_;
}
return io.bloombox.schema.analytics.shop.ShopAnalytics.View.getDefaultInstance();
}
}
/**
*
* View event for a commercial shop.
*
*
* .bloombox.analytics.shop.View shop = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.shop.ShopAnalytics.View, io.bloombox.schema.analytics.shop.ShopAnalytics.View.Builder, io.bloombox.schema.analytics.shop.ShopAnalytics.ViewOrBuilder>
getShopFieldBuilder() {
if (shopBuilder_ == null) {
if (!(eventCase_ == 12)) {
event_ = io.bloombox.schema.analytics.shop.ShopAnalytics.View.getDefaultInstance();
}
shopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.shop.ShopAnalytics.View, io.bloombox.schema.analytics.shop.ShopAnalytics.View.Builder, io.bloombox.schema.analytics.shop.ShopAnalytics.ViewOrBuilder>(
(io.bloombox.schema.analytics.shop.ShopAnalytics.View) event_,
getParentForChildren(),
isClean());
event_ = null;
}
eventCase_ = 12;
onChanged();;
return shopBuilder_;
}
@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:bloombox.services.telemetry.v1beta4.CommercialEvent.View)
}
// @@protoc_insertion_point(class_scope:bloombox.services.telemetry.v1beta4.CommercialEvent.View)
private static final io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View();
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public View parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new View(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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.View getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ActionOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.services.telemetry.v1beta4.CommercialEvent.Action)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name for the action being transmitted. This is the string enum name for whatever event type is in use.
*
*
* string name = 1;
*/
java.lang.String getName();
/**
*
* Name for the action being transmitted. This is the string enum name for whatever event type is in use.
*
*
* string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 2;
*/
boolean hasContext();
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 2;
*/
io.bloombox.schema.telemetry.AnalyticsContext.Context getContext();
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 2;
*/
io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder getContextOrBuilder();
/**
*
* Action event on a menu section.
*
*
* .bloombox.analytics.section.Action section = 10;
*/
boolean hasSection();
/**
*
* Action event on a menu section.
*
*
* .bloombox.analytics.section.Action section = 10;
*/
io.bloombox.schema.analytics.section.SectionAnalytics.Action getSection();
/**
*
* Action event on a menu section.
*
*
* .bloombox.analytics.section.Action section = 10;
*/
io.bloombox.schema.analytics.section.SectionAnalytics.ActionOrBuilder getSectionOrBuilder();
/**
*
* Action event on a menu product.
*
*
* .bloombox.analytics.product.Action product = 11;
*/
boolean hasProduct();
/**
*
* Action event on a menu product.
*
*
* .bloombox.analytics.product.Action product = 11;
*/
io.bloombox.schema.analytics.product.ProductAnalytics.Action getProduct();
/**
*
* Action event on a menu product.
*
*
* .bloombox.analytics.product.Action product = 11;
*/
io.bloombox.schema.analytics.product.ProductAnalytics.ActionOrBuilder getProductOrBuilder();
/**
*
* Action event for a commercial shop.
*
*
* .bloombox.analytics.shop.Action shop = 12;
*/
boolean hasShop();
/**
*
* Action event for a commercial shop.
*
*
* .bloombox.analytics.shop.Action shop = 12;
*/
io.bloombox.schema.analytics.shop.ShopAnalytics.Action getShop();
/**
*
* Action event for a commercial shop.
*
*
* .bloombox.analytics.shop.Action shop = 12;
*/
io.bloombox.schema.analytics.shop.ShopAnalytics.ActionOrBuilder getShopOrBuilder();
/**
*
* Action event on a user order.
*
*
* .bloombox.analytics.order.Action order = 13;
*/
boolean hasOrder();
/**
*
* Action event on a user order.
*
*
* .bloombox.analytics.order.Action order = 13;
*/
io.bloombox.schema.analytics.order.OrderAnalytics.Action getOrder();
/**
*
* Action event on a user order.
*
*
* .bloombox.analytics.order.Action order = 13;
*/
io.bloombox.schema.analytics.order.OrderAnalytics.ActionOrBuilder getOrderOrBuilder();
public io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action.EventCase getEventCase();
}
/**
*
* Specifies an action-type event.
*
*
* Protobuf type {@code bloombox.services.telemetry.v1beta4.CommercialEvent.Action}
*/
public static final class Action extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.telemetry.v1beta4.CommercialEvent.Action)
ActionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Action.newBuilder() to construct.
private Action(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Action() {
name_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Action(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder subBuilder = null;
if (context_ != null) {
subBuilder = context_.toBuilder();
}
context_ = input.readMessage(io.bloombox.schema.telemetry.AnalyticsContext.Context.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(context_);
context_ = subBuilder.buildPartial();
}
break;
}
case 82: {
io.bloombox.schema.analytics.section.SectionAnalytics.Action.Builder subBuilder = null;
if (eventCase_ == 10) {
subBuilder = ((io.bloombox.schema.analytics.section.SectionAnalytics.Action) event_).toBuilder();
}
event_ =
input.readMessage(io.bloombox.schema.analytics.section.SectionAnalytics.Action.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.bloombox.schema.analytics.section.SectionAnalytics.Action) event_);
event_ = subBuilder.buildPartial();
}
eventCase_ = 10;
break;
}
case 90: {
io.bloombox.schema.analytics.product.ProductAnalytics.Action.Builder subBuilder = null;
if (eventCase_ == 11) {
subBuilder = ((io.bloombox.schema.analytics.product.ProductAnalytics.Action) event_).toBuilder();
}
event_ =
input.readMessage(io.bloombox.schema.analytics.product.ProductAnalytics.Action.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.bloombox.schema.analytics.product.ProductAnalytics.Action) event_);
event_ = subBuilder.buildPartial();
}
eventCase_ = 11;
break;
}
case 98: {
io.bloombox.schema.analytics.shop.ShopAnalytics.Action.Builder subBuilder = null;
if (eventCase_ == 12) {
subBuilder = ((io.bloombox.schema.analytics.shop.ShopAnalytics.Action) event_).toBuilder();
}
event_ =
input.readMessage(io.bloombox.schema.analytics.shop.ShopAnalytics.Action.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.bloombox.schema.analytics.shop.ShopAnalytics.Action) event_);
event_ = subBuilder.buildPartial();
}
eventCase_ = 12;
break;
}
case 106: {
io.bloombox.schema.analytics.order.OrderAnalytics.Action.Builder subBuilder = null;
if (eventCase_ == 13) {
subBuilder = ((io.bloombox.schema.analytics.order.OrderAnalytics.Action) event_).toBuilder();
}
event_ =
input.readMessage(io.bloombox.schema.analytics.order.OrderAnalytics.Action.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.bloombox.schema.analytics.order.OrderAnalytics.Action) event_);
event_ = subBuilder.buildPartial();
}
eventCase_ = 13;
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 io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_Action_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_Action_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action.class, io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action.Builder.class);
}
private int eventCase_ = 0;
private java.lang.Object event_;
public enum EventCase
implements com.google.protobuf.Internal.EnumLite {
SECTION(10),
PRODUCT(11),
SHOP(12),
ORDER(13),
EVENT_NOT_SET(0);
private final int value;
private EventCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EventCase valueOf(int value) {
return forNumber(value);
}
public static EventCase forNumber(int value) {
switch (value) {
case 10: return SECTION;
case 11: return PRODUCT;
case 12: return SHOP;
case 13: return ORDER;
case 0: return EVENT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public EventCase
getEventCase() {
return EventCase.forNumber(
eventCase_);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name for the action being transmitted. This is the string enum name for whatever event type is in use.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name for the action being transmitted. This is the string enum name for whatever event type is in use.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONTEXT_FIELD_NUMBER = 2;
private io.bloombox.schema.telemetry.AnalyticsContext.Context context_;
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 2;
*/
public boolean hasContext() {
return context_ != null;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 2;
*/
public io.bloombox.schema.telemetry.AnalyticsContext.Context getContext() {
return context_ == null ? io.bloombox.schema.telemetry.AnalyticsContext.Context.getDefaultInstance() : context_;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 2;
*/
public io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder getContextOrBuilder() {
return getContext();
}
public static final int SECTION_FIELD_NUMBER = 10;
/**
*
* Action event on a menu section.
*
*
* .bloombox.analytics.section.Action section = 10;
*/
public boolean hasSection() {
return eventCase_ == 10;
}
/**
*
* Action event on a menu section.
*
*
* .bloombox.analytics.section.Action section = 10;
*/
public io.bloombox.schema.analytics.section.SectionAnalytics.Action getSection() {
if (eventCase_ == 10) {
return (io.bloombox.schema.analytics.section.SectionAnalytics.Action) event_;
}
return io.bloombox.schema.analytics.section.SectionAnalytics.Action.getDefaultInstance();
}
/**
*
* Action event on a menu section.
*
*
* .bloombox.analytics.section.Action section = 10;
*/
public io.bloombox.schema.analytics.section.SectionAnalytics.ActionOrBuilder getSectionOrBuilder() {
if (eventCase_ == 10) {
return (io.bloombox.schema.analytics.section.SectionAnalytics.Action) event_;
}
return io.bloombox.schema.analytics.section.SectionAnalytics.Action.getDefaultInstance();
}
public static final int PRODUCT_FIELD_NUMBER = 11;
/**
*
* Action event on a menu product.
*
*
* .bloombox.analytics.product.Action product = 11;
*/
public boolean hasProduct() {
return eventCase_ == 11;
}
/**
*
* Action event on a menu product.
*
*
* .bloombox.analytics.product.Action product = 11;
*/
public io.bloombox.schema.analytics.product.ProductAnalytics.Action getProduct() {
if (eventCase_ == 11) {
return (io.bloombox.schema.analytics.product.ProductAnalytics.Action) event_;
}
return io.bloombox.schema.analytics.product.ProductAnalytics.Action.getDefaultInstance();
}
/**
*
* Action event on a menu product.
*
*
* .bloombox.analytics.product.Action product = 11;
*/
public io.bloombox.schema.analytics.product.ProductAnalytics.ActionOrBuilder getProductOrBuilder() {
if (eventCase_ == 11) {
return (io.bloombox.schema.analytics.product.ProductAnalytics.Action) event_;
}
return io.bloombox.schema.analytics.product.ProductAnalytics.Action.getDefaultInstance();
}
public static final int SHOP_FIELD_NUMBER = 12;
/**
*
* Action event for a commercial shop.
*
*
* .bloombox.analytics.shop.Action shop = 12;
*/
public boolean hasShop() {
return eventCase_ == 12;
}
/**
*
* Action event for a commercial shop.
*
*
* .bloombox.analytics.shop.Action shop = 12;
*/
public io.bloombox.schema.analytics.shop.ShopAnalytics.Action getShop() {
if (eventCase_ == 12) {
return (io.bloombox.schema.analytics.shop.ShopAnalytics.Action) event_;
}
return io.bloombox.schema.analytics.shop.ShopAnalytics.Action.getDefaultInstance();
}
/**
*
* Action event for a commercial shop.
*
*
* .bloombox.analytics.shop.Action shop = 12;
*/
public io.bloombox.schema.analytics.shop.ShopAnalytics.ActionOrBuilder getShopOrBuilder() {
if (eventCase_ == 12) {
return (io.bloombox.schema.analytics.shop.ShopAnalytics.Action) event_;
}
return io.bloombox.schema.analytics.shop.ShopAnalytics.Action.getDefaultInstance();
}
public static final int ORDER_FIELD_NUMBER = 13;
/**
*
* Action event on a user order.
*
*
* .bloombox.analytics.order.Action order = 13;
*/
public boolean hasOrder() {
return eventCase_ == 13;
}
/**
*
* Action event on a user order.
*
*
* .bloombox.analytics.order.Action order = 13;
*/
public io.bloombox.schema.analytics.order.OrderAnalytics.Action getOrder() {
if (eventCase_ == 13) {
return (io.bloombox.schema.analytics.order.OrderAnalytics.Action) event_;
}
return io.bloombox.schema.analytics.order.OrderAnalytics.Action.getDefaultInstance();
}
/**
*
* Action event on a user order.
*
*
* .bloombox.analytics.order.Action order = 13;
*/
public io.bloombox.schema.analytics.order.OrderAnalytics.ActionOrBuilder getOrderOrBuilder() {
if (eventCase_ == 13) {
return (io.bloombox.schema.analytics.order.OrderAnalytics.Action) event_;
}
return io.bloombox.schema.analytics.order.OrderAnalytics.Action.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 (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (context_ != null) {
output.writeMessage(2, getContext());
}
if (eventCase_ == 10) {
output.writeMessage(10, (io.bloombox.schema.analytics.section.SectionAnalytics.Action) event_);
}
if (eventCase_ == 11) {
output.writeMessage(11, (io.bloombox.schema.analytics.product.ProductAnalytics.Action) event_);
}
if (eventCase_ == 12) {
output.writeMessage(12, (io.bloombox.schema.analytics.shop.ShopAnalytics.Action) event_);
}
if (eventCase_ == 13) {
output.writeMessage(13, (io.bloombox.schema.analytics.order.OrderAnalytics.Action) event_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (context_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getContext());
}
if (eventCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (io.bloombox.schema.analytics.section.SectionAnalytics.Action) event_);
}
if (eventCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (io.bloombox.schema.analytics.product.ProductAnalytics.Action) event_);
}
if (eventCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (io.bloombox.schema.analytics.shop.ShopAnalytics.Action) event_);
}
if (eventCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (io.bloombox.schema.analytics.order.OrderAnalytics.Action) event_);
}
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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action)) {
return super.equals(obj);
}
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action other = (io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasContext() != other.hasContext()) return false;
if (hasContext()) {
if (!getContext()
.equals(other.getContext())) return false;
}
if (!getEventCase().equals(other.getEventCase())) return false;
switch (eventCase_) {
case 10:
if (!getSection()
.equals(other.getSection())) return false;
break;
case 11:
if (!getProduct()
.equals(other.getProduct())) return false;
break;
case 12:
if (!getShop()
.equals(other.getShop())) return false;
break;
case 13:
if (!getOrder()
.equals(other.getOrder())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasContext()) {
hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getContext().hashCode();
}
switch (eventCase_) {
case 10:
hash = (37 * hash) + SECTION_FIELD_NUMBER;
hash = (53 * hash) + getSection().hashCode();
break;
case 11:
hash = (37 * hash) + PRODUCT_FIELD_NUMBER;
hash = (53 * hash) + getProduct().hashCode();
break;
case 12:
hash = (37 * hash) + SHOP_FIELD_NUMBER;
hash = (53 * hash) + getShop().hashCode();
break;
case 13:
hash = (37 * hash) + ORDER_FIELD_NUMBER;
hash = (53 * hash) + getOrder().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action 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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action 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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action 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(io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action 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;
}
/**
*
* Specifies an action-type event.
*
*
* Protobuf type {@code bloombox.services.telemetry.v1beta4.CommercialEvent.Action}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.telemetry.v1beta4.CommercialEvent.Action)
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.ActionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_Action_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_Action_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action.class, io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action.Builder.class);
}
// Construct using io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action.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();
name_ = "";
if (contextBuilder_ == null) {
context_ = null;
} else {
context_ = null;
contextBuilder_ = null;
}
eventCase_ = 0;
event_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_Action_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action getDefaultInstanceForType() {
return io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action build() {
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action buildPartial() {
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action result = new io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action(this);
result.name_ = name_;
if (contextBuilder_ == null) {
result.context_ = context_;
} else {
result.context_ = contextBuilder_.build();
}
if (eventCase_ == 10) {
if (sectionBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = sectionBuilder_.build();
}
}
if (eventCase_ == 11) {
if (productBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = productBuilder_.build();
}
}
if (eventCase_ == 12) {
if (shopBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = shopBuilder_.build();
}
}
if (eventCase_ == 13) {
if (orderBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = orderBuilder_.build();
}
}
result.eventCase_ = eventCase_;
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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action) {
return mergeFrom((io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action other) {
if (other == io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasContext()) {
mergeContext(other.getContext());
}
switch (other.getEventCase()) {
case SECTION: {
mergeSection(other.getSection());
break;
}
case PRODUCT: {
mergeProduct(other.getProduct());
break;
}
case SHOP: {
mergeShop(other.getShop());
break;
}
case ORDER: {
mergeOrder(other.getOrder());
break;
}
case EVENT_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 {
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int eventCase_ = 0;
private java.lang.Object event_;
public EventCase
getEventCase() {
return EventCase.forNumber(
eventCase_);
}
public Builder clearEvent() {
eventCase_ = 0;
event_ = null;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name for the action being transmitted. This is the string enum name for whatever event type is in use.
*
*
* string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name for the action being transmitted. This is the string enum name for whatever event type is in use.
*
*
* string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name for the action being transmitted. This is the string enum name for whatever event type is in use.
*
*
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name for the action being transmitted. This is the string enum name for whatever event type is in use.
*
*
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name for the action being transmitted. This is the string enum name for whatever event type is in use.
*
*
* string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private io.bloombox.schema.telemetry.AnalyticsContext.Context context_;
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.telemetry.AnalyticsContext.Context, io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder, io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder> contextBuilder_;
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 2;
*/
public boolean hasContext() {
return contextBuilder_ != null || context_ != null;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 2;
*/
public io.bloombox.schema.telemetry.AnalyticsContext.Context getContext() {
if (contextBuilder_ == null) {
return context_ == null ? io.bloombox.schema.telemetry.AnalyticsContext.Context.getDefaultInstance() : context_;
} else {
return contextBuilder_.getMessage();
}
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 2;
*/
public Builder setContext(io.bloombox.schema.telemetry.AnalyticsContext.Context value) {
if (contextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
context_ = value;
onChanged();
} else {
contextBuilder_.setMessage(value);
}
return this;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 2;
*/
public Builder setContext(
io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder builderForValue) {
if (contextBuilder_ == null) {
context_ = builderForValue.build();
onChanged();
} else {
contextBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 2;
*/
public Builder mergeContext(io.bloombox.schema.telemetry.AnalyticsContext.Context value) {
if (contextBuilder_ == null) {
if (context_ != null) {
context_ =
io.bloombox.schema.telemetry.AnalyticsContext.Context.newBuilder(context_).mergeFrom(value).buildPartial();
} else {
context_ = value;
}
onChanged();
} else {
contextBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 2;
*/
public Builder clearContext() {
if (contextBuilder_ == null) {
context_ = null;
onChanged();
} else {
context_ = null;
contextBuilder_ = null;
}
return this;
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 2;
*/
public io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder getContextBuilder() {
onChanged();
return getContextFieldBuilder().getBuilder();
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 2;
*/
public io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder getContextOrBuilder() {
if (contextBuilder_ != null) {
return contextBuilder_.getMessageOrBuilder();
} else {
return context_ == null ?
io.bloombox.schema.telemetry.AnalyticsContext.Context.getDefaultInstance() : context_;
}
}
/**
*
* Event context to specify for this event.
*
*
* .bloombox.analytics.Context context = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.telemetry.AnalyticsContext.Context, io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder, io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder>
getContextFieldBuilder() {
if (contextBuilder_ == null) {
contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.telemetry.AnalyticsContext.Context, io.bloombox.schema.telemetry.AnalyticsContext.Context.Builder, io.bloombox.schema.telemetry.AnalyticsContext.ContextOrBuilder>(
getContext(),
getParentForChildren(),
isClean());
context_ = null;
}
return contextBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.section.SectionAnalytics.Action, io.bloombox.schema.analytics.section.SectionAnalytics.Action.Builder, io.bloombox.schema.analytics.section.SectionAnalytics.ActionOrBuilder> sectionBuilder_;
/**
*
* Action event on a menu section.
*
*
* .bloombox.analytics.section.Action section = 10;
*/
public boolean hasSection() {
return eventCase_ == 10;
}
/**
*
* Action event on a menu section.
*
*
* .bloombox.analytics.section.Action section = 10;
*/
public io.bloombox.schema.analytics.section.SectionAnalytics.Action getSection() {
if (sectionBuilder_ == null) {
if (eventCase_ == 10) {
return (io.bloombox.schema.analytics.section.SectionAnalytics.Action) event_;
}
return io.bloombox.schema.analytics.section.SectionAnalytics.Action.getDefaultInstance();
} else {
if (eventCase_ == 10) {
return sectionBuilder_.getMessage();
}
return io.bloombox.schema.analytics.section.SectionAnalytics.Action.getDefaultInstance();
}
}
/**
*
* Action event on a menu section.
*
*
* .bloombox.analytics.section.Action section = 10;
*/
public Builder setSection(io.bloombox.schema.analytics.section.SectionAnalytics.Action value) {
if (sectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
sectionBuilder_.setMessage(value);
}
eventCase_ = 10;
return this;
}
/**
*
* Action event on a menu section.
*
*
* .bloombox.analytics.section.Action section = 10;
*/
public Builder setSection(
io.bloombox.schema.analytics.section.SectionAnalytics.Action.Builder builderForValue) {
if (sectionBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
sectionBuilder_.setMessage(builderForValue.build());
}
eventCase_ = 10;
return this;
}
/**
*
* Action event on a menu section.
*
*
* .bloombox.analytics.section.Action section = 10;
*/
public Builder mergeSection(io.bloombox.schema.analytics.section.SectionAnalytics.Action value) {
if (sectionBuilder_ == null) {
if (eventCase_ == 10 &&
event_ != io.bloombox.schema.analytics.section.SectionAnalytics.Action.getDefaultInstance()) {
event_ = io.bloombox.schema.analytics.section.SectionAnalytics.Action.newBuilder((io.bloombox.schema.analytics.section.SectionAnalytics.Action) event_)
.mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
if (eventCase_ == 10) {
sectionBuilder_.mergeFrom(value);
}
sectionBuilder_.setMessage(value);
}
eventCase_ = 10;
return this;
}
/**
*
* Action event on a menu section.
*
*
* .bloombox.analytics.section.Action section = 10;
*/
public Builder clearSection() {
if (sectionBuilder_ == null) {
if (eventCase_ == 10) {
eventCase_ = 0;
event_ = null;
onChanged();
}
} else {
if (eventCase_ == 10) {
eventCase_ = 0;
event_ = null;
}
sectionBuilder_.clear();
}
return this;
}
/**
*
* Action event on a menu section.
*
*
* .bloombox.analytics.section.Action section = 10;
*/
public io.bloombox.schema.analytics.section.SectionAnalytics.Action.Builder getSectionBuilder() {
return getSectionFieldBuilder().getBuilder();
}
/**
*
* Action event on a menu section.
*
*
* .bloombox.analytics.section.Action section = 10;
*/
public io.bloombox.schema.analytics.section.SectionAnalytics.ActionOrBuilder getSectionOrBuilder() {
if ((eventCase_ == 10) && (sectionBuilder_ != null)) {
return sectionBuilder_.getMessageOrBuilder();
} else {
if (eventCase_ == 10) {
return (io.bloombox.schema.analytics.section.SectionAnalytics.Action) event_;
}
return io.bloombox.schema.analytics.section.SectionAnalytics.Action.getDefaultInstance();
}
}
/**
*
* Action event on a menu section.
*
*
* .bloombox.analytics.section.Action section = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.section.SectionAnalytics.Action, io.bloombox.schema.analytics.section.SectionAnalytics.Action.Builder, io.bloombox.schema.analytics.section.SectionAnalytics.ActionOrBuilder>
getSectionFieldBuilder() {
if (sectionBuilder_ == null) {
if (!(eventCase_ == 10)) {
event_ = io.bloombox.schema.analytics.section.SectionAnalytics.Action.getDefaultInstance();
}
sectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.section.SectionAnalytics.Action, io.bloombox.schema.analytics.section.SectionAnalytics.Action.Builder, io.bloombox.schema.analytics.section.SectionAnalytics.ActionOrBuilder>(
(io.bloombox.schema.analytics.section.SectionAnalytics.Action) event_,
getParentForChildren(),
isClean());
event_ = null;
}
eventCase_ = 10;
onChanged();;
return sectionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.product.ProductAnalytics.Action, io.bloombox.schema.analytics.product.ProductAnalytics.Action.Builder, io.bloombox.schema.analytics.product.ProductAnalytics.ActionOrBuilder> productBuilder_;
/**
*
* Action event on a menu product.
*
*
* .bloombox.analytics.product.Action product = 11;
*/
public boolean hasProduct() {
return eventCase_ == 11;
}
/**
*
* Action event on a menu product.
*
*
* .bloombox.analytics.product.Action product = 11;
*/
public io.bloombox.schema.analytics.product.ProductAnalytics.Action getProduct() {
if (productBuilder_ == null) {
if (eventCase_ == 11) {
return (io.bloombox.schema.analytics.product.ProductAnalytics.Action) event_;
}
return io.bloombox.schema.analytics.product.ProductAnalytics.Action.getDefaultInstance();
} else {
if (eventCase_ == 11) {
return productBuilder_.getMessage();
}
return io.bloombox.schema.analytics.product.ProductAnalytics.Action.getDefaultInstance();
}
}
/**
*
* Action event on a menu product.
*
*
* .bloombox.analytics.product.Action product = 11;
*/
public Builder setProduct(io.bloombox.schema.analytics.product.ProductAnalytics.Action value) {
if (productBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
productBuilder_.setMessage(value);
}
eventCase_ = 11;
return this;
}
/**
*
* Action event on a menu product.
*
*
* .bloombox.analytics.product.Action product = 11;
*/
public Builder setProduct(
io.bloombox.schema.analytics.product.ProductAnalytics.Action.Builder builderForValue) {
if (productBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
productBuilder_.setMessage(builderForValue.build());
}
eventCase_ = 11;
return this;
}
/**
*
* Action event on a menu product.
*
*
* .bloombox.analytics.product.Action product = 11;
*/
public Builder mergeProduct(io.bloombox.schema.analytics.product.ProductAnalytics.Action value) {
if (productBuilder_ == null) {
if (eventCase_ == 11 &&
event_ != io.bloombox.schema.analytics.product.ProductAnalytics.Action.getDefaultInstance()) {
event_ = io.bloombox.schema.analytics.product.ProductAnalytics.Action.newBuilder((io.bloombox.schema.analytics.product.ProductAnalytics.Action) event_)
.mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
if (eventCase_ == 11) {
productBuilder_.mergeFrom(value);
}
productBuilder_.setMessage(value);
}
eventCase_ = 11;
return this;
}
/**
*
* Action event on a menu product.
*
*
* .bloombox.analytics.product.Action product = 11;
*/
public Builder clearProduct() {
if (productBuilder_ == null) {
if (eventCase_ == 11) {
eventCase_ = 0;
event_ = null;
onChanged();
}
} else {
if (eventCase_ == 11) {
eventCase_ = 0;
event_ = null;
}
productBuilder_.clear();
}
return this;
}
/**
*
* Action event on a menu product.
*
*
* .bloombox.analytics.product.Action product = 11;
*/
public io.bloombox.schema.analytics.product.ProductAnalytics.Action.Builder getProductBuilder() {
return getProductFieldBuilder().getBuilder();
}
/**
*
* Action event on a menu product.
*
*
* .bloombox.analytics.product.Action product = 11;
*/
public io.bloombox.schema.analytics.product.ProductAnalytics.ActionOrBuilder getProductOrBuilder() {
if ((eventCase_ == 11) && (productBuilder_ != null)) {
return productBuilder_.getMessageOrBuilder();
} else {
if (eventCase_ == 11) {
return (io.bloombox.schema.analytics.product.ProductAnalytics.Action) event_;
}
return io.bloombox.schema.analytics.product.ProductAnalytics.Action.getDefaultInstance();
}
}
/**
*
* Action event on a menu product.
*
*
* .bloombox.analytics.product.Action product = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.product.ProductAnalytics.Action, io.bloombox.schema.analytics.product.ProductAnalytics.Action.Builder, io.bloombox.schema.analytics.product.ProductAnalytics.ActionOrBuilder>
getProductFieldBuilder() {
if (productBuilder_ == null) {
if (!(eventCase_ == 11)) {
event_ = io.bloombox.schema.analytics.product.ProductAnalytics.Action.getDefaultInstance();
}
productBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.product.ProductAnalytics.Action, io.bloombox.schema.analytics.product.ProductAnalytics.Action.Builder, io.bloombox.schema.analytics.product.ProductAnalytics.ActionOrBuilder>(
(io.bloombox.schema.analytics.product.ProductAnalytics.Action) event_,
getParentForChildren(),
isClean());
event_ = null;
}
eventCase_ = 11;
onChanged();;
return productBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.shop.ShopAnalytics.Action, io.bloombox.schema.analytics.shop.ShopAnalytics.Action.Builder, io.bloombox.schema.analytics.shop.ShopAnalytics.ActionOrBuilder> shopBuilder_;
/**
*
* Action event for a commercial shop.
*
*
* .bloombox.analytics.shop.Action shop = 12;
*/
public boolean hasShop() {
return eventCase_ == 12;
}
/**
*
* Action event for a commercial shop.
*
*
* .bloombox.analytics.shop.Action shop = 12;
*/
public io.bloombox.schema.analytics.shop.ShopAnalytics.Action getShop() {
if (shopBuilder_ == null) {
if (eventCase_ == 12) {
return (io.bloombox.schema.analytics.shop.ShopAnalytics.Action) event_;
}
return io.bloombox.schema.analytics.shop.ShopAnalytics.Action.getDefaultInstance();
} else {
if (eventCase_ == 12) {
return shopBuilder_.getMessage();
}
return io.bloombox.schema.analytics.shop.ShopAnalytics.Action.getDefaultInstance();
}
}
/**
*
* Action event for a commercial shop.
*
*
* .bloombox.analytics.shop.Action shop = 12;
*/
public Builder setShop(io.bloombox.schema.analytics.shop.ShopAnalytics.Action value) {
if (shopBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
shopBuilder_.setMessage(value);
}
eventCase_ = 12;
return this;
}
/**
*
* Action event for a commercial shop.
*
*
* .bloombox.analytics.shop.Action shop = 12;
*/
public Builder setShop(
io.bloombox.schema.analytics.shop.ShopAnalytics.Action.Builder builderForValue) {
if (shopBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
shopBuilder_.setMessage(builderForValue.build());
}
eventCase_ = 12;
return this;
}
/**
*
* Action event for a commercial shop.
*
*
* .bloombox.analytics.shop.Action shop = 12;
*/
public Builder mergeShop(io.bloombox.schema.analytics.shop.ShopAnalytics.Action value) {
if (shopBuilder_ == null) {
if (eventCase_ == 12 &&
event_ != io.bloombox.schema.analytics.shop.ShopAnalytics.Action.getDefaultInstance()) {
event_ = io.bloombox.schema.analytics.shop.ShopAnalytics.Action.newBuilder((io.bloombox.schema.analytics.shop.ShopAnalytics.Action) event_)
.mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
if (eventCase_ == 12) {
shopBuilder_.mergeFrom(value);
}
shopBuilder_.setMessage(value);
}
eventCase_ = 12;
return this;
}
/**
*
* Action event for a commercial shop.
*
*
* .bloombox.analytics.shop.Action shop = 12;
*/
public Builder clearShop() {
if (shopBuilder_ == null) {
if (eventCase_ == 12) {
eventCase_ = 0;
event_ = null;
onChanged();
}
} else {
if (eventCase_ == 12) {
eventCase_ = 0;
event_ = null;
}
shopBuilder_.clear();
}
return this;
}
/**
*
* Action event for a commercial shop.
*
*
* .bloombox.analytics.shop.Action shop = 12;
*/
public io.bloombox.schema.analytics.shop.ShopAnalytics.Action.Builder getShopBuilder() {
return getShopFieldBuilder().getBuilder();
}
/**
*
* Action event for a commercial shop.
*
*
* .bloombox.analytics.shop.Action shop = 12;
*/
public io.bloombox.schema.analytics.shop.ShopAnalytics.ActionOrBuilder getShopOrBuilder() {
if ((eventCase_ == 12) && (shopBuilder_ != null)) {
return shopBuilder_.getMessageOrBuilder();
} else {
if (eventCase_ == 12) {
return (io.bloombox.schema.analytics.shop.ShopAnalytics.Action) event_;
}
return io.bloombox.schema.analytics.shop.ShopAnalytics.Action.getDefaultInstance();
}
}
/**
*
* Action event for a commercial shop.
*
*
* .bloombox.analytics.shop.Action shop = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.shop.ShopAnalytics.Action, io.bloombox.schema.analytics.shop.ShopAnalytics.Action.Builder, io.bloombox.schema.analytics.shop.ShopAnalytics.ActionOrBuilder>
getShopFieldBuilder() {
if (shopBuilder_ == null) {
if (!(eventCase_ == 12)) {
event_ = io.bloombox.schema.analytics.shop.ShopAnalytics.Action.getDefaultInstance();
}
shopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.shop.ShopAnalytics.Action, io.bloombox.schema.analytics.shop.ShopAnalytics.Action.Builder, io.bloombox.schema.analytics.shop.ShopAnalytics.ActionOrBuilder>(
(io.bloombox.schema.analytics.shop.ShopAnalytics.Action) event_,
getParentForChildren(),
isClean());
event_ = null;
}
eventCase_ = 12;
onChanged();;
return shopBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.order.OrderAnalytics.Action, io.bloombox.schema.analytics.order.OrderAnalytics.Action.Builder, io.bloombox.schema.analytics.order.OrderAnalytics.ActionOrBuilder> orderBuilder_;
/**
*
* Action event on a user order.
*
*
* .bloombox.analytics.order.Action order = 13;
*/
public boolean hasOrder() {
return eventCase_ == 13;
}
/**
*
* Action event on a user order.
*
*
* .bloombox.analytics.order.Action order = 13;
*/
public io.bloombox.schema.analytics.order.OrderAnalytics.Action getOrder() {
if (orderBuilder_ == null) {
if (eventCase_ == 13) {
return (io.bloombox.schema.analytics.order.OrderAnalytics.Action) event_;
}
return io.bloombox.schema.analytics.order.OrderAnalytics.Action.getDefaultInstance();
} else {
if (eventCase_ == 13) {
return orderBuilder_.getMessage();
}
return io.bloombox.schema.analytics.order.OrderAnalytics.Action.getDefaultInstance();
}
}
/**
*
* Action event on a user order.
*
*
* .bloombox.analytics.order.Action order = 13;
*/
public Builder setOrder(io.bloombox.schema.analytics.order.OrderAnalytics.Action value) {
if (orderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
orderBuilder_.setMessage(value);
}
eventCase_ = 13;
return this;
}
/**
*
* Action event on a user order.
*
*
* .bloombox.analytics.order.Action order = 13;
*/
public Builder setOrder(
io.bloombox.schema.analytics.order.OrderAnalytics.Action.Builder builderForValue) {
if (orderBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
orderBuilder_.setMessage(builderForValue.build());
}
eventCase_ = 13;
return this;
}
/**
*
* Action event on a user order.
*
*
* .bloombox.analytics.order.Action order = 13;
*/
public Builder mergeOrder(io.bloombox.schema.analytics.order.OrderAnalytics.Action value) {
if (orderBuilder_ == null) {
if (eventCase_ == 13 &&
event_ != io.bloombox.schema.analytics.order.OrderAnalytics.Action.getDefaultInstance()) {
event_ = io.bloombox.schema.analytics.order.OrderAnalytics.Action.newBuilder((io.bloombox.schema.analytics.order.OrderAnalytics.Action) event_)
.mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
if (eventCase_ == 13) {
orderBuilder_.mergeFrom(value);
}
orderBuilder_.setMessage(value);
}
eventCase_ = 13;
return this;
}
/**
*
* Action event on a user order.
*
*
* .bloombox.analytics.order.Action order = 13;
*/
public Builder clearOrder() {
if (orderBuilder_ == null) {
if (eventCase_ == 13) {
eventCase_ = 0;
event_ = null;
onChanged();
}
} else {
if (eventCase_ == 13) {
eventCase_ = 0;
event_ = null;
}
orderBuilder_.clear();
}
return this;
}
/**
*
* Action event on a user order.
*
*
* .bloombox.analytics.order.Action order = 13;
*/
public io.bloombox.schema.analytics.order.OrderAnalytics.Action.Builder getOrderBuilder() {
return getOrderFieldBuilder().getBuilder();
}
/**
*
* Action event on a user order.
*
*
* .bloombox.analytics.order.Action order = 13;
*/
public io.bloombox.schema.analytics.order.OrderAnalytics.ActionOrBuilder getOrderOrBuilder() {
if ((eventCase_ == 13) && (orderBuilder_ != null)) {
return orderBuilder_.getMessageOrBuilder();
} else {
if (eventCase_ == 13) {
return (io.bloombox.schema.analytics.order.OrderAnalytics.Action) event_;
}
return io.bloombox.schema.analytics.order.OrderAnalytics.Action.getDefaultInstance();
}
}
/**
*
* Action event on a user order.
*
*
* .bloombox.analytics.order.Action order = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.order.OrderAnalytics.Action, io.bloombox.schema.analytics.order.OrderAnalytics.Action.Builder, io.bloombox.schema.analytics.order.OrderAnalytics.ActionOrBuilder>
getOrderFieldBuilder() {
if (orderBuilder_ == null) {
if (!(eventCase_ == 13)) {
event_ = io.bloombox.schema.analytics.order.OrderAnalytics.Action.getDefaultInstance();
}
orderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.analytics.order.OrderAnalytics.Action, io.bloombox.schema.analytics.order.OrderAnalytics.Action.Builder, io.bloombox.schema.analytics.order.OrderAnalytics.ActionOrBuilder>(
(io.bloombox.schema.analytics.order.OrderAnalytics.Action) event_,
getParentForChildren(),
isClean());
event_ = null;
}
eventCase_ = 13;
onChanged();;
return orderBuilder_;
}
@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:bloombox.services.telemetry.v1beta4.CommercialEvent.Action)
}
// @@protoc_insertion_point(class_scope:bloombox.services.telemetry.v1beta4.CommercialEvent.Action)
private static final io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action();
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Action parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Action(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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Action getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent)) {
return super.equals(obj);
}
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent other = (io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent 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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent 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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent 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(io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent 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;
}
/**
*
* Specifies an event related to commercial services. This includes product events, section events, and order events.
*
*
* Protobuf type {@code bloombox.services.telemetry.v1beta4.CommercialEvent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.telemetry.v1beta4.CommercialEvent)
io.bloombox.schema.services.telemetry.v1beta4.CommercialEventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.class, io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.Builder.class);
}
// Construct using io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.bloombox.schema.services.telemetry.v1beta4.TelemetryServiceBeta4.internal_static_bloombox_services_telemetry_v1beta4_CommercialEvent_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent getDefaultInstanceForType() {
return io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent build() {
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent buildPartial() {
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent result = new io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent(this);
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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent) {
return mergeFrom((io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent other) {
if (other == io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent.getDefaultInstance()) return this;
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 {
io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:bloombox.services.telemetry.v1beta4.CommercialEvent)
}
// @@protoc_insertion_point(class_scope:bloombox.services.telemetry.v1beta4.CommercialEvent)
private static final io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent();
}
public static io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CommercialEvent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommercialEvent(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 io.bloombox.schema.services.telemetry.v1beta4.CommercialEvent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy