io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate 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;
/**
*
* Represents an RPC operation to update underlying data for a marketing campaign, given its ID.
*
*
* Protobuf type {@code bloombox.services.marketing.v1beta1.CampaignUpdate}
*/
public final class CampaignUpdate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.marketing.v1beta1.CampaignUpdate)
CampaignUpdateOrBuilder {
private static final long serialVersionUID = 0L;
// Use CampaignUpdate.newBuilder() to construct.
private CampaignUpdate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CampaignUpdate() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CampaignUpdate(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.marketing.v1beta1.MarketingServiceBeta1.internal_static_bloombox_services_marketing_v1beta1_CampaignUpdate_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_CampaignUpdate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.class, io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Builder.class);
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:bloombox.services.marketing.v1beta1.CampaignUpdate.Request)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID for the campaign to be updated.
*
*
* string campaign_id = 1;
*/
java.lang.String getCampaignId();
/**
*
* ID for the campaign to be updated.
*
*
* string campaign_id = 1;
*/
com.google.protobuf.ByteString
getCampaignIdBytes();
/**
*
* Name/label for the campaign.
*
*
* string name = 3;
*/
java.lang.String getName();
/**
*
* Name/label for the campaign.
*
*
* string name = 3;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description for the campaign.
*
*
* string description = 4;
*/
java.lang.String getDescription();
/**
*
* Description for the campaign.
*
*
* string description = 4;
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Current status of the campaign.
*
*
* .bloombox.marketing.CampaignStatus status = 5;
*/
int getStatusValue();
/**
*
* Current status of the campaign.
*
*
* .bloombox.marketing.CampaignStatus status = 5;
*/
io.bloombox.schema.marketing.MarketingCampaign.CampaignStatus getStatus();
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
java.util.List
getChannelList();
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings getChannel(int index);
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
int getChannelCount();
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
java.util.List extends io.bloombox.schema.marketing.MarketingCampaign.ChannelSettingsOrBuilder>
getChannelOrBuilderList();
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
io.bloombox.schema.marketing.MarketingCampaign.ChannelSettingsOrBuilder getChannelOrBuilder(
int index);
}
/**
*
* Request to update a marketing campaign.
*
*
* Protobuf type {@code bloombox.services.marketing.v1beta1.CampaignUpdate.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bloombox.services.marketing.v1beta1.CampaignUpdate.Request)
RequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use Request.newBuilder() to construct.
private Request(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Request() {
campaignId_ = "";
name_ = "";
description_ = "";
status_ = 0;
channel_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Request(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
campaignId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 40: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
channel_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
channel_.add(
input.readMessage(io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings.parser(), extensionRegistry));
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_ & 0x00000010) != 0)) {
channel_ = java.util.Collections.unmodifiableList(channel_);
}
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_CampaignUpdate_Request_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_CampaignUpdate_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request.class, io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request.Builder.class);
}
private int bitField0_;
public static final int CAMPAIGN_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object campaignId_;
/**
*
* ID for the campaign to be updated.
*
*
* string campaign_id = 1;
*/
public java.lang.String getCampaignId() {
java.lang.Object ref = campaignId_;
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();
campaignId_ = s;
return s;
}
}
/**
*
* ID for the campaign to be updated.
*
*
* string campaign_id = 1;
*/
public com.google.protobuf.ByteString
getCampaignIdBytes() {
java.lang.Object ref = campaignId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
campaignId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
*
* Name/label for the campaign.
*
*
* string name = 3;
*/
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/label for the campaign.
*
*
* string name = 3;
*/
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 = 4;
private volatile java.lang.Object description_;
/**
*
* Description for the campaign.
*
*
* string description = 4;
*/
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.
*
*
* string description = 4;
*/
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 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 CHANNEL_FIELD_NUMBER = 6;
private java.util.List channel_;
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public java.util.List getChannelList() {
return channel_;
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public java.util.List extends io.bloombox.schema.marketing.MarketingCampaign.ChannelSettingsOrBuilder>
getChannelOrBuilderList() {
return channel_;
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public int getChannelCount() {
return channel_.size();
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings getChannel(int index) {
return channel_.get(index);
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public io.bloombox.schema.marketing.MarketingCampaign.ChannelSettingsOrBuilder getChannelOrBuilder(
int index) {
return channel_.get(index);
}
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 (!getCampaignIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, campaignId_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
}
if (status_ != io.bloombox.schema.marketing.MarketingCampaign.CampaignStatus.PENDING.getNumber()) {
output.writeEnum(5, status_);
}
for (int i = 0; i < channel_.size(); i++) {
output.writeMessage(6, channel_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getCampaignIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, campaignId_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
}
if (status_ != io.bloombox.schema.marketing.MarketingCampaign.CampaignStatus.PENDING.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, status_);
}
for (int i = 0; i < channel_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, channel_.get(i));
}
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.CampaignUpdate.Request)) {
return super.equals(obj);
}
io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request other = (io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request) obj;
if (!getCampaignId()
.equals(other.getCampaignId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (status_ != other.status_) return false;
if (!getChannelList()
.equals(other.getChannelList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CAMPAIGN_ID_FIELD_NUMBER;
hash = (53 * hash) + getCampaignId().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) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (getChannelCount() > 0) {
hash = (37 * hash) + CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + getChannelList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request 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.CampaignUpdate.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request 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.CampaignUpdate.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request 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.CampaignUpdate.Request 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.CampaignUpdate.Request 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.CampaignUpdate.Request 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.CampaignUpdate.Request 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.CampaignUpdate.Request 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.CampaignUpdate.Request 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.CampaignUpdate.Request 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;
}
/**
*
* Request to update a marketing campaign.
*
*
* Protobuf type {@code bloombox.services.marketing.v1beta1.CampaignUpdate.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.marketing.v1beta1.CampaignUpdate.Request)
io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.marketing.v1beta1.MarketingServiceBeta1.internal_static_bloombox_services_marketing_v1beta1_CampaignUpdate_Request_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_CampaignUpdate_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request.class, io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request.Builder.class);
}
// Construct using io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getChannelFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
campaignId_ = "";
name_ = "";
description_ = "";
status_ = 0;
if (channelBuilder_ == null) {
channel_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
channelBuilder_.clear();
}
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_CampaignUpdate_Request_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request getDefaultInstanceForType() {
return io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request build() {
io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request buildPartial() {
io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request result = new io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.campaignId_ = campaignId_;
result.name_ = name_;
result.description_ = description_;
result.status_ = status_;
if (channelBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
channel_ = java.util.Collections.unmodifiableList(channel_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.channel_ = channel_;
} else {
result.channel_ = channelBuilder_.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.CampaignUpdate.Request) {
return mergeFrom((io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request other) {
if (other == io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request.getDefaultInstance()) return this;
if (!other.getCampaignId().isEmpty()) {
campaignId_ = other.campaignId_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (channelBuilder_ == null) {
if (!other.channel_.isEmpty()) {
if (channel_.isEmpty()) {
channel_ = other.channel_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureChannelIsMutable();
channel_.addAll(other.channel_);
}
onChanged();
}
} else {
if (!other.channel_.isEmpty()) {
if (channelBuilder_.isEmpty()) {
channelBuilder_.dispose();
channelBuilder_ = null;
channel_ = other.channel_;
bitField0_ = (bitField0_ & ~0x00000010);
channelBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChannelFieldBuilder() : null;
} else {
channelBuilder_.addAllMessages(other.channel_);
}
}
}
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.CampaignUpdate.Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object campaignId_ = "";
/**
*
* ID for the campaign to be updated.
*
*
* string campaign_id = 1;
*/
public java.lang.String getCampaignId() {
java.lang.Object ref = campaignId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
campaignId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID for the campaign to be updated.
*
*
* string campaign_id = 1;
*/
public com.google.protobuf.ByteString
getCampaignIdBytes() {
java.lang.Object ref = campaignId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
campaignId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID for the campaign to be updated.
*
*
* string campaign_id = 1;
*/
public Builder setCampaignId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
campaignId_ = value;
onChanged();
return this;
}
/**
*
* ID for the campaign to be updated.
*
*
* string campaign_id = 1;
*/
public Builder clearCampaignId() {
campaignId_ = getDefaultInstance().getCampaignId();
onChanged();
return this;
}
/**
*
* ID for the campaign to be updated.
*
*
* string campaign_id = 1;
*/
public Builder setCampaignIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
campaignId_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name/label for the campaign.
*
*
* string name = 3;
*/
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/label for the campaign.
*
*
* string name = 3;
*/
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/label for the campaign.
*
*
* string name = 3;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name/label for the campaign.
*
*
* string name = 3;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name/label for the campaign.
*
*
* string name = 3;
*/
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.
*
*
* string description = 4;
*/
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.
*
*
* string description = 4;
*/
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.
*
*
* string description = 4;
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description for the campaign.
*
*
* string description = 4;
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description for the campaign.
*
*
* string description = 4;
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
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 java.util.List channel_ =
java.util.Collections.emptyList();
private void ensureChannelIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
channel_ = new java.util.ArrayList(channel_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings, io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings.Builder, io.bloombox.schema.marketing.MarketingCampaign.ChannelSettingsOrBuilder> channelBuilder_;
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public java.util.List getChannelList() {
if (channelBuilder_ == null) {
return java.util.Collections.unmodifiableList(channel_);
} else {
return channelBuilder_.getMessageList();
}
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public int getChannelCount() {
if (channelBuilder_ == null) {
return channel_.size();
} else {
return channelBuilder_.getCount();
}
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings getChannel(int index) {
if (channelBuilder_ == null) {
return channel_.get(index);
} else {
return channelBuilder_.getMessage(index);
}
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public Builder setChannel(
int index, io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings value) {
if (channelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChannelIsMutable();
channel_.set(index, value);
onChanged();
} else {
channelBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public Builder setChannel(
int index, io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings.Builder builderForValue) {
if (channelBuilder_ == null) {
ensureChannelIsMutable();
channel_.set(index, builderForValue.build());
onChanged();
} else {
channelBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public Builder addChannel(io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings value) {
if (channelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChannelIsMutable();
channel_.add(value);
onChanged();
} else {
channelBuilder_.addMessage(value);
}
return this;
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public Builder addChannel(
int index, io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings value) {
if (channelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChannelIsMutable();
channel_.add(index, value);
onChanged();
} else {
channelBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public Builder addChannel(
io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings.Builder builderForValue) {
if (channelBuilder_ == null) {
ensureChannelIsMutable();
channel_.add(builderForValue.build());
onChanged();
} else {
channelBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public Builder addChannel(
int index, io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings.Builder builderForValue) {
if (channelBuilder_ == null) {
ensureChannelIsMutable();
channel_.add(index, builderForValue.build());
onChanged();
} else {
channelBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public Builder addAllChannel(
java.lang.Iterable extends io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings> values) {
if (channelBuilder_ == null) {
ensureChannelIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, channel_);
onChanged();
} else {
channelBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public Builder clearChannel() {
if (channelBuilder_ == null) {
channel_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
channelBuilder_.clear();
}
return this;
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public Builder removeChannel(int index) {
if (channelBuilder_ == null) {
ensureChannelIsMutable();
channel_.remove(index);
onChanged();
} else {
channelBuilder_.remove(index);
}
return this;
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings.Builder getChannelBuilder(
int index) {
return getChannelFieldBuilder().getBuilder(index);
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public io.bloombox.schema.marketing.MarketingCampaign.ChannelSettingsOrBuilder getChannelOrBuilder(
int index) {
if (channelBuilder_ == null) {
return channel_.get(index); } else {
return channelBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public java.util.List extends io.bloombox.schema.marketing.MarketingCampaign.ChannelSettingsOrBuilder>
getChannelOrBuilderList() {
if (channelBuilder_ != null) {
return channelBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(channel_);
}
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings.Builder addChannelBuilder() {
return getChannelFieldBuilder().addBuilder(
io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings.getDefaultInstance());
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings.Builder addChannelBuilder(
int index) {
return getChannelFieldBuilder().addBuilder(
index, io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings.getDefaultInstance());
}
/**
*
* Distribution/channel settings for this campaign.
*
*
* repeated .bloombox.marketing.ChannelSettings channel = 6;
*/
public java.util.List
getChannelBuilderList() {
return getChannelFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings, io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings.Builder, io.bloombox.schema.marketing.MarketingCampaign.ChannelSettingsOrBuilder>
getChannelFieldBuilder() {
if (channelBuilder_ == null) {
channelBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings, io.bloombox.schema.marketing.MarketingCampaign.ChannelSettings.Builder, io.bloombox.schema.marketing.MarketingCampaign.ChannelSettingsOrBuilder>(
channel_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
channel_ = null;
}
return channelBuilder_;
}
@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.CampaignUpdate.Request)
}
// @@protoc_insertion_point(class_scope:bloombox.services.marketing.v1beta1.CampaignUpdate.Request)
private static final io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request();
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Request getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Request parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Request(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.CampaignUpdate.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate)) {
return super.equals(obj);
}
io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate other = (io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate 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.CampaignUpdate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate 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.CampaignUpdate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate 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.CampaignUpdate 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.CampaignUpdate 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.CampaignUpdate 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.CampaignUpdate 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.CampaignUpdate 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.CampaignUpdate 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.CampaignUpdate 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;
}
/**
*
* Represents an RPC operation to update underlying data for a marketing campaign, given its ID.
*
*
* Protobuf type {@code bloombox.services.marketing.v1beta1.CampaignUpdate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bloombox.services.marketing.v1beta1.CampaignUpdate)
io.bloombox.schema.services.marketing.v1beta1.CampaignUpdateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.bloombox.schema.services.marketing.v1beta1.MarketingServiceBeta1.internal_static_bloombox_services_marketing_v1beta1_CampaignUpdate_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_CampaignUpdate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.class, io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.Builder.class);
}
// Construct using io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.bloombox.schema.services.marketing.v1beta1.MarketingServiceBeta1.internal_static_bloombox_services_marketing_v1beta1_CampaignUpdate_descriptor;
}
@java.lang.Override
public io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate getDefaultInstanceForType() {
return io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.getDefaultInstance();
}
@java.lang.Override
public io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate build() {
io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate buildPartial() {
io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate result = new io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate) {
return mergeFrom((io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate other) {
if (other == io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:bloombox.services.marketing.v1beta1.CampaignUpdate)
}
// @@protoc_insertion_point(class_scope:bloombox.services.marketing.v1beta1.CampaignUpdate)
private static final io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate();
}
public static io.bloombox.schema.services.marketing.v1beta1.CampaignUpdate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CampaignUpdate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CampaignUpdate(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.CampaignUpdate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy