
io.bloombox.schema.telemetry.stats.OrderTelemetry 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: analytics/stats/OrderStats.proto
package io.bloombox.schema.telemetry.stats;
public final class OrderTelemetry {
private OrderTelemetry() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface OrderStatsOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.analytics.stats.OrderStats)
com.google.protobuf.MessageOrBuilder {
/**
*
* Original ID of the order.
*
*
* string oid = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "// Original ID of the order."];
*/
java.lang.String getOid();
/**
*
* Original ID of the order.
*
*
* string oid = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "// Original ID of the order."];
*/
com.google.protobuf.ByteString
getOidBytes();
/**
*
* Partner scope seen as associated with this commercial order.
*
*
* string partner_scope = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Partner scope seen as associated with this commercial order."];
*/
java.lang.String getPartnerScope();
/**
*
* Partner scope seen as associated with this commercial order.
*
*
* string partner_scope = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Partner scope seen as associated with this commercial order."];
*/
com.google.protobuf.ByteString
getPartnerScopeBytes();
/**
*
* Timestamp representing when this order was submitted.
*
*
* .opencannabis.temporal.Instant occurred = 3 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Timestamp representing the first event seen in this session."];
*/
boolean hasOccurred();
/**
*
* Timestamp representing when this order was submitted.
*
*
* .opencannabis.temporal.Instant occurred = 3 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Timestamp representing the first event seen in this session."];
*/
io.opencannabis.schema.temporal.TemporalInstant.Instant getOccurred();
/**
*
* Timestamp representing when this order was submitted.
*
*
* .opencannabis.temporal.Instant occurred = 3 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Timestamp representing the first event seen in this session."];
*/
io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getOccurredOrBuilder();
/**
*
* Count of unique products ordered (i.e. regardless of item 'count' per order).
*
*
* uint32 unique_item_count = 4 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Count of unique products ordered (i.e. regardless of item \'count\' per order)."];
*/
int getUniqueItemCount();
/**
*
* Count of total products ordered (i.e. including item 'count' per order).
*
*
* uint32 total_item_count = 5 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Count of total products ordered (i.e. including item \'count\' per order)."];
*/
int getTotalItemCount();
}
/**
*
* Specifies a set of basic calculated statistics, computed at the level of an entire user session.
*
*
* Protobuf type {@code bloombox.analytics.stats.OrderStats}
*/
public static final class OrderStats extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.analytics.stats.OrderStats)
OrderStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use OrderStats.newBuilder() to construct.
private OrderStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OrderStats() {
oid_ = "";
partnerScope_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OrderStats(
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();
oid_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
partnerScope_ = s;
break;
}
case 26: {
io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null;
if (occurred_ != null) {
subBuilder = occurred_.toBuilder();
}
occurred_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(occurred_);
occurred_ = subBuilder.buildPartial();
}
break;
}
case 32: {
uniqueItemCount_ = input.readUInt32();
break;
}
case 40: {
totalItemCount_ = input.readUInt32();
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.telemetry.stats.OrderTelemetry.internal_static_bloombox_analytics_stats_OrderStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.telemetry.stats.OrderTelemetry.internal_static_bloombox_analytics_stats_OrderStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats.class, io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats.Builder.class);
}
public static final int OID_FIELD_NUMBER = 1;
private volatile java.lang.Object oid_;
/**
*
* Original ID of the order.
*
*
* string oid = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "// Original ID of the order."];
*/
public java.lang.String getOid() {
java.lang.Object ref = oid_;
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();
oid_ = s;
return s;
}
}
/**
*
* Original ID of the order.
*
*
* string oid = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "// Original ID of the order."];
*/
public com.google.protobuf.ByteString
getOidBytes() {
java.lang.Object ref = oid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
oid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARTNER_SCOPE_FIELD_NUMBER = 2;
private volatile java.lang.Object partnerScope_;
/**
*
* Partner scope seen as associated with this commercial order.
*
*
* string partner_scope = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Partner scope seen as associated with this commercial order."];
*/
public java.lang.String getPartnerScope() {
java.lang.Object ref = partnerScope_;
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();
partnerScope_ = s;
return s;
}
}
/**
*
* Partner scope seen as associated with this commercial order.
*
*
* string partner_scope = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Partner scope seen as associated with this commercial order."];
*/
public com.google.protobuf.ByteString
getPartnerScopeBytes() {
java.lang.Object ref = partnerScope_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
partnerScope_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OCCURRED_FIELD_NUMBER = 3;
private io.opencannabis.schema.temporal.TemporalInstant.Instant occurred_;
/**
*
* Timestamp representing when this order was submitted.
*
*
* .opencannabis.temporal.Instant occurred = 3 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Timestamp representing the first event seen in this session."];
*/
public boolean hasOccurred() {
return occurred_ != null;
}
/**
*
* Timestamp representing when this order was submitted.
*
*
* .opencannabis.temporal.Instant occurred = 3 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Timestamp representing the first event seen in this session."];
*/
public io.opencannabis.schema.temporal.TemporalInstant.Instant getOccurred() {
return occurred_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : occurred_;
}
/**
*
* Timestamp representing when this order was submitted.
*
*
* .opencannabis.temporal.Instant occurred = 3 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Timestamp representing the first event seen in this session."];
*/
public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getOccurredOrBuilder() {
return getOccurred();
}
public static final int UNIQUE_ITEM_COUNT_FIELD_NUMBER = 4;
private int uniqueItemCount_;
/**
*
* Count of unique products ordered (i.e. regardless of item 'count' per order).
*
*
* uint32 unique_item_count = 4 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Count of unique products ordered (i.e. regardless of item \'count\' per order)."];
*/
public int getUniqueItemCount() {
return uniqueItemCount_;
}
public static final int TOTAL_ITEM_COUNT_FIELD_NUMBER = 5;
private int totalItemCount_;
/**
*
* Count of total products ordered (i.e. including item 'count' per order).
*
*
* uint32 total_item_count = 5 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Count of total products ordered (i.e. including item \'count\' per order)."];
*/
public int getTotalItemCount() {
return totalItemCount_;
}
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 (!getOidBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oid_);
}
if (!getPartnerScopeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partnerScope_);
}
if (occurred_ != null) {
output.writeMessage(3, getOccurred());
}
if (uniqueItemCount_ != 0) {
output.writeUInt32(4, uniqueItemCount_);
}
if (totalItemCount_ != 0) {
output.writeUInt32(5, totalItemCount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getOidBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, oid_);
}
if (!getPartnerScopeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partnerScope_);
}
if (occurred_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getOccurred());
}
if (uniqueItemCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, uniqueItemCount_);
}
if (totalItemCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, totalItemCount_);
}
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.telemetry.stats.OrderTelemetry.OrderStats)) {
return super.equals(obj);
}
io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats other = (io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats) obj;
if (!getOid()
.equals(other.getOid())) return false;
if (!getPartnerScope()
.equals(other.getPartnerScope())) return false;
if (hasOccurred() != other.hasOccurred()) return false;
if (hasOccurred()) {
if (!getOccurred()
.equals(other.getOccurred())) return false;
}
if (getUniqueItemCount()
!= other.getUniqueItemCount()) return false;
if (getTotalItemCount()
!= other.getTotalItemCount()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + OID_FIELD_NUMBER;
hash = (53 * hash) + getOid().hashCode();
hash = (37 * hash) + PARTNER_SCOPE_FIELD_NUMBER;
hash = (53 * hash) + getPartnerScope().hashCode();
if (hasOccurred()) {
hash = (37 * hash) + OCCURRED_FIELD_NUMBER;
hash = (53 * hash) + getOccurred().hashCode();
}
hash = (37 * hash) + UNIQUE_ITEM_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getUniqueItemCount();
hash = (37 * hash) + TOTAL_ITEM_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getTotalItemCount();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats 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.telemetry.stats.OrderTelemetry.OrderStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats 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.telemetry.stats.OrderTelemetry.OrderStats parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats 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.telemetry.stats.OrderTelemetry.OrderStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats 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.telemetry.stats.OrderTelemetry.OrderStats parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats 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.telemetry.stats.OrderTelemetry.OrderStats 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 set of basic calculated statistics, computed at the level of an entire user session.
*
*
* Protobuf type {@code bloombox.analytics.stats.OrderStats}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.analytics.stats.OrderStats)
io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.telemetry.stats.OrderTelemetry.internal_static_bloombox_analytics_stats_OrderStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.telemetry.stats.OrderTelemetry.internal_static_bloombox_analytics_stats_OrderStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats.class, io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats.Builder.class);
}
// Construct using io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats.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();
oid_ = "";
partnerScope_ = "";
if (occurredBuilder_ == null) {
occurred_ = null;
} else {
occurred_ = null;
occurredBuilder_ = null;
}
uniqueItemCount_ = 0;
totalItemCount_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.bloombox.schema.telemetry.stats.OrderTelemetry.internal_static_bloombox_analytics_stats_OrderStats_descriptor;
}
@java.lang.Override
public io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats getDefaultInstanceForType() {
return io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats build() {
io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats buildPartial() {
io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats result = new io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats(this);
result.oid_ = oid_;
result.partnerScope_ = partnerScope_;
if (occurredBuilder_ == null) {
result.occurred_ = occurred_;
} else {
result.occurred_ = occurredBuilder_.build();
}
result.uniqueItemCount_ = uniqueItemCount_;
result.totalItemCount_ = totalItemCount_;
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.telemetry.stats.OrderTelemetry.OrderStats) {
return mergeFrom((io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats other) {
if (other == io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats.getDefaultInstance()) return this;
if (!other.getOid().isEmpty()) {
oid_ = other.oid_;
onChanged();
}
if (!other.getPartnerScope().isEmpty()) {
partnerScope_ = other.partnerScope_;
onChanged();
}
if (other.hasOccurred()) {
mergeOccurred(other.getOccurred());
}
if (other.getUniqueItemCount() != 0) {
setUniqueItemCount(other.getUniqueItemCount());
}
if (other.getTotalItemCount() != 0) {
setTotalItemCount(other.getTotalItemCount());
}
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.telemetry.stats.OrderTelemetry.OrderStats parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object oid_ = "";
/**
*
* Original ID of the order.
*
*
* string oid = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "// Original ID of the order."];
*/
public java.lang.String getOid() {
java.lang.Object ref = oid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
oid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Original ID of the order.
*
*
* string oid = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "// Original ID of the order."];
*/
public com.google.protobuf.ByteString
getOidBytes() {
java.lang.Object ref = oid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
oid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Original ID of the order.
*
*
* string oid = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "// Original ID of the order."];
*/
public Builder setOid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
oid_ = value;
onChanged();
return this;
}
/**
*
* Original ID of the order.
*
*
* string oid = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "// Original ID of the order."];
*/
public Builder clearOid() {
oid_ = getDefaultInstance().getOid();
onChanged();
return this;
}
/**
*
* Original ID of the order.
*
*
* string oid = 1 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "// Original ID of the order."];
*/
public Builder setOidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
oid_ = value;
onChanged();
return this;
}
private java.lang.Object partnerScope_ = "";
/**
*
* Partner scope seen as associated with this commercial order.
*
*
* string partner_scope = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Partner scope seen as associated with this commercial order."];
*/
public java.lang.String getPartnerScope() {
java.lang.Object ref = partnerScope_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
partnerScope_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Partner scope seen as associated with this commercial order.
*
*
* string partner_scope = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Partner scope seen as associated with this commercial order."];
*/
public com.google.protobuf.ByteString
getPartnerScopeBytes() {
java.lang.Object ref = partnerScope_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
partnerScope_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Partner scope seen as associated with this commercial order.
*
*
* string partner_scope = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Partner scope seen as associated with this commercial order."];
*/
public Builder setPartnerScope(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
partnerScope_ = value;
onChanged();
return this;
}
/**
*
* Partner scope seen as associated with this commercial order.
*
*
* string partner_scope = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Partner scope seen as associated with this commercial order."];
*/
public Builder clearPartnerScope() {
partnerScope_ = getDefaultInstance().getPartnerScope();
onChanged();
return this;
}
/**
*
* Partner scope seen as associated with this commercial order.
*
*
* string partner_scope = 2 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Partner scope seen as associated with this commercial order."];
*/
public Builder setPartnerScopeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
partnerScope_ = value;
onChanged();
return this;
}
private io.opencannabis.schema.temporal.TemporalInstant.Instant occurred_;
private com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> occurredBuilder_;
/**
*
* Timestamp representing when this order was submitted.
*
*
* .opencannabis.temporal.Instant occurred = 3 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Timestamp representing the first event seen in this session."];
*/
public boolean hasOccurred() {
return occurredBuilder_ != null || occurred_ != null;
}
/**
*
* Timestamp representing when this order was submitted.
*
*
* .opencannabis.temporal.Instant occurred = 3 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Timestamp representing the first event seen in this session."];
*/
public io.opencannabis.schema.temporal.TemporalInstant.Instant getOccurred() {
if (occurredBuilder_ == null) {
return occurred_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : occurred_;
} else {
return occurredBuilder_.getMessage();
}
}
/**
*
* Timestamp representing when this order was submitted.
*
*
* .opencannabis.temporal.Instant occurred = 3 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Timestamp representing the first event seen in this session."];
*/
public Builder setOccurred(io.opencannabis.schema.temporal.TemporalInstant.Instant value) {
if (occurredBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
occurred_ = value;
onChanged();
} else {
occurredBuilder_.setMessage(value);
}
return this;
}
/**
*
* Timestamp representing when this order was submitted.
*
*
* .opencannabis.temporal.Instant occurred = 3 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Timestamp representing the first event seen in this session."];
*/
public Builder setOccurred(
io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) {
if (occurredBuilder_ == null) {
occurred_ = builderForValue.build();
onChanged();
} else {
occurredBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Timestamp representing when this order was submitted.
*
*
* .opencannabis.temporal.Instant occurred = 3 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Timestamp representing the first event seen in this session."];
*/
public Builder mergeOccurred(io.opencannabis.schema.temporal.TemporalInstant.Instant value) {
if (occurredBuilder_ == null) {
if (occurred_ != null) {
occurred_ =
io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(occurred_).mergeFrom(value).buildPartial();
} else {
occurred_ = value;
}
onChanged();
} else {
occurredBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Timestamp representing when this order was submitted.
*
*
* .opencannabis.temporal.Instant occurred = 3 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Timestamp representing the first event seen in this session."];
*/
public Builder clearOccurred() {
if (occurredBuilder_ == null) {
occurred_ = null;
onChanged();
} else {
occurred_ = null;
occurredBuilder_ = null;
}
return this;
}
/**
*
* Timestamp representing when this order was submitted.
*
*
* .opencannabis.temporal.Instant occurred = 3 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Timestamp representing the first event seen in this session."];
*/
public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getOccurredBuilder() {
onChanged();
return getOccurredFieldBuilder().getBuilder();
}
/**
*
* Timestamp representing when this order was submitted.
*
*
* .opencannabis.temporal.Instant occurred = 3 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Timestamp representing the first event seen in this session."];
*/
public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getOccurredOrBuilder() {
if (occurredBuilder_ != null) {
return occurredBuilder_.getMessageOrBuilder();
} else {
return occurred_ == null ?
io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : occurred_;
}
}
/**
*
* Timestamp representing when this order was submitted.
*
*
* .opencannabis.temporal.Instant occurred = 3 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Timestamp representing the first event seen in this session."];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>
getOccurredFieldBuilder() {
if (occurredBuilder_ == null) {
occurredBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>(
getOccurred(),
getParentForChildren(),
isClean());
occurred_ = null;
}
return occurredBuilder_;
}
private int uniqueItemCount_ ;
/**
*
* Count of unique products ordered (i.e. regardless of item 'count' per order).
*
*
* uint32 unique_item_count = 4 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Count of unique products ordered (i.e. regardless of item \'count\' per order)."];
*/
public int getUniqueItemCount() {
return uniqueItemCount_;
}
/**
*
* Count of unique products ordered (i.e. regardless of item 'count' per order).
*
*
* uint32 unique_item_count = 4 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Count of unique products ordered (i.e. regardless of item \'count\' per order)."];
*/
public Builder setUniqueItemCount(int value) {
uniqueItemCount_ = value;
onChanged();
return this;
}
/**
*
* Count of unique products ordered (i.e. regardless of item 'count' per order).
*
*
* uint32 unique_item_count = 4 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Count of unique products ordered (i.e. regardless of item \'count\' per order)."];
*/
public Builder clearUniqueItemCount() {
uniqueItemCount_ = 0;
onChanged();
return this;
}
private int totalItemCount_ ;
/**
*
* Count of total products ordered (i.e. including item 'count' per order).
*
*
* uint32 total_item_count = 5 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Count of total products ordered (i.e. including item \'count\' per order)."];
*/
public int getTotalItemCount() {
return totalItemCount_;
}
/**
*
* Count of total products ordered (i.e. including item 'count' per order).
*
*
* uint32 total_item_count = 5 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Count of total products ordered (i.e. including item \'count\' per order)."];
*/
public Builder setTotalItemCount(int value) {
totalItemCount_ = value;
onChanged();
return this;
}
/**
*
* Count of total products ordered (i.e. including item 'count' per order).
*
*
* uint32 total_item_count = 5 [(.gen_bq_schema.require) = true, (.gen_bq_schema.description) = "Count of total products ordered (i.e. including item \'count\' per order)."];
*/
public Builder clearTotalItemCount() {
totalItemCount_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:bloombox.analytics.stats.OrderStats)
}
// @@protoc_insertion_point(class_scope:bloombox.analytics.stats.OrderStats)
private static final io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats();
}
public static io.bloombox.schema.telemetry.stats.OrderTelemetry.OrderStats getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OrderStats parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OrderStats(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.telemetry.stats.OrderTelemetry.OrderStats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_bloombox_analytics_stats_OrderStats_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bloombox_analytics_stats_OrderStats_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n analytics/stats/OrderStats.proto\022\030bloo" +
"mbox.analytics.stats\032\016bq_field.proto\032\026te" +
"mporal/Instant.proto\"\350\003\n\nOrderStats\022/\n\003o" +
"id\030\001 \001(\tB\"\360?\001\212@\034// Original ID of the or" +
"der.\022Y\n\rpartner_scope\030\002 \001(\tBB\360?\001\212@\n\"io.bl" +
"oombox.schema.telemetry.statsB\016OrderTele" +
"metryH\001P\000\242\002\003BBSb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
gen_bq_schema.BqField.getDescriptor(),
io.opencannabis.schema.temporal.TemporalInstant.getDescriptor(),
}, assigner);
internal_static_bloombox_analytics_stats_OrderStats_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_bloombox_analytics_stats_OrderStats_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bloombox_analytics_stats_OrderStats_descriptor,
new java.lang.String[] { "Oid", "PartnerScope", "Occurred", "UniqueItemCount", "TotalItemCount", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(gen_bq_schema.BqField.description);
registry.add(gen_bq_schema.BqField.require);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
gen_bq_schema.BqField.getDescriptor();
io.opencannabis.schema.temporal.TemporalInstant.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy