io.bloombox.schema.telemetry.AnalyticsScope 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/Scope.proto
package io.bloombox.schema.telemetry;
public final class AnalyticsScope {
private AnalyticsScope() {}
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 ScopeOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.analytics.Scope)
com.google.protobuf.MessageOrBuilder {
/**
*
* Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location
* code, and partner co-located device UUID that reported an event.
*
*
* string partner = 1 [(.gen_bq_schema.description) = "Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location code, and partner co-located device UUID that reported an event."];
*/
java.lang.String getPartner();
/**
*
* Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location
* code, and partner co-located device UUID that reported an event.
*
*
* string partner = 1 [(.gen_bq_schema.description) = "Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location code, and partner co-located device UUID that reported an event."];
*/
com.google.protobuf.ByteString
getPartnerBytes();
/**
*
* Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, menu section name and
* product key.
*
*
* string commercial = 2 [(.gen_bq_schema.description) = "Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, the section name, product key, and order key."];
*/
java.lang.String getCommercial();
/**
*
* Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, menu section name and
* product key.
*
*
* string commercial = 2 [(.gen_bq_schema.description) = "Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, the section name, product key, and order key."];
*/
com.google.protobuf.ByteString
getCommercialBytes();
/**
*
* Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent.
*
*
* string order = 3 [(.gen_bq_schema.description) = "Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent."];
*/
java.lang.String getOrder();
/**
*
* Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent.
*
*
* string order = 3 [(.gen_bq_schema.description) = "Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent."];
*/
com.google.protobuf.ByteString
getOrderBytes();
}
/**
*
* Specifies scope options applied to an event, including its "partner scope," (or the partner/location/device under
* which the event was logged), and its "commercial scope," (indicating the section/item/order involved in an event
* transaction), among others.
*
*
* Protobuf type {@code bloombox.analytics.Scope}
*/
public static final class Scope extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.analytics.Scope)
ScopeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Scope.newBuilder() to construct.
private Scope(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Scope() {
partner_ = "";
commercial_ = "";
order_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Scope(
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();
partner_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
commercial_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
order_ = s;
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.AnalyticsScope.internal_static_bloombox_analytics_Scope_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.telemetry.AnalyticsScope.internal_static_bloombox_analytics_Scope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.telemetry.AnalyticsScope.Scope.class, io.bloombox.schema.telemetry.AnalyticsScope.Scope.Builder.class);
}
public static final int PARTNER_FIELD_NUMBER = 1;
private volatile java.lang.Object partner_;
/**
*
* Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location
* code, and partner co-located device UUID that reported an event.
*
*
* string partner = 1 [(.gen_bq_schema.description) = "Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location code, and partner co-located device UUID that reported an event."];
*/
public java.lang.String getPartner() {
java.lang.Object ref = partner_;
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();
partner_ = s;
return s;
}
}
/**
*
* Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location
* code, and partner co-located device UUID that reported an event.
*
*
* string partner = 1 [(.gen_bq_schema.description) = "Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location code, and partner co-located device UUID that reported an event."];
*/
public com.google.protobuf.ByteString
getPartnerBytes() {
java.lang.Object ref = partner_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
partner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMERCIAL_FIELD_NUMBER = 2;
private volatile java.lang.Object commercial_;
/**
*
* Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, menu section name and
* product key.
*
*
* string commercial = 2 [(.gen_bq_schema.description) = "Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, the section name, product key, and order key."];
*/
public java.lang.String getCommercial() {
java.lang.Object ref = commercial_;
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();
commercial_ = s;
return s;
}
}
/**
*
* Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, menu section name and
* product key.
*
*
* string commercial = 2 [(.gen_bq_schema.description) = "Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, the section name, product key, and order key."];
*/
public com.google.protobuf.ByteString
getCommercialBytes() {
java.lang.Object ref = commercial_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
commercial_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ORDER_FIELD_NUMBER = 3;
private volatile java.lang.Object order_;
/**
*
* Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent.
*
*
* string order = 3 [(.gen_bq_schema.description) = "Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent."];
*/
public java.lang.String getOrder() {
java.lang.Object ref = order_;
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();
order_ = s;
return s;
}
}
/**
*
* Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent.
*
*
* string order = 3 [(.gen_bq_schema.description) = "Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent."];
*/
public com.google.protobuf.ByteString
getOrderBytes() {
java.lang.Object ref = order_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
order_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!getPartnerBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, partner_);
}
if (!getCommercialBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commercial_);
}
if (!getOrderBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, order_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getPartnerBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, partner_);
}
if (!getCommercialBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commercial_);
}
if (!getOrderBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, order_);
}
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.AnalyticsScope.Scope)) {
return super.equals(obj);
}
io.bloombox.schema.telemetry.AnalyticsScope.Scope other = (io.bloombox.schema.telemetry.AnalyticsScope.Scope) obj;
if (!getPartner()
.equals(other.getPartner())) return false;
if (!getCommercial()
.equals(other.getCommercial())) return false;
if (!getOrder()
.equals(other.getOrder())) 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) + PARTNER_FIELD_NUMBER;
hash = (53 * hash) + getPartner().hashCode();
hash = (37 * hash) + COMMERCIAL_FIELD_NUMBER;
hash = (53 * hash) + getCommercial().hashCode();
hash = (37 * hash) + ORDER_FIELD_NUMBER;
hash = (53 * hash) + getOrder().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.telemetry.AnalyticsScope.Scope parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.telemetry.AnalyticsScope.Scope 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.AnalyticsScope.Scope parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.telemetry.AnalyticsScope.Scope 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.AnalyticsScope.Scope parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.telemetry.AnalyticsScope.Scope parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.telemetry.AnalyticsScope.Scope parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.telemetry.AnalyticsScope.Scope 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.AnalyticsScope.Scope parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.bloombox.schema.telemetry.AnalyticsScope.Scope 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.AnalyticsScope.Scope parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.telemetry.AnalyticsScope.Scope 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.AnalyticsScope.Scope 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 scope options applied to an event, including its "partner scope," (or the partner/location/device under
* which the event was logged), and its "commercial scope," (indicating the section/item/order involved in an event
* transaction), among others.
*
*
* Protobuf type {@code bloombox.analytics.Scope}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.analytics.Scope)
io.bloombox.schema.telemetry.AnalyticsScope.ScopeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.telemetry.AnalyticsScope.internal_static_bloombox_analytics_Scope_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.telemetry.AnalyticsScope.internal_static_bloombox_analytics_Scope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.telemetry.AnalyticsScope.Scope.class, io.bloombox.schema.telemetry.AnalyticsScope.Scope.Builder.class);
}
// Construct using io.bloombox.schema.telemetry.AnalyticsScope.Scope.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();
partner_ = "";
commercial_ = "";
order_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.bloombox.schema.telemetry.AnalyticsScope.internal_static_bloombox_analytics_Scope_descriptor;
}
@java.lang.Override
public io.bloombox.schema.telemetry.AnalyticsScope.Scope getDefaultInstanceForType() {
return io.bloombox.schema.telemetry.AnalyticsScope.Scope.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.telemetry.AnalyticsScope.Scope build() {
io.bloombox.schema.telemetry.AnalyticsScope.Scope result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.telemetry.AnalyticsScope.Scope buildPartial() {
io.bloombox.schema.telemetry.AnalyticsScope.Scope result = new io.bloombox.schema.telemetry.AnalyticsScope.Scope(this);
result.partner_ = partner_;
result.commercial_ = commercial_;
result.order_ = order_;
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.AnalyticsScope.Scope) {
return mergeFrom((io.bloombox.schema.telemetry.AnalyticsScope.Scope)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.telemetry.AnalyticsScope.Scope other) {
if (other == io.bloombox.schema.telemetry.AnalyticsScope.Scope.getDefaultInstance()) return this;
if (!other.getPartner().isEmpty()) {
partner_ = other.partner_;
onChanged();
}
if (!other.getCommercial().isEmpty()) {
commercial_ = other.commercial_;
onChanged();
}
if (!other.getOrder().isEmpty()) {
order_ = other.order_;
onChanged();
}
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.AnalyticsScope.Scope parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.telemetry.AnalyticsScope.Scope) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object partner_ = "";
/**
*
* Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location
* code, and partner co-located device UUID that reported an event.
*
*
* string partner = 1 [(.gen_bq_schema.description) = "Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location code, and partner co-located device UUID that reported an event."];
*/
public java.lang.String getPartner() {
java.lang.Object ref = partner_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
partner_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location
* code, and partner co-located device UUID that reported an event.
*
*
* string partner = 1 [(.gen_bq_schema.description) = "Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location code, and partner co-located device UUID that reported an event."];
*/
public com.google.protobuf.ByteString
getPartnerBytes() {
java.lang.Object ref = partner_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
partner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location
* code, and partner co-located device UUID that reported an event.
*
*
* string partner = 1 [(.gen_bq_schema.description) = "Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location code, and partner co-located device UUID that reported an event."];
*/
public Builder setPartner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
partner_ = value;
onChanged();
return this;
}
/**
*
* Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location
* code, and partner co-located device UUID that reported an event.
*
*
* string partner = 1 [(.gen_bq_schema.description) = "Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location code, and partner co-located device UUID that reported an event."];
*/
public Builder clearPartner() {
partner_ = getDefaultInstance().getPartner();
onChanged();
return this;
}
/**
*
* Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location
* code, and partner co-located device UUID that reported an event.
*
*
* string partner = 1 [(.gen_bq_schema.description) = "Partner scope. Specifies, each-if-applicable and only in the following order-of-scope, the partner code, location code, and partner co-located device UUID that reported an event."];
*/
public Builder setPartnerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
partner_ = value;
onChanged();
return this;
}
private java.lang.Object commercial_ = "";
/**
*
* Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, menu section name and
* product key.
*
*
* string commercial = 2 [(.gen_bq_schema.description) = "Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, the section name, product key, and order key."];
*/
public java.lang.String getCommercial() {
java.lang.Object ref = commercial_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
commercial_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, menu section name and
* product key.
*
*
* string commercial = 2 [(.gen_bq_schema.description) = "Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, the section name, product key, and order key."];
*/
public com.google.protobuf.ByteString
getCommercialBytes() {
java.lang.Object ref = commercial_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
commercial_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, menu section name and
* product key.
*
*
* string commercial = 2 [(.gen_bq_schema.description) = "Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, the section name, product key, and order key."];
*/
public Builder setCommercial(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
commercial_ = value;
onChanged();
return this;
}
/**
*
* Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, menu section name and
* product key.
*
*
* string commercial = 2 [(.gen_bq_schema.description) = "Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, the section name, product key, and order key."];
*/
public Builder clearCommercial() {
commercial_ = getDefaultInstance().getCommercial();
onChanged();
return this;
}
/**
*
* Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, menu section name and
* product key.
*
*
* string commercial = 2 [(.gen_bq_schema.description) = "Commercial scope. Specifies, each-if-applicable and only in the following order-of-scope, the section name, product key, and order key."];
*/
public Builder setCommercialBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
commercial_ = value;
onChanged();
return this;
}
private java.lang.Object order_ = "";
/**
*
* Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent.
*
*
* string order = 3 [(.gen_bq_schema.description) = "Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent."];
*/
public java.lang.String getOrder() {
java.lang.Object ref = order_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
order_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent.
*
*
* string order = 3 [(.gen_bq_schema.description) = "Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent."];
*/
public com.google.protobuf.ByteString
getOrderBytes() {
java.lang.Object ref = order_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
order_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent.
*
*
* string order = 3 [(.gen_bq_schema.description) = "Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent."];
*/
public Builder setOrder(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
order_ = value;
onChanged();
return this;
}
/**
*
* Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent.
*
*
* string order = 3 [(.gen_bq_schema.description) = "Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent."];
*/
public Builder clearOrder() {
order_ = getDefaultInstance().getOrder();
onChanged();
return this;
}
/**
*
* Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent.
*
*
* string order = 3 [(.gen_bq_schema.description) = "Order scope. Specifies, only if there is an active order, the order ID that was active when the event was sent."];
*/
public Builder setOrderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
order_ = value;
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.Scope)
}
// @@protoc_insertion_point(class_scope:bloombox.analytics.Scope)
private static final io.bloombox.schema.telemetry.AnalyticsScope.Scope DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.telemetry.AnalyticsScope.Scope();
}
public static io.bloombox.schema.telemetry.AnalyticsScope.Scope getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Scope parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Scope(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.AnalyticsScope.Scope getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_bloombox_analytics_Scope_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_bloombox_analytics_Scope_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\025analytics/Scope.proto\022\022bloombox.analyt" +
"ics\032\016bq_field.proto\"\371\003\n\005Scope\022\310\001\n\007partne" +
"r\030\001 \001(\tB\266\001\212@\262\001Partner scope. Specifies, " +
"each-if-applicable and only in the follo" +
"wing order-of-scope, the partner code, l" +
"ocation code, and partner co-located dev" +
"ice UUID that reported an event.\022\240\001\n\ncom" +
"mercial\030\002 \001(\tB\213\001\212@\207\001Commercial scope. Sp" +
"ecifies, each-if-applicable and only in " +
"the following order-of-scope, the sectio" +
"n name, product key, and order key.\022\201\001\n\005" +
"order\030\003 \001(\tBr\212@oOrder scope. Specifies, " +
"only if there is an active order, the or" +
"der ID that was active when the event wa" +
"s sent.B8\n\034io.bloombox.schema.telemetryB" +
"\016AnalyticsScopeH\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(),
}, assigner);
internal_static_bloombox_analytics_Scope_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_bloombox_analytics_Scope_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_bloombox_analytics_Scope_descriptor,
new java.lang.String[] { "Partner", "Commercial", "Order", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(gen_bq_schema.BqField.description);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
gen_bq_schema.BqField.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy