io.temporal.api.replication.v1.NamespaceReplicationConfig Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: temporal/api/replication/v1/message.proto
package io.temporal.api.replication.v1;
/**
* Protobuf type {@code temporal.api.replication.v1.NamespaceReplicationConfig}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:NamespaceReplicationConfig.java.pb.meta")
public final class NamespaceReplicationConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.replication.v1.NamespaceReplicationConfig)
NamespaceReplicationConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use NamespaceReplicationConfig.newBuilder() to construct.
private NamespaceReplicationConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NamespaceReplicationConfig() {
activeClusterName_ = "";
clusters_ = java.util.Collections.emptyList();
state_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NamespaceReplicationConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NamespaceReplicationConfig(
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();
activeClusterName_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
clusters_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
clusters_.add(
input.readMessage(io.temporal.api.replication.v1.ClusterReplicationConfig.parser(), extensionRegistry));
break;
}
case 24: {
int rawValue = input.readEnum();
state_ = rawValue;
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_ & 0x00000001) != 0)) {
clusters_ = java.util.Collections.unmodifiableList(clusters_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.replication.v1.MessageProto.internal_static_temporal_api_replication_v1_NamespaceReplicationConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.replication.v1.MessageProto.internal_static_temporal_api_replication_v1_NamespaceReplicationConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.replication.v1.NamespaceReplicationConfig.class, io.temporal.api.replication.v1.NamespaceReplicationConfig.Builder.class);
}
public static final int ACTIVE_CLUSTER_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object activeClusterName_;
/**
* string active_cluster_name = 1;
* @return The activeClusterName.
*/
public java.lang.String getActiveClusterName() {
java.lang.Object ref = activeClusterName_;
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();
activeClusterName_ = s;
return s;
}
}
/**
* string active_cluster_name = 1;
* @return The bytes for activeClusterName.
*/
public com.google.protobuf.ByteString
getActiveClusterNameBytes() {
java.lang.Object ref = activeClusterName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
activeClusterName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLUSTERS_FIELD_NUMBER = 2;
private java.util.List clusters_;
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public java.util.List getClustersList() {
return clusters_;
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public java.util.List extends io.temporal.api.replication.v1.ClusterReplicationConfigOrBuilder>
getClustersOrBuilderList() {
return clusters_;
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public int getClustersCount() {
return clusters_.size();
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public io.temporal.api.replication.v1.ClusterReplicationConfig getClusters(int index) {
return clusters_.get(index);
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public io.temporal.api.replication.v1.ClusterReplicationConfigOrBuilder getClustersOrBuilder(
int index) {
return clusters_.get(index);
}
public static final int STATE_FIELD_NUMBER = 3;
private int state_;
/**
* .temporal.api.enums.v1.ReplicationState state = 3;
* @return The enum numeric value on the wire for state.
*/
public int getStateValue() {
return state_;
}
/**
* .temporal.api.enums.v1.ReplicationState state = 3;
* @return The state.
*/
public io.temporal.api.enums.v1.ReplicationState getState() {
@SuppressWarnings("deprecation")
io.temporal.api.enums.v1.ReplicationState result = io.temporal.api.enums.v1.ReplicationState.valueOf(state_);
return result == null ? io.temporal.api.enums.v1.ReplicationState.UNRECOGNIZED : result;
}
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 (!getActiveClusterNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, activeClusterName_);
}
for (int i = 0; i < clusters_.size(); i++) {
output.writeMessage(2, clusters_.get(i));
}
if (state_ != io.temporal.api.enums.v1.ReplicationState.REPLICATION_STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(3, state_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getActiveClusterNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, activeClusterName_);
}
for (int i = 0; i < clusters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, clusters_.get(i));
}
if (state_ != io.temporal.api.enums.v1.ReplicationState.REPLICATION_STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, state_);
}
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.temporal.api.replication.v1.NamespaceReplicationConfig)) {
return super.equals(obj);
}
io.temporal.api.replication.v1.NamespaceReplicationConfig other = (io.temporal.api.replication.v1.NamespaceReplicationConfig) obj;
if (!getActiveClusterName()
.equals(other.getActiveClusterName())) return false;
if (!getClustersList()
.equals(other.getClustersList())) return false;
if (state_ != other.state_) 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) + ACTIVE_CLUSTER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getActiveClusterName().hashCode();
if (getClustersCount() > 0) {
hash = (37 * hash) + CLUSTERS_FIELD_NUMBER;
hash = (53 * hash) + getClustersList().hashCode();
}
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.temporal.api.replication.v1.NamespaceReplicationConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.replication.v1.NamespaceReplicationConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.replication.v1.NamespaceReplicationConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.replication.v1.NamespaceReplicationConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.replication.v1.NamespaceReplicationConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.replication.v1.NamespaceReplicationConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.replication.v1.NamespaceReplicationConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.replication.v1.NamespaceReplicationConfig 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.temporal.api.replication.v1.NamespaceReplicationConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.replication.v1.NamespaceReplicationConfig 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.temporal.api.replication.v1.NamespaceReplicationConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.replication.v1.NamespaceReplicationConfig 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.temporal.api.replication.v1.NamespaceReplicationConfig 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;
}
/**
* Protobuf type {@code temporal.api.replication.v1.NamespaceReplicationConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.replication.v1.NamespaceReplicationConfig)
io.temporal.api.replication.v1.NamespaceReplicationConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.replication.v1.MessageProto.internal_static_temporal_api_replication_v1_NamespaceReplicationConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.replication.v1.MessageProto.internal_static_temporal_api_replication_v1_NamespaceReplicationConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.replication.v1.NamespaceReplicationConfig.class, io.temporal.api.replication.v1.NamespaceReplicationConfig.Builder.class);
}
// Construct using io.temporal.api.replication.v1.NamespaceReplicationConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getClustersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
activeClusterName_ = "";
if (clustersBuilder_ == null) {
clusters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
clustersBuilder_.clear();
}
state_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.temporal.api.replication.v1.MessageProto.internal_static_temporal_api_replication_v1_NamespaceReplicationConfig_descriptor;
}
@java.lang.Override
public io.temporal.api.replication.v1.NamespaceReplicationConfig getDefaultInstanceForType() {
return io.temporal.api.replication.v1.NamespaceReplicationConfig.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.replication.v1.NamespaceReplicationConfig build() {
io.temporal.api.replication.v1.NamespaceReplicationConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.replication.v1.NamespaceReplicationConfig buildPartial() {
io.temporal.api.replication.v1.NamespaceReplicationConfig result = new io.temporal.api.replication.v1.NamespaceReplicationConfig(this);
int from_bitField0_ = bitField0_;
result.activeClusterName_ = activeClusterName_;
if (clustersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
clusters_ = java.util.Collections.unmodifiableList(clusters_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.clusters_ = clusters_;
} else {
result.clusters_ = clustersBuilder_.build();
}
result.state_ = state_;
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.temporal.api.replication.v1.NamespaceReplicationConfig) {
return mergeFrom((io.temporal.api.replication.v1.NamespaceReplicationConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.replication.v1.NamespaceReplicationConfig other) {
if (other == io.temporal.api.replication.v1.NamespaceReplicationConfig.getDefaultInstance()) return this;
if (!other.getActiveClusterName().isEmpty()) {
activeClusterName_ = other.activeClusterName_;
onChanged();
}
if (clustersBuilder_ == null) {
if (!other.clusters_.isEmpty()) {
if (clusters_.isEmpty()) {
clusters_ = other.clusters_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureClustersIsMutable();
clusters_.addAll(other.clusters_);
}
onChanged();
}
} else {
if (!other.clusters_.isEmpty()) {
if (clustersBuilder_.isEmpty()) {
clustersBuilder_.dispose();
clustersBuilder_ = null;
clusters_ = other.clusters_;
bitField0_ = (bitField0_ & ~0x00000001);
clustersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getClustersFieldBuilder() : null;
} else {
clustersBuilder_.addAllMessages(other.clusters_);
}
}
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
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.temporal.api.replication.v1.NamespaceReplicationConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.replication.v1.NamespaceReplicationConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object activeClusterName_ = "";
/**
* string active_cluster_name = 1;
* @return The activeClusterName.
*/
public java.lang.String getActiveClusterName() {
java.lang.Object ref = activeClusterName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
activeClusterName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string active_cluster_name = 1;
* @return The bytes for activeClusterName.
*/
public com.google.protobuf.ByteString
getActiveClusterNameBytes() {
java.lang.Object ref = activeClusterName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
activeClusterName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string active_cluster_name = 1;
* @param value The activeClusterName to set.
* @return This builder for chaining.
*/
public Builder setActiveClusterName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
activeClusterName_ = value;
onChanged();
return this;
}
/**
* string active_cluster_name = 1;
* @return This builder for chaining.
*/
public Builder clearActiveClusterName() {
activeClusterName_ = getDefaultInstance().getActiveClusterName();
onChanged();
return this;
}
/**
* string active_cluster_name = 1;
* @param value The bytes for activeClusterName to set.
* @return This builder for chaining.
*/
public Builder setActiveClusterNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
activeClusterName_ = value;
onChanged();
return this;
}
private java.util.List clusters_ =
java.util.Collections.emptyList();
private void ensureClustersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
clusters_ = new java.util.ArrayList(clusters_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.temporal.api.replication.v1.ClusterReplicationConfig, io.temporal.api.replication.v1.ClusterReplicationConfig.Builder, io.temporal.api.replication.v1.ClusterReplicationConfigOrBuilder> clustersBuilder_;
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public java.util.List getClustersList() {
if (clustersBuilder_ == null) {
return java.util.Collections.unmodifiableList(clusters_);
} else {
return clustersBuilder_.getMessageList();
}
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public int getClustersCount() {
if (clustersBuilder_ == null) {
return clusters_.size();
} else {
return clustersBuilder_.getCount();
}
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public io.temporal.api.replication.v1.ClusterReplicationConfig getClusters(int index) {
if (clustersBuilder_ == null) {
return clusters_.get(index);
} else {
return clustersBuilder_.getMessage(index);
}
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public Builder setClusters(
int index, io.temporal.api.replication.v1.ClusterReplicationConfig value) {
if (clustersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClustersIsMutable();
clusters_.set(index, value);
onChanged();
} else {
clustersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public Builder setClusters(
int index, io.temporal.api.replication.v1.ClusterReplicationConfig.Builder builderForValue) {
if (clustersBuilder_ == null) {
ensureClustersIsMutable();
clusters_.set(index, builderForValue.build());
onChanged();
} else {
clustersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public Builder addClusters(io.temporal.api.replication.v1.ClusterReplicationConfig value) {
if (clustersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClustersIsMutable();
clusters_.add(value);
onChanged();
} else {
clustersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public Builder addClusters(
int index, io.temporal.api.replication.v1.ClusterReplicationConfig value) {
if (clustersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClustersIsMutable();
clusters_.add(index, value);
onChanged();
} else {
clustersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public Builder addClusters(
io.temporal.api.replication.v1.ClusterReplicationConfig.Builder builderForValue) {
if (clustersBuilder_ == null) {
ensureClustersIsMutable();
clusters_.add(builderForValue.build());
onChanged();
} else {
clustersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public Builder addClusters(
int index, io.temporal.api.replication.v1.ClusterReplicationConfig.Builder builderForValue) {
if (clustersBuilder_ == null) {
ensureClustersIsMutable();
clusters_.add(index, builderForValue.build());
onChanged();
} else {
clustersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public Builder addAllClusters(
java.lang.Iterable extends io.temporal.api.replication.v1.ClusterReplicationConfig> values) {
if (clustersBuilder_ == null) {
ensureClustersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, clusters_);
onChanged();
} else {
clustersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public Builder clearClusters() {
if (clustersBuilder_ == null) {
clusters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
clustersBuilder_.clear();
}
return this;
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public Builder removeClusters(int index) {
if (clustersBuilder_ == null) {
ensureClustersIsMutable();
clusters_.remove(index);
onChanged();
} else {
clustersBuilder_.remove(index);
}
return this;
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public io.temporal.api.replication.v1.ClusterReplicationConfig.Builder getClustersBuilder(
int index) {
return getClustersFieldBuilder().getBuilder(index);
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public io.temporal.api.replication.v1.ClusterReplicationConfigOrBuilder getClustersOrBuilder(
int index) {
if (clustersBuilder_ == null) {
return clusters_.get(index); } else {
return clustersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public java.util.List extends io.temporal.api.replication.v1.ClusterReplicationConfigOrBuilder>
getClustersOrBuilderList() {
if (clustersBuilder_ != null) {
return clustersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(clusters_);
}
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public io.temporal.api.replication.v1.ClusterReplicationConfig.Builder addClustersBuilder() {
return getClustersFieldBuilder().addBuilder(
io.temporal.api.replication.v1.ClusterReplicationConfig.getDefaultInstance());
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public io.temporal.api.replication.v1.ClusterReplicationConfig.Builder addClustersBuilder(
int index) {
return getClustersFieldBuilder().addBuilder(
index, io.temporal.api.replication.v1.ClusterReplicationConfig.getDefaultInstance());
}
/**
* repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
*/
public java.util.List
getClustersBuilderList() {
return getClustersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.temporal.api.replication.v1.ClusterReplicationConfig, io.temporal.api.replication.v1.ClusterReplicationConfig.Builder, io.temporal.api.replication.v1.ClusterReplicationConfigOrBuilder>
getClustersFieldBuilder() {
if (clustersBuilder_ == null) {
clustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.temporal.api.replication.v1.ClusterReplicationConfig, io.temporal.api.replication.v1.ClusterReplicationConfig.Builder, io.temporal.api.replication.v1.ClusterReplicationConfigOrBuilder>(
clusters_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
clusters_ = null;
}
return clustersBuilder_;
}
private int state_ = 0;
/**
* .temporal.api.enums.v1.ReplicationState state = 3;
* @return The enum numeric value on the wire for state.
*/
public int getStateValue() {
return state_;
}
/**
* .temporal.api.enums.v1.ReplicationState state = 3;
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
onChanged();
return this;
}
/**
* .temporal.api.enums.v1.ReplicationState state = 3;
* @return The state.
*/
public io.temporal.api.enums.v1.ReplicationState getState() {
@SuppressWarnings("deprecation")
io.temporal.api.enums.v1.ReplicationState result = io.temporal.api.enums.v1.ReplicationState.valueOf(state_);
return result == null ? io.temporal.api.enums.v1.ReplicationState.UNRECOGNIZED : result;
}
/**
* .temporal.api.enums.v1.ReplicationState state = 3;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(io.temporal.api.enums.v1.ReplicationState value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value.getNumber();
onChanged();
return this;
}
/**
* .temporal.api.enums.v1.ReplicationState state = 3;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:temporal.api.replication.v1.NamespaceReplicationConfig)
}
// @@protoc_insertion_point(class_scope:temporal.api.replication.v1.NamespaceReplicationConfig)
private static final io.temporal.api.replication.v1.NamespaceReplicationConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.replication.v1.NamespaceReplicationConfig();
}
public static io.temporal.api.replication.v1.NamespaceReplicationConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NamespaceReplicationConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NamespaceReplicationConfig(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.temporal.api.replication.v1.NamespaceReplicationConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy