
com.vendasta.salesorders.v1.generated.SalesOrdersProto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of salesorders.v1 Show documentation
Show all versions of salesorders.v1 Show documentation
Java SDK for service sales-orders
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: sales_orders/v1/sales_orders.proto
package com.vendasta.salesorders.v1.generated;
public final class SalesOrdersProto {
private SalesOrdersProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* The different statuses representing any given state an order can be in
*
*
* Protobuf enum {@code salesorders.v1.Status}
*/
public enum Status
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SUBMITTED = 0;
*/
SUBMITTED(0),
/**
* APPROVED = 1;
*/
APPROVED(1),
/**
* DECLINED = 2;
*/
DECLINED(2),
/**
* DRAFTED = 3;
*/
DRAFTED(3),
/**
* FULFILLED = 4;
*/
FULFILLED(4),
/**
* PROCESSING = 5;
*/
PROCESSING(5),
/**
* ACTIVATION_ERRORS = 6;
*/
ACTIVATION_ERRORS(6),
/**
* ARCHIVED = 7;
*/
ARCHIVED(7),
UNRECOGNIZED(-1),
;
/**
* SUBMITTED = 0;
*/
public static final int SUBMITTED_VALUE = 0;
/**
* APPROVED = 1;
*/
public static final int APPROVED_VALUE = 1;
/**
* DECLINED = 2;
*/
public static final int DECLINED_VALUE = 2;
/**
* DRAFTED = 3;
*/
public static final int DRAFTED_VALUE = 3;
/**
* FULFILLED = 4;
*/
public static final int FULFILLED_VALUE = 4;
/**
* PROCESSING = 5;
*/
public static final int PROCESSING_VALUE = 5;
/**
* ACTIVATION_ERRORS = 6;
*/
public static final int ACTIVATION_ERRORS_VALUE = 6;
/**
* ARCHIVED = 7;
*/
public static final int ARCHIVED_VALUE = 7;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Status valueOf(int value) {
return forNumber(value);
}
public static Status forNumber(int value) {
switch (value) {
case 0: return SUBMITTED;
case 1: return APPROVED;
case 2: return DECLINED;
case 3: return DRAFTED;
case 4: return FULFILLED;
case 5: return PROCESSING;
case 6: return ACTIVATION_ERRORS;
case 7: return ARCHIVED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Status> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Status findValueByNumber(int number) {
return Status.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.getDescriptor().getEnumTypes().get(0);
}
private static final Status[] VALUES = values();
public static Status valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Status(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:salesorders.v1.Status)
}
/**
*
* The different statuses representing any given state that a product can be in during the activation process
*
*
* Protobuf enum {@code salesorders.v1.ActivationStatus}
*/
public enum ActivationStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* The product is in the process of being activated
*
*
* PENDING = 0;
*/
PENDING(0),
/**
*
* The product was successfully activated via the order
*
*
* ACTIVATED = 1;
*/
ACTIVATED(1),
/**
*
* An error occured while activating the product during the activation step
*
*
* ERRORED = 2;
*/
ERRORED(2),
/**
*
* The product was already active prior to fulfilling the order
*
*
* ALREADY_ACTIVATED = 3;
*/
ALREADY_ACTIVATED(3),
UNRECOGNIZED(-1),
;
/**
*
* The product is in the process of being activated
*
*
* PENDING = 0;
*/
public static final int PENDING_VALUE = 0;
/**
*
* The product was successfully activated via the order
*
*
* ACTIVATED = 1;
*/
public static final int ACTIVATED_VALUE = 1;
/**
*
* An error occured while activating the product during the activation step
*
*
* ERRORED = 2;
*/
public static final int ERRORED_VALUE = 2;
/**
*
* The product was already active prior to fulfilling the order
*
*
* ALREADY_ACTIVATED = 3;
*/
public static final int ALREADY_ACTIVATED_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ActivationStatus valueOf(int value) {
return forNumber(value);
}
public static ActivationStatus forNumber(int value) {
switch (value) {
case 0: return PENDING;
case 1: return ACTIVATED;
case 2: return ERRORED;
case 3: return ALREADY_ACTIVATED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ActivationStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ActivationStatus findValueByNumber(int number) {
return ActivationStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.getDescriptor().getEnumTypes().get(1);
}
private static final ActivationStatus[] VALUES = values();
public static ActivationStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ActivationStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:salesorders.v1.ActivationStatus)
}
/**
*
* Available types that a field can be
*
*
* Protobuf enum {@code salesorders.v1.FieldType}
*/
public enum FieldType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NOT_SPECIFIED = 0;
*/
NOT_SPECIFIED(0),
/**
* TEXT = 1;
*/
TEXT(1),
/**
* TEXTAREA = 2;
*/
TEXTAREA(2),
/**
* DROPDOWN = 3;
*/
DROPDOWN(3),
/**
* CHECKBOX = 4;
*/
CHECKBOX(4),
/**
* FILE = 5;
*/
FILE(5),
/**
* VBCUSER = 6;
*/
VBCUSER(6),
UNRECOGNIZED(-1),
;
/**
* NOT_SPECIFIED = 0;
*/
public static final int NOT_SPECIFIED_VALUE = 0;
/**
* TEXT = 1;
*/
public static final int TEXT_VALUE = 1;
/**
* TEXTAREA = 2;
*/
public static final int TEXTAREA_VALUE = 2;
/**
* DROPDOWN = 3;
*/
public static final int DROPDOWN_VALUE = 3;
/**
* CHECKBOX = 4;
*/
public static final int CHECKBOX_VALUE = 4;
/**
* FILE = 5;
*/
public static final int FILE_VALUE = 5;
/**
* VBCUSER = 6;
*/
public static final int VBCUSER_VALUE = 6;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FieldType valueOf(int value) {
return forNumber(value);
}
public static FieldType forNumber(int value) {
switch (value) {
case 0: return NOT_SPECIFIED;
case 1: return TEXT;
case 2: return TEXTAREA;
case 3: return DROPDOWN;
case 4: return CHECKBOX;
case 5: return FILE;
case 6: return VBCUSER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
FieldType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public FieldType findValueByNumber(int number) {
return FieldType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.getDescriptor().getEnumTypes().get(2);
}
private static final FieldType[] VALUES = values();
public static FieldType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private FieldType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:salesorders.v1.FieldType)
}
public interface AddonKeyOrBuilder extends
// @@protoc_insertion_point(interface_extends:salesorders.v1.AddonKey)
com.google.protobuf.MessageOrBuilder {
/**
*
* Unique identifier of an addon
*
*
* string addon_id = 1;
*/
java.lang.String getAddonId();
/**
*
* Unique identifier of an addon
*
*
* string addon_id = 1;
*/
com.google.protobuf.ByteString
getAddonIdBytes();
/**
*
* The parent app for the addon
*
*
* string app_id = 2;
*/
java.lang.String getAppId();
/**
*
* The parent app for the addon
*
*
* string app_id = 2;
*/
com.google.protobuf.ByteString
getAppIdBytes();
}
/**
* Protobuf type {@code salesorders.v1.AddonKey}
*/
public static final class AddonKey extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:salesorders.v1.AddonKey)
AddonKeyOrBuilder {
// Use AddonKey.newBuilder() to construct.
private AddonKey(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddonKey() {
addonId_ = "";
appId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private AddonKey(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
addonId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
appId_ = s;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_AddonKey_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_AddonKey_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder.class);
}
public static final int ADDON_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object addonId_;
/**
*
* Unique identifier of an addon
*
*
* string addon_id = 1;
*/
public java.lang.String getAddonId() {
java.lang.Object ref = addonId_;
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();
addonId_ = s;
return s;
}
}
/**
*
* Unique identifier of an addon
*
*
* string addon_id = 1;
*/
public com.google.protobuf.ByteString
getAddonIdBytes() {
java.lang.Object ref = addonId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
addonId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APP_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object appId_;
/**
*
* The parent app for the addon
*
*
* string app_id = 2;
*/
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
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();
appId_ = s;
return s;
}
}
/**
*
* The parent app for the addon
*
*
* string app_id = 2;
*/
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getAddonIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addonId_);
}
if (!getAppIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, appId_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getAddonIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addonId_);
}
if (!getAppIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, appId_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey)) {
return super.equals(obj);
}
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey other = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey) obj;
boolean result = true;
result = result && getAddonId()
.equals(other.getAddonId());
result = result && getAppId()
.equals(other.getAppId());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ADDON_ID_FIELD_NUMBER;
hash = (53 * hash) + getAddonId().hashCode();
hash = (37 * hash) + APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getAppId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code salesorders.v1.AddonKey}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:salesorders.v1.AddonKey)
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_AddonKey_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_AddonKey_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder.class);
}
// Construct using com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
addonId_ = "";
appId_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_AddonKey_descriptor;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey getDefaultInstanceForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.getDefaultInstance();
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey build() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey buildPartial() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey result = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey(this);
result.addonId_ = addonId_;
result.appId_ = appId_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey) {
return mergeFrom((com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey other) {
if (other == com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.getDefaultInstance()) return this;
if (!other.getAddonId().isEmpty()) {
addonId_ = other.addonId_;
onChanged();
}
if (!other.getAppId().isEmpty()) {
appId_ = other.appId_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object addonId_ = "";
/**
*
* Unique identifier of an addon
*
*
* string addon_id = 1;
*/
public java.lang.String getAddonId() {
java.lang.Object ref = addonId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
addonId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Unique identifier of an addon
*
*
* string addon_id = 1;
*/
public com.google.protobuf.ByteString
getAddonIdBytes() {
java.lang.Object ref = addonId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
addonId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Unique identifier of an addon
*
*
* string addon_id = 1;
*/
public Builder setAddonId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
addonId_ = value;
onChanged();
return this;
}
/**
*
* Unique identifier of an addon
*
*
* string addon_id = 1;
*/
public Builder clearAddonId() {
addonId_ = getDefaultInstance().getAddonId();
onChanged();
return this;
}
/**
*
* Unique identifier of an addon
*
*
* string addon_id = 1;
*/
public Builder setAddonIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
addonId_ = value;
onChanged();
return this;
}
private java.lang.Object appId_ = "";
/**
*
* The parent app for the addon
*
*
* string app_id = 2;
*/
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
appId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The parent app for the addon
*
*
* string app_id = 2;
*/
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The parent app for the addon
*
*
* string app_id = 2;
*/
public Builder setAppId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
appId_ = value;
onChanged();
return this;
}
/**
*
* The parent app for the addon
*
*
* string app_id = 2;
*/
public Builder clearAppId() {
appId_ = getDefaultInstance().getAppId();
onChanged();
return this;
}
/**
*
* The parent app for the addon
*
*
* string app_id = 2;
*/
public Builder setAppIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
appId_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:salesorders.v1.AddonKey)
}
// @@protoc_insertion_point(class_scope:salesorders.v1.AddonKey)
private static final com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey();
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public AddonKey parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AddonKey(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PackageOrBuilder extends
// @@protoc_insertion_point(interface_extends:salesorders.v1.Package)
com.google.protobuf.MessageOrBuilder {
/**
*
* Unique identifier of a package
*
*
* string package_id = 1;
*/
java.lang.String getPackageId();
/**
*
* Unique identifier of a package
*
*
* string package_id = 1;
*/
com.google.protobuf.ByteString
getPackageIdBytes();
/**
*
* Type of currency the revenue of a package is in
*
*
* .salesorders.v1.Currency currency = 2;
*/
int getCurrencyValue();
/**
*
* Type of currency the revenue of a package is in
*
*
* .salesorders.v1.Currency currency = 2;
*/
com.vendasta.salesorders.v1.generated.CommonProto.Currency getCurrency();
/**
*
* Revenue of a package
*
*
* .salesorders.v1.Revenue revenue = 3;
*/
boolean hasRevenue();
/**
*
* Revenue of a package
*
*
* .salesorders.v1.Revenue revenue = 3;
*/
com.vendasta.salesorders.v1.generated.CommonProto.Revenue getRevenue();
/**
*
* Revenue of a package
*
*
* .salesorders.v1.Revenue revenue = 3;
*/
com.vendasta.salesorders.v1.generated.CommonProto.RevenueOrBuilder getRevenueOrBuilder();
/**
*
* How many of the package is being requested
*
*
* int64 quantity = 4;
*/
long getQuantity();
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
java.util.List
getProductIdsList();
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
int getProductIdsCount();
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
java.lang.String getProductIds(int index);
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
com.google.protobuf.ByteString
getProductIdsBytes(int index);
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
java.util.List
getAddonKeysList();
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey getAddonKeys(int index);
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
int getAddonKeysCount();
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder>
getAddonKeysOrBuilderList();
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder getAddonKeysOrBuilder(
int index);
}
/**
*
* Representing a package in an order
*
*
* Protobuf type {@code salesorders.v1.Package}
*/
public static final class Package extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:salesorders.v1.Package)
PackageOrBuilder {
// Use Package.newBuilder() to construct.
private Package(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Package() {
packageId_ = "";
currency_ = 0;
quantity_ = 0L;
productIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
addonKeys_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Package(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
packageId_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
currency_ = rawValue;
break;
}
case 26: {
com.vendasta.salesorders.v1.generated.CommonProto.Revenue.Builder subBuilder = null;
if (revenue_ != null) {
subBuilder = revenue_.toBuilder();
}
revenue_ = input.readMessage(com.vendasta.salesorders.v1.generated.CommonProto.Revenue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(revenue_);
revenue_ = subBuilder.buildPartial();
}
break;
}
case 32: {
quantity_ = input.readInt64();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
productIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
productIds_.add(s);
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
addonKeys_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
addonKeys_.add(
input.readMessage(com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.parser(), extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
productIds_ = productIds_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
addonKeys_ = java.util.Collections.unmodifiableList(addonKeys_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_Package_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_Package_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.Builder.class);
}
private int bitField0_;
public static final int PACKAGE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object packageId_;
/**
*
* Unique identifier of a package
*
*
* string package_id = 1;
*/
public java.lang.String getPackageId() {
java.lang.Object ref = packageId_;
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();
packageId_ = s;
return s;
}
}
/**
*
* Unique identifier of a package
*
*
* string package_id = 1;
*/
public com.google.protobuf.ByteString
getPackageIdBytes() {
java.lang.Object ref = packageId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
packageId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CURRENCY_FIELD_NUMBER = 2;
private int currency_;
/**
*
* Type of currency the revenue of a package is in
*
*
* .salesorders.v1.Currency currency = 2;
*/
public int getCurrencyValue() {
return currency_;
}
/**
*
* Type of currency the revenue of a package is in
*
*
* .salesorders.v1.Currency currency = 2;
*/
public com.vendasta.salesorders.v1.generated.CommonProto.Currency getCurrency() {
com.vendasta.salesorders.v1.generated.CommonProto.Currency result = com.vendasta.salesorders.v1.generated.CommonProto.Currency.valueOf(currency_);
return result == null ? com.vendasta.salesorders.v1.generated.CommonProto.Currency.UNRECOGNIZED : result;
}
public static final int REVENUE_FIELD_NUMBER = 3;
private com.vendasta.salesorders.v1.generated.CommonProto.Revenue revenue_;
/**
*
* Revenue of a package
*
*
* .salesorders.v1.Revenue revenue = 3;
*/
public boolean hasRevenue() {
return revenue_ != null;
}
/**
*
* Revenue of a package
*
*
* .salesorders.v1.Revenue revenue = 3;
*/
public com.vendasta.salesorders.v1.generated.CommonProto.Revenue getRevenue() {
return revenue_ == null ? com.vendasta.salesorders.v1.generated.CommonProto.Revenue.getDefaultInstance() : revenue_;
}
/**
*
* Revenue of a package
*
*
* .salesorders.v1.Revenue revenue = 3;
*/
public com.vendasta.salesorders.v1.generated.CommonProto.RevenueOrBuilder getRevenueOrBuilder() {
return getRevenue();
}
public static final int QUANTITY_FIELD_NUMBER = 4;
private long quantity_;
/**
*
* How many of the package is being requested
*
*
* int64 quantity = 4;
*/
public long getQuantity() {
return quantity_;
}
public static final int PRODUCT_IDS_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList productIds_;
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
public com.google.protobuf.ProtocolStringList
getProductIdsList() {
return productIds_;
}
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
public int getProductIdsCount() {
return productIds_.size();
}
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
public java.lang.String getProductIds(int index) {
return productIds_.get(index);
}
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
public com.google.protobuf.ByteString
getProductIdsBytes(int index) {
return productIds_.getByteString(index);
}
public static final int ADDON_KEYS_FIELD_NUMBER = 6;
private java.util.List addonKeys_;
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public java.util.List getAddonKeysList() {
return addonKeys_;
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder>
getAddonKeysOrBuilderList() {
return addonKeys_;
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public int getAddonKeysCount() {
return addonKeys_.size();
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey getAddonKeys(int index) {
return addonKeys_.get(index);
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder getAddonKeysOrBuilder(
int index) {
return addonKeys_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getPackageIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, packageId_);
}
if (currency_ != com.vendasta.salesorders.v1.generated.CommonProto.Currency.USD.getNumber()) {
output.writeEnum(2, currency_);
}
if (revenue_ != null) {
output.writeMessage(3, getRevenue());
}
if (quantity_ != 0L) {
output.writeInt64(4, quantity_);
}
for (int i = 0; i < productIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, productIds_.getRaw(i));
}
for (int i = 0; i < addonKeys_.size(); i++) {
output.writeMessage(6, addonKeys_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getPackageIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, packageId_);
}
if (currency_ != com.vendasta.salesorders.v1.generated.CommonProto.Currency.USD.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, currency_);
}
if (revenue_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getRevenue());
}
if (quantity_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, quantity_);
}
{
int dataSize = 0;
for (int i = 0; i < productIds_.size(); i++) {
dataSize += computeStringSizeNoTag(productIds_.getRaw(i));
}
size += dataSize;
size += 1 * getProductIdsList().size();
}
for (int i = 0; i < addonKeys_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, addonKeys_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package)) {
return super.equals(obj);
}
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package other = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package) obj;
boolean result = true;
result = result && getPackageId()
.equals(other.getPackageId());
result = result && currency_ == other.currency_;
result = result && (hasRevenue() == other.hasRevenue());
if (hasRevenue()) {
result = result && getRevenue()
.equals(other.getRevenue());
}
result = result && (getQuantity()
== other.getQuantity());
result = result && getProductIdsList()
.equals(other.getProductIdsList());
result = result && getAddonKeysList()
.equals(other.getAddonKeysList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PACKAGE_ID_FIELD_NUMBER;
hash = (53 * hash) + getPackageId().hashCode();
hash = (37 * hash) + CURRENCY_FIELD_NUMBER;
hash = (53 * hash) + currency_;
if (hasRevenue()) {
hash = (37 * hash) + REVENUE_FIELD_NUMBER;
hash = (53 * hash) + getRevenue().hashCode();
}
hash = (37 * hash) + QUANTITY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getQuantity());
if (getProductIdsCount() > 0) {
hash = (37 * hash) + PRODUCT_IDS_FIELD_NUMBER;
hash = (53 * hash) + getProductIdsList().hashCode();
}
if (getAddonKeysCount() > 0) {
hash = (37 * hash) + ADDON_KEYS_FIELD_NUMBER;
hash = (53 * hash) + getAddonKeysList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Representing a package in an order
*
*
* Protobuf type {@code salesorders.v1.Package}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:salesorders.v1.Package)
com.vendasta.salesorders.v1.generated.SalesOrdersProto.PackageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_Package_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_Package_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.Builder.class);
}
// Construct using com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAddonKeysFieldBuilder();
}
}
public Builder clear() {
super.clear();
packageId_ = "";
currency_ = 0;
if (revenueBuilder_ == null) {
revenue_ = null;
} else {
revenue_ = null;
revenueBuilder_ = null;
}
quantity_ = 0L;
productIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
if (addonKeysBuilder_ == null) {
addonKeys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
addonKeysBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_Package_descriptor;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package getDefaultInstanceForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.getDefaultInstance();
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package build() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package buildPartial() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package result = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.packageId_ = packageId_;
result.currency_ = currency_;
if (revenueBuilder_ == null) {
result.revenue_ = revenue_;
} else {
result.revenue_ = revenueBuilder_.build();
}
result.quantity_ = quantity_;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
productIds_ = productIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.productIds_ = productIds_;
if (addonKeysBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
addonKeys_ = java.util.Collections.unmodifiableList(addonKeys_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.addonKeys_ = addonKeys_;
} else {
result.addonKeys_ = addonKeysBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package) {
return mergeFrom((com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package other) {
if (other == com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.getDefaultInstance()) return this;
if (!other.getPackageId().isEmpty()) {
packageId_ = other.packageId_;
onChanged();
}
if (other.currency_ != 0) {
setCurrencyValue(other.getCurrencyValue());
}
if (other.hasRevenue()) {
mergeRevenue(other.getRevenue());
}
if (other.getQuantity() != 0L) {
setQuantity(other.getQuantity());
}
if (!other.productIds_.isEmpty()) {
if (productIds_.isEmpty()) {
productIds_ = other.productIds_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureProductIdsIsMutable();
productIds_.addAll(other.productIds_);
}
onChanged();
}
if (addonKeysBuilder_ == null) {
if (!other.addonKeys_.isEmpty()) {
if (addonKeys_.isEmpty()) {
addonKeys_ = other.addonKeys_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureAddonKeysIsMutable();
addonKeys_.addAll(other.addonKeys_);
}
onChanged();
}
} else {
if (!other.addonKeys_.isEmpty()) {
if (addonKeysBuilder_.isEmpty()) {
addonKeysBuilder_.dispose();
addonKeysBuilder_ = null;
addonKeys_ = other.addonKeys_;
bitField0_ = (bitField0_ & ~0x00000020);
addonKeysBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAddonKeysFieldBuilder() : null;
} else {
addonKeysBuilder_.addAllMessages(other.addonKeys_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object packageId_ = "";
/**
*
* Unique identifier of a package
*
*
* string package_id = 1;
*/
public java.lang.String getPackageId() {
java.lang.Object ref = packageId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
packageId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Unique identifier of a package
*
*
* string package_id = 1;
*/
public com.google.protobuf.ByteString
getPackageIdBytes() {
java.lang.Object ref = packageId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
packageId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Unique identifier of a package
*
*
* string package_id = 1;
*/
public Builder setPackageId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
packageId_ = value;
onChanged();
return this;
}
/**
*
* Unique identifier of a package
*
*
* string package_id = 1;
*/
public Builder clearPackageId() {
packageId_ = getDefaultInstance().getPackageId();
onChanged();
return this;
}
/**
*
* Unique identifier of a package
*
*
* string package_id = 1;
*/
public Builder setPackageIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
packageId_ = value;
onChanged();
return this;
}
private int currency_ = 0;
/**
*
* Type of currency the revenue of a package is in
*
*
* .salesorders.v1.Currency currency = 2;
*/
public int getCurrencyValue() {
return currency_;
}
/**
*
* Type of currency the revenue of a package is in
*
*
* .salesorders.v1.Currency currency = 2;
*/
public Builder setCurrencyValue(int value) {
currency_ = value;
onChanged();
return this;
}
/**
*
* Type of currency the revenue of a package is in
*
*
* .salesorders.v1.Currency currency = 2;
*/
public com.vendasta.salesorders.v1.generated.CommonProto.Currency getCurrency() {
com.vendasta.salesorders.v1.generated.CommonProto.Currency result = com.vendasta.salesorders.v1.generated.CommonProto.Currency.valueOf(currency_);
return result == null ? com.vendasta.salesorders.v1.generated.CommonProto.Currency.UNRECOGNIZED : result;
}
/**
*
* Type of currency the revenue of a package is in
*
*
* .salesorders.v1.Currency currency = 2;
*/
public Builder setCurrency(com.vendasta.salesorders.v1.generated.CommonProto.Currency value) {
if (value == null) {
throw new NullPointerException();
}
currency_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Type of currency the revenue of a package is in
*
*
* .salesorders.v1.Currency currency = 2;
*/
public Builder clearCurrency() {
currency_ = 0;
onChanged();
return this;
}
private com.vendasta.salesorders.v1.generated.CommonProto.Revenue revenue_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.vendasta.salesorders.v1.generated.CommonProto.Revenue, com.vendasta.salesorders.v1.generated.CommonProto.Revenue.Builder, com.vendasta.salesorders.v1.generated.CommonProto.RevenueOrBuilder> revenueBuilder_;
/**
*
* Revenue of a package
*
*
* .salesorders.v1.Revenue revenue = 3;
*/
public boolean hasRevenue() {
return revenueBuilder_ != null || revenue_ != null;
}
/**
*
* Revenue of a package
*
*
* .salesorders.v1.Revenue revenue = 3;
*/
public com.vendasta.salesorders.v1.generated.CommonProto.Revenue getRevenue() {
if (revenueBuilder_ == null) {
return revenue_ == null ? com.vendasta.salesorders.v1.generated.CommonProto.Revenue.getDefaultInstance() : revenue_;
} else {
return revenueBuilder_.getMessage();
}
}
/**
*
* Revenue of a package
*
*
* .salesorders.v1.Revenue revenue = 3;
*/
public Builder setRevenue(com.vendasta.salesorders.v1.generated.CommonProto.Revenue value) {
if (revenueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
revenue_ = value;
onChanged();
} else {
revenueBuilder_.setMessage(value);
}
return this;
}
/**
*
* Revenue of a package
*
*
* .salesorders.v1.Revenue revenue = 3;
*/
public Builder setRevenue(
com.vendasta.salesorders.v1.generated.CommonProto.Revenue.Builder builderForValue) {
if (revenueBuilder_ == null) {
revenue_ = builderForValue.build();
onChanged();
} else {
revenueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Revenue of a package
*
*
* .salesorders.v1.Revenue revenue = 3;
*/
public Builder mergeRevenue(com.vendasta.salesorders.v1.generated.CommonProto.Revenue value) {
if (revenueBuilder_ == null) {
if (revenue_ != null) {
revenue_ =
com.vendasta.salesorders.v1.generated.CommonProto.Revenue.newBuilder(revenue_).mergeFrom(value).buildPartial();
} else {
revenue_ = value;
}
onChanged();
} else {
revenueBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Revenue of a package
*
*
* .salesorders.v1.Revenue revenue = 3;
*/
public Builder clearRevenue() {
if (revenueBuilder_ == null) {
revenue_ = null;
onChanged();
} else {
revenue_ = null;
revenueBuilder_ = null;
}
return this;
}
/**
*
* Revenue of a package
*
*
* .salesorders.v1.Revenue revenue = 3;
*/
public com.vendasta.salesorders.v1.generated.CommonProto.Revenue.Builder getRevenueBuilder() {
onChanged();
return getRevenueFieldBuilder().getBuilder();
}
/**
*
* Revenue of a package
*
*
* .salesorders.v1.Revenue revenue = 3;
*/
public com.vendasta.salesorders.v1.generated.CommonProto.RevenueOrBuilder getRevenueOrBuilder() {
if (revenueBuilder_ != null) {
return revenueBuilder_.getMessageOrBuilder();
} else {
return revenue_ == null ?
com.vendasta.salesorders.v1.generated.CommonProto.Revenue.getDefaultInstance() : revenue_;
}
}
/**
*
* Revenue of a package
*
*
* .salesorders.v1.Revenue revenue = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.vendasta.salesorders.v1.generated.CommonProto.Revenue, com.vendasta.salesorders.v1.generated.CommonProto.Revenue.Builder, com.vendasta.salesorders.v1.generated.CommonProto.RevenueOrBuilder>
getRevenueFieldBuilder() {
if (revenueBuilder_ == null) {
revenueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.vendasta.salesorders.v1.generated.CommonProto.Revenue, com.vendasta.salesorders.v1.generated.CommonProto.Revenue.Builder, com.vendasta.salesorders.v1.generated.CommonProto.RevenueOrBuilder>(
getRevenue(),
getParentForChildren(),
isClean());
revenue_ = null;
}
return revenueBuilder_;
}
private long quantity_ ;
/**
*
* How many of the package is being requested
*
*
* int64 quantity = 4;
*/
public long getQuantity() {
return quantity_;
}
/**
*
* How many of the package is being requested
*
*
* int64 quantity = 4;
*/
public Builder setQuantity(long value) {
quantity_ = value;
onChanged();
return this;
}
/**
*
* How many of the package is being requested
*
*
* int64 quantity = 4;
*/
public Builder clearQuantity() {
quantity_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList productIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureProductIdsIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
productIds_ = new com.google.protobuf.LazyStringArrayList(productIds_);
bitField0_ |= 0x00000010;
}
}
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
public com.google.protobuf.ProtocolStringList
getProductIdsList() {
return productIds_.getUnmodifiableView();
}
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
public int getProductIdsCount() {
return productIds_.size();
}
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
public java.lang.String getProductIds(int index) {
return productIds_.get(index);
}
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
public com.google.protobuf.ByteString
getProductIdsBytes(int index) {
return productIds_.getByteString(index);
}
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
public Builder setProductIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureProductIdsIsMutable();
productIds_.set(index, value);
onChanged();
return this;
}
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
public Builder addProductIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureProductIdsIsMutable();
productIds_.add(value);
onChanged();
return this;
}
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
public Builder addAllProductIds(
java.lang.Iterable values) {
ensureProductIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, productIds_);
onChanged();
return this;
}
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
public Builder clearProductIds() {
productIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* List of unique identifiers for the products that belong to the package
*
*
* repeated string product_ids = 5;
*/
public Builder addProductIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureProductIdsIsMutable();
productIds_.add(value);
onChanged();
return this;
}
private java.util.List addonKeys_ =
java.util.Collections.emptyList();
private void ensureAddonKeysIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
addonKeys_ = new java.util.ArrayList(addonKeys_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder> addonKeysBuilder_;
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public java.util.List getAddonKeysList() {
if (addonKeysBuilder_ == null) {
return java.util.Collections.unmodifiableList(addonKeys_);
} else {
return addonKeysBuilder_.getMessageList();
}
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public int getAddonKeysCount() {
if (addonKeysBuilder_ == null) {
return addonKeys_.size();
} else {
return addonKeysBuilder_.getCount();
}
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey getAddonKeys(int index) {
if (addonKeysBuilder_ == null) {
return addonKeys_.get(index);
} else {
return addonKeysBuilder_.getMessage(index);
}
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public Builder setAddonKeys(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey value) {
if (addonKeysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddonKeysIsMutable();
addonKeys_.set(index, value);
onChanged();
} else {
addonKeysBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public Builder setAddonKeys(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder builderForValue) {
if (addonKeysBuilder_ == null) {
ensureAddonKeysIsMutable();
addonKeys_.set(index, builderForValue.build());
onChanged();
} else {
addonKeysBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public Builder addAddonKeys(com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey value) {
if (addonKeysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddonKeysIsMutable();
addonKeys_.add(value);
onChanged();
} else {
addonKeysBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public Builder addAddonKeys(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey value) {
if (addonKeysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddonKeysIsMutable();
addonKeys_.add(index, value);
onChanged();
} else {
addonKeysBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public Builder addAddonKeys(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder builderForValue) {
if (addonKeysBuilder_ == null) {
ensureAddonKeysIsMutable();
addonKeys_.add(builderForValue.build());
onChanged();
} else {
addonKeysBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public Builder addAddonKeys(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder builderForValue) {
if (addonKeysBuilder_ == null) {
ensureAddonKeysIsMutable();
addonKeys_.add(index, builderForValue.build());
onChanged();
} else {
addonKeysBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public Builder addAllAddonKeys(
java.lang.Iterable extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey> values) {
if (addonKeysBuilder_ == null) {
ensureAddonKeysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, addonKeys_);
onChanged();
} else {
addonKeysBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public Builder clearAddonKeys() {
if (addonKeysBuilder_ == null) {
addonKeys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
addonKeysBuilder_.clear();
}
return this;
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public Builder removeAddonKeys(int index) {
if (addonKeysBuilder_ == null) {
ensureAddonKeysIsMutable();
addonKeys_.remove(index);
onChanged();
} else {
addonKeysBuilder_.remove(index);
}
return this;
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder getAddonKeysBuilder(
int index) {
return getAddonKeysFieldBuilder().getBuilder(index);
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder getAddonKeysOrBuilder(
int index) {
if (addonKeysBuilder_ == null) {
return addonKeys_.get(index); } else {
return addonKeysBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder>
getAddonKeysOrBuilderList() {
if (addonKeysBuilder_ != null) {
return addonKeysBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(addonKeys_);
}
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder addAddonKeysBuilder() {
return getAddonKeysFieldBuilder().addBuilder(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.getDefaultInstance());
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder addAddonKeysBuilder(
int index) {
return getAddonKeysFieldBuilder().addBuilder(
index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.getDefaultInstance());
}
/**
*
* List of addon keys that belong to the package
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 6;
*/
public java.util.List
getAddonKeysBuilderList() {
return getAddonKeysFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder>
getAddonKeysFieldBuilder() {
if (addonKeysBuilder_ == null) {
addonKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder>(
addonKeys_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
isClean());
addonKeys_ = null;
}
return addonKeysBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:salesorders.v1.Package)
}
// @@protoc_insertion_point(class_scope:salesorders.v1.Package)
private static final com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package();
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Package parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Package(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FieldOrBuilder extends
// @@protoc_insertion_point(interface_extends:salesorders.v1.Field)
com.google.protobuf.MessageOrBuilder {
/**
*
* Unique identifier of a custom or common field
*
*
* string field_id = 1;
*/
java.lang.String getFieldId();
/**
*
* Unique identifier of a custom or common field
*
*
* string field_id = 1;
*/
com.google.protobuf.ByteString
getFieldIdBytes();
/**
*
* Response related to the question of the field_id
*
*
* string answer = 2;
*/
java.lang.String getAnswer();
/**
*
* Response related to the question of the field_id
*
*
* string answer = 2;
*/
com.google.protobuf.ByteString
getAnswerBytes();
/**
*
* The type of field
*
*
* .salesorders.v1.FieldType field_type = 3;
*/
int getFieldTypeValue();
/**
*
* The type of field
*
*
* .salesorders.v1.FieldType field_type = 3;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldType getFieldType();
/**
*
* The question for the custom or common field
*
*
* string label = 4;
*/
java.lang.String getLabel();
/**
*
* The question for the custom or common field
*
*
* string label = 4;
*/
com.google.protobuf.ByteString
getLabelBytes();
/**
*
* The description of the field
*
*
* string description = 5;
*/
java.lang.String getDescription();
/**
*
* The description of the field
*
*
* string description = 5;
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* For textbox fields, this string will be displayed in front of the textbox
*
*
* string prefix = 6;
*/
java.lang.String getPrefix();
/**
*
* For textbox fields, this string will be displayed in front of the textbox
*
*
* string prefix = 6;
*/
com.google.protobuf.ByteString
getPrefixBytes();
/**
*
* For textbox fields, this string will be displayed behind the textbox
*
*
* string suffix = 7;
*/
java.lang.String getSuffix();
/**
*
* For textbox fields, this string will be displayed behind the textbox
*
*
* string suffix = 7;
*/
com.google.protobuf.ByteString
getSuffixBytes();
/**
*
* A regex string used to validate a fields answer
*
*
* string regex_validator = 8;
*/
java.lang.String getRegexValidator();
/**
*
* A regex string used to validate a fields answer
*
*
* string regex_validator = 8;
*/
com.google.protobuf.ByteString
getRegexValidatorBytes();
/**
*
* The error message displayed if the regex_validator does not match the answer
*
*
* string regex_error_message = 9;
*/
java.lang.String getRegexErrorMessage();
/**
*
* The error message displayed if the regex_validator does not match the answer
*
*
* string regex_error_message = 9;
*/
com.google.protobuf.ByteString
getRegexErrorMessageBytes();
}
/**
*
* Represents an information field pertaining to a product
*
*
* Protobuf type {@code salesorders.v1.Field}
*/
public static final class Field extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:salesorders.v1.Field)
FieldOrBuilder {
// Use Field.newBuilder() to construct.
private Field(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Field() {
fieldId_ = "";
answer_ = "";
fieldType_ = 0;
label_ = "";
description_ = "";
prefix_ = "";
suffix_ = "";
regexValidator_ = "";
regexErrorMessage_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Field(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
fieldId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
answer_ = s;
break;
}
case 24: {
int rawValue = input.readEnum();
fieldType_ = rawValue;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
label_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
prefix_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
suffix_ = s;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
regexValidator_ = s;
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
regexErrorMessage_ = s;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_Field_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_Field_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder.class);
}
public static final int FIELD_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object fieldId_;
/**
*
* Unique identifier of a custom or common field
*
*
* string field_id = 1;
*/
public java.lang.String getFieldId() {
java.lang.Object ref = fieldId_;
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();
fieldId_ = s;
return s;
}
}
/**
*
* Unique identifier of a custom or common field
*
*
* string field_id = 1;
*/
public com.google.protobuf.ByteString
getFieldIdBytes() {
java.lang.Object ref = fieldId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ANSWER_FIELD_NUMBER = 2;
private volatile java.lang.Object answer_;
/**
*
* Response related to the question of the field_id
*
*
* string answer = 2;
*/
public java.lang.String getAnswer() {
java.lang.Object ref = answer_;
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();
answer_ = s;
return s;
}
}
/**
*
* Response related to the question of the field_id
*
*
* string answer = 2;
*/
public com.google.protobuf.ByteString
getAnswerBytes() {
java.lang.Object ref = answer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
answer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FIELD_TYPE_FIELD_NUMBER = 3;
private int fieldType_;
/**
*
* The type of field
*
*
* .salesorders.v1.FieldType field_type = 3;
*/
public int getFieldTypeValue() {
return fieldType_;
}
/**
*
* The type of field
*
*
* .salesorders.v1.FieldType field_type = 3;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldType getFieldType() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldType result = com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldType.valueOf(fieldType_);
return result == null ? com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldType.UNRECOGNIZED : result;
}
public static final int LABEL_FIELD_NUMBER = 4;
private volatile java.lang.Object label_;
/**
*
* The question for the custom or common field
*
*
* string label = 4;
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
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();
label_ = s;
return s;
}
}
/**
*
* The question for the custom or common field
*
*
* string label = 4;
*/
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 5;
private volatile java.lang.Object description_;
/**
*
* The description of the field
*
*
* string description = 5;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* The description of the field
*
*
* string description = 5;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PREFIX_FIELD_NUMBER = 6;
private volatile java.lang.Object prefix_;
/**
*
* For textbox fields, this string will be displayed in front of the textbox
*
*
* string prefix = 6;
*/
public java.lang.String getPrefix() {
java.lang.Object ref = prefix_;
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();
prefix_ = s;
return s;
}
}
/**
*
* For textbox fields, this string will be displayed in front of the textbox
*
*
* string prefix = 6;
*/
public com.google.protobuf.ByteString
getPrefixBytes() {
java.lang.Object ref = prefix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
prefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUFFIX_FIELD_NUMBER = 7;
private volatile java.lang.Object suffix_;
/**
*
* For textbox fields, this string will be displayed behind the textbox
*
*
* string suffix = 7;
*/
public java.lang.String getSuffix() {
java.lang.Object ref = suffix_;
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();
suffix_ = s;
return s;
}
}
/**
*
* For textbox fields, this string will be displayed behind the textbox
*
*
* string suffix = 7;
*/
public com.google.protobuf.ByteString
getSuffixBytes() {
java.lang.Object ref = suffix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
suffix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REGEX_VALIDATOR_FIELD_NUMBER = 8;
private volatile java.lang.Object regexValidator_;
/**
*
* A regex string used to validate a fields answer
*
*
* string regex_validator = 8;
*/
public java.lang.String getRegexValidator() {
java.lang.Object ref = regexValidator_;
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();
regexValidator_ = s;
return s;
}
}
/**
*
* A regex string used to validate a fields answer
*
*
* string regex_validator = 8;
*/
public com.google.protobuf.ByteString
getRegexValidatorBytes() {
java.lang.Object ref = regexValidator_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
regexValidator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REGEX_ERROR_MESSAGE_FIELD_NUMBER = 9;
private volatile java.lang.Object regexErrorMessage_;
/**
*
* The error message displayed if the regex_validator does not match the answer
*
*
* string regex_error_message = 9;
*/
public java.lang.String getRegexErrorMessage() {
java.lang.Object ref = regexErrorMessage_;
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();
regexErrorMessage_ = s;
return s;
}
}
/**
*
* The error message displayed if the regex_validator does not match the answer
*
*
* string regex_error_message = 9;
*/
public com.google.protobuf.ByteString
getRegexErrorMessageBytes() {
java.lang.Object ref = regexErrorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
regexErrorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getFieldIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldId_);
}
if (!getAnswerBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, answer_);
}
if (fieldType_ != com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldType.NOT_SPECIFIED.getNumber()) {
output.writeEnum(3, fieldType_);
}
if (!getLabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, label_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
}
if (!getPrefixBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, prefix_);
}
if (!getSuffixBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, suffix_);
}
if (!getRegexValidatorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, regexValidator_);
}
if (!getRegexErrorMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, regexErrorMessage_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getFieldIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldId_);
}
if (!getAnswerBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, answer_);
}
if (fieldType_ != com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldType.NOT_SPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, fieldType_);
}
if (!getLabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, label_);
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
}
if (!getPrefixBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, prefix_);
}
if (!getSuffixBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, suffix_);
}
if (!getRegexValidatorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, regexValidator_);
}
if (!getRegexErrorMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, regexErrorMessage_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field)) {
return super.equals(obj);
}
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field other = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field) obj;
boolean result = true;
result = result && getFieldId()
.equals(other.getFieldId());
result = result && getAnswer()
.equals(other.getAnswer());
result = result && fieldType_ == other.fieldType_;
result = result && getLabel()
.equals(other.getLabel());
result = result && getDescription()
.equals(other.getDescription());
result = result && getPrefix()
.equals(other.getPrefix());
result = result && getSuffix()
.equals(other.getSuffix());
result = result && getRegexValidator()
.equals(other.getRegexValidator());
result = result && getRegexErrorMessage()
.equals(other.getRegexErrorMessage());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FIELD_ID_FIELD_NUMBER;
hash = (53 * hash) + getFieldId().hashCode();
hash = (37 * hash) + ANSWER_FIELD_NUMBER;
hash = (53 * hash) + getAnswer().hashCode();
hash = (37 * hash) + FIELD_TYPE_FIELD_NUMBER;
hash = (53 * hash) + fieldType_;
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + PREFIX_FIELD_NUMBER;
hash = (53 * hash) + getPrefix().hashCode();
hash = (37 * hash) + SUFFIX_FIELD_NUMBER;
hash = (53 * hash) + getSuffix().hashCode();
hash = (37 * hash) + REGEX_VALIDATOR_FIELD_NUMBER;
hash = (53 * hash) + getRegexValidator().hashCode();
hash = (37 * hash) + REGEX_ERROR_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getRegexErrorMessage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Represents an information field pertaining to a product
*
*
* Protobuf type {@code salesorders.v1.Field}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:salesorders.v1.Field)
com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_Field_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_Field_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder.class);
}
// Construct using com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
fieldId_ = "";
answer_ = "";
fieldType_ = 0;
label_ = "";
description_ = "";
prefix_ = "";
suffix_ = "";
regexValidator_ = "";
regexErrorMessage_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_Field_descriptor;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field getDefaultInstanceForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.getDefaultInstance();
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field build() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field buildPartial() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field result = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field(this);
result.fieldId_ = fieldId_;
result.answer_ = answer_;
result.fieldType_ = fieldType_;
result.label_ = label_;
result.description_ = description_;
result.prefix_ = prefix_;
result.suffix_ = suffix_;
result.regexValidator_ = regexValidator_;
result.regexErrorMessage_ = regexErrorMessage_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field) {
return mergeFrom((com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field other) {
if (other == com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.getDefaultInstance()) return this;
if (!other.getFieldId().isEmpty()) {
fieldId_ = other.fieldId_;
onChanged();
}
if (!other.getAnswer().isEmpty()) {
answer_ = other.answer_;
onChanged();
}
if (other.fieldType_ != 0) {
setFieldTypeValue(other.getFieldTypeValue());
}
if (!other.getLabel().isEmpty()) {
label_ = other.label_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (!other.getPrefix().isEmpty()) {
prefix_ = other.prefix_;
onChanged();
}
if (!other.getSuffix().isEmpty()) {
suffix_ = other.suffix_;
onChanged();
}
if (!other.getRegexValidator().isEmpty()) {
regexValidator_ = other.regexValidator_;
onChanged();
}
if (!other.getRegexErrorMessage().isEmpty()) {
regexErrorMessage_ = other.regexErrorMessage_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object fieldId_ = "";
/**
*
* Unique identifier of a custom or common field
*
*
* string field_id = 1;
*/
public java.lang.String getFieldId() {
java.lang.Object ref = fieldId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fieldId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Unique identifier of a custom or common field
*
*
* string field_id = 1;
*/
public com.google.protobuf.ByteString
getFieldIdBytes() {
java.lang.Object ref = fieldId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Unique identifier of a custom or common field
*
*
* string field_id = 1;
*/
public Builder setFieldId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fieldId_ = value;
onChanged();
return this;
}
/**
*
* Unique identifier of a custom or common field
*
*
* string field_id = 1;
*/
public Builder clearFieldId() {
fieldId_ = getDefaultInstance().getFieldId();
onChanged();
return this;
}
/**
*
* Unique identifier of a custom or common field
*
*
* string field_id = 1;
*/
public Builder setFieldIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fieldId_ = value;
onChanged();
return this;
}
private java.lang.Object answer_ = "";
/**
*
* Response related to the question of the field_id
*
*
* string answer = 2;
*/
public java.lang.String getAnswer() {
java.lang.Object ref = answer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
answer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Response related to the question of the field_id
*
*
* string answer = 2;
*/
public com.google.protobuf.ByteString
getAnswerBytes() {
java.lang.Object ref = answer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
answer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Response related to the question of the field_id
*
*
* string answer = 2;
*/
public Builder setAnswer(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
answer_ = value;
onChanged();
return this;
}
/**
*
* Response related to the question of the field_id
*
*
* string answer = 2;
*/
public Builder clearAnswer() {
answer_ = getDefaultInstance().getAnswer();
onChanged();
return this;
}
/**
*
* Response related to the question of the field_id
*
*
* string answer = 2;
*/
public Builder setAnswerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
answer_ = value;
onChanged();
return this;
}
private int fieldType_ = 0;
/**
*
* The type of field
*
*
* .salesorders.v1.FieldType field_type = 3;
*/
public int getFieldTypeValue() {
return fieldType_;
}
/**
*
* The type of field
*
*
* .salesorders.v1.FieldType field_type = 3;
*/
public Builder setFieldTypeValue(int value) {
fieldType_ = value;
onChanged();
return this;
}
/**
*
* The type of field
*
*
* .salesorders.v1.FieldType field_type = 3;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldType getFieldType() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldType result = com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldType.valueOf(fieldType_);
return result == null ? com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldType.UNRECOGNIZED : result;
}
/**
*
* The type of field
*
*
* .salesorders.v1.FieldType field_type = 3;
*/
public Builder setFieldType(com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldType value) {
if (value == null) {
throw new NullPointerException();
}
fieldType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The type of field
*
*
* .salesorders.v1.FieldType field_type = 3;
*/
public Builder clearFieldType() {
fieldType_ = 0;
onChanged();
return this;
}
private java.lang.Object label_ = "";
/**
*
* The question for the custom or common field
*
*
* string label = 4;
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
label_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The question for the custom or common field
*
*
* string label = 4;
*/
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The question for the custom or common field
*
*
* string label = 4;
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
label_ = value;
onChanged();
return this;
}
/**
*
* The question for the custom or common field
*
*
* string label = 4;
*/
public Builder clearLabel() {
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
*
* The question for the custom or common field
*
*
* string label = 4;
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
label_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* The description of the field
*
*
* string description = 5;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The description of the field
*
*
* string description = 5;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The description of the field
*
*
* string description = 5;
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* The description of the field
*
*
* string description = 5;
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* The description of the field
*
*
* string description = 5;
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private java.lang.Object prefix_ = "";
/**
*
* For textbox fields, this string will be displayed in front of the textbox
*
*
* string prefix = 6;
*/
public java.lang.String getPrefix() {
java.lang.Object ref = prefix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
prefix_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* For textbox fields, this string will be displayed in front of the textbox
*
*
* string prefix = 6;
*/
public com.google.protobuf.ByteString
getPrefixBytes() {
java.lang.Object ref = prefix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
prefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* For textbox fields, this string will be displayed in front of the textbox
*
*
* string prefix = 6;
*/
public Builder setPrefix(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
prefix_ = value;
onChanged();
return this;
}
/**
*
* For textbox fields, this string will be displayed in front of the textbox
*
*
* string prefix = 6;
*/
public Builder clearPrefix() {
prefix_ = getDefaultInstance().getPrefix();
onChanged();
return this;
}
/**
*
* For textbox fields, this string will be displayed in front of the textbox
*
*
* string prefix = 6;
*/
public Builder setPrefixBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
prefix_ = value;
onChanged();
return this;
}
private java.lang.Object suffix_ = "";
/**
*
* For textbox fields, this string will be displayed behind the textbox
*
*
* string suffix = 7;
*/
public java.lang.String getSuffix() {
java.lang.Object ref = suffix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
suffix_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* For textbox fields, this string will be displayed behind the textbox
*
*
* string suffix = 7;
*/
public com.google.protobuf.ByteString
getSuffixBytes() {
java.lang.Object ref = suffix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
suffix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* For textbox fields, this string will be displayed behind the textbox
*
*
* string suffix = 7;
*/
public Builder setSuffix(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
suffix_ = value;
onChanged();
return this;
}
/**
*
* For textbox fields, this string will be displayed behind the textbox
*
*
* string suffix = 7;
*/
public Builder clearSuffix() {
suffix_ = getDefaultInstance().getSuffix();
onChanged();
return this;
}
/**
*
* For textbox fields, this string will be displayed behind the textbox
*
*
* string suffix = 7;
*/
public Builder setSuffixBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
suffix_ = value;
onChanged();
return this;
}
private java.lang.Object regexValidator_ = "";
/**
*
* A regex string used to validate a fields answer
*
*
* string regex_validator = 8;
*/
public java.lang.String getRegexValidator() {
java.lang.Object ref = regexValidator_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
regexValidator_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A regex string used to validate a fields answer
*
*
* string regex_validator = 8;
*/
public com.google.protobuf.ByteString
getRegexValidatorBytes() {
java.lang.Object ref = regexValidator_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
regexValidator_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A regex string used to validate a fields answer
*
*
* string regex_validator = 8;
*/
public Builder setRegexValidator(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
regexValidator_ = value;
onChanged();
return this;
}
/**
*
* A regex string used to validate a fields answer
*
*
* string regex_validator = 8;
*/
public Builder clearRegexValidator() {
regexValidator_ = getDefaultInstance().getRegexValidator();
onChanged();
return this;
}
/**
*
* A regex string used to validate a fields answer
*
*
* string regex_validator = 8;
*/
public Builder setRegexValidatorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
regexValidator_ = value;
onChanged();
return this;
}
private java.lang.Object regexErrorMessage_ = "";
/**
*
* The error message displayed if the regex_validator does not match the answer
*
*
* string regex_error_message = 9;
*/
public java.lang.String getRegexErrorMessage() {
java.lang.Object ref = regexErrorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
regexErrorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The error message displayed if the regex_validator does not match the answer
*
*
* string regex_error_message = 9;
*/
public com.google.protobuf.ByteString
getRegexErrorMessageBytes() {
java.lang.Object ref = regexErrorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
regexErrorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The error message displayed if the regex_validator does not match the answer
*
*
* string regex_error_message = 9;
*/
public Builder setRegexErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
regexErrorMessage_ = value;
onChanged();
return this;
}
/**
*
* The error message displayed if the regex_validator does not match the answer
*
*
* string regex_error_message = 9;
*/
public Builder clearRegexErrorMessage() {
regexErrorMessage_ = getDefaultInstance().getRegexErrorMessage();
onChanged();
return this;
}
/**
*
* The error message displayed if the regex_validator does not match the answer
*
*
* string regex_error_message = 9;
*/
public Builder setRegexErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
regexErrorMessage_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:salesorders.v1.Field)
}
// @@protoc_insertion_point(class_scope:salesorders.v1.Field)
private static final com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field();
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Field parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Field(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CustomFieldOrBuilder extends
// @@protoc_insertion_point(interface_extends:salesorders.v1.CustomField)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
java.util.List
getFieldsList();
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field getFields(int index);
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
int getFieldsCount();
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldOrBuilder>
getFieldsOrBuilderList();
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldOrBuilder getFieldsOrBuilder(
int index);
/**
*
* Unique identifier of a single product that the custom questions belong to, and will not be provided if the custom field belongs to an addon
*
*
* string product_id = 2;
*/
java.lang.String getProductId();
/**
*
* Unique identifier of a single product that the custom questions belong to, and will not be provided if the custom field belongs to an addon
*
*
* string product_id = 2;
*/
com.google.protobuf.ByteString
getProductIdBytes();
/**
*
* Addon key of an addon that the custom questions belong to, and will not be provided if the custom field belongs to a product
*
*
* .salesorders.v1.AddonKey addon_key = 3;
*/
boolean hasAddonKey();
/**
*
* Addon key of an addon that the custom questions belong to, and will not be provided if the custom field belongs to a product
*
*
* .salesorders.v1.AddonKey addon_key = 3;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey getAddonKey();
/**
*
* Addon key of an addon that the custom questions belong to, and will not be provided if the custom field belongs to a product
*
*
* .salesorders.v1.AddonKey addon_key = 3;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder getAddonKeyOrBuilder();
}
/**
*
* Represents the answer(s) to a custom field that is unique to a product
*
*
* Protobuf type {@code salesorders.v1.CustomField}
*/
public static final class CustomField extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:salesorders.v1.CustomField)
CustomFieldOrBuilder {
// Use CustomField.newBuilder() to construct.
private CustomField(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CustomField() {
fields_ = java.util.Collections.emptyList();
productId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CustomField(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
fields_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
fields_.add(
input.readMessage(com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
productId_ = s;
break;
}
case 26: {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder subBuilder = null;
if (addonKey_ != null) {
subBuilder = addonKey_.toBuilder();
}
addonKey_ = input.readMessage(com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(addonKey_);
addonKey_ = subBuilder.buildPartial();
}
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 {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_CustomField_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_CustomField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.Builder.class);
}
private int bitField0_;
public static final int FIELDS_FIELD_NUMBER = 1;
private java.util.List fields_;
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public java.util.List getFieldsList() {
return fields_;
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldOrBuilder>
getFieldsOrBuilderList() {
return fields_;
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public int getFieldsCount() {
return fields_.size();
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field getFields(int index) {
return fields_.get(index);
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldOrBuilder getFieldsOrBuilder(
int index) {
return fields_.get(index);
}
public static final int PRODUCT_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object productId_;
/**
*
* Unique identifier of a single product that the custom questions belong to, and will not be provided if the custom field belongs to an addon
*
*
* string product_id = 2;
*/
public java.lang.String getProductId() {
java.lang.Object ref = productId_;
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();
productId_ = s;
return s;
}
}
/**
*
* Unique identifier of a single product that the custom questions belong to, and will not be provided if the custom field belongs to an addon
*
*
* string product_id = 2;
*/
public com.google.protobuf.ByteString
getProductIdBytes() {
java.lang.Object ref = productId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
productId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDON_KEY_FIELD_NUMBER = 3;
private com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey addonKey_;
/**
*
* Addon key of an addon that the custom questions belong to, and will not be provided if the custom field belongs to a product
*
*
* .salesorders.v1.AddonKey addon_key = 3;
*/
public boolean hasAddonKey() {
return addonKey_ != null;
}
/**
*
* Addon key of an addon that the custom questions belong to, and will not be provided if the custom field belongs to a product
*
*
* .salesorders.v1.AddonKey addon_key = 3;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey getAddonKey() {
return addonKey_ == null ? com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.getDefaultInstance() : addonKey_;
}
/**
*
* Addon key of an addon that the custom questions belong to, and will not be provided if the custom field belongs to a product
*
*
* .salesorders.v1.AddonKey addon_key = 3;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder getAddonKeyOrBuilder() {
return getAddonKey();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < fields_.size(); i++) {
output.writeMessage(1, fields_.get(i));
}
if (!getProductIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, productId_);
}
if (addonKey_ != null) {
output.writeMessage(3, getAddonKey());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < fields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, fields_.get(i));
}
if (!getProductIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, productId_);
}
if (addonKey_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAddonKey());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField)) {
return super.equals(obj);
}
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField other = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField) obj;
boolean result = true;
result = result && getFieldsList()
.equals(other.getFieldsList());
result = result && getProductId()
.equals(other.getProductId());
result = result && (hasAddonKey() == other.hasAddonKey());
if (hasAddonKey()) {
result = result && getAddonKey()
.equals(other.getAddonKey());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getFieldsCount() > 0) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFieldsList().hashCode();
}
hash = (37 * hash) + PRODUCT_ID_FIELD_NUMBER;
hash = (53 * hash) + getProductId().hashCode();
if (hasAddonKey()) {
hash = (37 * hash) + ADDON_KEY_FIELD_NUMBER;
hash = (53 * hash) + getAddonKey().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Represents the answer(s) to a custom field that is unique to a product
*
*
* Protobuf type {@code salesorders.v1.CustomField}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:salesorders.v1.CustomField)
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomFieldOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_CustomField_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_CustomField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.Builder.class);
}
// Construct using com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFieldsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
fieldsBuilder_.clear();
}
productId_ = "";
if (addonKeyBuilder_ == null) {
addonKey_ = null;
} else {
addonKey_ = null;
addonKeyBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_CustomField_descriptor;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField getDefaultInstanceForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.getDefaultInstance();
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField build() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField buildPartial() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField result = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (fieldsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.fields_ = fields_;
} else {
result.fields_ = fieldsBuilder_.build();
}
result.productId_ = productId_;
if (addonKeyBuilder_ == null) {
result.addonKey_ = addonKey_;
} else {
result.addonKey_ = addonKeyBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField) {
return mergeFrom((com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField other) {
if (other == com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.getDefaultInstance()) return this;
if (fieldsBuilder_ == null) {
if (!other.fields_.isEmpty()) {
if (fields_.isEmpty()) {
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFieldsIsMutable();
fields_.addAll(other.fields_);
}
onChanged();
}
} else {
if (!other.fields_.isEmpty()) {
if (fieldsBuilder_.isEmpty()) {
fieldsBuilder_.dispose();
fieldsBuilder_ = null;
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000001);
fieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldsFieldBuilder() : null;
} else {
fieldsBuilder_.addAllMessages(other.fields_);
}
}
}
if (!other.getProductId().isEmpty()) {
productId_ = other.productId_;
onChanged();
}
if (other.hasAddonKey()) {
mergeAddonKey(other.getAddonKey());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List fields_ =
java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
fields_ = new java.util.ArrayList(fields_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldOrBuilder> fieldsBuilder_;
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public java.util.List getFieldsList() {
if (fieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fields_);
} else {
return fieldsBuilder_.getMessageList();
}
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public int getFieldsCount() {
if (fieldsBuilder_ == null) {
return fields_.size();
} else {
return fieldsBuilder_.getCount();
}
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field getFields(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
return fieldsBuilder_.getMessage(index);
}
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public Builder setFields(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.set(index, value);
onChanged();
} else {
fieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public Builder setFields(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.set(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public Builder addFields(com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(value);
onChanged();
} else {
fieldsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public Builder addFields(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(index, value);
onChanged();
} else {
fieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public Builder addFields(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public Builder addFields(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public Builder addAllFields(
java.lang.Iterable extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field> values) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fields_);
onChanged();
} else {
fieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public Builder clearFields() {
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
fieldsBuilder_.clear();
}
return this;
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public Builder removeFields(int index) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.remove(index);
onChanged();
} else {
fieldsBuilder_.remove(index);
}
return this;
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder getFieldsBuilder(
int index) {
return getFieldsFieldBuilder().getBuilder(index);
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldOrBuilder getFieldsOrBuilder(
int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index); } else {
return fieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldOrBuilder>
getFieldsOrBuilderList() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fields_);
}
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder addFieldsBuilder() {
return getFieldsFieldBuilder().addBuilder(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.getDefaultInstance());
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder addFieldsBuilder(
int index) {
return getFieldsFieldBuilder().addBuilder(
index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.getDefaultInstance());
}
/**
*
* List of custom fields for a given product
*
*
* repeated .salesorders.v1.Field fields = 1;
*/
public java.util.List
getFieldsBuilderList() {
return getFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldOrBuilder>(
fields_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
fields_ = null;
}
return fieldsBuilder_;
}
private java.lang.Object productId_ = "";
/**
*
* Unique identifier of a single product that the custom questions belong to, and will not be provided if the custom field belongs to an addon
*
*
* string product_id = 2;
*/
public java.lang.String getProductId() {
java.lang.Object ref = productId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
productId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Unique identifier of a single product that the custom questions belong to, and will not be provided if the custom field belongs to an addon
*
*
* string product_id = 2;
*/
public com.google.protobuf.ByteString
getProductIdBytes() {
java.lang.Object ref = productId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
productId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Unique identifier of a single product that the custom questions belong to, and will not be provided if the custom field belongs to an addon
*
*
* string product_id = 2;
*/
public Builder setProductId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
productId_ = value;
onChanged();
return this;
}
/**
*
* Unique identifier of a single product that the custom questions belong to, and will not be provided if the custom field belongs to an addon
*
*
* string product_id = 2;
*/
public Builder clearProductId() {
productId_ = getDefaultInstance().getProductId();
onChanged();
return this;
}
/**
*
* Unique identifier of a single product that the custom questions belong to, and will not be provided if the custom field belongs to an addon
*
*
* string product_id = 2;
*/
public Builder setProductIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
productId_ = value;
onChanged();
return this;
}
private com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey addonKey_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder> addonKeyBuilder_;
/**
*
* Addon key of an addon that the custom questions belong to, and will not be provided if the custom field belongs to a product
*
*
* .salesorders.v1.AddonKey addon_key = 3;
*/
public boolean hasAddonKey() {
return addonKeyBuilder_ != null || addonKey_ != null;
}
/**
*
* Addon key of an addon that the custom questions belong to, and will not be provided if the custom field belongs to a product
*
*
* .salesorders.v1.AddonKey addon_key = 3;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey getAddonKey() {
if (addonKeyBuilder_ == null) {
return addonKey_ == null ? com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.getDefaultInstance() : addonKey_;
} else {
return addonKeyBuilder_.getMessage();
}
}
/**
*
* Addon key of an addon that the custom questions belong to, and will not be provided if the custom field belongs to a product
*
*
* .salesorders.v1.AddonKey addon_key = 3;
*/
public Builder setAddonKey(com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey value) {
if (addonKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
addonKey_ = value;
onChanged();
} else {
addonKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Addon key of an addon that the custom questions belong to, and will not be provided if the custom field belongs to a product
*
*
* .salesorders.v1.AddonKey addon_key = 3;
*/
public Builder setAddonKey(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder builderForValue) {
if (addonKeyBuilder_ == null) {
addonKey_ = builderForValue.build();
onChanged();
} else {
addonKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Addon key of an addon that the custom questions belong to, and will not be provided if the custom field belongs to a product
*
*
* .salesorders.v1.AddonKey addon_key = 3;
*/
public Builder mergeAddonKey(com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey value) {
if (addonKeyBuilder_ == null) {
if (addonKey_ != null) {
addonKey_ =
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.newBuilder(addonKey_).mergeFrom(value).buildPartial();
} else {
addonKey_ = value;
}
onChanged();
} else {
addonKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Addon key of an addon that the custom questions belong to, and will not be provided if the custom field belongs to a product
*
*
* .salesorders.v1.AddonKey addon_key = 3;
*/
public Builder clearAddonKey() {
if (addonKeyBuilder_ == null) {
addonKey_ = null;
onChanged();
} else {
addonKey_ = null;
addonKeyBuilder_ = null;
}
return this;
}
/**
*
* Addon key of an addon that the custom questions belong to, and will not be provided if the custom field belongs to a product
*
*
* .salesorders.v1.AddonKey addon_key = 3;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder getAddonKeyBuilder() {
onChanged();
return getAddonKeyFieldBuilder().getBuilder();
}
/**
*
* Addon key of an addon that the custom questions belong to, and will not be provided if the custom field belongs to a product
*
*
* .salesorders.v1.AddonKey addon_key = 3;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder getAddonKeyOrBuilder() {
if (addonKeyBuilder_ != null) {
return addonKeyBuilder_.getMessageOrBuilder();
} else {
return addonKey_ == null ?
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.getDefaultInstance() : addonKey_;
}
}
/**
*
* Addon key of an addon that the custom questions belong to, and will not be provided if the custom field belongs to a product
*
*
* .salesorders.v1.AddonKey addon_key = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder>
getAddonKeyFieldBuilder() {
if (addonKeyBuilder_ == null) {
addonKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder>(
getAddonKey(),
getParentForChildren(),
isClean());
addonKey_ = null;
}
return addonKeyBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:salesorders.v1.CustomField)
}
// @@protoc_insertion_point(class_scope:salesorders.v1.CustomField)
private static final com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField();
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CustomField parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CustomField(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommonFieldOrBuilder extends
// @@protoc_insertion_point(interface_extends:salesorders.v1.CommonField)
com.google.protobuf.MessageOrBuilder {
/**
*
* The field that may be shared by multiple products
*
*
* .salesorders.v1.Field field = 1;
*/
boolean hasField();
/**
*
* The field that may be shared by multiple products
*
*
* .salesorders.v1.Field field = 1;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field getField();
/**
*
* The field that may be shared by multiple products
*
*
* .salesorders.v1.Field field = 1;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldOrBuilder getFieldOrBuilder();
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
java.util.List
getProductIdsList();
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
int getProductIdsCount();
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
java.lang.String getProductIds(int index);
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
com.google.protobuf.ByteString
getProductIdsBytes(int index);
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
java.util.List
getAddonKeysList();
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey getAddonKeys(int index);
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
int getAddonKeysCount();
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder>
getAddonKeysOrBuilderList();
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder getAddonKeysOrBuilder(
int index);
}
/**
*
* Represents the answer to a common field may be shared between products
*
*
* Protobuf type {@code salesorders.v1.CommonField}
*/
public static final class CommonField extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:salesorders.v1.CommonField)
CommonFieldOrBuilder {
// Use CommonField.newBuilder() to construct.
private CommonField(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommonField() {
productIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
addonKeys_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private CommonField(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder subBuilder = null;
if (field_ != null) {
subBuilder = field_.toBuilder();
}
field_ = input.readMessage(com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(field_);
field_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
productIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
productIds_.add(s);
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
addonKeys_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
addonKeys_.add(
input.readMessage(com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.parser(), extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
productIds_ = productIds_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
addonKeys_ = java.util.Collections.unmodifiableList(addonKeys_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_CommonField_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_CommonField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.Builder.class);
}
private int bitField0_;
public static final int FIELD_FIELD_NUMBER = 1;
private com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field field_;
/**
*
* The field that may be shared by multiple products
*
*
* .salesorders.v1.Field field = 1;
*/
public boolean hasField() {
return field_ != null;
}
/**
*
* The field that may be shared by multiple products
*
*
* .salesorders.v1.Field field = 1;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field getField() {
return field_ == null ? com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.getDefaultInstance() : field_;
}
/**
*
* The field that may be shared by multiple products
*
*
* .salesorders.v1.Field field = 1;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldOrBuilder getFieldOrBuilder() {
return getField();
}
public static final int PRODUCT_IDS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList productIds_;
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
public com.google.protobuf.ProtocolStringList
getProductIdsList() {
return productIds_;
}
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
public int getProductIdsCount() {
return productIds_.size();
}
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
public java.lang.String getProductIds(int index) {
return productIds_.get(index);
}
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
public com.google.protobuf.ByteString
getProductIdsBytes(int index) {
return productIds_.getByteString(index);
}
public static final int ADDON_KEYS_FIELD_NUMBER = 3;
private java.util.List addonKeys_;
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public java.util.List getAddonKeysList() {
return addonKeys_;
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder>
getAddonKeysOrBuilderList() {
return addonKeys_;
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public int getAddonKeysCount() {
return addonKeys_.size();
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey getAddonKeys(int index) {
return addonKeys_.get(index);
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder getAddonKeysOrBuilder(
int index) {
return addonKeys_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (field_ != null) {
output.writeMessage(1, getField());
}
for (int i = 0; i < productIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, productIds_.getRaw(i));
}
for (int i = 0; i < addonKeys_.size(); i++) {
output.writeMessage(3, addonKeys_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (field_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getField());
}
{
int dataSize = 0;
for (int i = 0; i < productIds_.size(); i++) {
dataSize += computeStringSizeNoTag(productIds_.getRaw(i));
}
size += dataSize;
size += 1 * getProductIdsList().size();
}
for (int i = 0; i < addonKeys_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, addonKeys_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField)) {
return super.equals(obj);
}
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField other = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField) obj;
boolean result = true;
result = result && (hasField() == other.hasField());
if (hasField()) {
result = result && getField()
.equals(other.getField());
}
result = result && getProductIdsList()
.equals(other.getProductIdsList());
result = result && getAddonKeysList()
.equals(other.getAddonKeysList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasField()) {
hash = (37 * hash) + FIELD_FIELD_NUMBER;
hash = (53 * hash) + getField().hashCode();
}
if (getProductIdsCount() > 0) {
hash = (37 * hash) + PRODUCT_IDS_FIELD_NUMBER;
hash = (53 * hash) + getProductIdsList().hashCode();
}
if (getAddonKeysCount() > 0) {
hash = (37 * hash) + ADDON_KEYS_FIELD_NUMBER;
hash = (53 * hash) + getAddonKeysList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Represents the answer to a common field may be shared between products
*
*
* Protobuf type {@code salesorders.v1.CommonField}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:salesorders.v1.CommonField)
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonFieldOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_CommonField_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_CommonField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.Builder.class);
}
// Construct using com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAddonKeysFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (fieldBuilder_ == null) {
field_ = null;
} else {
field_ = null;
fieldBuilder_ = null;
}
productIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
if (addonKeysBuilder_ == null) {
addonKeys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
addonKeysBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_CommonField_descriptor;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField getDefaultInstanceForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.getDefaultInstance();
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField build() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField buildPartial() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField result = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (fieldBuilder_ == null) {
result.field_ = field_;
} else {
result.field_ = fieldBuilder_.build();
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
productIds_ = productIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.productIds_ = productIds_;
if (addonKeysBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
addonKeys_ = java.util.Collections.unmodifiableList(addonKeys_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.addonKeys_ = addonKeys_;
} else {
result.addonKeys_ = addonKeysBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField) {
return mergeFrom((com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField other) {
if (other == com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.getDefaultInstance()) return this;
if (other.hasField()) {
mergeField(other.getField());
}
if (!other.productIds_.isEmpty()) {
if (productIds_.isEmpty()) {
productIds_ = other.productIds_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureProductIdsIsMutable();
productIds_.addAll(other.productIds_);
}
onChanged();
}
if (addonKeysBuilder_ == null) {
if (!other.addonKeys_.isEmpty()) {
if (addonKeys_.isEmpty()) {
addonKeys_ = other.addonKeys_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureAddonKeysIsMutable();
addonKeys_.addAll(other.addonKeys_);
}
onChanged();
}
} else {
if (!other.addonKeys_.isEmpty()) {
if (addonKeysBuilder_.isEmpty()) {
addonKeysBuilder_.dispose();
addonKeysBuilder_ = null;
addonKeys_ = other.addonKeys_;
bitField0_ = (bitField0_ & ~0x00000004);
addonKeysBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAddonKeysFieldBuilder() : null;
} else {
addonKeysBuilder_.addAllMessages(other.addonKeys_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field field_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldOrBuilder> fieldBuilder_;
/**
*
* The field that may be shared by multiple products
*
*
* .salesorders.v1.Field field = 1;
*/
public boolean hasField() {
return fieldBuilder_ != null || field_ != null;
}
/**
*
* The field that may be shared by multiple products
*
*
* .salesorders.v1.Field field = 1;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field getField() {
if (fieldBuilder_ == null) {
return field_ == null ? com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.getDefaultInstance() : field_;
} else {
return fieldBuilder_.getMessage();
}
}
/**
*
* The field that may be shared by multiple products
*
*
* .salesorders.v1.Field field = 1;
*/
public Builder setField(com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field value) {
if (fieldBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
field_ = value;
onChanged();
} else {
fieldBuilder_.setMessage(value);
}
return this;
}
/**
*
* The field that may be shared by multiple products
*
*
* .salesorders.v1.Field field = 1;
*/
public Builder setField(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder builderForValue) {
if (fieldBuilder_ == null) {
field_ = builderForValue.build();
onChanged();
} else {
fieldBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The field that may be shared by multiple products
*
*
* .salesorders.v1.Field field = 1;
*/
public Builder mergeField(com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field value) {
if (fieldBuilder_ == null) {
if (field_ != null) {
field_ =
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.newBuilder(field_).mergeFrom(value).buildPartial();
} else {
field_ = value;
}
onChanged();
} else {
fieldBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The field that may be shared by multiple products
*
*
* .salesorders.v1.Field field = 1;
*/
public Builder clearField() {
if (fieldBuilder_ == null) {
field_ = null;
onChanged();
} else {
field_ = null;
fieldBuilder_ = null;
}
return this;
}
/**
*
* The field that may be shared by multiple products
*
*
* .salesorders.v1.Field field = 1;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder getFieldBuilder() {
onChanged();
return getFieldFieldBuilder().getBuilder();
}
/**
*
* The field that may be shared by multiple products
*
*
* .salesorders.v1.Field field = 1;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldOrBuilder getFieldOrBuilder() {
if (fieldBuilder_ != null) {
return fieldBuilder_.getMessageOrBuilder();
} else {
return field_ == null ?
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.getDefaultInstance() : field_;
}
}
/**
*
* The field that may be shared by multiple products
*
*
* .salesorders.v1.Field field = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldOrBuilder>
getFieldFieldBuilder() {
if (fieldBuilder_ == null) {
fieldBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Field.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.FieldOrBuilder>(
getField(),
getParentForChildren(),
isClean());
field_ = null;
}
return fieldBuilder_;
}
private com.google.protobuf.LazyStringList productIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureProductIdsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
productIds_ = new com.google.protobuf.LazyStringArrayList(productIds_);
bitField0_ |= 0x00000002;
}
}
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
public com.google.protobuf.ProtocolStringList
getProductIdsList() {
return productIds_.getUnmodifiableView();
}
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
public int getProductIdsCount() {
return productIds_.size();
}
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
public java.lang.String getProductIds(int index) {
return productIds_.get(index);
}
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
public com.google.protobuf.ByteString
getProductIdsBytes(int index) {
return productIds_.getByteString(index);
}
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
public Builder setProductIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureProductIdsIsMutable();
productIds_.set(index, value);
onChanged();
return this;
}
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
public Builder addProductIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureProductIdsIsMutable();
productIds_.add(value);
onChanged();
return this;
}
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
public Builder addAllProductIds(
java.lang.Iterable values) {
ensureProductIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, productIds_);
onChanged();
return this;
}
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
public Builder clearProductIds() {
productIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* List of unique product identifiers that share the common field
*
*
* repeated string product_ids = 2;
*/
public Builder addProductIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureProductIdsIsMutable();
productIds_.add(value);
onChanged();
return this;
}
private java.util.List addonKeys_ =
java.util.Collections.emptyList();
private void ensureAddonKeysIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
addonKeys_ = new java.util.ArrayList(addonKeys_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder> addonKeysBuilder_;
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public java.util.List getAddonKeysList() {
if (addonKeysBuilder_ == null) {
return java.util.Collections.unmodifiableList(addonKeys_);
} else {
return addonKeysBuilder_.getMessageList();
}
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public int getAddonKeysCount() {
if (addonKeysBuilder_ == null) {
return addonKeys_.size();
} else {
return addonKeysBuilder_.getCount();
}
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey getAddonKeys(int index) {
if (addonKeysBuilder_ == null) {
return addonKeys_.get(index);
} else {
return addonKeysBuilder_.getMessage(index);
}
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public Builder setAddonKeys(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey value) {
if (addonKeysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddonKeysIsMutable();
addonKeys_.set(index, value);
onChanged();
} else {
addonKeysBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public Builder setAddonKeys(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder builderForValue) {
if (addonKeysBuilder_ == null) {
ensureAddonKeysIsMutable();
addonKeys_.set(index, builderForValue.build());
onChanged();
} else {
addonKeysBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public Builder addAddonKeys(com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey value) {
if (addonKeysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddonKeysIsMutable();
addonKeys_.add(value);
onChanged();
} else {
addonKeysBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public Builder addAddonKeys(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey value) {
if (addonKeysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddonKeysIsMutable();
addonKeys_.add(index, value);
onChanged();
} else {
addonKeysBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public Builder addAddonKeys(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder builderForValue) {
if (addonKeysBuilder_ == null) {
ensureAddonKeysIsMutable();
addonKeys_.add(builderForValue.build());
onChanged();
} else {
addonKeysBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public Builder addAddonKeys(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder builderForValue) {
if (addonKeysBuilder_ == null) {
ensureAddonKeysIsMutable();
addonKeys_.add(index, builderForValue.build());
onChanged();
} else {
addonKeysBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public Builder addAllAddonKeys(
java.lang.Iterable extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey> values) {
if (addonKeysBuilder_ == null) {
ensureAddonKeysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, addonKeys_);
onChanged();
} else {
addonKeysBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public Builder clearAddonKeys() {
if (addonKeysBuilder_ == null) {
addonKeys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
addonKeysBuilder_.clear();
}
return this;
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public Builder removeAddonKeys(int index) {
if (addonKeysBuilder_ == null) {
ensureAddonKeysIsMutable();
addonKeys_.remove(index);
onChanged();
} else {
addonKeysBuilder_.remove(index);
}
return this;
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder getAddonKeysBuilder(
int index) {
return getAddonKeysFieldBuilder().getBuilder(index);
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder getAddonKeysOrBuilder(
int index) {
if (addonKeysBuilder_ == null) {
return addonKeys_.get(index); } else {
return addonKeysBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder>
getAddonKeysOrBuilderList() {
if (addonKeysBuilder_ != null) {
return addonKeysBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(addonKeys_);
}
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder addAddonKeysBuilder() {
return getAddonKeysFieldBuilder().addBuilder(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.getDefaultInstance());
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder addAddonKeysBuilder(
int index) {
return getAddonKeysFieldBuilder().addBuilder(
index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.getDefaultInstance());
}
/**
*
* List of addon keys that share the common field
*
*
* repeated .salesorders.v1.AddonKey addon_keys = 3;
*/
public java.util.List
getAddonKeysBuilderList() {
return getAddonKeysFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder>
getAddonKeysFieldBuilder() {
if (addonKeysBuilder_ == null) {
addonKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKey.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonKeyOrBuilder>(
addonKeys_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
addonKeys_ = null;
}
return addonKeysBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:salesorders.v1.CommonField)
}
// @@protoc_insertion_point(class_scope:salesorders.v1.CommonField)
private static final com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField();
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CommonField parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommonField(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProductActivationOrBuilder extends
// @@protoc_insertion_point(interface_extends:salesorders.v1.ProductActivation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Unique identifier of a single product that is going through the activation process
*
*
* string product_id = 1;
*/
java.lang.String getProductId();
/**
*
* Unique identifier of a single product that is going through the activation process
*
*
* string product_id = 1;
*/
com.google.protobuf.ByteString
getProductIdBytes();
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 2;
*/
int getActivationStatusValue();
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 2;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus getActivationStatus();
}
/**
*
* Represents a single product with its corresponding activation status
*
*
* Protobuf type {@code salesorders.v1.ProductActivation}
*/
public static final class ProductActivation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:salesorders.v1.ProductActivation)
ProductActivationOrBuilder {
// Use ProductActivation.newBuilder() to construct.
private ProductActivation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProductActivation() {
productId_ = "";
activationStatus_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProductActivation(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
productId_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
activationStatus_ = rawValue;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_ProductActivation_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_ProductActivation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.Builder.class);
}
public static final int PRODUCT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object productId_;
/**
*
* Unique identifier of a single product that is going through the activation process
*
*
* string product_id = 1;
*/
public java.lang.String getProductId() {
java.lang.Object ref = productId_;
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();
productId_ = s;
return s;
}
}
/**
*
* Unique identifier of a single product that is going through the activation process
*
*
* string product_id = 1;
*/
public com.google.protobuf.ByteString
getProductIdBytes() {
java.lang.Object ref = productId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
productId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACTIVATION_STATUS_FIELD_NUMBER = 2;
private int activationStatus_;
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 2;
*/
public int getActivationStatusValue() {
return activationStatus_;
}
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 2;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus getActivationStatus() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus result = com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus.valueOf(activationStatus_);
return result == null ? com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getProductIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, productId_);
}
if (activationStatus_ != com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus.PENDING.getNumber()) {
output.writeEnum(2, activationStatus_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getProductIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, productId_);
}
if (activationStatus_ != com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus.PENDING.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, activationStatus_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation)) {
return super.equals(obj);
}
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation other = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation) obj;
boolean result = true;
result = result && getProductId()
.equals(other.getProductId());
result = result && activationStatus_ == other.activationStatus_;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PRODUCT_ID_FIELD_NUMBER;
hash = (53 * hash) + getProductId().hashCode();
hash = (37 * hash) + ACTIVATION_STATUS_FIELD_NUMBER;
hash = (53 * hash) + activationStatus_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Represents a single product with its corresponding activation status
*
*
* Protobuf type {@code salesorders.v1.ProductActivation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:salesorders.v1.ProductActivation)
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_ProductActivation_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_ProductActivation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.Builder.class);
}
// Construct using com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
productId_ = "";
activationStatus_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_ProductActivation_descriptor;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation getDefaultInstanceForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.getDefaultInstance();
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation build() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation buildPartial() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation result = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation(this);
result.productId_ = productId_;
result.activationStatus_ = activationStatus_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation) {
return mergeFrom((com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation other) {
if (other == com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.getDefaultInstance()) return this;
if (!other.getProductId().isEmpty()) {
productId_ = other.productId_;
onChanged();
}
if (other.activationStatus_ != 0) {
setActivationStatusValue(other.getActivationStatusValue());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object productId_ = "";
/**
*
* Unique identifier of a single product that is going through the activation process
*
*
* string product_id = 1;
*/
public java.lang.String getProductId() {
java.lang.Object ref = productId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
productId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Unique identifier of a single product that is going through the activation process
*
*
* string product_id = 1;
*/
public com.google.protobuf.ByteString
getProductIdBytes() {
java.lang.Object ref = productId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
productId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Unique identifier of a single product that is going through the activation process
*
*
* string product_id = 1;
*/
public Builder setProductId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
productId_ = value;
onChanged();
return this;
}
/**
*
* Unique identifier of a single product that is going through the activation process
*
*
* string product_id = 1;
*/
public Builder clearProductId() {
productId_ = getDefaultInstance().getProductId();
onChanged();
return this;
}
/**
*
* Unique identifier of a single product that is going through the activation process
*
*
* string product_id = 1;
*/
public Builder setProductIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
productId_ = value;
onChanged();
return this;
}
private int activationStatus_ = 0;
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 2;
*/
public int getActivationStatusValue() {
return activationStatus_;
}
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 2;
*/
public Builder setActivationStatusValue(int value) {
activationStatus_ = value;
onChanged();
return this;
}
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 2;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus getActivationStatus() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus result = com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus.valueOf(activationStatus_);
return result == null ? com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus.UNRECOGNIZED : result;
}
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 2;
*/
public Builder setActivationStatus(com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus value) {
if (value == null) {
throw new NullPointerException();
}
activationStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 2;
*/
public Builder clearActivationStatus() {
activationStatus_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:salesorders.v1.ProductActivation)
}
// @@protoc_insertion_point(class_scope:salesorders.v1.ProductActivation)
private static final com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation();
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ProductActivation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProductActivation(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AddonActivationOrBuilder extends
// @@protoc_insertion_point(interface_extends:salesorders.v1.AddonActivation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Unique identifier of a single addon that is going through the activation process
*
*
* string addon_id = 1;
*/
java.lang.String getAddonId();
/**
*
* Unique identifier of a single addon that is going through the activation process
*
*
* string addon_id = 1;
*/
com.google.protobuf.ByteString
getAddonIdBytes();
/**
*
* Unique identifier of the parent app for the addon that is going through the activation process
*
*
* string app_id = 2;
*/
java.lang.String getAppId();
/**
*
* Unique identifier of the parent app for the addon that is going through the activation process
*
*
* string app_id = 2;
*/
com.google.protobuf.ByteString
getAppIdBytes();
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 3;
*/
int getActivationStatusValue();
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 3;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus getActivationStatus();
}
/**
*
* Represents a single addon with its corresponding activation status
*
*
* Protobuf type {@code salesorders.v1.AddonActivation}
*/
public static final class AddonActivation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:salesorders.v1.AddonActivation)
AddonActivationOrBuilder {
// Use AddonActivation.newBuilder() to construct.
private AddonActivation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddonActivation() {
addonId_ = "";
appId_ = "";
activationStatus_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private AddonActivation(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
addonId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
appId_ = s;
break;
}
case 24: {
int rawValue = input.readEnum();
activationStatus_ = rawValue;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_AddonActivation_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_AddonActivation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.Builder.class);
}
public static final int ADDON_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object addonId_;
/**
*
* Unique identifier of a single addon that is going through the activation process
*
*
* string addon_id = 1;
*/
public java.lang.String getAddonId() {
java.lang.Object ref = addonId_;
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();
addonId_ = s;
return s;
}
}
/**
*
* Unique identifier of a single addon that is going through the activation process
*
*
* string addon_id = 1;
*/
public com.google.protobuf.ByteString
getAddonIdBytes() {
java.lang.Object ref = addonId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
addonId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APP_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object appId_;
/**
*
* Unique identifier of the parent app for the addon that is going through the activation process
*
*
* string app_id = 2;
*/
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
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();
appId_ = s;
return s;
}
}
/**
*
* Unique identifier of the parent app for the addon that is going through the activation process
*
*
* string app_id = 2;
*/
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACTIVATION_STATUS_FIELD_NUMBER = 3;
private int activationStatus_;
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 3;
*/
public int getActivationStatusValue() {
return activationStatus_;
}
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 3;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus getActivationStatus() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus result = com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus.valueOf(activationStatus_);
return result == null ? com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getAddonIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addonId_);
}
if (!getAppIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, appId_);
}
if (activationStatus_ != com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus.PENDING.getNumber()) {
output.writeEnum(3, activationStatus_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getAddonIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addonId_);
}
if (!getAppIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, appId_);
}
if (activationStatus_ != com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus.PENDING.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, activationStatus_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation)) {
return super.equals(obj);
}
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation other = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation) obj;
boolean result = true;
result = result && getAddonId()
.equals(other.getAddonId());
result = result && getAppId()
.equals(other.getAppId());
result = result && activationStatus_ == other.activationStatus_;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ADDON_ID_FIELD_NUMBER;
hash = (53 * hash) + getAddonId().hashCode();
hash = (37 * hash) + APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getAppId().hashCode();
hash = (37 * hash) + ACTIVATION_STATUS_FIELD_NUMBER;
hash = (53 * hash) + activationStatus_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Represents a single addon with its corresponding activation status
*
*
* Protobuf type {@code salesorders.v1.AddonActivation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:salesorders.v1.AddonActivation)
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_AddonActivation_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_AddonActivation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.Builder.class);
}
// Construct using com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
addonId_ = "";
appId_ = "";
activationStatus_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_AddonActivation_descriptor;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation getDefaultInstanceForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.getDefaultInstance();
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation build() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation buildPartial() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation result = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation(this);
result.addonId_ = addonId_;
result.appId_ = appId_;
result.activationStatus_ = activationStatus_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation) {
return mergeFrom((com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation other) {
if (other == com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.getDefaultInstance()) return this;
if (!other.getAddonId().isEmpty()) {
addonId_ = other.addonId_;
onChanged();
}
if (!other.getAppId().isEmpty()) {
appId_ = other.appId_;
onChanged();
}
if (other.activationStatus_ != 0) {
setActivationStatusValue(other.getActivationStatusValue());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object addonId_ = "";
/**
*
* Unique identifier of a single addon that is going through the activation process
*
*
* string addon_id = 1;
*/
public java.lang.String getAddonId() {
java.lang.Object ref = addonId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
addonId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Unique identifier of a single addon that is going through the activation process
*
*
* string addon_id = 1;
*/
public com.google.protobuf.ByteString
getAddonIdBytes() {
java.lang.Object ref = addonId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
addonId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Unique identifier of a single addon that is going through the activation process
*
*
* string addon_id = 1;
*/
public Builder setAddonId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
addonId_ = value;
onChanged();
return this;
}
/**
*
* Unique identifier of a single addon that is going through the activation process
*
*
* string addon_id = 1;
*/
public Builder clearAddonId() {
addonId_ = getDefaultInstance().getAddonId();
onChanged();
return this;
}
/**
*
* Unique identifier of a single addon that is going through the activation process
*
*
* string addon_id = 1;
*/
public Builder setAddonIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
addonId_ = value;
onChanged();
return this;
}
private java.lang.Object appId_ = "";
/**
*
* Unique identifier of the parent app for the addon that is going through the activation process
*
*
* string app_id = 2;
*/
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
appId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Unique identifier of the parent app for the addon that is going through the activation process
*
*
* string app_id = 2;
*/
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Unique identifier of the parent app for the addon that is going through the activation process
*
*
* string app_id = 2;
*/
public Builder setAppId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
appId_ = value;
onChanged();
return this;
}
/**
*
* Unique identifier of the parent app for the addon that is going through the activation process
*
*
* string app_id = 2;
*/
public Builder clearAppId() {
appId_ = getDefaultInstance().getAppId();
onChanged();
return this;
}
/**
*
* Unique identifier of the parent app for the addon that is going through the activation process
*
*
* string app_id = 2;
*/
public Builder setAppIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
appId_ = value;
onChanged();
return this;
}
private int activationStatus_ = 0;
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 3;
*/
public int getActivationStatusValue() {
return activationStatus_;
}
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 3;
*/
public Builder setActivationStatusValue(int value) {
activationStatus_ = value;
onChanged();
return this;
}
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 3;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus getActivationStatus() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus result = com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus.valueOf(activationStatus_);
return result == null ? com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus.UNRECOGNIZED : result;
}
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 3;
*/
public Builder setActivationStatus(com.vendasta.salesorders.v1.generated.SalesOrdersProto.ActivationStatus value) {
if (value == null) {
throw new NullPointerException();
}
activationStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The activation status of a single product
*
*
* .salesorders.v1.ActivationStatus activation_status = 3;
*/
public Builder clearActivationStatus() {
activationStatus_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:salesorders.v1.AddonActivation)
}
// @@protoc_insertion_point(class_scope:salesorders.v1.AddonActivation)
private static final com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation();
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public AddonActivation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AddonActivation(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StatusHistoryItemOrBuilder extends
// @@protoc_insertion_point(interface_extends:salesorders.v1.StatusHistoryItem)
com.google.protobuf.MessageOrBuilder {
/**
*
* The unique identifier of the user that updated the status
* DEPRECATED: Use the `email` field, and if that is not set, fallback to user_id.
*
*
* string user_id = 1 [deprecated = true];
*/
@java.lang.Deprecated java.lang.String getUserId();
/**
*
* The unique identifier of the user that updated the status
* DEPRECATED: Use the `email` field, and if that is not set, fallback to user_id.
*
*
* string user_id = 1 [deprecated = true];
*/
@java.lang.Deprecated com.google.protobuf.ByteString
getUserIdBytes();
/**
*
* The status the order was changed to
*
*
* .salesorders.v1.Status status = 2;
*/
int getStatusValue();
/**
*
* The status the order was changed to
*
*
* .salesorders.v1.Status status = 2;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status getStatus();
/**
*
* The time the status was created
*
*
* .google.protobuf.Timestamp created = 3;
*/
boolean hasCreated();
/**
*
* The time the status was created
*
*
* .google.protobuf.Timestamp created = 3;
*/
com.google.protobuf.Timestamp getCreated();
/**
*
* The time the status was created
*
*
* .google.protobuf.Timestamp created = 3;
*/
com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder();
/**
*
* The email fo the user that updated the status.
* If this field is not set, fallback to the deprecated `user_id` field.
*
*
* string email = 4;
*/
java.lang.String getEmail();
/**
*
* The email fo the user that updated the status.
* If this field is not set, fallback to the deprecated `user_id` field.
*
*
* string email = 4;
*/
com.google.protobuf.ByteString
getEmailBytes();
}
/**
*
* Represents a status change on the order to determine who it was updated by and what time it was updated
*
*
* Protobuf type {@code salesorders.v1.StatusHistoryItem}
*/
public static final class StatusHistoryItem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:salesorders.v1.StatusHistoryItem)
StatusHistoryItemOrBuilder {
// Use StatusHistoryItem.newBuilder() to construct.
private StatusHistoryItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StatusHistoryItem() {
userId_ = "";
status_ = 0;
email_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private StatusHistoryItem(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
userId_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 26: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (created_ != null) {
subBuilder = created_.toBuilder();
}
created_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(created_);
created_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
email_ = s;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_StatusHistoryItem_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_StatusHistoryItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.Builder.class);
}
public static final int USER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object userId_;
/**
*
* The unique identifier of the user that updated the status
* DEPRECATED: Use the `email` field, and if that is not set, fallback to user_id.
*
*
* string user_id = 1 [deprecated = true];
*/
@java.lang.Deprecated public java.lang.String getUserId() {
java.lang.Object ref = userId_;
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();
userId_ = s;
return s;
}
}
/**
*
* The unique identifier of the user that updated the status
* DEPRECATED: Use the `email` field, and if that is not set, fallback to user_id.
*
*
* string user_id = 1 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 2;
private int status_;
/**
*
* The status the order was changed to
*
*
* .salesorders.v1.Status status = 2;
*/
public int getStatusValue() {
return status_;
}
/**
*
* The status the order was changed to
*
*
* .salesorders.v1.Status status = 2;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status getStatus() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status result = com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status.valueOf(status_);
return result == null ? com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status.UNRECOGNIZED : result;
}
public static final int CREATED_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp created_;
/**
*
* The time the status was created
*
*
* .google.protobuf.Timestamp created = 3;
*/
public boolean hasCreated() {
return created_ != null;
}
/**
*
* The time the status was created
*
*
* .google.protobuf.Timestamp created = 3;
*/
public com.google.protobuf.Timestamp getCreated() {
return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_;
}
/**
*
* The time the status was created
*
*
* .google.protobuf.Timestamp created = 3;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() {
return getCreated();
}
public static final int EMAIL_FIELD_NUMBER = 4;
private volatile java.lang.Object email_;
/**
*
* The email fo the user that updated the status.
* If this field is not set, fallback to the deprecated `user_id` field.
*
*
* string email = 4;
*/
public java.lang.String getEmail() {
java.lang.Object ref = email_;
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();
email_ = s;
return s;
}
}
/**
*
* The email fo the user that updated the status.
* If this field is not set, fallback to the deprecated `user_id` field.
*
*
* string email = 4;
*/
public com.google.protobuf.ByteString
getEmailBytes() {
java.lang.Object ref = email_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
email_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getUserIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userId_);
}
if (status_ != com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status.SUBMITTED.getNumber()) {
output.writeEnum(2, status_);
}
if (created_ != null) {
output.writeMessage(3, getCreated());
}
if (!getEmailBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, email_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getUserIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userId_);
}
if (status_ != com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status.SUBMITTED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, status_);
}
if (created_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCreated());
}
if (!getEmailBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, email_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem)) {
return super.equals(obj);
}
com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem other = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem) obj;
boolean result = true;
result = result && getUserId()
.equals(other.getUserId());
result = result && status_ == other.status_;
result = result && (hasCreated() == other.hasCreated());
if (hasCreated()) {
result = result && getCreated()
.equals(other.getCreated());
}
result = result && getEmail()
.equals(other.getEmail());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + USER_ID_FIELD_NUMBER;
hash = (53 * hash) + getUserId().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (hasCreated()) {
hash = (37 * hash) + CREATED_FIELD_NUMBER;
hash = (53 * hash) + getCreated().hashCode();
}
hash = (37 * hash) + EMAIL_FIELD_NUMBER;
hash = (53 * hash) + getEmail().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Represents a status change on the order to determine who it was updated by and what time it was updated
*
*
* Protobuf type {@code salesorders.v1.StatusHistoryItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:salesorders.v1.StatusHistoryItem)
com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_StatusHistoryItem_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_StatusHistoryItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.Builder.class);
}
// Construct using com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
userId_ = "";
status_ = 0;
if (createdBuilder_ == null) {
created_ = null;
} else {
created_ = null;
createdBuilder_ = null;
}
email_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_StatusHistoryItem_descriptor;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem getDefaultInstanceForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.getDefaultInstance();
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem build() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem buildPartial() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem result = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem(this);
result.userId_ = userId_;
result.status_ = status_;
if (createdBuilder_ == null) {
result.created_ = created_;
} else {
result.created_ = createdBuilder_.build();
}
result.email_ = email_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem) {
return mergeFrom((com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem other) {
if (other == com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.getDefaultInstance()) return this;
if (!other.getUserId().isEmpty()) {
userId_ = other.userId_;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.hasCreated()) {
mergeCreated(other.getCreated());
}
if (!other.getEmail().isEmpty()) {
email_ = other.email_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object userId_ = "";
/**
*
* The unique identifier of the user that updated the status
* DEPRECATED: Use the `email` field, and if that is not set, fallback to user_id.
*
*
* string user_id = 1 [deprecated = true];
*/
@java.lang.Deprecated public java.lang.String getUserId() {
java.lang.Object ref = userId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The unique identifier of the user that updated the status
* DEPRECATED: Use the `email` field, and if that is not set, fallback to user_id.
*
*
* string user_id = 1 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The unique identifier of the user that updated the status
* DEPRECATED: Use the `email` field, and if that is not set, fallback to user_id.
*
*
* string user_id = 1 [deprecated = true];
*/
@java.lang.Deprecated public Builder setUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userId_ = value;
onChanged();
return this;
}
/**
*
* The unique identifier of the user that updated the status
* DEPRECATED: Use the `email` field, and if that is not set, fallback to user_id.
*
*
* string user_id = 1 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearUserId() {
userId_ = getDefaultInstance().getUserId();
onChanged();
return this;
}
/**
*
* The unique identifier of the user that updated the status
* DEPRECATED: Use the `email` field, and if that is not set, fallback to user_id.
*
*
* string user_id = 1 [deprecated = true];
*/
@java.lang.Deprecated public Builder setUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userId_ = value;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* The status the order was changed to
*
*
* .salesorders.v1.Status status = 2;
*/
public int getStatusValue() {
return status_;
}
/**
*
* The status the order was changed to
*
*
* .salesorders.v1.Status status = 2;
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* The status the order was changed to
*
*
* .salesorders.v1.Status status = 2;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status getStatus() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status result = com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status.valueOf(status_);
return result == null ? com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status.UNRECOGNIZED : result;
}
/**
*
* The status the order was changed to
*
*
* .salesorders.v1.Status status = 2;
*/
public Builder setStatus(com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The status the order was changed to
*
*
* .salesorders.v1.Status status = 2;
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Timestamp created_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdBuilder_;
/**
*
* The time the status was created
*
*
* .google.protobuf.Timestamp created = 3;
*/
public boolean hasCreated() {
return createdBuilder_ != null || created_ != null;
}
/**
*
* The time the status was created
*
*
* .google.protobuf.Timestamp created = 3;
*/
public com.google.protobuf.Timestamp getCreated() {
if (createdBuilder_ == null) {
return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_;
} else {
return createdBuilder_.getMessage();
}
}
/**
*
* The time the status was created
*
*
* .google.protobuf.Timestamp created = 3;
*/
public Builder setCreated(com.google.protobuf.Timestamp value) {
if (createdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
created_ = value;
onChanged();
} else {
createdBuilder_.setMessage(value);
}
return this;
}
/**
*
* The time the status was created
*
*
* .google.protobuf.Timestamp created = 3;
*/
public Builder setCreated(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdBuilder_ == null) {
created_ = builderForValue.build();
onChanged();
} else {
createdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The time the status was created
*
*
* .google.protobuf.Timestamp created = 3;
*/
public Builder mergeCreated(com.google.protobuf.Timestamp value) {
if (createdBuilder_ == null) {
if (created_ != null) {
created_ =
com.google.protobuf.Timestamp.newBuilder(created_).mergeFrom(value).buildPartial();
} else {
created_ = value;
}
onChanged();
} else {
createdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The time the status was created
*
*
* .google.protobuf.Timestamp created = 3;
*/
public Builder clearCreated() {
if (createdBuilder_ == null) {
created_ = null;
onChanged();
} else {
created_ = null;
createdBuilder_ = null;
}
return this;
}
/**
*
* The time the status was created
*
*
* .google.protobuf.Timestamp created = 3;
*/
public com.google.protobuf.Timestamp.Builder getCreatedBuilder() {
onChanged();
return getCreatedFieldBuilder().getBuilder();
}
/**
*
* The time the status was created
*
*
* .google.protobuf.Timestamp created = 3;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() {
if (createdBuilder_ != null) {
return createdBuilder_.getMessageOrBuilder();
} else {
return created_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : created_;
}
}
/**
*
* The time the status was created
*
*
* .google.protobuf.Timestamp created = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedFieldBuilder() {
if (createdBuilder_ == null) {
createdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreated(),
getParentForChildren(),
isClean());
created_ = null;
}
return createdBuilder_;
}
private java.lang.Object email_ = "";
/**
*
* The email fo the user that updated the status.
* If this field is not set, fallback to the deprecated `user_id` field.
*
*
* string email = 4;
*/
public java.lang.String getEmail() {
java.lang.Object ref = email_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
email_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The email fo the user that updated the status.
* If this field is not set, fallback to the deprecated `user_id` field.
*
*
* string email = 4;
*/
public com.google.protobuf.ByteString
getEmailBytes() {
java.lang.Object ref = email_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
email_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The email fo the user that updated the status.
* If this field is not set, fallback to the deprecated `user_id` field.
*
*
* string email = 4;
*/
public Builder setEmail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
email_ = value;
onChanged();
return this;
}
/**
*
* The email fo the user that updated the status.
* If this field is not set, fallback to the deprecated `user_id` field.
*
*
* string email = 4;
*/
public Builder clearEmail() {
email_ = getDefaultInstance().getEmail();
onChanged();
return this;
}
/**
*
* The email fo the user that updated the status.
* If this field is not set, fallback to the deprecated `user_id` field.
*
*
* string email = 4;
*/
public Builder setEmailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
email_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:salesorders.v1.StatusHistoryItem)
}
// @@protoc_insertion_point(class_scope:salesorders.v1.StatusHistoryItem)
private static final com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem();
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public StatusHistoryItem parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StatusHistoryItem(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OrderOrBuilder extends
// @@protoc_insertion_point(interface_extends:salesorders.v1.Order)
com.google.protobuf.MessageOrBuilder {
/**
*
* The unique identifier of the order
*
*
* string order_id = 1;
*/
java.lang.String getOrderId();
/**
*
* The unique identifier of the order
*
*
* string order_id = 1;
*/
com.google.protobuf.ByteString
getOrderIdBytes();
/**
*
* Salesperson who submitted the order
*
*
* string salesperson_id = 2;
*/
java.lang.String getSalespersonId();
/**
*
* Salesperson who submitted the order
*
*
* string salesperson_id = 2;
*/
com.google.protobuf.ByteString
getSalespersonIdBytes();
/**
*
* The partner the order is being made under
*
*
* string partner_id = 3;
*/
java.lang.String getPartnerId();
/**
*
* The partner the order is being made under
*
*
* string partner_id = 3;
*/
com.google.protobuf.ByteString
getPartnerIdBytes();
/**
*
* The business the order is being made for
*
*
* string business_id = 4;
*/
java.lang.String getBusinessId();
/**
*
* The business the order is being made for
*
*
* string business_id = 4;
*/
com.google.protobuf.ByteString
getBusinessIdBytes();
/**
*
* The market the order is being made under
*
*
* string market_id = 5;
*/
java.lang.String getMarketId();
/**
*
* The market the order is being made under
*
*
* string market_id = 5;
*/
com.google.protobuf.ByteString
getMarketIdBytes();
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
java.util.List
getOpportunityIdsList();
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
int getOpportunityIdsCount();
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
java.lang.String getOpportunityIds(int index);
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
com.google.protobuf.ByteString
getOpportunityIdsBytes(int index);
/**
*
* The current status of the order
*
*
* .salesorders.v1.Status status = 7;
*/
int getStatusValue();
/**
*
* The current status of the order
*
*
* .salesorders.v1.Status status = 7;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status getStatus();
/**
*
* The requested activation date for the order's products
*
*
* .google.protobuf.Timestamp requested_activation = 8;
*/
boolean hasRequestedActivation();
/**
*
* The requested activation date for the order's products
*
*
* .google.protobuf.Timestamp requested_activation = 8;
*/
com.google.protobuf.Timestamp getRequestedActivation();
/**
*
* The requested activation date for the order's products
*
*
* .google.protobuf.Timestamp requested_activation = 8;
*/
com.google.protobuf.TimestampOrBuilder getRequestedActivationOrBuilder();
/**
*
* Notes for the partner administrator from the salesperson
*
*
* string notes = 9;
*/
java.lang.String getNotes();
/**
*
* Notes for the partner administrator from the salesperson
*
*
* string notes = 9;
*/
com.google.protobuf.ByteString
getNotesBytes();
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
java.util.List
getPackagesList();
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package getPackages(int index);
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
int getPackagesCount();
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.PackageOrBuilder>
getPackagesOrBuilderList();
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.PackageOrBuilder getPackagesOrBuilder(
int index);
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
java.util.List
getCustomFieldsList();
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField getCustomFields(int index);
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
int getCustomFieldsCount();
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomFieldOrBuilder>
getCustomFieldsOrBuilderList();
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomFieldOrBuilder getCustomFieldsOrBuilder(
int index);
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
java.util.List
getCommonFieldsList();
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField getCommonFields(int index);
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
int getCommonFieldsCount();
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonFieldOrBuilder>
getCommonFieldsOrBuilderList();
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonFieldOrBuilder getCommonFieldsOrBuilder(
int index);
/**
*
* Time the order was submitted by a salesperson
*
*
* .google.protobuf.Timestamp created = 13;
*/
boolean hasCreated();
/**
*
* Time the order was submitted by a salesperson
*
*
* .google.protobuf.Timestamp created = 13;
*/
com.google.protobuf.Timestamp getCreated();
/**
*
* Time the order was submitted by a salesperson
*
*
* .google.protobuf.Timestamp created = 13;
*/
com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder();
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
java.util.List
getProductActivationsList();
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation getProductActivations(int index);
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
int getProductActivationsCount();
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivationOrBuilder>
getProductActivationsOrBuilderList();
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivationOrBuilder getProductActivationsOrBuilder(
int index);
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
java.util.List
getAddonActivationsList();
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation getAddonActivations(int index);
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
int getAddonActivationsCount();
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivationOrBuilder>
getAddonActivationsOrBuilderList();
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivationOrBuilder getAddonActivationsOrBuilder(
int index);
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
java.util.List
getStatusHistoryList();
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem getStatusHistory(int index);
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
int getStatusHistoryCount();
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItemOrBuilder>
getStatusHistoryOrBuilderList();
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItemOrBuilder getStatusHistoryOrBuilder(
int index);
/**
*
* The reason the order was declined
*
*
* string declined_reason = 20;
*/
java.lang.String getDeclinedReason();
/**
*
* The reason the order was declined
*
*
* string declined_reason = 20;
*/
com.google.protobuf.ByteString
getDeclinedReasonBytes();
}
/**
*
* Data representing an order form submitted by a salesperson
*
*
* Protobuf type {@code salesorders.v1.Order}
*/
public static final class Order extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:salesorders.v1.Order)
OrderOrBuilder {
// Use Order.newBuilder() to construct.
private Order(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Order() {
orderId_ = "";
salespersonId_ = "";
partnerId_ = "";
businessId_ = "";
marketId_ = "";
opportunityIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
status_ = 0;
notes_ = "";
packages_ = java.util.Collections.emptyList();
customFields_ = java.util.Collections.emptyList();
commonFields_ = java.util.Collections.emptyList();
productActivations_ = java.util.Collections.emptyList();
addonActivations_ = java.util.Collections.emptyList();
statusHistory_ = java.util.Collections.emptyList();
declinedReason_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Order(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
orderId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
salespersonId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
partnerId_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
businessId_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
marketId_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
opportunityIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000020;
}
opportunityIds_.add(s);
break;
}
case 56: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 66: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (requestedActivation_ != null) {
subBuilder = requestedActivation_.toBuilder();
}
requestedActivation_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(requestedActivation_);
requestedActivation_ = subBuilder.buildPartial();
}
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
notes_ = s;
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
packages_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
packages_.add(
input.readMessage(com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.parser(), extensionRegistry));
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
customFields_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
customFields_.add(
input.readMessage(com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.parser(), extensionRegistry));
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
commonFields_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000800;
}
commonFields_.add(
input.readMessage(com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.parser(), extensionRegistry));
break;
}
case 106: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (created_ != null) {
subBuilder = created_.toBuilder();
}
created_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(created_);
created_ = subBuilder.buildPartial();
}
break;
}
case 114: {
if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) {
productActivations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00002000;
}
productActivations_.add(
input.readMessage(com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.parser(), extensionRegistry));
break;
}
case 146: {
if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
addonActivations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00004000;
}
addonActivations_.add(
input.readMessage(com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.parser(), extensionRegistry));
break;
}
case 154: {
if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
statusHistory_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00008000;
}
statusHistory_.add(
input.readMessage(com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.parser(), extensionRegistry));
break;
}
case 162: {
java.lang.String s = input.readStringRequireUtf8();
declinedReason_ = s;
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 {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
opportunityIds_ = opportunityIds_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
packages_ = java.util.Collections.unmodifiableList(packages_);
}
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
customFields_ = java.util.Collections.unmodifiableList(customFields_);
}
if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) {
commonFields_ = java.util.Collections.unmodifiableList(commonFields_);
}
if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) {
productActivations_ = java.util.Collections.unmodifiableList(productActivations_);
}
if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
addonActivations_ = java.util.Collections.unmodifiableList(addonActivations_);
}
if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_Order_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_Order_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order.Builder.class);
}
private int bitField0_;
public static final int ORDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object orderId_;
/**
*
* The unique identifier of the order
*
*
* string order_id = 1;
*/
public java.lang.String getOrderId() {
java.lang.Object ref = orderId_;
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();
orderId_ = s;
return s;
}
}
/**
*
* The unique identifier of the order
*
*
* string order_id = 1;
*/
public com.google.protobuf.ByteString
getOrderIdBytes() {
java.lang.Object ref = orderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
orderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SALESPERSON_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object salespersonId_;
/**
*
* Salesperson who submitted the order
*
*
* string salesperson_id = 2;
*/
public java.lang.String getSalespersonId() {
java.lang.Object ref = salespersonId_;
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();
salespersonId_ = s;
return s;
}
}
/**
*
* Salesperson who submitted the order
*
*
* string salesperson_id = 2;
*/
public com.google.protobuf.ByteString
getSalespersonIdBytes() {
java.lang.Object ref = salespersonId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
salespersonId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARTNER_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object partnerId_;
/**
*
* The partner the order is being made under
*
*
* string partner_id = 3;
*/
public java.lang.String getPartnerId() {
java.lang.Object ref = partnerId_;
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();
partnerId_ = s;
return s;
}
}
/**
*
* The partner the order is being made under
*
*
* string partner_id = 3;
*/
public com.google.protobuf.ByteString
getPartnerIdBytes() {
java.lang.Object ref = partnerId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
partnerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BUSINESS_ID_FIELD_NUMBER = 4;
private volatile java.lang.Object businessId_;
/**
*
* The business the order is being made for
*
*
* string business_id = 4;
*/
public java.lang.String getBusinessId() {
java.lang.Object ref = businessId_;
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();
businessId_ = s;
return s;
}
}
/**
*
* The business the order is being made for
*
*
* string business_id = 4;
*/
public com.google.protobuf.ByteString
getBusinessIdBytes() {
java.lang.Object ref = businessId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
businessId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MARKET_ID_FIELD_NUMBER = 5;
private volatile java.lang.Object marketId_;
/**
*
* The market the order is being made under
*
*
* string market_id = 5;
*/
public java.lang.String getMarketId() {
java.lang.Object ref = marketId_;
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();
marketId_ = s;
return s;
}
}
/**
*
* The market the order is being made under
*
*
* string market_id = 5;
*/
public com.google.protobuf.ByteString
getMarketIdBytes() {
java.lang.Object ref = marketId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
marketId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPPORTUNITY_IDS_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList opportunityIds_;
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
public com.google.protobuf.ProtocolStringList
getOpportunityIdsList() {
return opportunityIds_;
}
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
public int getOpportunityIdsCount() {
return opportunityIds_.size();
}
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
public java.lang.String getOpportunityIds(int index) {
return opportunityIds_.get(index);
}
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
public com.google.protobuf.ByteString
getOpportunityIdsBytes(int index) {
return opportunityIds_.getByteString(index);
}
public static final int STATUS_FIELD_NUMBER = 7;
private int status_;
/**
*
* The current status of the order
*
*
* .salesorders.v1.Status status = 7;
*/
public int getStatusValue() {
return status_;
}
/**
*
* The current status of the order
*
*
* .salesorders.v1.Status status = 7;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status getStatus() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status result = com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status.valueOf(status_);
return result == null ? com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status.UNRECOGNIZED : result;
}
public static final int REQUESTED_ACTIVATION_FIELD_NUMBER = 8;
private com.google.protobuf.Timestamp requestedActivation_;
/**
*
* The requested activation date for the order's products
*
*
* .google.protobuf.Timestamp requested_activation = 8;
*/
public boolean hasRequestedActivation() {
return requestedActivation_ != null;
}
/**
*
* The requested activation date for the order's products
*
*
* .google.protobuf.Timestamp requested_activation = 8;
*/
public com.google.protobuf.Timestamp getRequestedActivation() {
return requestedActivation_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : requestedActivation_;
}
/**
*
* The requested activation date for the order's products
*
*
* .google.protobuf.Timestamp requested_activation = 8;
*/
public com.google.protobuf.TimestampOrBuilder getRequestedActivationOrBuilder() {
return getRequestedActivation();
}
public static final int NOTES_FIELD_NUMBER = 9;
private volatile java.lang.Object notes_;
/**
*
* Notes for the partner administrator from the salesperson
*
*
* string notes = 9;
*/
public java.lang.String getNotes() {
java.lang.Object ref = notes_;
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();
notes_ = s;
return s;
}
}
/**
*
* Notes for the partner administrator from the salesperson
*
*
* string notes = 9;
*/
public com.google.protobuf.ByteString
getNotesBytes() {
java.lang.Object ref = notes_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
notes_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PACKAGES_FIELD_NUMBER = 10;
private java.util.List packages_;
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public java.util.List getPackagesList() {
return packages_;
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.PackageOrBuilder>
getPackagesOrBuilderList() {
return packages_;
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public int getPackagesCount() {
return packages_.size();
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package getPackages(int index) {
return packages_.get(index);
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.PackageOrBuilder getPackagesOrBuilder(
int index) {
return packages_.get(index);
}
public static final int CUSTOM_FIELDS_FIELD_NUMBER = 11;
private java.util.List customFields_;
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public java.util.List getCustomFieldsList() {
return customFields_;
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomFieldOrBuilder>
getCustomFieldsOrBuilderList() {
return customFields_;
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public int getCustomFieldsCount() {
return customFields_.size();
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField getCustomFields(int index) {
return customFields_.get(index);
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomFieldOrBuilder getCustomFieldsOrBuilder(
int index) {
return customFields_.get(index);
}
public static final int COMMON_FIELDS_FIELD_NUMBER = 12;
private java.util.List commonFields_;
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public java.util.List getCommonFieldsList() {
return commonFields_;
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonFieldOrBuilder>
getCommonFieldsOrBuilderList() {
return commonFields_;
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public int getCommonFieldsCount() {
return commonFields_.size();
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField getCommonFields(int index) {
return commonFields_.get(index);
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonFieldOrBuilder getCommonFieldsOrBuilder(
int index) {
return commonFields_.get(index);
}
public static final int CREATED_FIELD_NUMBER = 13;
private com.google.protobuf.Timestamp created_;
/**
*
* Time the order was submitted by a salesperson
*
*
* .google.protobuf.Timestamp created = 13;
*/
public boolean hasCreated() {
return created_ != null;
}
/**
*
* Time the order was submitted by a salesperson
*
*
* .google.protobuf.Timestamp created = 13;
*/
public com.google.protobuf.Timestamp getCreated() {
return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_;
}
/**
*
* Time the order was submitted by a salesperson
*
*
* .google.protobuf.Timestamp created = 13;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() {
return getCreated();
}
public static final int PRODUCT_ACTIVATIONS_FIELD_NUMBER = 14;
private java.util.List productActivations_;
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public java.util.List getProductActivationsList() {
return productActivations_;
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivationOrBuilder>
getProductActivationsOrBuilderList() {
return productActivations_;
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public int getProductActivationsCount() {
return productActivations_.size();
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation getProductActivations(int index) {
return productActivations_.get(index);
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivationOrBuilder getProductActivationsOrBuilder(
int index) {
return productActivations_.get(index);
}
public static final int ADDON_ACTIVATIONS_FIELD_NUMBER = 18;
private java.util.List addonActivations_;
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public java.util.List getAddonActivationsList() {
return addonActivations_;
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivationOrBuilder>
getAddonActivationsOrBuilderList() {
return addonActivations_;
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public int getAddonActivationsCount() {
return addonActivations_.size();
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation getAddonActivations(int index) {
return addonActivations_.get(index);
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivationOrBuilder getAddonActivationsOrBuilder(
int index) {
return addonActivations_.get(index);
}
public static final int STATUS_HISTORY_FIELD_NUMBER = 19;
private java.util.List statusHistory_;
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public java.util.List getStatusHistoryList() {
return statusHistory_;
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItemOrBuilder>
getStatusHistoryOrBuilderList() {
return statusHistory_;
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public int getStatusHistoryCount() {
return statusHistory_.size();
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem getStatusHistory(int index) {
return statusHistory_.get(index);
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItemOrBuilder getStatusHistoryOrBuilder(
int index) {
return statusHistory_.get(index);
}
public static final int DECLINED_REASON_FIELD_NUMBER = 20;
private volatile java.lang.Object declinedReason_;
/**
*
* The reason the order was declined
*
*
* string declined_reason = 20;
*/
public java.lang.String getDeclinedReason() {
java.lang.Object ref = declinedReason_;
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();
declinedReason_ = s;
return s;
}
}
/**
*
* The reason the order was declined
*
*
* string declined_reason = 20;
*/
public com.google.protobuf.ByteString
getDeclinedReasonBytes() {
java.lang.Object ref = declinedReason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
declinedReason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getOrderIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, orderId_);
}
if (!getSalespersonIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, salespersonId_);
}
if (!getPartnerIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, partnerId_);
}
if (!getBusinessIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, businessId_);
}
if (!getMarketIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, marketId_);
}
for (int i = 0; i < opportunityIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, opportunityIds_.getRaw(i));
}
if (status_ != com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status.SUBMITTED.getNumber()) {
output.writeEnum(7, status_);
}
if (requestedActivation_ != null) {
output.writeMessage(8, getRequestedActivation());
}
if (!getNotesBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, notes_);
}
for (int i = 0; i < packages_.size(); i++) {
output.writeMessage(10, packages_.get(i));
}
for (int i = 0; i < customFields_.size(); i++) {
output.writeMessage(11, customFields_.get(i));
}
for (int i = 0; i < commonFields_.size(); i++) {
output.writeMessage(12, commonFields_.get(i));
}
if (created_ != null) {
output.writeMessage(13, getCreated());
}
for (int i = 0; i < productActivations_.size(); i++) {
output.writeMessage(14, productActivations_.get(i));
}
for (int i = 0; i < addonActivations_.size(); i++) {
output.writeMessage(18, addonActivations_.get(i));
}
for (int i = 0; i < statusHistory_.size(); i++) {
output.writeMessage(19, statusHistory_.get(i));
}
if (!getDeclinedReasonBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 20, declinedReason_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getOrderIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, orderId_);
}
if (!getSalespersonIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, salespersonId_);
}
if (!getPartnerIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, partnerId_);
}
if (!getBusinessIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, businessId_);
}
if (!getMarketIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, marketId_);
}
{
int dataSize = 0;
for (int i = 0; i < opportunityIds_.size(); i++) {
dataSize += computeStringSizeNoTag(opportunityIds_.getRaw(i));
}
size += dataSize;
size += 1 * getOpportunityIdsList().size();
}
if (status_ != com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status.SUBMITTED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, status_);
}
if (requestedActivation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getRequestedActivation());
}
if (!getNotesBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, notes_);
}
for (int i = 0; i < packages_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, packages_.get(i));
}
for (int i = 0; i < customFields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, customFields_.get(i));
}
for (int i = 0; i < commonFields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, commonFields_.get(i));
}
if (created_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getCreated());
}
for (int i = 0; i < productActivations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, productActivations_.get(i));
}
for (int i = 0; i < addonActivations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, addonActivations_.get(i));
}
for (int i = 0; i < statusHistory_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, statusHistory_.get(i));
}
if (!getDeclinedReasonBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, declinedReason_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order)) {
return super.equals(obj);
}
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order other = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order) obj;
boolean result = true;
result = result && getOrderId()
.equals(other.getOrderId());
result = result && getSalespersonId()
.equals(other.getSalespersonId());
result = result && getPartnerId()
.equals(other.getPartnerId());
result = result && getBusinessId()
.equals(other.getBusinessId());
result = result && getMarketId()
.equals(other.getMarketId());
result = result && getOpportunityIdsList()
.equals(other.getOpportunityIdsList());
result = result && status_ == other.status_;
result = result && (hasRequestedActivation() == other.hasRequestedActivation());
if (hasRequestedActivation()) {
result = result && getRequestedActivation()
.equals(other.getRequestedActivation());
}
result = result && getNotes()
.equals(other.getNotes());
result = result && getPackagesList()
.equals(other.getPackagesList());
result = result && getCustomFieldsList()
.equals(other.getCustomFieldsList());
result = result && getCommonFieldsList()
.equals(other.getCommonFieldsList());
result = result && (hasCreated() == other.hasCreated());
if (hasCreated()) {
result = result && getCreated()
.equals(other.getCreated());
}
result = result && getProductActivationsList()
.equals(other.getProductActivationsList());
result = result && getAddonActivationsList()
.equals(other.getAddonActivationsList());
result = result && getStatusHistoryList()
.equals(other.getStatusHistoryList());
result = result && getDeclinedReason()
.equals(other.getDeclinedReason());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ORDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getOrderId().hashCode();
hash = (37 * hash) + SALESPERSON_ID_FIELD_NUMBER;
hash = (53 * hash) + getSalespersonId().hashCode();
hash = (37 * hash) + PARTNER_ID_FIELD_NUMBER;
hash = (53 * hash) + getPartnerId().hashCode();
hash = (37 * hash) + BUSINESS_ID_FIELD_NUMBER;
hash = (53 * hash) + getBusinessId().hashCode();
hash = (37 * hash) + MARKET_ID_FIELD_NUMBER;
hash = (53 * hash) + getMarketId().hashCode();
if (getOpportunityIdsCount() > 0) {
hash = (37 * hash) + OPPORTUNITY_IDS_FIELD_NUMBER;
hash = (53 * hash) + getOpportunityIdsList().hashCode();
}
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (hasRequestedActivation()) {
hash = (37 * hash) + REQUESTED_ACTIVATION_FIELD_NUMBER;
hash = (53 * hash) + getRequestedActivation().hashCode();
}
hash = (37 * hash) + NOTES_FIELD_NUMBER;
hash = (53 * hash) + getNotes().hashCode();
if (getPackagesCount() > 0) {
hash = (37 * hash) + PACKAGES_FIELD_NUMBER;
hash = (53 * hash) + getPackagesList().hashCode();
}
if (getCustomFieldsCount() > 0) {
hash = (37 * hash) + CUSTOM_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getCustomFieldsList().hashCode();
}
if (getCommonFieldsCount() > 0) {
hash = (37 * hash) + COMMON_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getCommonFieldsList().hashCode();
}
if (hasCreated()) {
hash = (37 * hash) + CREATED_FIELD_NUMBER;
hash = (53 * hash) + getCreated().hashCode();
}
if (getProductActivationsCount() > 0) {
hash = (37 * hash) + PRODUCT_ACTIVATIONS_FIELD_NUMBER;
hash = (53 * hash) + getProductActivationsList().hashCode();
}
if (getAddonActivationsCount() > 0) {
hash = (37 * hash) + ADDON_ACTIVATIONS_FIELD_NUMBER;
hash = (53 * hash) + getAddonActivationsList().hashCode();
}
if (getStatusHistoryCount() > 0) {
hash = (37 * hash) + STATUS_HISTORY_FIELD_NUMBER;
hash = (53 * hash) + getStatusHistoryList().hashCode();
}
hash = (37 * hash) + DECLINED_REASON_FIELD_NUMBER;
hash = (53 * hash) + getDeclinedReason().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order 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 com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Data representing an order form submitted by a salesperson
*
*
* Protobuf type {@code salesorders.v1.Order}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:salesorders.v1.Order)
com.vendasta.salesorders.v1.generated.SalesOrdersProto.OrderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_Order_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_Order_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order.class, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order.Builder.class);
}
// Construct using com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPackagesFieldBuilder();
getCustomFieldsFieldBuilder();
getCommonFieldsFieldBuilder();
getProductActivationsFieldBuilder();
getAddonActivationsFieldBuilder();
getStatusHistoryFieldBuilder();
}
}
public Builder clear() {
super.clear();
orderId_ = "";
salespersonId_ = "";
partnerId_ = "";
businessId_ = "";
marketId_ = "";
opportunityIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
status_ = 0;
if (requestedActivationBuilder_ == null) {
requestedActivation_ = null;
} else {
requestedActivation_ = null;
requestedActivationBuilder_ = null;
}
notes_ = "";
if (packagesBuilder_ == null) {
packages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
} else {
packagesBuilder_.clear();
}
if (customFieldsBuilder_ == null) {
customFields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
} else {
customFieldsBuilder_.clear();
}
if (commonFieldsBuilder_ == null) {
commonFields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
} else {
commonFieldsBuilder_.clear();
}
if (createdBuilder_ == null) {
created_ = null;
} else {
created_ = null;
createdBuilder_ = null;
}
if (productActivationsBuilder_ == null) {
productActivations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
} else {
productActivationsBuilder_.clear();
}
if (addonActivationsBuilder_ == null) {
addonActivations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
} else {
addonActivationsBuilder_.clear();
}
if (statusHistoryBuilder_ == null) {
statusHistory_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);
} else {
statusHistoryBuilder_.clear();
}
declinedReason_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.internal_static_salesorders_v1_Order_descriptor;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order getDefaultInstanceForType() {
return com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order.getDefaultInstance();
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order build() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order buildPartial() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order result = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.orderId_ = orderId_;
result.salespersonId_ = salespersonId_;
result.partnerId_ = partnerId_;
result.businessId_ = businessId_;
result.marketId_ = marketId_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
opportunityIds_ = opportunityIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.opportunityIds_ = opportunityIds_;
result.status_ = status_;
if (requestedActivationBuilder_ == null) {
result.requestedActivation_ = requestedActivation_;
} else {
result.requestedActivation_ = requestedActivationBuilder_.build();
}
result.notes_ = notes_;
if (packagesBuilder_ == null) {
if (((bitField0_ & 0x00000200) == 0x00000200)) {
packages_ = java.util.Collections.unmodifiableList(packages_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.packages_ = packages_;
} else {
result.packages_ = packagesBuilder_.build();
}
if (customFieldsBuilder_ == null) {
if (((bitField0_ & 0x00000400) == 0x00000400)) {
customFields_ = java.util.Collections.unmodifiableList(customFields_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.customFields_ = customFields_;
} else {
result.customFields_ = customFieldsBuilder_.build();
}
if (commonFieldsBuilder_ == null) {
if (((bitField0_ & 0x00000800) == 0x00000800)) {
commonFields_ = java.util.Collections.unmodifiableList(commonFields_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.commonFields_ = commonFields_;
} else {
result.commonFields_ = commonFieldsBuilder_.build();
}
if (createdBuilder_ == null) {
result.created_ = created_;
} else {
result.created_ = createdBuilder_.build();
}
if (productActivationsBuilder_ == null) {
if (((bitField0_ & 0x00002000) == 0x00002000)) {
productActivations_ = java.util.Collections.unmodifiableList(productActivations_);
bitField0_ = (bitField0_ & ~0x00002000);
}
result.productActivations_ = productActivations_;
} else {
result.productActivations_ = productActivationsBuilder_.build();
}
if (addonActivationsBuilder_ == null) {
if (((bitField0_ & 0x00004000) == 0x00004000)) {
addonActivations_ = java.util.Collections.unmodifiableList(addonActivations_);
bitField0_ = (bitField0_ & ~0x00004000);
}
result.addonActivations_ = addonActivations_;
} else {
result.addonActivations_ = addonActivationsBuilder_.build();
}
if (statusHistoryBuilder_ == null) {
if (((bitField0_ & 0x00008000) == 0x00008000)) {
statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_);
bitField0_ = (bitField0_ & ~0x00008000);
}
result.statusHistory_ = statusHistory_;
} else {
result.statusHistory_ = statusHistoryBuilder_.build();
}
result.declinedReason_ = declinedReason_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order) {
return mergeFrom((com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order other) {
if (other == com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order.getDefaultInstance()) return this;
if (!other.getOrderId().isEmpty()) {
orderId_ = other.orderId_;
onChanged();
}
if (!other.getSalespersonId().isEmpty()) {
salespersonId_ = other.salespersonId_;
onChanged();
}
if (!other.getPartnerId().isEmpty()) {
partnerId_ = other.partnerId_;
onChanged();
}
if (!other.getBusinessId().isEmpty()) {
businessId_ = other.businessId_;
onChanged();
}
if (!other.getMarketId().isEmpty()) {
marketId_ = other.marketId_;
onChanged();
}
if (!other.opportunityIds_.isEmpty()) {
if (opportunityIds_.isEmpty()) {
opportunityIds_ = other.opportunityIds_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureOpportunityIdsIsMutable();
opportunityIds_.addAll(other.opportunityIds_);
}
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.hasRequestedActivation()) {
mergeRequestedActivation(other.getRequestedActivation());
}
if (!other.getNotes().isEmpty()) {
notes_ = other.notes_;
onChanged();
}
if (packagesBuilder_ == null) {
if (!other.packages_.isEmpty()) {
if (packages_.isEmpty()) {
packages_ = other.packages_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensurePackagesIsMutable();
packages_.addAll(other.packages_);
}
onChanged();
}
} else {
if (!other.packages_.isEmpty()) {
if (packagesBuilder_.isEmpty()) {
packagesBuilder_.dispose();
packagesBuilder_ = null;
packages_ = other.packages_;
bitField0_ = (bitField0_ & ~0x00000200);
packagesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPackagesFieldBuilder() : null;
} else {
packagesBuilder_.addAllMessages(other.packages_);
}
}
}
if (customFieldsBuilder_ == null) {
if (!other.customFields_.isEmpty()) {
if (customFields_.isEmpty()) {
customFields_ = other.customFields_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureCustomFieldsIsMutable();
customFields_.addAll(other.customFields_);
}
onChanged();
}
} else {
if (!other.customFields_.isEmpty()) {
if (customFieldsBuilder_.isEmpty()) {
customFieldsBuilder_.dispose();
customFieldsBuilder_ = null;
customFields_ = other.customFields_;
bitField0_ = (bitField0_ & ~0x00000400);
customFieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCustomFieldsFieldBuilder() : null;
} else {
customFieldsBuilder_.addAllMessages(other.customFields_);
}
}
}
if (commonFieldsBuilder_ == null) {
if (!other.commonFields_.isEmpty()) {
if (commonFields_.isEmpty()) {
commonFields_ = other.commonFields_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureCommonFieldsIsMutable();
commonFields_.addAll(other.commonFields_);
}
onChanged();
}
} else {
if (!other.commonFields_.isEmpty()) {
if (commonFieldsBuilder_.isEmpty()) {
commonFieldsBuilder_.dispose();
commonFieldsBuilder_ = null;
commonFields_ = other.commonFields_;
bitField0_ = (bitField0_ & ~0x00000800);
commonFieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCommonFieldsFieldBuilder() : null;
} else {
commonFieldsBuilder_.addAllMessages(other.commonFields_);
}
}
}
if (other.hasCreated()) {
mergeCreated(other.getCreated());
}
if (productActivationsBuilder_ == null) {
if (!other.productActivations_.isEmpty()) {
if (productActivations_.isEmpty()) {
productActivations_ = other.productActivations_;
bitField0_ = (bitField0_ & ~0x00002000);
} else {
ensureProductActivationsIsMutable();
productActivations_.addAll(other.productActivations_);
}
onChanged();
}
} else {
if (!other.productActivations_.isEmpty()) {
if (productActivationsBuilder_.isEmpty()) {
productActivationsBuilder_.dispose();
productActivationsBuilder_ = null;
productActivations_ = other.productActivations_;
bitField0_ = (bitField0_ & ~0x00002000);
productActivationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getProductActivationsFieldBuilder() : null;
} else {
productActivationsBuilder_.addAllMessages(other.productActivations_);
}
}
}
if (addonActivationsBuilder_ == null) {
if (!other.addonActivations_.isEmpty()) {
if (addonActivations_.isEmpty()) {
addonActivations_ = other.addonActivations_;
bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensureAddonActivationsIsMutable();
addonActivations_.addAll(other.addonActivations_);
}
onChanged();
}
} else {
if (!other.addonActivations_.isEmpty()) {
if (addonActivationsBuilder_.isEmpty()) {
addonActivationsBuilder_.dispose();
addonActivationsBuilder_ = null;
addonActivations_ = other.addonActivations_;
bitField0_ = (bitField0_ & ~0x00004000);
addonActivationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAddonActivationsFieldBuilder() : null;
} else {
addonActivationsBuilder_.addAllMessages(other.addonActivations_);
}
}
}
if (statusHistoryBuilder_ == null) {
if (!other.statusHistory_.isEmpty()) {
if (statusHistory_.isEmpty()) {
statusHistory_ = other.statusHistory_;
bitField0_ = (bitField0_ & ~0x00008000);
} else {
ensureStatusHistoryIsMutable();
statusHistory_.addAll(other.statusHistory_);
}
onChanged();
}
} else {
if (!other.statusHistory_.isEmpty()) {
if (statusHistoryBuilder_.isEmpty()) {
statusHistoryBuilder_.dispose();
statusHistoryBuilder_ = null;
statusHistory_ = other.statusHistory_;
bitField0_ = (bitField0_ & ~0x00008000);
statusHistoryBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStatusHistoryFieldBuilder() : null;
} else {
statusHistoryBuilder_.addAllMessages(other.statusHistory_);
}
}
}
if (!other.getDeclinedReason().isEmpty()) {
declinedReason_ = other.declinedReason_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object orderId_ = "";
/**
*
* The unique identifier of the order
*
*
* string order_id = 1;
*/
public java.lang.String getOrderId() {
java.lang.Object ref = orderId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
orderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The unique identifier of the order
*
*
* string order_id = 1;
*/
public com.google.protobuf.ByteString
getOrderIdBytes() {
java.lang.Object ref = orderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
orderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The unique identifier of the order
*
*
* string order_id = 1;
*/
public Builder setOrderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
orderId_ = value;
onChanged();
return this;
}
/**
*
* The unique identifier of the order
*
*
* string order_id = 1;
*/
public Builder clearOrderId() {
orderId_ = getDefaultInstance().getOrderId();
onChanged();
return this;
}
/**
*
* The unique identifier of the order
*
*
* string order_id = 1;
*/
public Builder setOrderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
orderId_ = value;
onChanged();
return this;
}
private java.lang.Object salespersonId_ = "";
/**
*
* Salesperson who submitted the order
*
*
* string salesperson_id = 2;
*/
public java.lang.String getSalespersonId() {
java.lang.Object ref = salespersonId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
salespersonId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Salesperson who submitted the order
*
*
* string salesperson_id = 2;
*/
public com.google.protobuf.ByteString
getSalespersonIdBytes() {
java.lang.Object ref = salespersonId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
salespersonId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Salesperson who submitted the order
*
*
* string salesperson_id = 2;
*/
public Builder setSalespersonId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
salespersonId_ = value;
onChanged();
return this;
}
/**
*
* Salesperson who submitted the order
*
*
* string salesperson_id = 2;
*/
public Builder clearSalespersonId() {
salespersonId_ = getDefaultInstance().getSalespersonId();
onChanged();
return this;
}
/**
*
* Salesperson who submitted the order
*
*
* string salesperson_id = 2;
*/
public Builder setSalespersonIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
salespersonId_ = value;
onChanged();
return this;
}
private java.lang.Object partnerId_ = "";
/**
*
* The partner the order is being made under
*
*
* string partner_id = 3;
*/
public java.lang.String getPartnerId() {
java.lang.Object ref = partnerId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
partnerId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The partner the order is being made under
*
*
* string partner_id = 3;
*/
public com.google.protobuf.ByteString
getPartnerIdBytes() {
java.lang.Object ref = partnerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
partnerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The partner the order is being made under
*
*
* string partner_id = 3;
*/
public Builder setPartnerId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
partnerId_ = value;
onChanged();
return this;
}
/**
*
* The partner the order is being made under
*
*
* string partner_id = 3;
*/
public Builder clearPartnerId() {
partnerId_ = getDefaultInstance().getPartnerId();
onChanged();
return this;
}
/**
*
* The partner the order is being made under
*
*
* string partner_id = 3;
*/
public Builder setPartnerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
partnerId_ = value;
onChanged();
return this;
}
private java.lang.Object businessId_ = "";
/**
*
* The business the order is being made for
*
*
* string business_id = 4;
*/
public java.lang.String getBusinessId() {
java.lang.Object ref = businessId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
businessId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The business the order is being made for
*
*
* string business_id = 4;
*/
public com.google.protobuf.ByteString
getBusinessIdBytes() {
java.lang.Object ref = businessId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
businessId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The business the order is being made for
*
*
* string business_id = 4;
*/
public Builder setBusinessId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
businessId_ = value;
onChanged();
return this;
}
/**
*
* The business the order is being made for
*
*
* string business_id = 4;
*/
public Builder clearBusinessId() {
businessId_ = getDefaultInstance().getBusinessId();
onChanged();
return this;
}
/**
*
* The business the order is being made for
*
*
* string business_id = 4;
*/
public Builder setBusinessIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
businessId_ = value;
onChanged();
return this;
}
private java.lang.Object marketId_ = "";
/**
*
* The market the order is being made under
*
*
* string market_id = 5;
*/
public java.lang.String getMarketId() {
java.lang.Object ref = marketId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
marketId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The market the order is being made under
*
*
* string market_id = 5;
*/
public com.google.protobuf.ByteString
getMarketIdBytes() {
java.lang.Object ref = marketId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
marketId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The market the order is being made under
*
*
* string market_id = 5;
*/
public Builder setMarketId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
marketId_ = value;
onChanged();
return this;
}
/**
*
* The market the order is being made under
*
*
* string market_id = 5;
*/
public Builder clearMarketId() {
marketId_ = getDefaultInstance().getMarketId();
onChanged();
return this;
}
/**
*
* The market the order is being made under
*
*
* string market_id = 5;
*/
public Builder setMarketIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
marketId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList opportunityIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureOpportunityIdsIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
opportunityIds_ = new com.google.protobuf.LazyStringArrayList(opportunityIds_);
bitField0_ |= 0x00000020;
}
}
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
public com.google.protobuf.ProtocolStringList
getOpportunityIdsList() {
return opportunityIds_.getUnmodifiableView();
}
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
public int getOpportunityIdsCount() {
return opportunityIds_.size();
}
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
public java.lang.String getOpportunityIds(int index) {
return opportunityIds_.get(index);
}
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
public com.google.protobuf.ByteString
getOpportunityIdsBytes(int index) {
return opportunityIds_.getByteString(index);
}
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
public Builder setOpportunityIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOpportunityIdsIsMutable();
opportunityIds_.set(index, value);
onChanged();
return this;
}
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
public Builder addOpportunityIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOpportunityIdsIsMutable();
opportunityIds_.add(value);
onChanged();
return this;
}
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
public Builder addAllOpportunityIds(
java.lang.Iterable values) {
ensureOpportunityIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, opportunityIds_);
onChanged();
return this;
}
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
public Builder clearOpportunityIds() {
opportunityIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* The opportunities that are being used for the order
*
*
* repeated string opportunity_ids = 6;
*/
public Builder addOpportunityIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureOpportunityIdsIsMutable();
opportunityIds_.add(value);
onChanged();
return this;
}
private int status_ = 0;
/**
*
* The current status of the order
*
*
* .salesorders.v1.Status status = 7;
*/
public int getStatusValue() {
return status_;
}
/**
*
* The current status of the order
*
*
* .salesorders.v1.Status status = 7;
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* The current status of the order
*
*
* .salesorders.v1.Status status = 7;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status getStatus() {
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status result = com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status.valueOf(status_);
return result == null ? com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status.UNRECOGNIZED : result;
}
/**
*
* The current status of the order
*
*
* .salesorders.v1.Status status = 7;
*/
public Builder setStatus(com.vendasta.salesorders.v1.generated.SalesOrdersProto.Status value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The current status of the order
*
*
* .salesorders.v1.Status status = 7;
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Timestamp requestedActivation_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> requestedActivationBuilder_;
/**
*
* The requested activation date for the order's products
*
*
* .google.protobuf.Timestamp requested_activation = 8;
*/
public boolean hasRequestedActivation() {
return requestedActivationBuilder_ != null || requestedActivation_ != null;
}
/**
*
* The requested activation date for the order's products
*
*
* .google.protobuf.Timestamp requested_activation = 8;
*/
public com.google.protobuf.Timestamp getRequestedActivation() {
if (requestedActivationBuilder_ == null) {
return requestedActivation_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : requestedActivation_;
} else {
return requestedActivationBuilder_.getMessage();
}
}
/**
*
* The requested activation date for the order's products
*
*
* .google.protobuf.Timestamp requested_activation = 8;
*/
public Builder setRequestedActivation(com.google.protobuf.Timestamp value) {
if (requestedActivationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
requestedActivation_ = value;
onChanged();
} else {
requestedActivationBuilder_.setMessage(value);
}
return this;
}
/**
*
* The requested activation date for the order's products
*
*
* .google.protobuf.Timestamp requested_activation = 8;
*/
public Builder setRequestedActivation(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (requestedActivationBuilder_ == null) {
requestedActivation_ = builderForValue.build();
onChanged();
} else {
requestedActivationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The requested activation date for the order's products
*
*
* .google.protobuf.Timestamp requested_activation = 8;
*/
public Builder mergeRequestedActivation(com.google.protobuf.Timestamp value) {
if (requestedActivationBuilder_ == null) {
if (requestedActivation_ != null) {
requestedActivation_ =
com.google.protobuf.Timestamp.newBuilder(requestedActivation_).mergeFrom(value).buildPartial();
} else {
requestedActivation_ = value;
}
onChanged();
} else {
requestedActivationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The requested activation date for the order's products
*
*
* .google.protobuf.Timestamp requested_activation = 8;
*/
public Builder clearRequestedActivation() {
if (requestedActivationBuilder_ == null) {
requestedActivation_ = null;
onChanged();
} else {
requestedActivation_ = null;
requestedActivationBuilder_ = null;
}
return this;
}
/**
*
* The requested activation date for the order's products
*
*
* .google.protobuf.Timestamp requested_activation = 8;
*/
public com.google.protobuf.Timestamp.Builder getRequestedActivationBuilder() {
onChanged();
return getRequestedActivationFieldBuilder().getBuilder();
}
/**
*
* The requested activation date for the order's products
*
*
* .google.protobuf.Timestamp requested_activation = 8;
*/
public com.google.protobuf.TimestampOrBuilder getRequestedActivationOrBuilder() {
if (requestedActivationBuilder_ != null) {
return requestedActivationBuilder_.getMessageOrBuilder();
} else {
return requestedActivation_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : requestedActivation_;
}
}
/**
*
* The requested activation date for the order's products
*
*
* .google.protobuf.Timestamp requested_activation = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getRequestedActivationFieldBuilder() {
if (requestedActivationBuilder_ == null) {
requestedActivationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getRequestedActivation(),
getParentForChildren(),
isClean());
requestedActivation_ = null;
}
return requestedActivationBuilder_;
}
private java.lang.Object notes_ = "";
/**
*
* Notes for the partner administrator from the salesperson
*
*
* string notes = 9;
*/
public java.lang.String getNotes() {
java.lang.Object ref = notes_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
notes_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Notes for the partner administrator from the salesperson
*
*
* string notes = 9;
*/
public com.google.protobuf.ByteString
getNotesBytes() {
java.lang.Object ref = notes_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
notes_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Notes for the partner administrator from the salesperson
*
*
* string notes = 9;
*/
public Builder setNotes(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
notes_ = value;
onChanged();
return this;
}
/**
*
* Notes for the partner administrator from the salesperson
*
*
* string notes = 9;
*/
public Builder clearNotes() {
notes_ = getDefaultInstance().getNotes();
onChanged();
return this;
}
/**
*
* Notes for the partner administrator from the salesperson
*
*
* string notes = 9;
*/
public Builder setNotesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
notes_ = value;
onChanged();
return this;
}
private java.util.List packages_ =
java.util.Collections.emptyList();
private void ensurePackagesIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
packages_ = new java.util.ArrayList(packages_);
bitField0_ |= 0x00000200;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.PackageOrBuilder> packagesBuilder_;
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public java.util.List getPackagesList() {
if (packagesBuilder_ == null) {
return java.util.Collections.unmodifiableList(packages_);
} else {
return packagesBuilder_.getMessageList();
}
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public int getPackagesCount() {
if (packagesBuilder_ == null) {
return packages_.size();
} else {
return packagesBuilder_.getCount();
}
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package getPackages(int index) {
if (packagesBuilder_ == null) {
return packages_.get(index);
} else {
return packagesBuilder_.getMessage(index);
}
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public Builder setPackages(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package value) {
if (packagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePackagesIsMutable();
packages_.set(index, value);
onChanged();
} else {
packagesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public Builder setPackages(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.Builder builderForValue) {
if (packagesBuilder_ == null) {
ensurePackagesIsMutable();
packages_.set(index, builderForValue.build());
onChanged();
} else {
packagesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public Builder addPackages(com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package value) {
if (packagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePackagesIsMutable();
packages_.add(value);
onChanged();
} else {
packagesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public Builder addPackages(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package value) {
if (packagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePackagesIsMutable();
packages_.add(index, value);
onChanged();
} else {
packagesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public Builder addPackages(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.Builder builderForValue) {
if (packagesBuilder_ == null) {
ensurePackagesIsMutable();
packages_.add(builderForValue.build());
onChanged();
} else {
packagesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public Builder addPackages(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.Builder builderForValue) {
if (packagesBuilder_ == null) {
ensurePackagesIsMutable();
packages_.add(index, builderForValue.build());
onChanged();
} else {
packagesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public Builder addAllPackages(
java.lang.Iterable extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package> values) {
if (packagesBuilder_ == null) {
ensurePackagesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, packages_);
onChanged();
} else {
packagesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public Builder clearPackages() {
if (packagesBuilder_ == null) {
packages_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
} else {
packagesBuilder_.clear();
}
return this;
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public Builder removePackages(int index) {
if (packagesBuilder_ == null) {
ensurePackagesIsMutable();
packages_.remove(index);
onChanged();
} else {
packagesBuilder_.remove(index);
}
return this;
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.Builder getPackagesBuilder(
int index) {
return getPackagesFieldBuilder().getBuilder(index);
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.PackageOrBuilder getPackagesOrBuilder(
int index) {
if (packagesBuilder_ == null) {
return packages_.get(index); } else {
return packagesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.PackageOrBuilder>
getPackagesOrBuilderList() {
if (packagesBuilder_ != null) {
return packagesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(packages_);
}
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.Builder addPackagesBuilder() {
return getPackagesFieldBuilder().addBuilder(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.getDefaultInstance());
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.Builder addPackagesBuilder(
int index) {
return getPackagesFieldBuilder().addBuilder(
index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.getDefaultInstance());
}
/**
*
* Packages in the order
*
*
* repeated .salesorders.v1.Package packages = 10;
*/
public java.util.List
getPackagesBuilderList() {
return getPackagesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.PackageOrBuilder>
getPackagesFieldBuilder() {
if (packagesBuilder_ == null) {
packagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package, com.vendasta.salesorders.v1.generated.SalesOrdersProto.Package.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.PackageOrBuilder>(
packages_,
((bitField0_ & 0x00000200) == 0x00000200),
getParentForChildren(),
isClean());
packages_ = null;
}
return packagesBuilder_;
}
private java.util.List customFields_ =
java.util.Collections.emptyList();
private void ensureCustomFieldsIsMutable() {
if (!((bitField0_ & 0x00000400) == 0x00000400)) {
customFields_ = new java.util.ArrayList(customFields_);
bitField0_ |= 0x00000400;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomFieldOrBuilder> customFieldsBuilder_;
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public java.util.List getCustomFieldsList() {
if (customFieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(customFields_);
} else {
return customFieldsBuilder_.getMessageList();
}
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public int getCustomFieldsCount() {
if (customFieldsBuilder_ == null) {
return customFields_.size();
} else {
return customFieldsBuilder_.getCount();
}
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField getCustomFields(int index) {
if (customFieldsBuilder_ == null) {
return customFields_.get(index);
} else {
return customFieldsBuilder_.getMessage(index);
}
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public Builder setCustomFields(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField value) {
if (customFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomFieldsIsMutable();
customFields_.set(index, value);
onChanged();
} else {
customFieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public Builder setCustomFields(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.Builder builderForValue) {
if (customFieldsBuilder_ == null) {
ensureCustomFieldsIsMutable();
customFields_.set(index, builderForValue.build());
onChanged();
} else {
customFieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public Builder addCustomFields(com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField value) {
if (customFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomFieldsIsMutable();
customFields_.add(value);
onChanged();
} else {
customFieldsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public Builder addCustomFields(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField value) {
if (customFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomFieldsIsMutable();
customFields_.add(index, value);
onChanged();
} else {
customFieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public Builder addCustomFields(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.Builder builderForValue) {
if (customFieldsBuilder_ == null) {
ensureCustomFieldsIsMutable();
customFields_.add(builderForValue.build());
onChanged();
} else {
customFieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public Builder addCustomFields(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.Builder builderForValue) {
if (customFieldsBuilder_ == null) {
ensureCustomFieldsIsMutable();
customFields_.add(index, builderForValue.build());
onChanged();
} else {
customFieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public Builder addAllCustomFields(
java.lang.Iterable extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField> values) {
if (customFieldsBuilder_ == null) {
ensureCustomFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, customFields_);
onChanged();
} else {
customFieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public Builder clearCustomFields() {
if (customFieldsBuilder_ == null) {
customFields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
} else {
customFieldsBuilder_.clear();
}
return this;
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public Builder removeCustomFields(int index) {
if (customFieldsBuilder_ == null) {
ensureCustomFieldsIsMutable();
customFields_.remove(index);
onChanged();
} else {
customFieldsBuilder_.remove(index);
}
return this;
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.Builder getCustomFieldsBuilder(
int index) {
return getCustomFieldsFieldBuilder().getBuilder(index);
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomFieldOrBuilder getCustomFieldsOrBuilder(
int index) {
if (customFieldsBuilder_ == null) {
return customFields_.get(index); } else {
return customFieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomFieldOrBuilder>
getCustomFieldsOrBuilderList() {
if (customFieldsBuilder_ != null) {
return customFieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(customFields_);
}
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.Builder addCustomFieldsBuilder() {
return getCustomFieldsFieldBuilder().addBuilder(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.getDefaultInstance());
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.Builder addCustomFieldsBuilder(
int index) {
return getCustomFieldsFieldBuilder().addBuilder(
index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.getDefaultInstance());
}
/**
*
* Custom field answers for the packages
*
*
* repeated .salesorders.v1.CustomField custom_fields = 11;
*/
public java.util.List
getCustomFieldsBuilderList() {
return getCustomFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomFieldOrBuilder>
getCustomFieldsFieldBuilder() {
if (customFieldsBuilder_ == null) {
customFieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomField.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CustomFieldOrBuilder>(
customFields_,
((bitField0_ & 0x00000400) == 0x00000400),
getParentForChildren(),
isClean());
customFields_ = null;
}
return customFieldsBuilder_;
}
private java.util.List commonFields_ =
java.util.Collections.emptyList();
private void ensureCommonFieldsIsMutable() {
if (!((bitField0_ & 0x00000800) == 0x00000800)) {
commonFields_ = new java.util.ArrayList(commonFields_);
bitField0_ |= 0x00000800;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonFieldOrBuilder> commonFieldsBuilder_;
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public java.util.List getCommonFieldsList() {
if (commonFieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(commonFields_);
} else {
return commonFieldsBuilder_.getMessageList();
}
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public int getCommonFieldsCount() {
if (commonFieldsBuilder_ == null) {
return commonFields_.size();
} else {
return commonFieldsBuilder_.getCount();
}
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField getCommonFields(int index) {
if (commonFieldsBuilder_ == null) {
return commonFields_.get(index);
} else {
return commonFieldsBuilder_.getMessage(index);
}
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public Builder setCommonFields(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField value) {
if (commonFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCommonFieldsIsMutable();
commonFields_.set(index, value);
onChanged();
} else {
commonFieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public Builder setCommonFields(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.Builder builderForValue) {
if (commonFieldsBuilder_ == null) {
ensureCommonFieldsIsMutable();
commonFields_.set(index, builderForValue.build());
onChanged();
} else {
commonFieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public Builder addCommonFields(com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField value) {
if (commonFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCommonFieldsIsMutable();
commonFields_.add(value);
onChanged();
} else {
commonFieldsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public Builder addCommonFields(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField value) {
if (commonFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCommonFieldsIsMutable();
commonFields_.add(index, value);
onChanged();
} else {
commonFieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public Builder addCommonFields(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.Builder builderForValue) {
if (commonFieldsBuilder_ == null) {
ensureCommonFieldsIsMutable();
commonFields_.add(builderForValue.build());
onChanged();
} else {
commonFieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public Builder addCommonFields(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.Builder builderForValue) {
if (commonFieldsBuilder_ == null) {
ensureCommonFieldsIsMutable();
commonFields_.add(index, builderForValue.build());
onChanged();
} else {
commonFieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public Builder addAllCommonFields(
java.lang.Iterable extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField> values) {
if (commonFieldsBuilder_ == null) {
ensureCommonFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, commonFields_);
onChanged();
} else {
commonFieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public Builder clearCommonFields() {
if (commonFieldsBuilder_ == null) {
commonFields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
} else {
commonFieldsBuilder_.clear();
}
return this;
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public Builder removeCommonFields(int index) {
if (commonFieldsBuilder_ == null) {
ensureCommonFieldsIsMutable();
commonFields_.remove(index);
onChanged();
} else {
commonFieldsBuilder_.remove(index);
}
return this;
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.Builder getCommonFieldsBuilder(
int index) {
return getCommonFieldsFieldBuilder().getBuilder(index);
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonFieldOrBuilder getCommonFieldsOrBuilder(
int index) {
if (commonFieldsBuilder_ == null) {
return commonFields_.get(index); } else {
return commonFieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonFieldOrBuilder>
getCommonFieldsOrBuilderList() {
if (commonFieldsBuilder_ != null) {
return commonFieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(commonFields_);
}
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.Builder addCommonFieldsBuilder() {
return getCommonFieldsFieldBuilder().addBuilder(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.getDefaultInstance());
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.Builder addCommonFieldsBuilder(
int index) {
return getCommonFieldsFieldBuilder().addBuilder(
index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.getDefaultInstance());
}
/**
*
* Common field answers for the packages
*
*
* repeated .salesorders.v1.CommonField common_fields = 12;
*/
public java.util.List
getCommonFieldsBuilderList() {
return getCommonFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonFieldOrBuilder>
getCommonFieldsFieldBuilder() {
if (commonFieldsBuilder_ == null) {
commonFieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonField.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.CommonFieldOrBuilder>(
commonFields_,
((bitField0_ & 0x00000800) == 0x00000800),
getParentForChildren(),
isClean());
commonFields_ = null;
}
return commonFieldsBuilder_;
}
private com.google.protobuf.Timestamp created_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdBuilder_;
/**
*
* Time the order was submitted by a salesperson
*
*
* .google.protobuf.Timestamp created = 13;
*/
public boolean hasCreated() {
return createdBuilder_ != null || created_ != null;
}
/**
*
* Time the order was submitted by a salesperson
*
*
* .google.protobuf.Timestamp created = 13;
*/
public com.google.protobuf.Timestamp getCreated() {
if (createdBuilder_ == null) {
return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_;
} else {
return createdBuilder_.getMessage();
}
}
/**
*
* Time the order was submitted by a salesperson
*
*
* .google.protobuf.Timestamp created = 13;
*/
public Builder setCreated(com.google.protobuf.Timestamp value) {
if (createdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
created_ = value;
onChanged();
} else {
createdBuilder_.setMessage(value);
}
return this;
}
/**
*
* Time the order was submitted by a salesperson
*
*
* .google.protobuf.Timestamp created = 13;
*/
public Builder setCreated(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdBuilder_ == null) {
created_ = builderForValue.build();
onChanged();
} else {
createdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Time the order was submitted by a salesperson
*
*
* .google.protobuf.Timestamp created = 13;
*/
public Builder mergeCreated(com.google.protobuf.Timestamp value) {
if (createdBuilder_ == null) {
if (created_ != null) {
created_ =
com.google.protobuf.Timestamp.newBuilder(created_).mergeFrom(value).buildPartial();
} else {
created_ = value;
}
onChanged();
} else {
createdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Time the order was submitted by a salesperson
*
*
* .google.protobuf.Timestamp created = 13;
*/
public Builder clearCreated() {
if (createdBuilder_ == null) {
created_ = null;
onChanged();
} else {
created_ = null;
createdBuilder_ = null;
}
return this;
}
/**
*
* Time the order was submitted by a salesperson
*
*
* .google.protobuf.Timestamp created = 13;
*/
public com.google.protobuf.Timestamp.Builder getCreatedBuilder() {
onChanged();
return getCreatedFieldBuilder().getBuilder();
}
/**
*
* Time the order was submitted by a salesperson
*
*
* .google.protobuf.Timestamp created = 13;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() {
if (createdBuilder_ != null) {
return createdBuilder_.getMessageOrBuilder();
} else {
return created_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : created_;
}
}
/**
*
* Time the order was submitted by a salesperson
*
*
* .google.protobuf.Timestamp created = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedFieldBuilder() {
if (createdBuilder_ == null) {
createdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreated(),
getParentForChildren(),
isClean());
created_ = null;
}
return createdBuilder_;
}
private java.util.List productActivations_ =
java.util.Collections.emptyList();
private void ensureProductActivationsIsMutable() {
if (!((bitField0_ & 0x00002000) == 0x00002000)) {
productActivations_ = new java.util.ArrayList(productActivations_);
bitField0_ |= 0x00002000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation, com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivationOrBuilder> productActivationsBuilder_;
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public java.util.List getProductActivationsList() {
if (productActivationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(productActivations_);
} else {
return productActivationsBuilder_.getMessageList();
}
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public int getProductActivationsCount() {
if (productActivationsBuilder_ == null) {
return productActivations_.size();
} else {
return productActivationsBuilder_.getCount();
}
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation getProductActivations(int index) {
if (productActivationsBuilder_ == null) {
return productActivations_.get(index);
} else {
return productActivationsBuilder_.getMessage(index);
}
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public Builder setProductActivations(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation value) {
if (productActivationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProductActivationsIsMutable();
productActivations_.set(index, value);
onChanged();
} else {
productActivationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public Builder setProductActivations(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.Builder builderForValue) {
if (productActivationsBuilder_ == null) {
ensureProductActivationsIsMutable();
productActivations_.set(index, builderForValue.build());
onChanged();
} else {
productActivationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public Builder addProductActivations(com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation value) {
if (productActivationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProductActivationsIsMutable();
productActivations_.add(value);
onChanged();
} else {
productActivationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public Builder addProductActivations(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation value) {
if (productActivationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProductActivationsIsMutable();
productActivations_.add(index, value);
onChanged();
} else {
productActivationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public Builder addProductActivations(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.Builder builderForValue) {
if (productActivationsBuilder_ == null) {
ensureProductActivationsIsMutable();
productActivations_.add(builderForValue.build());
onChanged();
} else {
productActivationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public Builder addProductActivations(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.Builder builderForValue) {
if (productActivationsBuilder_ == null) {
ensureProductActivationsIsMutable();
productActivations_.add(index, builderForValue.build());
onChanged();
} else {
productActivationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public Builder addAllProductActivations(
java.lang.Iterable extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation> values) {
if (productActivationsBuilder_ == null) {
ensureProductActivationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, productActivations_);
onChanged();
} else {
productActivationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public Builder clearProductActivations() {
if (productActivationsBuilder_ == null) {
productActivations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
} else {
productActivationsBuilder_.clear();
}
return this;
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public Builder removeProductActivations(int index) {
if (productActivationsBuilder_ == null) {
ensureProductActivationsIsMutable();
productActivations_.remove(index);
onChanged();
} else {
productActivationsBuilder_.remove(index);
}
return this;
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.Builder getProductActivationsBuilder(
int index) {
return getProductActivationsFieldBuilder().getBuilder(index);
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivationOrBuilder getProductActivationsOrBuilder(
int index) {
if (productActivationsBuilder_ == null) {
return productActivations_.get(index); } else {
return productActivationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivationOrBuilder>
getProductActivationsOrBuilderList() {
if (productActivationsBuilder_ != null) {
return productActivationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(productActivations_);
}
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.Builder addProductActivationsBuilder() {
return getProductActivationsFieldBuilder().addBuilder(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.getDefaultInstance());
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.Builder addProductActivationsBuilder(
int index) {
return getProductActivationsFieldBuilder().addBuilder(
index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.getDefaultInstance());
}
/**
*
* The list of products with their corresponding activation status
*
*
* repeated .salesorders.v1.ProductActivation product_activations = 14;
*/
public java.util.List
getProductActivationsBuilderList() {
return getProductActivationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation, com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivationOrBuilder>
getProductActivationsFieldBuilder() {
if (productActivationsBuilder_ == null) {
productActivationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation, com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivation.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.ProductActivationOrBuilder>(
productActivations_,
((bitField0_ & 0x00002000) == 0x00002000),
getParentForChildren(),
isClean());
productActivations_ = null;
}
return productActivationsBuilder_;
}
private java.util.List addonActivations_ =
java.util.Collections.emptyList();
private void ensureAddonActivationsIsMutable() {
if (!((bitField0_ & 0x00004000) == 0x00004000)) {
addonActivations_ = new java.util.ArrayList(addonActivations_);
bitField0_ |= 0x00004000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivationOrBuilder> addonActivationsBuilder_;
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public java.util.List getAddonActivationsList() {
if (addonActivationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(addonActivations_);
} else {
return addonActivationsBuilder_.getMessageList();
}
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public int getAddonActivationsCount() {
if (addonActivationsBuilder_ == null) {
return addonActivations_.size();
} else {
return addonActivationsBuilder_.getCount();
}
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation getAddonActivations(int index) {
if (addonActivationsBuilder_ == null) {
return addonActivations_.get(index);
} else {
return addonActivationsBuilder_.getMessage(index);
}
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public Builder setAddonActivations(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation value) {
if (addonActivationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddonActivationsIsMutable();
addonActivations_.set(index, value);
onChanged();
} else {
addonActivationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public Builder setAddonActivations(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.Builder builderForValue) {
if (addonActivationsBuilder_ == null) {
ensureAddonActivationsIsMutable();
addonActivations_.set(index, builderForValue.build());
onChanged();
} else {
addonActivationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public Builder addAddonActivations(com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation value) {
if (addonActivationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddonActivationsIsMutable();
addonActivations_.add(value);
onChanged();
} else {
addonActivationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public Builder addAddonActivations(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation value) {
if (addonActivationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddonActivationsIsMutable();
addonActivations_.add(index, value);
onChanged();
} else {
addonActivationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public Builder addAddonActivations(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.Builder builderForValue) {
if (addonActivationsBuilder_ == null) {
ensureAddonActivationsIsMutable();
addonActivations_.add(builderForValue.build());
onChanged();
} else {
addonActivationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public Builder addAddonActivations(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.Builder builderForValue) {
if (addonActivationsBuilder_ == null) {
ensureAddonActivationsIsMutable();
addonActivations_.add(index, builderForValue.build());
onChanged();
} else {
addonActivationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public Builder addAllAddonActivations(
java.lang.Iterable extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation> values) {
if (addonActivationsBuilder_ == null) {
ensureAddonActivationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, addonActivations_);
onChanged();
} else {
addonActivationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public Builder clearAddonActivations() {
if (addonActivationsBuilder_ == null) {
addonActivations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
} else {
addonActivationsBuilder_.clear();
}
return this;
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public Builder removeAddonActivations(int index) {
if (addonActivationsBuilder_ == null) {
ensureAddonActivationsIsMutable();
addonActivations_.remove(index);
onChanged();
} else {
addonActivationsBuilder_.remove(index);
}
return this;
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.Builder getAddonActivationsBuilder(
int index) {
return getAddonActivationsFieldBuilder().getBuilder(index);
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivationOrBuilder getAddonActivationsOrBuilder(
int index) {
if (addonActivationsBuilder_ == null) {
return addonActivations_.get(index); } else {
return addonActivationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivationOrBuilder>
getAddonActivationsOrBuilderList() {
if (addonActivationsBuilder_ != null) {
return addonActivationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(addonActivations_);
}
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.Builder addAddonActivationsBuilder() {
return getAddonActivationsFieldBuilder().addBuilder(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.getDefaultInstance());
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.Builder addAddonActivationsBuilder(
int index) {
return getAddonActivationsFieldBuilder().addBuilder(
index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.getDefaultInstance());
}
/**
*
* The list of addons with their corresponding activation status
*
*
* repeated .salesorders.v1.AddonActivation addon_activations = 18;
*/
public java.util.List
getAddonActivationsBuilderList() {
return getAddonActivationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivationOrBuilder>
getAddonActivationsFieldBuilder() {
if (addonActivationsBuilder_ == null) {
addonActivationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivation.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.AddonActivationOrBuilder>(
addonActivations_,
((bitField0_ & 0x00004000) == 0x00004000),
getParentForChildren(),
isClean());
addonActivations_ = null;
}
return addonActivationsBuilder_;
}
private java.util.List statusHistory_ =
java.util.Collections.emptyList();
private void ensureStatusHistoryIsMutable() {
if (!((bitField0_ & 0x00008000) == 0x00008000)) {
statusHistory_ = new java.util.ArrayList(statusHistory_);
bitField0_ |= 0x00008000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem, com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItemOrBuilder> statusHistoryBuilder_;
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public java.util.List getStatusHistoryList() {
if (statusHistoryBuilder_ == null) {
return java.util.Collections.unmodifiableList(statusHistory_);
} else {
return statusHistoryBuilder_.getMessageList();
}
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public int getStatusHistoryCount() {
if (statusHistoryBuilder_ == null) {
return statusHistory_.size();
} else {
return statusHistoryBuilder_.getCount();
}
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem getStatusHistory(int index) {
if (statusHistoryBuilder_ == null) {
return statusHistory_.get(index);
} else {
return statusHistoryBuilder_.getMessage(index);
}
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public Builder setStatusHistory(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem value) {
if (statusHistoryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatusHistoryIsMutable();
statusHistory_.set(index, value);
onChanged();
} else {
statusHistoryBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public Builder setStatusHistory(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.Builder builderForValue) {
if (statusHistoryBuilder_ == null) {
ensureStatusHistoryIsMutable();
statusHistory_.set(index, builderForValue.build());
onChanged();
} else {
statusHistoryBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public Builder addStatusHistory(com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem value) {
if (statusHistoryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatusHistoryIsMutable();
statusHistory_.add(value);
onChanged();
} else {
statusHistoryBuilder_.addMessage(value);
}
return this;
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public Builder addStatusHistory(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem value) {
if (statusHistoryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatusHistoryIsMutable();
statusHistory_.add(index, value);
onChanged();
} else {
statusHistoryBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public Builder addStatusHistory(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.Builder builderForValue) {
if (statusHistoryBuilder_ == null) {
ensureStatusHistoryIsMutable();
statusHistory_.add(builderForValue.build());
onChanged();
} else {
statusHistoryBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public Builder addStatusHistory(
int index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.Builder builderForValue) {
if (statusHistoryBuilder_ == null) {
ensureStatusHistoryIsMutable();
statusHistory_.add(index, builderForValue.build());
onChanged();
} else {
statusHistoryBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public Builder addAllStatusHistory(
java.lang.Iterable extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem> values) {
if (statusHistoryBuilder_ == null) {
ensureStatusHistoryIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, statusHistory_);
onChanged();
} else {
statusHistoryBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public Builder clearStatusHistory() {
if (statusHistoryBuilder_ == null) {
statusHistory_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
} else {
statusHistoryBuilder_.clear();
}
return this;
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public Builder removeStatusHistory(int index) {
if (statusHistoryBuilder_ == null) {
ensureStatusHistoryIsMutable();
statusHistory_.remove(index);
onChanged();
} else {
statusHistoryBuilder_.remove(index);
}
return this;
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.Builder getStatusHistoryBuilder(
int index) {
return getStatusHistoryFieldBuilder().getBuilder(index);
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItemOrBuilder getStatusHistoryOrBuilder(
int index) {
if (statusHistoryBuilder_ == null) {
return statusHistory_.get(index); } else {
return statusHistoryBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public java.util.List extends com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItemOrBuilder>
getStatusHistoryOrBuilderList() {
if (statusHistoryBuilder_ != null) {
return statusHistoryBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(statusHistory_);
}
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.Builder addStatusHistoryBuilder() {
return getStatusHistoryFieldBuilder().addBuilder(
com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.getDefaultInstance());
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.Builder addStatusHistoryBuilder(
int index) {
return getStatusHistoryFieldBuilder().addBuilder(
index, com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.getDefaultInstance());
}
/**
*
* The historical list of status updates that have taken place on the order
*
*
* repeated .salesorders.v1.StatusHistoryItem status_history = 19;
*/
public java.util.List
getStatusHistoryBuilderList() {
return getStatusHistoryFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem, com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItemOrBuilder>
getStatusHistoryFieldBuilder() {
if (statusHistoryBuilder_ == null) {
statusHistoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem, com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItem.Builder, com.vendasta.salesorders.v1.generated.SalesOrdersProto.StatusHistoryItemOrBuilder>(
statusHistory_,
((bitField0_ & 0x00008000) == 0x00008000),
getParentForChildren(),
isClean());
statusHistory_ = null;
}
return statusHistoryBuilder_;
}
private java.lang.Object declinedReason_ = "";
/**
*
* The reason the order was declined
*
*
* string declined_reason = 20;
*/
public java.lang.String getDeclinedReason() {
java.lang.Object ref = declinedReason_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
declinedReason_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The reason the order was declined
*
*
* string declined_reason = 20;
*/
public com.google.protobuf.ByteString
getDeclinedReasonBytes() {
java.lang.Object ref = declinedReason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
declinedReason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The reason the order was declined
*
*
* string declined_reason = 20;
*/
public Builder setDeclinedReason(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
declinedReason_ = value;
onChanged();
return this;
}
/**
*
* The reason the order was declined
*
*
* string declined_reason = 20;
*/
public Builder clearDeclinedReason() {
declinedReason_ = getDefaultInstance().getDeclinedReason();
onChanged();
return this;
}
/**
*
* The reason the order was declined
*
*
* string declined_reason = 20;
*/
public Builder setDeclinedReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
declinedReason_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:salesorders.v1.Order)
}
// @@protoc_insertion_point(class_scope:salesorders.v1.Order)
private static final com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order();
}
public static com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Order parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Order(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.vendasta.salesorders.v1.generated.SalesOrdersProto.Order getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_salesorders_v1_AddonKey_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_salesorders_v1_AddonKey_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_salesorders_v1_Package_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_salesorders_v1_Package_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_salesorders_v1_Field_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_salesorders_v1_Field_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_salesorders_v1_CustomField_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_salesorders_v1_CustomField_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_salesorders_v1_CommonField_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_salesorders_v1_CommonField_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_salesorders_v1_ProductActivation_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_salesorders_v1_ProductActivation_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_salesorders_v1_AddonActivation_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_salesorders_v1_AddonActivation_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_salesorders_v1_StatusHistoryItem_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_salesorders_v1_StatusHistoryItem_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_salesorders_v1_Order_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_salesorders_v1_Order_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\"sales_orders/v1/sales_orders.proto\022\016sa" +
"lesorders.v1\032\037google/protobuf/timestamp." +
"proto\032\034sales_orders/v1/common.proto\",\n\010A" +
"ddonKey\022\020\n\010addon_id\030\001 \001(\t\022\016\n\006app_id\030\002 \001(" +
"\t\"\310\001\n\007Package\022\022\n\npackage_id\030\001 \001(\t\022*\n\010cur" +
"rency\030\002 \001(\0162\030.salesorders.v1.Currency\022(\n" +
"\007revenue\030\003 \001(\0132\027.salesorders.v1.Revenue\022" +
"\020\n\010quantity\030\004 \001(\003\022\023\n\013product_ids\030\005 \003(\t\022," +
"\n\naddon_keys\030\006 \003(\0132\030.salesorders.v1.Addo" +
"nKey\"\322\001\n\005Field\022\020\n\010field_id\030\001 \001(\t\022\016\n\006answ",
"er\030\002 \001(\t\022-\n\nfield_type\030\003 \001(\0162\031.salesorde" +
"rs.v1.FieldType\022\r\n\005label\030\004 \001(\t\022\023\n\013descri" +
"ption\030\005 \001(\t\022\016\n\006prefix\030\006 \001(\t\022\016\n\006suffix\030\007 " +
"\001(\t\022\027\n\017regex_validator\030\010 \001(\t\022\033\n\023regex_er" +
"ror_message\030\t \001(\t\"u\n\013CustomField\022%\n\006fiel" +
"ds\030\001 \003(\0132\025.salesorders.v1.Field\022\022\n\nprodu" +
"ct_id\030\002 \001(\t\022+\n\taddon_key\030\003 \001(\0132\030.salesor" +
"ders.v1.AddonKey\"v\n\013CommonField\022$\n\005field" +
"\030\001 \001(\0132\025.salesorders.v1.Field\022\023\n\013product" +
"_ids\030\002 \003(\t\022,\n\naddon_keys\030\003 \003(\0132\030.salesor",
"ders.v1.AddonKey\"d\n\021ProductActivation\022\022\n" +
"\nproduct_id\030\001 \001(\t\022;\n\021activation_status\030\002" +
" \001(\0162 .salesorders.v1.ActivationStatus\"p" +
"\n\017AddonActivation\022\020\n\010addon_id\030\001 \001(\t\022\016\n\006a" +
"pp_id\030\002 \001(\t\022;\n\021activation_status\030\003 \001(\0162 " +
".salesorders.v1.ActivationStatus\"\214\001\n\021Sta" +
"tusHistoryItem\022\023\n\007user_id\030\001 \001(\tB\002\030\001\022&\n\006s" +
"tatus\030\002 \001(\0162\026.salesorders.v1.Status\022+\n\007c" +
"reated\030\003 \001(\0132\032.google.protobuf.Timestamp" +
"\022\r\n\005email\030\004 \001(\t\"\231\005\n\005Order\022\020\n\010order_id\030\001 ",
"\001(\t\022\026\n\016salesperson_id\030\002 \001(\t\022\022\n\npartner_i" +
"d\030\003 \001(\t\022\023\n\013business_id\030\004 \001(\t\022\021\n\tmarket_i" +
"d\030\005 \001(\t\022\027\n\017opportunity_ids\030\006 \003(\t\022&\n\006stat" +
"us\030\007 \001(\0162\026.salesorders.v1.Status\0228\n\024requ" +
"ested_activation\030\010 \001(\0132\032.google.protobuf" +
".Timestamp\022\r\n\005notes\030\t \001(\t\022)\n\010packages\030\n " +
"\003(\0132\027.salesorders.v1.Package\0222\n\rcustom_f" +
"ields\030\013 \003(\0132\033.salesorders.v1.CustomField" +
"\0222\n\rcommon_fields\030\014 \003(\0132\033.salesorders.v1" +
".CommonField\022+\n\007created\030\r \001(\0132\032.google.p",
"rotobuf.Timestamp\022>\n\023product_activations" +
"\030\016 \003(\0132!.salesorders.v1.ProductActivatio" +
"n\022:\n\021addon_activations\030\022 \003(\0132\037.salesorde" +
"rs.v1.AddonActivation\0229\n\016status_history\030" +
"\023 \003(\0132!.salesorders.v1.StatusHistoryItem" +
"\022\027\n\017declined_reason\030\024 \001(\tJ\004\010\017\020\020J\004\010\020\020\021J\004\010" +
"\021\020\022*\204\001\n\006Status\022\r\n\tSUBMITTED\020\000\022\014\n\010APPROVE" +
"D\020\001\022\014\n\010DECLINED\020\002\022\013\n\007DRAFTED\020\003\022\r\n\tFULFIL" +
"LED\020\004\022\016\n\nPROCESSING\020\005\022\025\n\021ACTIVATION_ERRO" +
"RS\020\006\022\014\n\010ARCHIVED\020\007*R\n\020ActivationStatus\022\013",
"\n\007PENDING\020\000\022\r\n\tACTIVATED\020\001\022\013\n\007ERRORED\020\002\022" +
"\025\n\021ALREADY_ACTIVATED\020\003*i\n\tFieldType\022\021\n\rN" +
"OT_SPECIFIED\020\000\022\010\n\004TEXT\020\001\022\014\n\010TEXTAREA\020\002\022\014" +
"\n\010DROPDOWN\020\003\022\014\n\010CHECKBOX\020\004\022\010\n\004FILE\020\005\022\013\n\007" +
"VBCUSER\020\006B9\n%com.vendasta.salesorders.v1" +
".generatedB\020SalesOrdersProtob\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[] {
com.google.protobuf.TimestampProto.getDescriptor(),
com.vendasta.salesorders.v1.generated.CommonProto.getDescriptor(),
}, assigner);
internal_static_salesorders_v1_AddonKey_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_salesorders_v1_AddonKey_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_salesorders_v1_AddonKey_descriptor,
new java.lang.String[] { "AddonId", "AppId", });
internal_static_salesorders_v1_Package_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_salesorders_v1_Package_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_salesorders_v1_Package_descriptor,
new java.lang.String[] { "PackageId", "Currency", "Revenue", "Quantity", "ProductIds", "AddonKeys", });
internal_static_salesorders_v1_Field_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_salesorders_v1_Field_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_salesorders_v1_Field_descriptor,
new java.lang.String[] { "FieldId", "Answer", "FieldType", "Label", "Description", "Prefix", "Suffix", "RegexValidator", "RegexErrorMessage", });
internal_static_salesorders_v1_CustomField_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_salesorders_v1_CustomField_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_salesorders_v1_CustomField_descriptor,
new java.lang.String[] { "Fields", "ProductId", "AddonKey", });
internal_static_salesorders_v1_CommonField_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_salesorders_v1_CommonField_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_salesorders_v1_CommonField_descriptor,
new java.lang.String[] { "Field", "ProductIds", "AddonKeys", });
internal_static_salesorders_v1_ProductActivation_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_salesorders_v1_ProductActivation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_salesorders_v1_ProductActivation_descriptor,
new java.lang.String[] { "ProductId", "ActivationStatus", });
internal_static_salesorders_v1_AddonActivation_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_salesorders_v1_AddonActivation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_salesorders_v1_AddonActivation_descriptor,
new java.lang.String[] { "AddonId", "AppId", "ActivationStatus", });
internal_static_salesorders_v1_StatusHistoryItem_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_salesorders_v1_StatusHistoryItem_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_salesorders_v1_StatusHistoryItem_descriptor,
new java.lang.String[] { "UserId", "Status", "Created", "Email", });
internal_static_salesorders_v1_Order_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_salesorders_v1_Order_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_salesorders_v1_Order_descriptor,
new java.lang.String[] { "OrderId", "SalespersonId", "PartnerId", "BusinessId", "MarketId", "OpportunityIds", "Status", "RequestedActivation", "Notes", "Packages", "CustomFields", "CommonFields", "Created", "ProductActivations", "AddonActivations", "StatusHistory", "DeclinedReason", });
com.google.protobuf.TimestampProto.getDescriptor();
com.vendasta.salesorders.v1.generated.CommonProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy