io.bloombox.schema.services.marketing.v1beta1.CampaignSummary Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java RPCAPI client for the Bloombox Cloud.
The newest version!
/*
* Copyright 2019, Momentum Ideas, Co. All rights reserved.
*
* Source and object computer code contained herein is the private intellectual
* property of Momentum Ideas Co., a Delaware Corporation. Use of this
* code in source form requires permission in writing before use or the
* assembly, distribution, or publishing of derivative works, for commercial
* purposes or any other purpose, from a duly authorized officer of Momentum
* Ideas Co.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: marketing/v1beta1/MarketingService_Beta1.proto
package io.bloombox.schema.services.marketing.v1beta1;
/**
*
* Campaign summary payload for listing campaigns, given a particular scope.
*
*
* Protobuf type {@code bloombox.services.marketing.v1beta1.CampaignSummary}
*/
public final class CampaignSummary extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.marketing.v1beta1.CampaignSummary)
CampaignSummaryOrBuilder {
private static final long serialVersionUID = 0L;
// Use CampaignSummary.newBuilder() to construct.
private CampaignSummary(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CampaignSummary() {
name_ = "";
description_ = "";
status_ = 0;
tag_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CampaignSummary(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.bloombox.schema.marketing.MarketingCampaign.CampaignKey.Builder subBuilder = null;
if (key_ != null) {
subBuilder = key_.toBuilder();
}
key_ = input.readMessage(io.bloombox.schema.marketing.MarketingCampaign.CampaignKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(key_);
key_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 32: {
live_ = input.readBool();
break;
}
case 40: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 48: {
sms_ = input.readBool();
break;
}
case 56: {
email_ = input.readBool();
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) != 0)) {
tag_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
tag_.add(
input.readMessage(io.bloombox.schema.marketing.MarketingCampaign.CampaignTag.parser(), extensionRegistry));
break;
}
case 74: {
io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder subBuilder = null;
if (modified_ != null) {
subBuilder = modified_.toBuilder();
}
modified_ = input.readMessage(io.opencannabis.schema.temporal.TemporalInstant.Instant.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(modified_);
modified_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000080) != 0)) {
tag_ = java.util.Collections.unmodifiableList(tag_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.marketing.v1beta1.MarketingServiceBeta1.internal_static_bloombox_services_marketing_v1beta1_CampaignSummary_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.marketing.v1beta1.MarketingServiceBeta1.internal_static_bloombox_services_marketing_v1beta1_CampaignSummary_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.marketing.v1beta1.CampaignSummary.class, io.bloombox.schema.services.marketing.v1beta1.CampaignSummary.Builder.class);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
private io.bloombox.schema.marketing.MarketingCampaign.CampaignKey key_;
/**
*
* Key for the underlying campaign.
*
*
* .bloombox.marketing.CampaignKey key = 1;
*/
public boolean hasKey() {
return key_ != null;
}
/**
*
* Key for the underlying campaign.
*
*
* .bloombox.marketing.CampaignKey key = 1;
*/
public io.bloombox.schema.marketing.MarketingCampaign.CampaignKey getKey() {
return key_ == null ? io.bloombox.schema.marketing.MarketingCampaign.CampaignKey.getDefaultInstance() : key_;
}
/**
*
* Key for the underlying campaign.
*
*
* .bloombox.marketing.CampaignKey key = 1;
*/
public io.bloombox.schema.marketing.MarketingCampaign.CampaignKeyOrBuilder getKeyOrBuilder() {
return getKey();
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Name for the campaign object.
*
*
* string name = 2;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name for the campaign object.
*
*
* string name = 2;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object description_;
/**
*
* Description for the campaign object.
*
*
* string description = 3;
*/
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;
}
}
/**
*
* Description for the campaign object.
*
*
* string description = 3;
*/
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 LIVE_FIELD_NUMBER = 4;
private boolean live_;
/**
*
* Whether the underlying campaign is live.
*
*
* bool live = 4;
*/
public boolean getLive() {
return live_;
}
public static final int STATUS_FIELD_NUMBER = 5;
private int status_;
/**
*
* Current status of the campaign.
*
*
* .bloombox.marketing.CampaignStatus status = 5;
*/
public int getStatusValue() {
return status_;
}
/**
*
* Current status of the campaign.
*
*
* .bloombox.marketing.CampaignStatus status = 5;
*/
public io.bloombox.schema.marketing.MarketingCampaign.CampaignStatus getStatus() {
@SuppressWarnings("deprecation")
io.bloombox.schema.marketing.MarketingCampaign.CampaignStatus result = io.bloombox.schema.marketing.MarketingCampaign.CampaignStatus.valueOf(status_);
return result == null ? io.bloombox.schema.marketing.MarketingCampaign.CampaignStatus.UNRECOGNIZED : result;
}
public static final int SMS_FIELD_NUMBER = 6;
private boolean sms_;
/**
*
* Whether this campaign supports SMS.
*
*
* bool sms = 6;
*/
public boolean getSms() {
return sms_;
}
public static final int EMAIL_FIELD_NUMBER = 7;
private boolean email_;
/**
*
* Whether this campaign supports email.
*
*
* bool email = 7;
*/
public boolean getEmail() {
return email_;
}
public static final int TAG_FIELD_NUMBER = 8;
private java.util.List tag_;
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public java.util.List getTagList() {
return tag_;
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public java.util.List extends io.bloombox.schema.marketing.MarketingCampaign.CampaignTagOrBuilder>
getTagOrBuilderList() {
return tag_;
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public int getTagCount() {
return tag_.size();
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public io.bloombox.schema.marketing.MarketingCampaign.CampaignTag getTag(int index) {
return tag_.get(index);
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public io.bloombox.schema.marketing.MarketingCampaign.CampaignTagOrBuilder getTagOrBuilder(
int index) {
return tag_.get(index);
}
public static final int MODIFIED_FIELD_NUMBER = 9;
private io.opencannabis.schema.temporal.TemporalInstant.Instant modified_;
/**
*
* When the subject campaign was last modified.
*
*
* .opencannabis.temporal.Instant modified = 9;
*/
public boolean hasModified() {
return modified_ != null;
}
/**
*
* When the subject campaign was last modified.
*
*
* .opencannabis.temporal.Instant modified = 9;
*/
public io.opencannabis.schema.temporal.TemporalInstant.Instant getModified() {
return modified_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : modified_;
}
/**
*
* When the subject campaign was last modified.
*
*
* .opencannabis.temporal.Instant modified = 9;
*/
public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getModifiedOrBuilder() {
return getModified();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (key_ != null) {
output.writeMessage(1, getKey());
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
if (live_ != false) {
output.writeBool(4, live_);
}
if (status_ != io.bloombox.schema.marketing.MarketingCampaign.CampaignStatus.PENDING.getNumber()) {
output.writeEnum(5, status_);
}
if (sms_ != false) {
output.writeBool(6, sms_);
}
if (email_ != false) {
output.writeBool(7, email_);
}
for (int i = 0; i < tag_.size(); i++) {
output.writeMessage(8, tag_.get(i));
}
if (modified_ != null) {
output.writeMessage(9, getModified());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (key_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getKey());
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
if (live_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, live_);
}
if (status_ != io.bloombox.schema.marketing.MarketingCampaign.CampaignStatus.PENDING.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, status_);
}
if (sms_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, sms_);
}
if (email_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, email_);
}
for (int i = 0; i < tag_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, tag_.get(i));
}
if (modified_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getModified());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.bloombox.schema.services.marketing.v1beta1.CampaignSummary)) {
return super.equals(obj);
}
io.bloombox.schema.services.marketing.v1beta1.CampaignSummary other = (io.bloombox.schema.services.marketing.v1beta1.CampaignSummary) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (getLive()
!= other.getLive()) return false;
if (status_ != other.status_) return false;
if (getSms()
!= other.getSms()) return false;
if (getEmail()
!= other.getEmail()) return false;
if (!getTagList()
.equals(other.getTagList())) return false;
if (hasModified() != other.hasModified()) return false;
if (hasModified()) {
if (!getModified()
.equals(other.getModified())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + LIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getLive());
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + SMS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSms());
hash = (37 * hash) + EMAIL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEmail());
if (getTagCount() > 0) {
hash = (37 * hash) + TAG_FIELD_NUMBER;
hash = (53 * hash) + getTagList().hashCode();
}
if (hasModified()) {
hash = (37 * hash) + MODIFIED_FIELD_NUMBER;
hash = (53 * hash) + getModified().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignSummary parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignSummary parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignSummary parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignSummary parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignSummary parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignSummary parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignSummary parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignSummary parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignSummary parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignSummary parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignSummary parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignSummary parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.bloombox.schema.services.marketing.v1beta1.CampaignSummary prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Campaign summary payload for listing campaigns, given a particular scope.
*
*
* Protobuf type {@code bloombox.services.marketing.v1beta1.CampaignSummary}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.marketing.v1beta1.CampaignSummary)
io.bloombox.schema.services.marketing.v1beta1.CampaignSummaryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.marketing.v1beta1.MarketingServiceBeta1.internal_static_bloombox_services_marketing_v1beta1_CampaignSummary_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.bloombox.schema.services.marketing.v1beta1.MarketingServiceBeta1.internal_static_bloombox_services_marketing_v1beta1_CampaignSummary_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.marketing.v1beta1.CampaignSummary.class, io.bloombox.schema.services.marketing.v1beta1.CampaignSummary.Builder.class);
}
// Construct using io.bloombox.schema.services.marketing.v1beta1.CampaignSummary.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTagFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (keyBuilder_ == null) {
key_ = null;
} else {
key_ = null;
keyBuilder_ = null;
}
name_ = "";
description_ = "";
live_ = false;
status_ = 0;
sms_ = false;
email_ = false;
if (tagBuilder_ == null) {
tag_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
} else {
tagBuilder_.clear();
}
if (modifiedBuilder_ == null) {
modified_ = null;
} else {
modified_ = null;
modifiedBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.bloombox.schema.services.marketing.v1beta1.MarketingServiceBeta1.internal_static_bloombox_services_marketing_v1beta1_CampaignSummary_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.marketing.v1beta1.CampaignSummary getDefaultInstanceForType() {
return io.bloombox.schema.services.marketing.v1beta1.CampaignSummary.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.marketing.v1beta1.CampaignSummary build() {
io.bloombox.schema.services.marketing.v1beta1.CampaignSummary result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.marketing.v1beta1.CampaignSummary buildPartial() {
io.bloombox.schema.services.marketing.v1beta1.CampaignSummary result = new io.bloombox.schema.services.marketing.v1beta1.CampaignSummary(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (keyBuilder_ == null) {
result.key_ = key_;
} else {
result.key_ = keyBuilder_.build();
}
result.name_ = name_;
result.description_ = description_;
result.live_ = live_;
result.status_ = status_;
result.sms_ = sms_;
result.email_ = email_;
if (tagBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
tag_ = java.util.Collections.unmodifiableList(tag_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.tag_ = tag_;
} else {
result.tag_ = tagBuilder_.build();
}
if (modifiedBuilder_ == null) {
result.modified_ = modified_;
} else {
result.modified_ = modifiedBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.bloombox.schema.services.marketing.v1beta1.CampaignSummary) {
return mergeFrom((io.bloombox.schema.services.marketing.v1beta1.CampaignSummary)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.marketing.v1beta1.CampaignSummary other) {
if (other == io.bloombox.schema.services.marketing.v1beta1.CampaignSummary.getDefaultInstance()) return this;
if (other.hasKey()) {
mergeKey(other.getKey());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.getLive() != false) {
setLive(other.getLive());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.getSms() != false) {
setSms(other.getSms());
}
if (other.getEmail() != false) {
setEmail(other.getEmail());
}
if (tagBuilder_ == null) {
if (!other.tag_.isEmpty()) {
if (tag_.isEmpty()) {
tag_ = other.tag_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureTagIsMutable();
tag_.addAll(other.tag_);
}
onChanged();
}
} else {
if (!other.tag_.isEmpty()) {
if (tagBuilder_.isEmpty()) {
tagBuilder_.dispose();
tagBuilder_ = null;
tag_ = other.tag_;
bitField0_ = (bitField0_ & ~0x00000080);
tagBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTagFieldBuilder() : null;
} else {
tagBuilder_.addAllMessages(other.tag_);
}
}
}
if (other.hasModified()) {
mergeModified(other.getModified());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.bloombox.schema.services.marketing.v1beta1.CampaignSummary parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.marketing.v1beta1.CampaignSummary) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.bloombox.schema.marketing.MarketingCampaign.CampaignKey key_;
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.marketing.MarketingCampaign.CampaignKey, io.bloombox.schema.marketing.MarketingCampaign.CampaignKey.Builder, io.bloombox.schema.marketing.MarketingCampaign.CampaignKeyOrBuilder> keyBuilder_;
/**
*
* Key for the underlying campaign.
*
*
* .bloombox.marketing.CampaignKey key = 1;
*/
public boolean hasKey() {
return keyBuilder_ != null || key_ != null;
}
/**
*
* Key for the underlying campaign.
*
*
* .bloombox.marketing.CampaignKey key = 1;
*/
public io.bloombox.schema.marketing.MarketingCampaign.CampaignKey getKey() {
if (keyBuilder_ == null) {
return key_ == null ? io.bloombox.schema.marketing.MarketingCampaign.CampaignKey.getDefaultInstance() : key_;
} else {
return keyBuilder_.getMessage();
}
}
/**
*
* Key for the underlying campaign.
*
*
* .bloombox.marketing.CampaignKey key = 1;
*/
public Builder setKey(io.bloombox.schema.marketing.MarketingCampaign.CampaignKey value) {
if (keyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
} else {
keyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Key for the underlying campaign.
*
*
* .bloombox.marketing.CampaignKey key = 1;
*/
public Builder setKey(
io.bloombox.schema.marketing.MarketingCampaign.CampaignKey.Builder builderForValue) {
if (keyBuilder_ == null) {
key_ = builderForValue.build();
onChanged();
} else {
keyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Key for the underlying campaign.
*
*
* .bloombox.marketing.CampaignKey key = 1;
*/
public Builder mergeKey(io.bloombox.schema.marketing.MarketingCampaign.CampaignKey value) {
if (keyBuilder_ == null) {
if (key_ != null) {
key_ =
io.bloombox.schema.marketing.MarketingCampaign.CampaignKey.newBuilder(key_).mergeFrom(value).buildPartial();
} else {
key_ = value;
}
onChanged();
} else {
keyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Key for the underlying campaign.
*
*
* .bloombox.marketing.CampaignKey key = 1;
*/
public Builder clearKey() {
if (keyBuilder_ == null) {
key_ = null;
onChanged();
} else {
key_ = null;
keyBuilder_ = null;
}
return this;
}
/**
*
* Key for the underlying campaign.
*
*
* .bloombox.marketing.CampaignKey key = 1;
*/
public io.bloombox.schema.marketing.MarketingCampaign.CampaignKey.Builder getKeyBuilder() {
onChanged();
return getKeyFieldBuilder().getBuilder();
}
/**
*
* Key for the underlying campaign.
*
*
* .bloombox.marketing.CampaignKey key = 1;
*/
public io.bloombox.schema.marketing.MarketingCampaign.CampaignKeyOrBuilder getKeyOrBuilder() {
if (keyBuilder_ != null) {
return keyBuilder_.getMessageOrBuilder();
} else {
return key_ == null ?
io.bloombox.schema.marketing.MarketingCampaign.CampaignKey.getDefaultInstance() : key_;
}
}
/**
*
* Key for the underlying campaign.
*
*
* .bloombox.marketing.CampaignKey key = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.marketing.MarketingCampaign.CampaignKey, io.bloombox.schema.marketing.MarketingCampaign.CampaignKey.Builder, io.bloombox.schema.marketing.MarketingCampaign.CampaignKeyOrBuilder>
getKeyFieldBuilder() {
if (keyBuilder_ == null) {
keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.bloombox.schema.marketing.MarketingCampaign.CampaignKey, io.bloombox.schema.marketing.MarketingCampaign.CampaignKey.Builder, io.bloombox.schema.marketing.MarketingCampaign.CampaignKeyOrBuilder>(
getKey(),
getParentForChildren(),
isClean());
key_ = null;
}
return keyBuilder_;
}
private java.lang.Object name_ = "";
/**
*
* Name for the campaign object.
*
*
* string name = 2;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name for the campaign object.
*
*
* string name = 2;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name for the campaign object.
*
*
* string name = 2;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name for the campaign object.
*
*
* string name = 2;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name for the campaign object.
*
*
* string name = 2;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description for the campaign object.
*
*
* string description = 3;
*/
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;
}
}
/**
*
* Description for the campaign object.
*
*
* string description = 3;
*/
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;
}
}
/**
*
* Description for the campaign object.
*
*
* string description = 3;
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description for the campaign object.
*
*
* string description = 3;
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description for the campaign object.
*
*
* string description = 3;
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private boolean live_ ;
/**
*
* Whether the underlying campaign is live.
*
*
* bool live = 4;
*/
public boolean getLive() {
return live_;
}
/**
*
* Whether the underlying campaign is live.
*
*
* bool live = 4;
*/
public Builder setLive(boolean value) {
live_ = value;
onChanged();
return this;
}
/**
*
* Whether the underlying campaign is live.
*
*
* bool live = 4;
*/
public Builder clearLive() {
live_ = false;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* Current status of the campaign.
*
*
* .bloombox.marketing.CampaignStatus status = 5;
*/
public int getStatusValue() {
return status_;
}
/**
*
* Current status of the campaign.
*
*
* .bloombox.marketing.CampaignStatus status = 5;
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* Current status of the campaign.
*
*
* .bloombox.marketing.CampaignStatus status = 5;
*/
public io.bloombox.schema.marketing.MarketingCampaign.CampaignStatus getStatus() {
@SuppressWarnings("deprecation")
io.bloombox.schema.marketing.MarketingCampaign.CampaignStatus result = io.bloombox.schema.marketing.MarketingCampaign.CampaignStatus.valueOf(status_);
return result == null ? io.bloombox.schema.marketing.MarketingCampaign.CampaignStatus.UNRECOGNIZED : result;
}
/**
*
* Current status of the campaign.
*
*
* .bloombox.marketing.CampaignStatus status = 5;
*/
public Builder setStatus(io.bloombox.schema.marketing.MarketingCampaign.CampaignStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Current status of the campaign.
*
*
* .bloombox.marketing.CampaignStatus status = 5;
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private boolean sms_ ;
/**
*
* Whether this campaign supports SMS.
*
*
* bool sms = 6;
*/
public boolean getSms() {
return sms_;
}
/**
*
* Whether this campaign supports SMS.
*
*
* bool sms = 6;
*/
public Builder setSms(boolean value) {
sms_ = value;
onChanged();
return this;
}
/**
*
* Whether this campaign supports SMS.
*
*
* bool sms = 6;
*/
public Builder clearSms() {
sms_ = false;
onChanged();
return this;
}
private boolean email_ ;
/**
*
* Whether this campaign supports email.
*
*
* bool email = 7;
*/
public boolean getEmail() {
return email_;
}
/**
*
* Whether this campaign supports email.
*
*
* bool email = 7;
*/
public Builder setEmail(boolean value) {
email_ = value;
onChanged();
return this;
}
/**
*
* Whether this campaign supports email.
*
*
* bool email = 7;
*/
public Builder clearEmail() {
email_ = false;
onChanged();
return this;
}
private java.util.List tag_ =
java.util.Collections.emptyList();
private void ensureTagIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
tag_ = new java.util.ArrayList(tag_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.bloombox.schema.marketing.MarketingCampaign.CampaignTag, io.bloombox.schema.marketing.MarketingCampaign.CampaignTag.Builder, io.bloombox.schema.marketing.MarketingCampaign.CampaignTagOrBuilder> tagBuilder_;
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public java.util.List getTagList() {
if (tagBuilder_ == null) {
return java.util.Collections.unmodifiableList(tag_);
} else {
return tagBuilder_.getMessageList();
}
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public int getTagCount() {
if (tagBuilder_ == null) {
return tag_.size();
} else {
return tagBuilder_.getCount();
}
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public io.bloombox.schema.marketing.MarketingCampaign.CampaignTag getTag(int index) {
if (tagBuilder_ == null) {
return tag_.get(index);
} else {
return tagBuilder_.getMessage(index);
}
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public Builder setTag(
int index, io.bloombox.schema.marketing.MarketingCampaign.CampaignTag value) {
if (tagBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagIsMutable();
tag_.set(index, value);
onChanged();
} else {
tagBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public Builder setTag(
int index, io.bloombox.schema.marketing.MarketingCampaign.CampaignTag.Builder builderForValue) {
if (tagBuilder_ == null) {
ensureTagIsMutable();
tag_.set(index, builderForValue.build());
onChanged();
} else {
tagBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public Builder addTag(io.bloombox.schema.marketing.MarketingCampaign.CampaignTag value) {
if (tagBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagIsMutable();
tag_.add(value);
onChanged();
} else {
tagBuilder_.addMessage(value);
}
return this;
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public Builder addTag(
int index, io.bloombox.schema.marketing.MarketingCampaign.CampaignTag value) {
if (tagBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagIsMutable();
tag_.add(index, value);
onChanged();
} else {
tagBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public Builder addTag(
io.bloombox.schema.marketing.MarketingCampaign.CampaignTag.Builder builderForValue) {
if (tagBuilder_ == null) {
ensureTagIsMutable();
tag_.add(builderForValue.build());
onChanged();
} else {
tagBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public Builder addTag(
int index, io.bloombox.schema.marketing.MarketingCampaign.CampaignTag.Builder builderForValue) {
if (tagBuilder_ == null) {
ensureTagIsMutable();
tag_.add(index, builderForValue.build());
onChanged();
} else {
tagBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public Builder addAllTag(
java.lang.Iterable extends io.bloombox.schema.marketing.MarketingCampaign.CampaignTag> values) {
if (tagBuilder_ == null) {
ensureTagIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tag_);
onChanged();
} else {
tagBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public Builder clearTag() {
if (tagBuilder_ == null) {
tag_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
tagBuilder_.clear();
}
return this;
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public Builder removeTag(int index) {
if (tagBuilder_ == null) {
ensureTagIsMutable();
tag_.remove(index);
onChanged();
} else {
tagBuilder_.remove(index);
}
return this;
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public io.bloombox.schema.marketing.MarketingCampaign.CampaignTag.Builder getTagBuilder(
int index) {
return getTagFieldBuilder().getBuilder(index);
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public io.bloombox.schema.marketing.MarketingCampaign.CampaignTagOrBuilder getTagOrBuilder(
int index) {
if (tagBuilder_ == null) {
return tag_.get(index); } else {
return tagBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public java.util.List extends io.bloombox.schema.marketing.MarketingCampaign.CampaignTagOrBuilder>
getTagOrBuilderList() {
if (tagBuilder_ != null) {
return tagBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tag_);
}
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public io.bloombox.schema.marketing.MarketingCampaign.CampaignTag.Builder addTagBuilder() {
return getTagFieldBuilder().addBuilder(
io.bloombox.schema.marketing.MarketingCampaign.CampaignTag.getDefaultInstance());
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public io.bloombox.schema.marketing.MarketingCampaign.CampaignTag.Builder addTagBuilder(
int index) {
return getTagFieldBuilder().addBuilder(
index, io.bloombox.schema.marketing.MarketingCampaign.CampaignTag.getDefaultInstance());
}
/**
*
* Tags for the campaign object.
*
*
* repeated .bloombox.marketing.CampaignTag tag = 8;
*/
public java.util.List
getTagBuilderList() {
return getTagFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.bloombox.schema.marketing.MarketingCampaign.CampaignTag, io.bloombox.schema.marketing.MarketingCampaign.CampaignTag.Builder, io.bloombox.schema.marketing.MarketingCampaign.CampaignTagOrBuilder>
getTagFieldBuilder() {
if (tagBuilder_ == null) {
tagBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.bloombox.schema.marketing.MarketingCampaign.CampaignTag, io.bloombox.schema.marketing.MarketingCampaign.CampaignTag.Builder, io.bloombox.schema.marketing.MarketingCampaign.CampaignTagOrBuilder>(
tag_,
((bitField0_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
tag_ = null;
}
return tagBuilder_;
}
private io.opencannabis.schema.temporal.TemporalInstant.Instant modified_;
private com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> modifiedBuilder_;
/**
*
* When the subject campaign was last modified.
*
*
* .opencannabis.temporal.Instant modified = 9;
*/
public boolean hasModified() {
return modifiedBuilder_ != null || modified_ != null;
}
/**
*
* When the subject campaign was last modified.
*
*
* .opencannabis.temporal.Instant modified = 9;
*/
public io.opencannabis.schema.temporal.TemporalInstant.Instant getModified() {
if (modifiedBuilder_ == null) {
return modified_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : modified_;
} else {
return modifiedBuilder_.getMessage();
}
}
/**
*
* When the subject campaign was last modified.
*
*
* .opencannabis.temporal.Instant modified = 9;
*/
public Builder setModified(io.opencannabis.schema.temporal.TemporalInstant.Instant value) {
if (modifiedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
modified_ = value;
onChanged();
} else {
modifiedBuilder_.setMessage(value);
}
return this;
}
/**
*
* When the subject campaign was last modified.
*
*
* .opencannabis.temporal.Instant modified = 9;
*/
public Builder setModified(
io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) {
if (modifiedBuilder_ == null) {
modified_ = builderForValue.build();
onChanged();
} else {
modifiedBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* When the subject campaign was last modified.
*
*
* .opencannabis.temporal.Instant modified = 9;
*/
public Builder mergeModified(io.opencannabis.schema.temporal.TemporalInstant.Instant value) {
if (modifiedBuilder_ == null) {
if (modified_ != null) {
modified_ =
io.opencannabis.schema.temporal.TemporalInstant.Instant.newBuilder(modified_).mergeFrom(value).buildPartial();
} else {
modified_ = value;
}
onChanged();
} else {
modifiedBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* When the subject campaign was last modified.
*
*
* .opencannabis.temporal.Instant modified = 9;
*/
public Builder clearModified() {
if (modifiedBuilder_ == null) {
modified_ = null;
onChanged();
} else {
modified_ = null;
modifiedBuilder_ = null;
}
return this;
}
/**
*
* When the subject campaign was last modified.
*
*
* .opencannabis.temporal.Instant modified = 9;
*/
public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getModifiedBuilder() {
onChanged();
return getModifiedFieldBuilder().getBuilder();
}
/**
*
* When the subject campaign was last modified.
*
*
* .opencannabis.temporal.Instant modified = 9;
*/
public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getModifiedOrBuilder() {
if (modifiedBuilder_ != null) {
return modifiedBuilder_.getMessageOrBuilder();
} else {
return modified_ == null ?
io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : modified_;
}
}
/**
*
* When the subject campaign was last modified.
*
*
* .opencannabis.temporal.Instant modified = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>
getModifiedFieldBuilder() {
if (modifiedBuilder_ == null) {
modifiedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>(
getModified(),
getParentForChildren(),
isClean());
modified_ = null;
}
return modifiedBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:bloombox.services.marketing.v1beta1.CampaignSummary)
}
// @@protoc_insertion_point(class_scope:bloombox.services.marketing.v1beta1.CampaignSummary)
private static final io.bloombox.schema.services.marketing.v1beta1.CampaignSummary DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.marketing.v1beta1.CampaignSummary();
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignSummary getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CampaignSummary parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CampaignSummary(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.bloombox.schema.services.marketing.v1beta1.CampaignSummary getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy