Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: requests.proto
// Protobuf Java Version: 3.25.5
package io.camunda.zeebe.dynamic.config.protocol;
public final class Requests {
private Requests() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code topology_requests.ErrorCode}
*/
public enum ErrorCode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* INVALID_REQUEST = 0;
*/
INVALID_REQUEST(0),
/**
* OPERATION_NOT_ALLOWED = 1;
*/
OPERATION_NOT_ALLOWED(1),
/**
* CONCURRENT_MODIFICATION = 2;
*/
CONCURRENT_MODIFICATION(2),
/**
* INTERNAL_ERROR = 3;
*/
INTERNAL_ERROR(3),
UNRECOGNIZED(-1),
;
/**
* INVALID_REQUEST = 0;
*/
public static final int INVALID_REQUEST_VALUE = 0;
/**
* OPERATION_NOT_ALLOWED = 1;
*/
public static final int OPERATION_NOT_ALLOWED_VALUE = 1;
/**
* CONCURRENT_MODIFICATION = 2;
*/
public static final int CONCURRENT_MODIFICATION_VALUE = 2;
/**
* INTERNAL_ERROR = 3;
*/
public static final int INTERNAL_ERROR_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ErrorCode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ErrorCode forNumber(int value) {
switch (value) {
case 0: return INVALID_REQUEST;
case 1: return OPERATION_NOT_ALLOWED;
case 2: return CONCURRENT_MODIFICATION;
case 3: return INTERNAL_ERROR;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ErrorCode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ErrorCode findValueByNumber(int number) {
return ErrorCode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.getDescriptor().getEnumTypes().get(0);
}
private static final ErrorCode[] VALUES = values();
public static ErrorCode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ErrorCode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:topology_requests.ErrorCode)
}
public interface AddMembersRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:topology_requests.AddMembersRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string memberIds = 1;
* @return A list containing the memberIds.
*/
java.util.List
getMemberIdsList();
/**
* repeated string memberIds = 1;
* @return The count of memberIds.
*/
int getMemberIdsCount();
/**
* repeated string memberIds = 1;
* @param index The index of the element to return.
* @return The memberIds at the given index.
*/
java.lang.String getMemberIds(int index);
/**
* repeated string memberIds = 1;
* @param index The index of the value to return.
* @return The bytes of the memberIds at the given index.
*/
com.google.protobuf.ByteString
getMemberIdsBytes(int index);
/**
* bool dryRun = 2;
* @return The dryRun.
*/
boolean getDryRun();
}
/**
* Protobuf type {@code topology_requests.AddMembersRequest}
*/
public static final class AddMembersRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:topology_requests.AddMembersRequest)
AddMembersRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddMembersRequest.newBuilder() to construct.
private AddMembersRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddMembersRequest() {
memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddMembersRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_AddMembersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_AddMembersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest.Builder.class);
}
public static final int MEMBERIDS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string memberIds = 1;
* @return A list containing the memberIds.
*/
public com.google.protobuf.ProtocolStringList
getMemberIdsList() {
return memberIds_;
}
/**
* repeated string memberIds = 1;
* @return The count of memberIds.
*/
public int getMemberIdsCount() {
return memberIds_.size();
}
/**
* repeated string memberIds = 1;
* @param index The index of the element to return.
* @return The memberIds at the given index.
*/
public java.lang.String getMemberIds(int index) {
return memberIds_.get(index);
}
/**
* repeated string memberIds = 1;
* @param index The index of the value to return.
* @return The bytes of the memberIds at the given index.
*/
public com.google.protobuf.ByteString
getMemberIdsBytes(int index) {
return memberIds_.getByteString(index);
}
public static final int DRYRUN_FIELD_NUMBER = 2;
private boolean dryRun_ = false;
/**
* bool dryRun = 2;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
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 {
for (int i = 0; i < memberIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, memberIds_.getRaw(i));
}
if (dryRun_ != false) {
output.writeBool(2, dryRun_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < memberIds_.size(); i++) {
dataSize += computeStringSizeNoTag(memberIds_.getRaw(i));
}
size += dataSize;
size += 1 * getMemberIdsList().size();
}
if (dryRun_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, dryRun_);
}
size += getUnknownFields().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.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest)) {
return super.equals(obj);
}
io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest other = (io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest) obj;
if (!getMemberIdsList()
.equals(other.getMemberIdsList())) return false;
if (getDryRun()
!= other.getDryRun()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getMemberIdsCount() > 0) {
hash = (37 * hash) + MEMBERIDS_FIELD_NUMBER;
hash = (53 * hash) + getMemberIdsList().hashCode();
}
hash = (37 * hash) + DRYRUN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDryRun());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest 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 topology_requests.AddMembersRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:topology_requests.AddMembersRequest)
io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_AddMembersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_AddMembersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest.Builder.class);
}
// Construct using io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
dryRun_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_AddMembersRequest_descriptor;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest getDefaultInstanceForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest.getDefaultInstance();
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest build() {
io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest buildPartial() {
io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest result = new io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
memberIds_.makeImmutable();
result.memberIds_ = memberIds_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.dryRun_ = dryRun_;
}
}
@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.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest) {
return mergeFrom((io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest other) {
if (other == io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest.getDefaultInstance()) return this;
if (!other.memberIds_.isEmpty()) {
if (memberIds_.isEmpty()) {
memberIds_ = other.memberIds_;
bitField0_ |= 0x00000001;
} else {
ensureMemberIdsIsMutable();
memberIds_.addAll(other.memberIds_);
}
onChanged();
}
if (other.getDryRun() != false) {
setDryRun(other.getDryRun());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
ensureMemberIdsIsMutable();
memberIds_.add(s);
break;
} // case 10
case 16: {
dryRun_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureMemberIdsIsMutable() {
if (!memberIds_.isModifiable()) {
memberIds_ = new com.google.protobuf.LazyStringArrayList(memberIds_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated string memberIds = 1;
* @return A list containing the memberIds.
*/
public com.google.protobuf.ProtocolStringList
getMemberIdsList() {
memberIds_.makeImmutable();
return memberIds_;
}
/**
* repeated string memberIds = 1;
* @return The count of memberIds.
*/
public int getMemberIdsCount() {
return memberIds_.size();
}
/**
* repeated string memberIds = 1;
* @param index The index of the element to return.
* @return The memberIds at the given index.
*/
public java.lang.String getMemberIds(int index) {
return memberIds_.get(index);
}
/**
* repeated string memberIds = 1;
* @param index The index of the value to return.
* @return The bytes of the memberIds at the given index.
*/
public com.google.protobuf.ByteString
getMemberIdsBytes(int index) {
return memberIds_.getByteString(index);
}
/**
* repeated string memberIds = 1;
* @param index The index to set the value at.
* @param value The memberIds to set.
* @return This builder for chaining.
*/
public Builder setMemberIds(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMemberIdsIsMutable();
memberIds_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string memberIds = 1;
* @param value The memberIds to add.
* @return This builder for chaining.
*/
public Builder addMemberIds(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMemberIdsIsMutable();
memberIds_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string memberIds = 1;
* @param values The memberIds to add.
* @return This builder for chaining.
*/
public Builder addAllMemberIds(
java.lang.Iterable values) {
ensureMemberIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, memberIds_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string memberIds = 1;
* @return This builder for chaining.
*/
public Builder clearMemberIds() {
memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* repeated string memberIds = 1;
* @param value The bytes of the memberIds to add.
* @return This builder for chaining.
*/
public Builder addMemberIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureMemberIdsIsMutable();
memberIds_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private boolean dryRun_ ;
/**
* bool dryRun = 2;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
/**
* bool dryRun = 2;
* @param value The dryRun to set.
* @return This builder for chaining.
*/
public Builder setDryRun(boolean value) {
dryRun_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bool dryRun = 2;
* @return This builder for chaining.
*/
public Builder clearDryRun() {
bitField0_ = (bitField0_ & ~0x00000002);
dryRun_ = false;
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:topology_requests.AddMembersRequest)
}
// @@protoc_insertion_point(class_scope:topology_requests.AddMembersRequest)
private static final io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest();
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AddMembersRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.camunda.zeebe.dynamic.config.protocol.Requests.AddMembersRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RemoveMembersRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:topology_requests.RemoveMembersRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string memberIds = 1;
* @return A list containing the memberIds.
*/
java.util.List
getMemberIdsList();
/**
* repeated string memberIds = 1;
* @return The count of memberIds.
*/
int getMemberIdsCount();
/**
* repeated string memberIds = 1;
* @param index The index of the element to return.
* @return The memberIds at the given index.
*/
java.lang.String getMemberIds(int index);
/**
* repeated string memberIds = 1;
* @param index The index of the value to return.
* @return The bytes of the memberIds at the given index.
*/
com.google.protobuf.ByteString
getMemberIdsBytes(int index);
/**
* bool dryRun = 2;
* @return The dryRun.
*/
boolean getDryRun();
}
/**
* Protobuf type {@code topology_requests.RemoveMembersRequest}
*/
public static final class RemoveMembersRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:topology_requests.RemoveMembersRequest)
RemoveMembersRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RemoveMembersRequest.newBuilder() to construct.
private RemoveMembersRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RemoveMembersRequest() {
memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RemoveMembersRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_RemoveMembersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_RemoveMembersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest.Builder.class);
}
public static final int MEMBERIDS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string memberIds = 1;
* @return A list containing the memberIds.
*/
public com.google.protobuf.ProtocolStringList
getMemberIdsList() {
return memberIds_;
}
/**
* repeated string memberIds = 1;
* @return The count of memberIds.
*/
public int getMemberIdsCount() {
return memberIds_.size();
}
/**
* repeated string memberIds = 1;
* @param index The index of the element to return.
* @return The memberIds at the given index.
*/
public java.lang.String getMemberIds(int index) {
return memberIds_.get(index);
}
/**
* repeated string memberIds = 1;
* @param index The index of the value to return.
* @return The bytes of the memberIds at the given index.
*/
public com.google.protobuf.ByteString
getMemberIdsBytes(int index) {
return memberIds_.getByteString(index);
}
public static final int DRYRUN_FIELD_NUMBER = 2;
private boolean dryRun_ = false;
/**
* bool dryRun = 2;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
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 {
for (int i = 0; i < memberIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, memberIds_.getRaw(i));
}
if (dryRun_ != false) {
output.writeBool(2, dryRun_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < memberIds_.size(); i++) {
dataSize += computeStringSizeNoTag(memberIds_.getRaw(i));
}
size += dataSize;
size += 1 * getMemberIdsList().size();
}
if (dryRun_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, dryRun_);
}
size += getUnknownFields().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.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest)) {
return super.equals(obj);
}
io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest other = (io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest) obj;
if (!getMemberIdsList()
.equals(other.getMemberIdsList())) return false;
if (getDryRun()
!= other.getDryRun()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getMemberIdsCount() > 0) {
hash = (37 * hash) + MEMBERIDS_FIELD_NUMBER;
hash = (53 * hash) + getMemberIdsList().hashCode();
}
hash = (37 * hash) + DRYRUN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDryRun());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest 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 topology_requests.RemoveMembersRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:topology_requests.RemoveMembersRequest)
io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_RemoveMembersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_RemoveMembersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest.Builder.class);
}
// Construct using io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
dryRun_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_RemoveMembersRequest_descriptor;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest getDefaultInstanceForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest.getDefaultInstance();
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest build() {
io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest buildPartial() {
io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest result = new io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
memberIds_.makeImmutable();
result.memberIds_ = memberIds_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.dryRun_ = dryRun_;
}
}
@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.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest) {
return mergeFrom((io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest other) {
if (other == io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest.getDefaultInstance()) return this;
if (!other.memberIds_.isEmpty()) {
if (memberIds_.isEmpty()) {
memberIds_ = other.memberIds_;
bitField0_ |= 0x00000001;
} else {
ensureMemberIdsIsMutable();
memberIds_.addAll(other.memberIds_);
}
onChanged();
}
if (other.getDryRun() != false) {
setDryRun(other.getDryRun());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
ensureMemberIdsIsMutable();
memberIds_.add(s);
break;
} // case 10
case 16: {
dryRun_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureMemberIdsIsMutable() {
if (!memberIds_.isModifiable()) {
memberIds_ = new com.google.protobuf.LazyStringArrayList(memberIds_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated string memberIds = 1;
* @return A list containing the memberIds.
*/
public com.google.protobuf.ProtocolStringList
getMemberIdsList() {
memberIds_.makeImmutable();
return memberIds_;
}
/**
* repeated string memberIds = 1;
* @return The count of memberIds.
*/
public int getMemberIdsCount() {
return memberIds_.size();
}
/**
* repeated string memberIds = 1;
* @param index The index of the element to return.
* @return The memberIds at the given index.
*/
public java.lang.String getMemberIds(int index) {
return memberIds_.get(index);
}
/**
* repeated string memberIds = 1;
* @param index The index of the value to return.
* @return The bytes of the memberIds at the given index.
*/
public com.google.protobuf.ByteString
getMemberIdsBytes(int index) {
return memberIds_.getByteString(index);
}
/**
* repeated string memberIds = 1;
* @param index The index to set the value at.
* @param value The memberIds to set.
* @return This builder for chaining.
*/
public Builder setMemberIds(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMemberIdsIsMutable();
memberIds_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string memberIds = 1;
* @param value The memberIds to add.
* @return This builder for chaining.
*/
public Builder addMemberIds(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMemberIdsIsMutable();
memberIds_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string memberIds = 1;
* @param values The memberIds to add.
* @return This builder for chaining.
*/
public Builder addAllMemberIds(
java.lang.Iterable values) {
ensureMemberIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, memberIds_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string memberIds = 1;
* @return This builder for chaining.
*/
public Builder clearMemberIds() {
memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* repeated string memberIds = 1;
* @param value The bytes of the memberIds to add.
* @return This builder for chaining.
*/
public Builder addMemberIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureMemberIdsIsMutable();
memberIds_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private boolean dryRun_ ;
/**
* bool dryRun = 2;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
/**
* bool dryRun = 2;
* @param value The dryRun to set.
* @return This builder for chaining.
*/
public Builder setDryRun(boolean value) {
dryRun_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bool dryRun = 2;
* @return This builder for chaining.
*/
public Builder clearDryRun() {
bitField0_ = (bitField0_ & ~0x00000002);
dryRun_ = false;
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:topology_requests.RemoveMembersRequest)
}
// @@protoc_insertion_point(class_scope:topology_requests.RemoveMembersRequest)
private static final io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest();
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RemoveMembersRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.camunda.zeebe.dynamic.config.protocol.Requests.RemoveMembersRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface JoinPartitionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:topology_requests.JoinPartitionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string memberId = 1;
* @return The memberId.
*/
java.lang.String getMemberId();
/**
* string memberId = 1;
* @return The bytes for memberId.
*/
com.google.protobuf.ByteString
getMemberIdBytes();
/**
* int32 partitionId = 2;
* @return The partitionId.
*/
int getPartitionId();
/**
* int32 priority = 3;
* @return The priority.
*/
int getPriority();
/**
* bool dryRun = 4;
* @return The dryRun.
*/
boolean getDryRun();
}
/**
* Protobuf type {@code topology_requests.JoinPartitionRequest}
*/
public static final class JoinPartitionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:topology_requests.JoinPartitionRequest)
JoinPartitionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use JoinPartitionRequest.newBuilder() to construct.
private JoinPartitionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private JoinPartitionRequest() {
memberId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new JoinPartitionRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_JoinPartitionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_JoinPartitionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest.Builder.class);
}
public static final int MEMBERID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object memberId_ = "";
/**
* string memberId = 1;
* @return The memberId.
*/
@java.lang.Override
public java.lang.String getMemberId() {
java.lang.Object ref = memberId_;
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();
memberId_ = s;
return s;
}
}
/**
* string memberId = 1;
* @return The bytes for memberId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMemberIdBytes() {
java.lang.Object ref = memberId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memberId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARTITIONID_FIELD_NUMBER = 2;
private int partitionId_ = 0;
/**
* int32 partitionId = 2;
* @return The partitionId.
*/
@java.lang.Override
public int getPartitionId() {
return partitionId_;
}
public static final int PRIORITY_FIELD_NUMBER = 3;
private int priority_ = 0;
/**
* int32 priority = 3;
* @return The priority.
*/
@java.lang.Override
public int getPriority() {
return priority_;
}
public static final int DRYRUN_FIELD_NUMBER = 4;
private boolean dryRun_ = false;
/**
* bool dryRun = 4;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memberId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, memberId_);
}
if (partitionId_ != 0) {
output.writeInt32(2, partitionId_);
}
if (priority_ != 0) {
output.writeInt32(3, priority_);
}
if (dryRun_ != false) {
output.writeBool(4, dryRun_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memberId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, memberId_);
}
if (partitionId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, partitionId_);
}
if (priority_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, priority_);
}
if (dryRun_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, dryRun_);
}
size += getUnknownFields().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.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest)) {
return super.equals(obj);
}
io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest other = (io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest) obj;
if (!getMemberId()
.equals(other.getMemberId())) return false;
if (getPartitionId()
!= other.getPartitionId()) return false;
if (getPriority()
!= other.getPriority()) return false;
if (getDryRun()
!= other.getDryRun()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + MEMBERID_FIELD_NUMBER;
hash = (53 * hash) + getMemberId().hashCode();
hash = (37 * hash) + PARTITIONID_FIELD_NUMBER;
hash = (53 * hash) + getPartitionId();
hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
hash = (53 * hash) + getPriority();
hash = (37 * hash) + DRYRUN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDryRun());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest 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 topology_requests.JoinPartitionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:topology_requests.JoinPartitionRequest)
io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_JoinPartitionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_JoinPartitionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest.Builder.class);
}
// Construct using io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
memberId_ = "";
partitionId_ = 0;
priority_ = 0;
dryRun_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_JoinPartitionRequest_descriptor;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest getDefaultInstanceForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest.getDefaultInstance();
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest build() {
io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest buildPartial() {
io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest result = new io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.memberId_ = memberId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.partitionId_ = partitionId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.priority_ = priority_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.dryRun_ = dryRun_;
}
}
@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.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest) {
return mergeFrom((io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest other) {
if (other == io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest.getDefaultInstance()) return this;
if (!other.getMemberId().isEmpty()) {
memberId_ = other.memberId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPartitionId() != 0) {
setPartitionId(other.getPartitionId());
}
if (other.getPriority() != 0) {
setPriority(other.getPriority());
}
if (other.getDryRun() != false) {
setDryRun(other.getDryRun());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
memberId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
partitionId_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
priority_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
dryRun_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object memberId_ = "";
/**
* string memberId = 1;
* @return The memberId.
*/
public java.lang.String getMemberId() {
java.lang.Object ref = memberId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memberId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string memberId = 1;
* @return The bytes for memberId.
*/
public com.google.protobuf.ByteString
getMemberIdBytes() {
java.lang.Object ref = memberId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memberId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string memberId = 1;
* @param value The memberId to set.
* @return This builder for chaining.
*/
public Builder setMemberId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
memberId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string memberId = 1;
* @return This builder for chaining.
*/
public Builder clearMemberId() {
memberId_ = getDefaultInstance().getMemberId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string memberId = 1;
* @param value The bytes for memberId to set.
* @return This builder for chaining.
*/
public Builder setMemberIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
memberId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int partitionId_ ;
/**
* int32 partitionId = 2;
* @return The partitionId.
*/
@java.lang.Override
public int getPartitionId() {
return partitionId_;
}
/**
* int32 partitionId = 2;
* @param value The partitionId to set.
* @return This builder for chaining.
*/
public Builder setPartitionId(int value) {
partitionId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int32 partitionId = 2;
* @return This builder for chaining.
*/
public Builder clearPartitionId() {
bitField0_ = (bitField0_ & ~0x00000002);
partitionId_ = 0;
onChanged();
return this;
}
private int priority_ ;
/**
* int32 priority = 3;
* @return The priority.
*/
@java.lang.Override
public int getPriority() {
return priority_;
}
/**
* int32 priority = 3;
* @param value The priority to set.
* @return This builder for chaining.
*/
public Builder setPriority(int value) {
priority_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int32 priority = 3;
* @return This builder for chaining.
*/
public Builder clearPriority() {
bitField0_ = (bitField0_ & ~0x00000004);
priority_ = 0;
onChanged();
return this;
}
private boolean dryRun_ ;
/**
* bool dryRun = 4;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
/**
* bool dryRun = 4;
* @param value The dryRun to set.
* @return This builder for chaining.
*/
public Builder setDryRun(boolean value) {
dryRun_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* bool dryRun = 4;
* @return This builder for chaining.
*/
public Builder clearDryRun() {
bitField0_ = (bitField0_ & ~0x00000008);
dryRun_ = false;
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:topology_requests.JoinPartitionRequest)
}
// @@protoc_insertion_point(class_scope:topology_requests.JoinPartitionRequest)
private static final io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest();
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public JoinPartitionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.camunda.zeebe.dynamic.config.protocol.Requests.JoinPartitionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LeavePartitionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:topology_requests.LeavePartitionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string memberId = 1;
* @return The memberId.
*/
java.lang.String getMemberId();
/**
* string memberId = 1;
* @return The bytes for memberId.
*/
com.google.protobuf.ByteString
getMemberIdBytes();
/**
* int32 partitionId = 2;
* @return The partitionId.
*/
int getPartitionId();
/**
* bool dryRun = 3;
* @return The dryRun.
*/
boolean getDryRun();
}
/**
* Protobuf type {@code topology_requests.LeavePartitionRequest}
*/
public static final class LeavePartitionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:topology_requests.LeavePartitionRequest)
LeavePartitionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use LeavePartitionRequest.newBuilder() to construct.
private LeavePartitionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LeavePartitionRequest() {
memberId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LeavePartitionRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_LeavePartitionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_LeavePartitionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest.Builder.class);
}
public static final int MEMBERID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object memberId_ = "";
/**
* string memberId = 1;
* @return The memberId.
*/
@java.lang.Override
public java.lang.String getMemberId() {
java.lang.Object ref = memberId_;
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();
memberId_ = s;
return s;
}
}
/**
* string memberId = 1;
* @return The bytes for memberId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMemberIdBytes() {
java.lang.Object ref = memberId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memberId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARTITIONID_FIELD_NUMBER = 2;
private int partitionId_ = 0;
/**
* int32 partitionId = 2;
* @return The partitionId.
*/
@java.lang.Override
public int getPartitionId() {
return partitionId_;
}
public static final int DRYRUN_FIELD_NUMBER = 3;
private boolean dryRun_ = false;
/**
* bool dryRun = 3;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memberId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, memberId_);
}
if (partitionId_ != 0) {
output.writeInt32(2, partitionId_);
}
if (dryRun_ != false) {
output.writeBool(3, dryRun_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memberId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, memberId_);
}
if (partitionId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, partitionId_);
}
if (dryRun_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, dryRun_);
}
size += getUnknownFields().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.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest)) {
return super.equals(obj);
}
io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest other = (io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest) obj;
if (!getMemberId()
.equals(other.getMemberId())) return false;
if (getPartitionId()
!= other.getPartitionId()) return false;
if (getDryRun()
!= other.getDryRun()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + MEMBERID_FIELD_NUMBER;
hash = (53 * hash) + getMemberId().hashCode();
hash = (37 * hash) + PARTITIONID_FIELD_NUMBER;
hash = (53 * hash) + getPartitionId();
hash = (37 * hash) + DRYRUN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDryRun());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest 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 topology_requests.LeavePartitionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:topology_requests.LeavePartitionRequest)
io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_LeavePartitionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_LeavePartitionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest.Builder.class);
}
// Construct using io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
memberId_ = "";
partitionId_ = 0;
dryRun_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_LeavePartitionRequest_descriptor;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest getDefaultInstanceForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest.getDefaultInstance();
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest build() {
io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest buildPartial() {
io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest result = new io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.memberId_ = memberId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.partitionId_ = partitionId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.dryRun_ = dryRun_;
}
}
@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.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest) {
return mergeFrom((io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest other) {
if (other == io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest.getDefaultInstance()) return this;
if (!other.getMemberId().isEmpty()) {
memberId_ = other.memberId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getPartitionId() != 0) {
setPartitionId(other.getPartitionId());
}
if (other.getDryRun() != false) {
setDryRun(other.getDryRun());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
memberId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
partitionId_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
dryRun_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object memberId_ = "";
/**
* string memberId = 1;
* @return The memberId.
*/
public java.lang.String getMemberId() {
java.lang.Object ref = memberId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memberId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string memberId = 1;
* @return The bytes for memberId.
*/
public com.google.protobuf.ByteString
getMemberIdBytes() {
java.lang.Object ref = memberId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memberId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string memberId = 1;
* @param value The memberId to set.
* @return This builder for chaining.
*/
public Builder setMemberId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
memberId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string memberId = 1;
* @return This builder for chaining.
*/
public Builder clearMemberId() {
memberId_ = getDefaultInstance().getMemberId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string memberId = 1;
* @param value The bytes for memberId to set.
* @return This builder for chaining.
*/
public Builder setMemberIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
memberId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int partitionId_ ;
/**
* int32 partitionId = 2;
* @return The partitionId.
*/
@java.lang.Override
public int getPartitionId() {
return partitionId_;
}
/**
* int32 partitionId = 2;
* @param value The partitionId to set.
* @return This builder for chaining.
*/
public Builder setPartitionId(int value) {
partitionId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int32 partitionId = 2;
* @return This builder for chaining.
*/
public Builder clearPartitionId() {
bitField0_ = (bitField0_ & ~0x00000002);
partitionId_ = 0;
onChanged();
return this;
}
private boolean dryRun_ ;
/**
* bool dryRun = 3;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
/**
* bool dryRun = 3;
* @param value The dryRun to set.
* @return This builder for chaining.
*/
public Builder setDryRun(boolean value) {
dryRun_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* bool dryRun = 3;
* @return This builder for chaining.
*/
public Builder clearDryRun() {
bitField0_ = (bitField0_ & ~0x00000004);
dryRun_ = false;
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:topology_requests.LeavePartitionRequest)
}
// @@protoc_insertion_point(class_scope:topology_requests.LeavePartitionRequest)
private static final io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest();
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LeavePartitionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.camunda.zeebe.dynamic.config.protocol.Requests.LeavePartitionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BrokerScaleRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:topology_requests.BrokerScaleRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string memberIds = 1;
* @return A list containing the memberIds.
*/
java.util.List
getMemberIdsList();
/**
* repeated string memberIds = 1;
* @return The count of memberIds.
*/
int getMemberIdsCount();
/**
* repeated string memberIds = 1;
* @param index The index of the element to return.
* @return The memberIds at the given index.
*/
java.lang.String getMemberIds(int index);
/**
* repeated string memberIds = 1;
* @param index The index of the value to return.
* @return The bytes of the memberIds at the given index.
*/
com.google.protobuf.ByteString
getMemberIdsBytes(int index);
/**
* bool dryRun = 2;
* @return The dryRun.
*/
boolean getDryRun();
/**
* optional uint32 newReplicationFactor = 3;
* @return Whether the newReplicationFactor field is set.
*/
boolean hasNewReplicationFactor();
/**
* optional uint32 newReplicationFactor = 3;
* @return The newReplicationFactor.
*/
int getNewReplicationFactor();
}
/**
* Protobuf type {@code topology_requests.BrokerScaleRequest}
*/
public static final class BrokerScaleRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:topology_requests.BrokerScaleRequest)
BrokerScaleRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use BrokerScaleRequest.newBuilder() to construct.
private BrokerScaleRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BrokerScaleRequest() {
memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BrokerScaleRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_BrokerScaleRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_BrokerScaleRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest.Builder.class);
}
private int bitField0_;
public static final int MEMBERIDS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string memberIds = 1;
* @return A list containing the memberIds.
*/
public com.google.protobuf.ProtocolStringList
getMemberIdsList() {
return memberIds_;
}
/**
* repeated string memberIds = 1;
* @return The count of memberIds.
*/
public int getMemberIdsCount() {
return memberIds_.size();
}
/**
* repeated string memberIds = 1;
* @param index The index of the element to return.
* @return The memberIds at the given index.
*/
public java.lang.String getMemberIds(int index) {
return memberIds_.get(index);
}
/**
* repeated string memberIds = 1;
* @param index The index of the value to return.
* @return The bytes of the memberIds at the given index.
*/
public com.google.protobuf.ByteString
getMemberIdsBytes(int index) {
return memberIds_.getByteString(index);
}
public static final int DRYRUN_FIELD_NUMBER = 2;
private boolean dryRun_ = false;
/**
* bool dryRun = 2;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
public static final int NEWREPLICATIONFACTOR_FIELD_NUMBER = 3;
private int newReplicationFactor_ = 0;
/**
* optional uint32 newReplicationFactor = 3;
* @return Whether the newReplicationFactor field is set.
*/
@java.lang.Override
public boolean hasNewReplicationFactor() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional uint32 newReplicationFactor = 3;
* @return The newReplicationFactor.
*/
@java.lang.Override
public int getNewReplicationFactor() {
return newReplicationFactor_;
}
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 {
for (int i = 0; i < memberIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, memberIds_.getRaw(i));
}
if (dryRun_ != false) {
output.writeBool(2, dryRun_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeUInt32(3, newReplicationFactor_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < memberIds_.size(); i++) {
dataSize += computeStringSizeNoTag(memberIds_.getRaw(i));
}
size += dataSize;
size += 1 * getMemberIdsList().size();
}
if (dryRun_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, dryRun_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, newReplicationFactor_);
}
size += getUnknownFields().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.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest)) {
return super.equals(obj);
}
io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest other = (io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest) obj;
if (!getMemberIdsList()
.equals(other.getMemberIdsList())) return false;
if (getDryRun()
!= other.getDryRun()) return false;
if (hasNewReplicationFactor() != other.hasNewReplicationFactor()) return false;
if (hasNewReplicationFactor()) {
if (getNewReplicationFactor()
!= other.getNewReplicationFactor()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getMemberIdsCount() > 0) {
hash = (37 * hash) + MEMBERIDS_FIELD_NUMBER;
hash = (53 * hash) + getMemberIdsList().hashCode();
}
hash = (37 * hash) + DRYRUN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDryRun());
if (hasNewReplicationFactor()) {
hash = (37 * hash) + NEWREPLICATIONFACTOR_FIELD_NUMBER;
hash = (53 * hash) + getNewReplicationFactor();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest 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 topology_requests.BrokerScaleRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:topology_requests.BrokerScaleRequest)
io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_BrokerScaleRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_BrokerScaleRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest.Builder.class);
}
// Construct using io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
dryRun_ = false;
newReplicationFactor_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_BrokerScaleRequest_descriptor;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest getDefaultInstanceForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest.getDefaultInstance();
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest build() {
io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest buildPartial() {
io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest result = new io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
memberIds_.makeImmutable();
result.memberIds_ = memberIds_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.dryRun_ = dryRun_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.newReplicationFactor_ = newReplicationFactor_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest) {
return mergeFrom((io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest other) {
if (other == io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest.getDefaultInstance()) return this;
if (!other.memberIds_.isEmpty()) {
if (memberIds_.isEmpty()) {
memberIds_ = other.memberIds_;
bitField0_ |= 0x00000001;
} else {
ensureMemberIdsIsMutable();
memberIds_.addAll(other.memberIds_);
}
onChanged();
}
if (other.getDryRun() != false) {
setDryRun(other.getDryRun());
}
if (other.hasNewReplicationFactor()) {
setNewReplicationFactor(other.getNewReplicationFactor());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
ensureMemberIdsIsMutable();
memberIds_.add(s);
break;
} // case 10
case 16: {
dryRun_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
newReplicationFactor_ = input.readUInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureMemberIdsIsMutable() {
if (!memberIds_.isModifiable()) {
memberIds_ = new com.google.protobuf.LazyStringArrayList(memberIds_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated string memberIds = 1;
* @return A list containing the memberIds.
*/
public com.google.protobuf.ProtocolStringList
getMemberIdsList() {
memberIds_.makeImmutable();
return memberIds_;
}
/**
* repeated string memberIds = 1;
* @return The count of memberIds.
*/
public int getMemberIdsCount() {
return memberIds_.size();
}
/**
* repeated string memberIds = 1;
* @param index The index of the element to return.
* @return The memberIds at the given index.
*/
public java.lang.String getMemberIds(int index) {
return memberIds_.get(index);
}
/**
* repeated string memberIds = 1;
* @param index The index of the value to return.
* @return The bytes of the memberIds at the given index.
*/
public com.google.protobuf.ByteString
getMemberIdsBytes(int index) {
return memberIds_.getByteString(index);
}
/**
* repeated string memberIds = 1;
* @param index The index to set the value at.
* @param value The memberIds to set.
* @return This builder for chaining.
*/
public Builder setMemberIds(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMemberIdsIsMutable();
memberIds_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string memberIds = 1;
* @param value The memberIds to add.
* @return This builder for chaining.
*/
public Builder addMemberIds(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMemberIdsIsMutable();
memberIds_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string memberIds = 1;
* @param values The memberIds to add.
* @return This builder for chaining.
*/
public Builder addAllMemberIds(
java.lang.Iterable values) {
ensureMemberIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, memberIds_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string memberIds = 1;
* @return This builder for chaining.
*/
public Builder clearMemberIds() {
memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* repeated string memberIds = 1;
* @param value The bytes of the memberIds to add.
* @return This builder for chaining.
*/
public Builder addMemberIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureMemberIdsIsMutable();
memberIds_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private boolean dryRun_ ;
/**
* bool dryRun = 2;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
/**
* bool dryRun = 2;
* @param value The dryRun to set.
* @return This builder for chaining.
*/
public Builder setDryRun(boolean value) {
dryRun_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bool dryRun = 2;
* @return This builder for chaining.
*/
public Builder clearDryRun() {
bitField0_ = (bitField0_ & ~0x00000002);
dryRun_ = false;
onChanged();
return this;
}
private int newReplicationFactor_ ;
/**
* optional uint32 newReplicationFactor = 3;
* @return Whether the newReplicationFactor field is set.
*/
@java.lang.Override
public boolean hasNewReplicationFactor() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 newReplicationFactor = 3;
* @return The newReplicationFactor.
*/
@java.lang.Override
public int getNewReplicationFactor() {
return newReplicationFactor_;
}
/**
* optional uint32 newReplicationFactor = 3;
* @param value The newReplicationFactor to set.
* @return This builder for chaining.
*/
public Builder setNewReplicationFactor(int value) {
newReplicationFactor_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional uint32 newReplicationFactor = 3;
* @return This builder for chaining.
*/
public Builder clearNewReplicationFactor() {
bitField0_ = (bitField0_ & ~0x00000004);
newReplicationFactor_ = 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:topology_requests.BrokerScaleRequest)
}
// @@protoc_insertion_point(class_scope:topology_requests.BrokerScaleRequest)
private static final io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest();
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BrokerScaleRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.camunda.zeebe.dynamic.config.protocol.Requests.BrokerScaleRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClusterScaleRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:topology_requests.ClusterScaleRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional uint32 newClusterSize = 1;
* @return Whether the newClusterSize field is set.
*/
boolean hasNewClusterSize();
/**
* optional uint32 newClusterSize = 1;
* @return The newClusterSize.
*/
int getNewClusterSize();
/**
* optional uint32 newPartitionCount = 2;
* @return Whether the newPartitionCount field is set.
*/
boolean hasNewPartitionCount();
/**
* optional uint32 newPartitionCount = 2;
* @return The newPartitionCount.
*/
int getNewPartitionCount();
/**
* optional uint32 newReplicationFactor = 3;
* @return Whether the newReplicationFactor field is set.
*/
boolean hasNewReplicationFactor();
/**
* optional uint32 newReplicationFactor = 3;
* @return The newReplicationFactor.
*/
int getNewReplicationFactor();
/**
* bool dryRun = 4;
* @return The dryRun.
*/
boolean getDryRun();
}
/**
* Protobuf type {@code topology_requests.ClusterScaleRequest}
*/
public static final class ClusterScaleRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:topology_requests.ClusterScaleRequest)
ClusterScaleRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClusterScaleRequest.newBuilder() to construct.
private ClusterScaleRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClusterScaleRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClusterScaleRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ClusterScaleRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ClusterScaleRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest.Builder.class);
}
private int bitField0_;
public static final int NEWCLUSTERSIZE_FIELD_NUMBER = 1;
private int newClusterSize_ = 0;
/**
* optional uint32 newClusterSize = 1;
* @return Whether the newClusterSize field is set.
*/
@java.lang.Override
public boolean hasNewClusterSize() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional uint32 newClusterSize = 1;
* @return The newClusterSize.
*/
@java.lang.Override
public int getNewClusterSize() {
return newClusterSize_;
}
public static final int NEWPARTITIONCOUNT_FIELD_NUMBER = 2;
private int newPartitionCount_ = 0;
/**
* optional uint32 newPartitionCount = 2;
* @return Whether the newPartitionCount field is set.
*/
@java.lang.Override
public boolean hasNewPartitionCount() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 newPartitionCount = 2;
* @return The newPartitionCount.
*/
@java.lang.Override
public int getNewPartitionCount() {
return newPartitionCount_;
}
public static final int NEWREPLICATIONFACTOR_FIELD_NUMBER = 3;
private int newReplicationFactor_ = 0;
/**
* optional uint32 newReplicationFactor = 3;
* @return Whether the newReplicationFactor field is set.
*/
@java.lang.Override
public boolean hasNewReplicationFactor() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 newReplicationFactor = 3;
* @return The newReplicationFactor.
*/
@java.lang.Override
public int getNewReplicationFactor() {
return newReplicationFactor_;
}
public static final int DRYRUN_FIELD_NUMBER = 4;
private boolean dryRun_ = false;
/**
* bool dryRun = 4;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeUInt32(1, newClusterSize_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt32(2, newPartitionCount_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, newReplicationFactor_);
}
if (dryRun_ != false) {
output.writeBool(4, dryRun_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, newClusterSize_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, newPartitionCount_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, newReplicationFactor_);
}
if (dryRun_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, dryRun_);
}
size += getUnknownFields().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.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest)) {
return super.equals(obj);
}
io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest other = (io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest) obj;
if (hasNewClusterSize() != other.hasNewClusterSize()) return false;
if (hasNewClusterSize()) {
if (getNewClusterSize()
!= other.getNewClusterSize()) return false;
}
if (hasNewPartitionCount() != other.hasNewPartitionCount()) return false;
if (hasNewPartitionCount()) {
if (getNewPartitionCount()
!= other.getNewPartitionCount()) return false;
}
if (hasNewReplicationFactor() != other.hasNewReplicationFactor()) return false;
if (hasNewReplicationFactor()) {
if (getNewReplicationFactor()
!= other.getNewReplicationFactor()) return false;
}
if (getDryRun()
!= other.getDryRun()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasNewClusterSize()) {
hash = (37 * hash) + NEWCLUSTERSIZE_FIELD_NUMBER;
hash = (53 * hash) + getNewClusterSize();
}
if (hasNewPartitionCount()) {
hash = (37 * hash) + NEWPARTITIONCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getNewPartitionCount();
}
if (hasNewReplicationFactor()) {
hash = (37 * hash) + NEWREPLICATIONFACTOR_FIELD_NUMBER;
hash = (53 * hash) + getNewReplicationFactor();
}
hash = (37 * hash) + DRYRUN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDryRun());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest 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 topology_requests.ClusterScaleRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:topology_requests.ClusterScaleRequest)
io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ClusterScaleRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ClusterScaleRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest.Builder.class);
}
// Construct using io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
newClusterSize_ = 0;
newPartitionCount_ = 0;
newReplicationFactor_ = 0;
dryRun_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ClusterScaleRequest_descriptor;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest getDefaultInstanceForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest.getDefaultInstance();
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest build() {
io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest buildPartial() {
io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest result = new io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.newClusterSize_ = newClusterSize_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.newPartitionCount_ = newPartitionCount_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.newReplicationFactor_ = newReplicationFactor_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.dryRun_ = dryRun_;
}
result.bitField0_ |= to_bitField0_;
}
@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.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest) {
return mergeFrom((io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest other) {
if (other == io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest.getDefaultInstance()) return this;
if (other.hasNewClusterSize()) {
setNewClusterSize(other.getNewClusterSize());
}
if (other.hasNewPartitionCount()) {
setNewPartitionCount(other.getNewPartitionCount());
}
if (other.hasNewReplicationFactor()) {
setNewReplicationFactor(other.getNewReplicationFactor());
}
if (other.getDryRun() != false) {
setDryRun(other.getDryRun());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
newClusterSize_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
newPartitionCount_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
newReplicationFactor_ = input.readUInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
dryRun_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int newClusterSize_ ;
/**
* optional uint32 newClusterSize = 1;
* @return Whether the newClusterSize field is set.
*/
@java.lang.Override
public boolean hasNewClusterSize() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional uint32 newClusterSize = 1;
* @return The newClusterSize.
*/
@java.lang.Override
public int getNewClusterSize() {
return newClusterSize_;
}
/**
* optional uint32 newClusterSize = 1;
* @param value The newClusterSize to set.
* @return This builder for chaining.
*/
public Builder setNewClusterSize(int value) {
newClusterSize_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional uint32 newClusterSize = 1;
* @return This builder for chaining.
*/
public Builder clearNewClusterSize() {
bitField0_ = (bitField0_ & ~0x00000001);
newClusterSize_ = 0;
onChanged();
return this;
}
private int newPartitionCount_ ;
/**
* optional uint32 newPartitionCount = 2;
* @return Whether the newPartitionCount field is set.
*/
@java.lang.Override
public boolean hasNewPartitionCount() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 newPartitionCount = 2;
* @return The newPartitionCount.
*/
@java.lang.Override
public int getNewPartitionCount() {
return newPartitionCount_;
}
/**
* optional uint32 newPartitionCount = 2;
* @param value The newPartitionCount to set.
* @return This builder for chaining.
*/
public Builder setNewPartitionCount(int value) {
newPartitionCount_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional uint32 newPartitionCount = 2;
* @return This builder for chaining.
*/
public Builder clearNewPartitionCount() {
bitField0_ = (bitField0_ & ~0x00000002);
newPartitionCount_ = 0;
onChanged();
return this;
}
private int newReplicationFactor_ ;
/**
* optional uint32 newReplicationFactor = 3;
* @return Whether the newReplicationFactor field is set.
*/
@java.lang.Override
public boolean hasNewReplicationFactor() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 newReplicationFactor = 3;
* @return The newReplicationFactor.
*/
@java.lang.Override
public int getNewReplicationFactor() {
return newReplicationFactor_;
}
/**
* optional uint32 newReplicationFactor = 3;
* @param value The newReplicationFactor to set.
* @return This builder for chaining.
*/
public Builder setNewReplicationFactor(int value) {
newReplicationFactor_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional uint32 newReplicationFactor = 3;
* @return This builder for chaining.
*/
public Builder clearNewReplicationFactor() {
bitField0_ = (bitField0_ & ~0x00000004);
newReplicationFactor_ = 0;
onChanged();
return this;
}
private boolean dryRun_ ;
/**
* bool dryRun = 4;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
/**
* bool dryRun = 4;
* @param value The dryRun to set.
* @return This builder for chaining.
*/
public Builder setDryRun(boolean value) {
dryRun_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* bool dryRun = 4;
* @return This builder for chaining.
*/
public Builder clearDryRun() {
bitField0_ = (bitField0_ & ~0x00000008);
dryRun_ = false;
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:topology_requests.ClusterScaleRequest)
}
// @@protoc_insertion_point(class_scope:topology_requests.ClusterScaleRequest)
private static final io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest();
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClusterScaleRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.camunda.zeebe.dynamic.config.protocol.Requests.ClusterScaleRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClusterPatchRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:topology_requests.ClusterPatchRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string membersToAdd = 1;
* @return A list containing the membersToAdd.
*/
java.util.List
getMembersToAddList();
/**
* repeated string membersToAdd = 1;
* @return The count of membersToAdd.
*/
int getMembersToAddCount();
/**
* repeated string membersToAdd = 1;
* @param index The index of the element to return.
* @return The membersToAdd at the given index.
*/
java.lang.String getMembersToAdd(int index);
/**
* repeated string membersToAdd = 1;
* @param index The index of the value to return.
* @return The bytes of the membersToAdd at the given index.
*/
com.google.protobuf.ByteString
getMembersToAddBytes(int index);
/**
* repeated string membersToRemove = 2;
* @return A list containing the membersToRemove.
*/
java.util.List
getMembersToRemoveList();
/**
* repeated string membersToRemove = 2;
* @return The count of membersToRemove.
*/
int getMembersToRemoveCount();
/**
* repeated string membersToRemove = 2;
* @param index The index of the element to return.
* @return The membersToRemove at the given index.
*/
java.lang.String getMembersToRemove(int index);
/**
* repeated string membersToRemove = 2;
* @param index The index of the value to return.
* @return The bytes of the membersToRemove at the given index.
*/
com.google.protobuf.ByteString
getMembersToRemoveBytes(int index);
/**
* optional uint32 newPartitionCount = 3;
* @return Whether the newPartitionCount field is set.
*/
boolean hasNewPartitionCount();
/**
* optional uint32 newPartitionCount = 3;
* @return The newPartitionCount.
*/
int getNewPartitionCount();
/**
* optional uint32 newReplicationFactor = 4;
* @return Whether the newReplicationFactor field is set.
*/
boolean hasNewReplicationFactor();
/**
* optional uint32 newReplicationFactor = 4;
* @return The newReplicationFactor.
*/
int getNewReplicationFactor();
/**
* bool dryRun = 5;
* @return The dryRun.
*/
boolean getDryRun();
}
/**
* Protobuf type {@code topology_requests.ClusterPatchRequest}
*/
public static final class ClusterPatchRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:topology_requests.ClusterPatchRequest)
ClusterPatchRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClusterPatchRequest.newBuilder() to construct.
private ClusterPatchRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClusterPatchRequest() {
membersToAdd_ =
com.google.protobuf.LazyStringArrayList.emptyList();
membersToRemove_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClusterPatchRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ClusterPatchRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ClusterPatchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest.Builder.class);
}
private int bitField0_;
public static final int MEMBERSTOADD_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList membersToAdd_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string membersToAdd = 1;
* @return A list containing the membersToAdd.
*/
public com.google.protobuf.ProtocolStringList
getMembersToAddList() {
return membersToAdd_;
}
/**
* repeated string membersToAdd = 1;
* @return The count of membersToAdd.
*/
public int getMembersToAddCount() {
return membersToAdd_.size();
}
/**
* repeated string membersToAdd = 1;
* @param index The index of the element to return.
* @return The membersToAdd at the given index.
*/
public java.lang.String getMembersToAdd(int index) {
return membersToAdd_.get(index);
}
/**
* repeated string membersToAdd = 1;
* @param index The index of the value to return.
* @return The bytes of the membersToAdd at the given index.
*/
public com.google.protobuf.ByteString
getMembersToAddBytes(int index) {
return membersToAdd_.getByteString(index);
}
public static final int MEMBERSTOREMOVE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList membersToRemove_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string membersToRemove = 2;
* @return A list containing the membersToRemove.
*/
public com.google.protobuf.ProtocolStringList
getMembersToRemoveList() {
return membersToRemove_;
}
/**
* repeated string membersToRemove = 2;
* @return The count of membersToRemove.
*/
public int getMembersToRemoveCount() {
return membersToRemove_.size();
}
/**
* repeated string membersToRemove = 2;
* @param index The index of the element to return.
* @return The membersToRemove at the given index.
*/
public java.lang.String getMembersToRemove(int index) {
return membersToRemove_.get(index);
}
/**
* repeated string membersToRemove = 2;
* @param index The index of the value to return.
* @return The bytes of the membersToRemove at the given index.
*/
public com.google.protobuf.ByteString
getMembersToRemoveBytes(int index) {
return membersToRemove_.getByteString(index);
}
public static final int NEWPARTITIONCOUNT_FIELD_NUMBER = 3;
private int newPartitionCount_ = 0;
/**
* optional uint32 newPartitionCount = 3;
* @return Whether the newPartitionCount field is set.
*/
@java.lang.Override
public boolean hasNewPartitionCount() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional uint32 newPartitionCount = 3;
* @return The newPartitionCount.
*/
@java.lang.Override
public int getNewPartitionCount() {
return newPartitionCount_;
}
public static final int NEWREPLICATIONFACTOR_FIELD_NUMBER = 4;
private int newReplicationFactor_ = 0;
/**
* optional uint32 newReplicationFactor = 4;
* @return Whether the newReplicationFactor field is set.
*/
@java.lang.Override
public boolean hasNewReplicationFactor() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 newReplicationFactor = 4;
* @return The newReplicationFactor.
*/
@java.lang.Override
public int getNewReplicationFactor() {
return newReplicationFactor_;
}
public static final int DRYRUN_FIELD_NUMBER = 5;
private boolean dryRun_ = false;
/**
* bool dryRun = 5;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
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 {
for (int i = 0; i < membersToAdd_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, membersToAdd_.getRaw(i));
}
for (int i = 0; i < membersToRemove_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, membersToRemove_.getRaw(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeUInt32(3, newPartitionCount_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt32(4, newReplicationFactor_);
}
if (dryRun_ != false) {
output.writeBool(5, dryRun_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < membersToAdd_.size(); i++) {
dataSize += computeStringSizeNoTag(membersToAdd_.getRaw(i));
}
size += dataSize;
size += 1 * getMembersToAddList().size();
}
{
int dataSize = 0;
for (int i = 0; i < membersToRemove_.size(); i++) {
dataSize += computeStringSizeNoTag(membersToRemove_.getRaw(i));
}
size += dataSize;
size += 1 * getMembersToRemoveList().size();
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, newPartitionCount_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, newReplicationFactor_);
}
if (dryRun_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, dryRun_);
}
size += getUnknownFields().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.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest)) {
return super.equals(obj);
}
io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest other = (io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest) obj;
if (!getMembersToAddList()
.equals(other.getMembersToAddList())) return false;
if (!getMembersToRemoveList()
.equals(other.getMembersToRemoveList())) return false;
if (hasNewPartitionCount() != other.hasNewPartitionCount()) return false;
if (hasNewPartitionCount()) {
if (getNewPartitionCount()
!= other.getNewPartitionCount()) return false;
}
if (hasNewReplicationFactor() != other.hasNewReplicationFactor()) return false;
if (hasNewReplicationFactor()) {
if (getNewReplicationFactor()
!= other.getNewReplicationFactor()) return false;
}
if (getDryRun()
!= other.getDryRun()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getMembersToAddCount() > 0) {
hash = (37 * hash) + MEMBERSTOADD_FIELD_NUMBER;
hash = (53 * hash) + getMembersToAddList().hashCode();
}
if (getMembersToRemoveCount() > 0) {
hash = (37 * hash) + MEMBERSTOREMOVE_FIELD_NUMBER;
hash = (53 * hash) + getMembersToRemoveList().hashCode();
}
if (hasNewPartitionCount()) {
hash = (37 * hash) + NEWPARTITIONCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getNewPartitionCount();
}
if (hasNewReplicationFactor()) {
hash = (37 * hash) + NEWREPLICATIONFACTOR_FIELD_NUMBER;
hash = (53 * hash) + getNewReplicationFactor();
}
hash = (37 * hash) + DRYRUN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDryRun());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest 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 topology_requests.ClusterPatchRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:topology_requests.ClusterPatchRequest)
io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ClusterPatchRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ClusterPatchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest.Builder.class);
}
// Construct using io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
membersToAdd_ =
com.google.protobuf.LazyStringArrayList.emptyList();
membersToRemove_ =
com.google.protobuf.LazyStringArrayList.emptyList();
newPartitionCount_ = 0;
newReplicationFactor_ = 0;
dryRun_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ClusterPatchRequest_descriptor;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest getDefaultInstanceForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest.getDefaultInstance();
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest build() {
io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest buildPartial() {
io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest result = new io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
membersToAdd_.makeImmutable();
result.membersToAdd_ = membersToAdd_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
membersToRemove_.makeImmutable();
result.membersToRemove_ = membersToRemove_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.newPartitionCount_ = newPartitionCount_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.newReplicationFactor_ = newReplicationFactor_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.dryRun_ = dryRun_;
}
result.bitField0_ |= to_bitField0_;
}
@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.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest) {
return mergeFrom((io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest other) {
if (other == io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest.getDefaultInstance()) return this;
if (!other.membersToAdd_.isEmpty()) {
if (membersToAdd_.isEmpty()) {
membersToAdd_ = other.membersToAdd_;
bitField0_ |= 0x00000001;
} else {
ensureMembersToAddIsMutable();
membersToAdd_.addAll(other.membersToAdd_);
}
onChanged();
}
if (!other.membersToRemove_.isEmpty()) {
if (membersToRemove_.isEmpty()) {
membersToRemove_ = other.membersToRemove_;
bitField0_ |= 0x00000002;
} else {
ensureMembersToRemoveIsMutable();
membersToRemove_.addAll(other.membersToRemove_);
}
onChanged();
}
if (other.hasNewPartitionCount()) {
setNewPartitionCount(other.getNewPartitionCount());
}
if (other.hasNewReplicationFactor()) {
setNewReplicationFactor(other.getNewReplicationFactor());
}
if (other.getDryRun() != false) {
setDryRun(other.getDryRun());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
ensureMembersToAddIsMutable();
membersToAdd_.add(s);
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureMembersToRemoveIsMutable();
membersToRemove_.add(s);
break;
} // case 18
case 24: {
newPartitionCount_ = input.readUInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
newReplicationFactor_ = input.readUInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
dryRun_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList membersToAdd_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureMembersToAddIsMutable() {
if (!membersToAdd_.isModifiable()) {
membersToAdd_ = new com.google.protobuf.LazyStringArrayList(membersToAdd_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated string membersToAdd = 1;
* @return A list containing the membersToAdd.
*/
public com.google.protobuf.ProtocolStringList
getMembersToAddList() {
membersToAdd_.makeImmutable();
return membersToAdd_;
}
/**
* repeated string membersToAdd = 1;
* @return The count of membersToAdd.
*/
public int getMembersToAddCount() {
return membersToAdd_.size();
}
/**
* repeated string membersToAdd = 1;
* @param index The index of the element to return.
* @return The membersToAdd at the given index.
*/
public java.lang.String getMembersToAdd(int index) {
return membersToAdd_.get(index);
}
/**
* repeated string membersToAdd = 1;
* @param index The index of the value to return.
* @return The bytes of the membersToAdd at the given index.
*/
public com.google.protobuf.ByteString
getMembersToAddBytes(int index) {
return membersToAdd_.getByteString(index);
}
/**
* repeated string membersToAdd = 1;
* @param index The index to set the value at.
* @param value The membersToAdd to set.
* @return This builder for chaining.
*/
public Builder setMembersToAdd(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMembersToAddIsMutable();
membersToAdd_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string membersToAdd = 1;
* @param value The membersToAdd to add.
* @return This builder for chaining.
*/
public Builder addMembersToAdd(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMembersToAddIsMutable();
membersToAdd_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string membersToAdd = 1;
* @param values The membersToAdd to add.
* @return This builder for chaining.
*/
public Builder addAllMembersToAdd(
java.lang.Iterable values) {
ensureMembersToAddIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, membersToAdd_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string membersToAdd = 1;
* @return This builder for chaining.
*/
public Builder clearMembersToAdd() {
membersToAdd_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* repeated string membersToAdd = 1;
* @param value The bytes of the membersToAdd to add.
* @return This builder for chaining.
*/
public Builder addMembersToAddBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureMembersToAddIsMutable();
membersToAdd_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList membersToRemove_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureMembersToRemoveIsMutable() {
if (!membersToRemove_.isModifiable()) {
membersToRemove_ = new com.google.protobuf.LazyStringArrayList(membersToRemove_);
}
bitField0_ |= 0x00000002;
}
/**
* repeated string membersToRemove = 2;
* @return A list containing the membersToRemove.
*/
public com.google.protobuf.ProtocolStringList
getMembersToRemoveList() {
membersToRemove_.makeImmutable();
return membersToRemove_;
}
/**
* repeated string membersToRemove = 2;
* @return The count of membersToRemove.
*/
public int getMembersToRemoveCount() {
return membersToRemove_.size();
}
/**
* repeated string membersToRemove = 2;
* @param index The index of the element to return.
* @return The membersToRemove at the given index.
*/
public java.lang.String getMembersToRemove(int index) {
return membersToRemove_.get(index);
}
/**
* repeated string membersToRemove = 2;
* @param index The index of the value to return.
* @return The bytes of the membersToRemove at the given index.
*/
public com.google.protobuf.ByteString
getMembersToRemoveBytes(int index) {
return membersToRemove_.getByteString(index);
}
/**
* repeated string membersToRemove = 2;
* @param index The index to set the value at.
* @param value The membersToRemove to set.
* @return This builder for chaining.
*/
public Builder setMembersToRemove(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMembersToRemoveIsMutable();
membersToRemove_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string membersToRemove = 2;
* @param value The membersToRemove to add.
* @return This builder for chaining.
*/
public Builder addMembersToRemove(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMembersToRemoveIsMutable();
membersToRemove_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string membersToRemove = 2;
* @param values The membersToRemove to add.
* @return This builder for chaining.
*/
public Builder addAllMembersToRemove(
java.lang.Iterable values) {
ensureMembersToRemoveIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, membersToRemove_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string membersToRemove = 2;
* @return This builder for chaining.
*/
public Builder clearMembersToRemove() {
membersToRemove_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
* repeated string membersToRemove = 2;
* @param value The bytes of the membersToRemove to add.
* @return This builder for chaining.
*/
public Builder addMembersToRemoveBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureMembersToRemoveIsMutable();
membersToRemove_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int newPartitionCount_ ;
/**
* optional uint32 newPartitionCount = 3;
* @return Whether the newPartitionCount field is set.
*/
@java.lang.Override
public boolean hasNewPartitionCount() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 newPartitionCount = 3;
* @return The newPartitionCount.
*/
@java.lang.Override
public int getNewPartitionCount() {
return newPartitionCount_;
}
/**
* optional uint32 newPartitionCount = 3;
* @param value The newPartitionCount to set.
* @return This builder for chaining.
*/
public Builder setNewPartitionCount(int value) {
newPartitionCount_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional uint32 newPartitionCount = 3;
* @return This builder for chaining.
*/
public Builder clearNewPartitionCount() {
bitField0_ = (bitField0_ & ~0x00000004);
newPartitionCount_ = 0;
onChanged();
return this;
}
private int newReplicationFactor_ ;
/**
* optional uint32 newReplicationFactor = 4;
* @return Whether the newReplicationFactor field is set.
*/
@java.lang.Override
public boolean hasNewReplicationFactor() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 newReplicationFactor = 4;
* @return The newReplicationFactor.
*/
@java.lang.Override
public int getNewReplicationFactor() {
return newReplicationFactor_;
}
/**
* optional uint32 newReplicationFactor = 4;
* @param value The newReplicationFactor to set.
* @return This builder for chaining.
*/
public Builder setNewReplicationFactor(int value) {
newReplicationFactor_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional uint32 newReplicationFactor = 4;
* @return This builder for chaining.
*/
public Builder clearNewReplicationFactor() {
bitField0_ = (bitField0_ & ~0x00000008);
newReplicationFactor_ = 0;
onChanged();
return this;
}
private boolean dryRun_ ;
/**
* bool dryRun = 5;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
/**
* bool dryRun = 5;
* @param value The dryRun to set.
* @return This builder for chaining.
*/
public Builder setDryRun(boolean value) {
dryRun_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* bool dryRun = 5;
* @return This builder for chaining.
*/
public Builder clearDryRun() {
bitField0_ = (bitField0_ & ~0x00000010);
dryRun_ = false;
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:topology_requests.ClusterPatchRequest)
}
// @@protoc_insertion_point(class_scope:topology_requests.ClusterPatchRequest)
private static final io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest();
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClusterPatchRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.camunda.zeebe.dynamic.config.protocol.Requests.ClusterPatchRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ForceRemoveBrokersRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:topology_requests.ForceRemoveBrokersRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string membersToRemove = 1;
* @return A list containing the membersToRemove.
*/
java.util.List
getMembersToRemoveList();
/**
* repeated string membersToRemove = 1;
* @return The count of membersToRemove.
*/
int getMembersToRemoveCount();
/**
* repeated string membersToRemove = 1;
* @param index The index of the element to return.
* @return The membersToRemove at the given index.
*/
java.lang.String getMembersToRemove(int index);
/**
* repeated string membersToRemove = 1;
* @param index The index of the value to return.
* @return The bytes of the membersToRemove at the given index.
*/
com.google.protobuf.ByteString
getMembersToRemoveBytes(int index);
/**
* bool dryRun = 2;
* @return The dryRun.
*/
boolean getDryRun();
}
/**
* Protobuf type {@code topology_requests.ForceRemoveBrokersRequest}
*/
public static final class ForceRemoveBrokersRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:topology_requests.ForceRemoveBrokersRequest)
ForceRemoveBrokersRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ForceRemoveBrokersRequest.newBuilder() to construct.
private ForceRemoveBrokersRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ForceRemoveBrokersRequest() {
membersToRemove_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ForceRemoveBrokersRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ForceRemoveBrokersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ForceRemoveBrokersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest.Builder.class);
}
public static final int MEMBERSTOREMOVE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList membersToRemove_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string membersToRemove = 1;
* @return A list containing the membersToRemove.
*/
public com.google.protobuf.ProtocolStringList
getMembersToRemoveList() {
return membersToRemove_;
}
/**
* repeated string membersToRemove = 1;
* @return The count of membersToRemove.
*/
public int getMembersToRemoveCount() {
return membersToRemove_.size();
}
/**
* repeated string membersToRemove = 1;
* @param index The index of the element to return.
* @return The membersToRemove at the given index.
*/
public java.lang.String getMembersToRemove(int index) {
return membersToRemove_.get(index);
}
/**
* repeated string membersToRemove = 1;
* @param index The index of the value to return.
* @return The bytes of the membersToRemove at the given index.
*/
public com.google.protobuf.ByteString
getMembersToRemoveBytes(int index) {
return membersToRemove_.getByteString(index);
}
public static final int DRYRUN_FIELD_NUMBER = 2;
private boolean dryRun_ = false;
/**
* bool dryRun = 2;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
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 {
for (int i = 0; i < membersToRemove_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, membersToRemove_.getRaw(i));
}
if (dryRun_ != false) {
output.writeBool(2, dryRun_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < membersToRemove_.size(); i++) {
dataSize += computeStringSizeNoTag(membersToRemove_.getRaw(i));
}
size += dataSize;
size += 1 * getMembersToRemoveList().size();
}
if (dryRun_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, dryRun_);
}
size += getUnknownFields().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.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest)) {
return super.equals(obj);
}
io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest other = (io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest) obj;
if (!getMembersToRemoveList()
.equals(other.getMembersToRemoveList())) return false;
if (getDryRun()
!= other.getDryRun()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getMembersToRemoveCount() > 0) {
hash = (37 * hash) + MEMBERSTOREMOVE_FIELD_NUMBER;
hash = (53 * hash) + getMembersToRemoveList().hashCode();
}
hash = (37 * hash) + DRYRUN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDryRun());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest 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 topology_requests.ForceRemoveBrokersRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:topology_requests.ForceRemoveBrokersRequest)
io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ForceRemoveBrokersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ForceRemoveBrokersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest.Builder.class);
}
// Construct using io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
membersToRemove_ =
com.google.protobuf.LazyStringArrayList.emptyList();
dryRun_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ForceRemoveBrokersRequest_descriptor;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest getDefaultInstanceForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest.getDefaultInstance();
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest build() {
io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest buildPartial() {
io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest result = new io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
membersToRemove_.makeImmutable();
result.membersToRemove_ = membersToRemove_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.dryRun_ = dryRun_;
}
}
@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.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest) {
return mergeFrom((io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest other) {
if (other == io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest.getDefaultInstance()) return this;
if (!other.membersToRemove_.isEmpty()) {
if (membersToRemove_.isEmpty()) {
membersToRemove_ = other.membersToRemove_;
bitField0_ |= 0x00000001;
} else {
ensureMembersToRemoveIsMutable();
membersToRemove_.addAll(other.membersToRemove_);
}
onChanged();
}
if (other.getDryRun() != false) {
setDryRun(other.getDryRun());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
ensureMembersToRemoveIsMutable();
membersToRemove_.add(s);
break;
} // case 10
case 16: {
dryRun_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList membersToRemove_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureMembersToRemoveIsMutable() {
if (!membersToRemove_.isModifiable()) {
membersToRemove_ = new com.google.protobuf.LazyStringArrayList(membersToRemove_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated string membersToRemove = 1;
* @return A list containing the membersToRemove.
*/
public com.google.protobuf.ProtocolStringList
getMembersToRemoveList() {
membersToRemove_.makeImmutable();
return membersToRemove_;
}
/**
* repeated string membersToRemove = 1;
* @return The count of membersToRemove.
*/
public int getMembersToRemoveCount() {
return membersToRemove_.size();
}
/**
* repeated string membersToRemove = 1;
* @param index The index of the element to return.
* @return The membersToRemove at the given index.
*/
public java.lang.String getMembersToRemove(int index) {
return membersToRemove_.get(index);
}
/**
* repeated string membersToRemove = 1;
* @param index The index of the value to return.
* @return The bytes of the membersToRemove at the given index.
*/
public com.google.protobuf.ByteString
getMembersToRemoveBytes(int index) {
return membersToRemove_.getByteString(index);
}
/**
* repeated string membersToRemove = 1;
* @param index The index to set the value at.
* @param value The membersToRemove to set.
* @return This builder for chaining.
*/
public Builder setMembersToRemove(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMembersToRemoveIsMutable();
membersToRemove_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string membersToRemove = 1;
* @param value The membersToRemove to add.
* @return This builder for chaining.
*/
public Builder addMembersToRemove(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMembersToRemoveIsMutable();
membersToRemove_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string membersToRemove = 1;
* @param values The membersToRemove to add.
* @return This builder for chaining.
*/
public Builder addAllMembersToRemove(
java.lang.Iterable values) {
ensureMembersToRemoveIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, membersToRemove_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string membersToRemove = 1;
* @return This builder for chaining.
*/
public Builder clearMembersToRemove() {
membersToRemove_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* repeated string membersToRemove = 1;
* @param value The bytes of the membersToRemove to add.
* @return This builder for chaining.
*/
public Builder addMembersToRemoveBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureMembersToRemoveIsMutable();
membersToRemove_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private boolean dryRun_ ;
/**
* bool dryRun = 2;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
/**
* bool dryRun = 2;
* @param value The dryRun to set.
* @return This builder for chaining.
*/
public Builder setDryRun(boolean value) {
dryRun_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bool dryRun = 2;
* @return This builder for chaining.
*/
public Builder clearDryRun() {
bitField0_ = (bitField0_ & ~0x00000002);
dryRun_ = false;
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:topology_requests.ForceRemoveBrokersRequest)
}
// @@protoc_insertion_point(class_scope:topology_requests.ForceRemoveBrokersRequest)
private static final io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest();
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ForceRemoveBrokersRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.camunda.zeebe.dynamic.config.protocol.Requests.ForceRemoveBrokersRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReassignAllPartitionsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:topology_requests.ReassignAllPartitionsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The ids of the brokers to which all partitions should be re-distributed
*
*
* repeated string memberIds = 1;
* @return A list containing the memberIds.
*/
java.util.List
getMemberIdsList();
/**
*
* The ids of the brokers to which all partitions should be re-distributed
*
*
* repeated string memberIds = 1;
* @return The count of memberIds.
*/
int getMemberIdsCount();
/**
*
* The ids of the brokers to which all partitions should be re-distributed
*
*
* repeated string memberIds = 1;
* @param index The index of the element to return.
* @return The memberIds at the given index.
*/
java.lang.String getMemberIds(int index);
/**
*
* The ids of the brokers to which all partitions should be re-distributed
*
*
* repeated string memberIds = 1;
* @param index The index of the value to return.
* @return The bytes of the memberIds at the given index.
*/
com.google.protobuf.ByteString
getMemberIdsBytes(int index);
/**
* bool dryRun = 2;
* @return The dryRun.
*/
boolean getDryRun();
}
/**
* Protobuf type {@code topology_requests.ReassignAllPartitionsRequest}
*/
public static final class ReassignAllPartitionsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:topology_requests.ReassignAllPartitionsRequest)
ReassignAllPartitionsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReassignAllPartitionsRequest.newBuilder() to construct.
private ReassignAllPartitionsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReassignAllPartitionsRequest() {
memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReassignAllPartitionsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ReassignAllPartitionsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ReassignAllPartitionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest.Builder.class);
}
public static final int MEMBERIDS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* The ids of the brokers to which all partitions should be re-distributed
*
*
* repeated string memberIds = 1;
* @return A list containing the memberIds.
*/
public com.google.protobuf.ProtocolStringList
getMemberIdsList() {
return memberIds_;
}
/**
*
* The ids of the brokers to which all partitions should be re-distributed
*
*
* repeated string memberIds = 1;
* @return The count of memberIds.
*/
public int getMemberIdsCount() {
return memberIds_.size();
}
/**
*
* The ids of the brokers to which all partitions should be re-distributed
*
*
* repeated string memberIds = 1;
* @param index The index of the element to return.
* @return The memberIds at the given index.
*/
public java.lang.String getMemberIds(int index) {
return memberIds_.get(index);
}
/**
*
* The ids of the brokers to which all partitions should be re-distributed
*
*
* repeated string memberIds = 1;
* @param index The index of the value to return.
* @return The bytes of the memberIds at the given index.
*/
public com.google.protobuf.ByteString
getMemberIdsBytes(int index) {
return memberIds_.getByteString(index);
}
public static final int DRYRUN_FIELD_NUMBER = 2;
private boolean dryRun_ = false;
/**
* bool dryRun = 2;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
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 {
for (int i = 0; i < memberIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, memberIds_.getRaw(i));
}
if (dryRun_ != false) {
output.writeBool(2, dryRun_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < memberIds_.size(); i++) {
dataSize += computeStringSizeNoTag(memberIds_.getRaw(i));
}
size += dataSize;
size += 1 * getMemberIdsList().size();
}
if (dryRun_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, dryRun_);
}
size += getUnknownFields().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.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest)) {
return super.equals(obj);
}
io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest other = (io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest) obj;
if (!getMemberIdsList()
.equals(other.getMemberIdsList())) return false;
if (getDryRun()
!= other.getDryRun()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getMemberIdsCount() > 0) {
hash = (37 * hash) + MEMBERIDS_FIELD_NUMBER;
hash = (53 * hash) + getMemberIdsList().hashCode();
}
hash = (37 * hash) + DRYRUN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDryRun());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest 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.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest 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 topology_requests.ReassignAllPartitionsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:topology_requests.ReassignAllPartitionsRequest)
io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ReassignAllPartitionsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ReassignAllPartitionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest.class, io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest.Builder.class);
}
// Construct using io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
dryRun_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.internal_static_topology_requests_ReassignAllPartitionsRequest_descriptor;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest getDefaultInstanceForType() {
return io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest.getDefaultInstance();
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest build() {
io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest buildPartial() {
io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest result = new io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
memberIds_.makeImmutable();
result.memberIds_ = memberIds_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.dryRun_ = dryRun_;
}
}
@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.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest) {
return mergeFrom((io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest other) {
if (other == io.camunda.zeebe.dynamic.config.protocol.Requests.ReassignAllPartitionsRequest.getDefaultInstance()) return this;
if (!other.memberIds_.isEmpty()) {
if (memberIds_.isEmpty()) {
memberIds_ = other.memberIds_;
bitField0_ |= 0x00000001;
} else {
ensureMemberIdsIsMutable();
memberIds_.addAll(other.memberIds_);
}
onChanged();
}
if (other.getDryRun() != false) {
setDryRun(other.getDryRun());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
ensureMemberIdsIsMutable();
memberIds_.add(s);
break;
} // case 10
case 16: {
dryRun_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList memberIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureMemberIdsIsMutable() {
if (!memberIds_.isModifiable()) {
memberIds_ = new com.google.protobuf.LazyStringArrayList(memberIds_);
}
bitField0_ |= 0x00000001;
}
/**
*
* The ids of the brokers to which all partitions should be re-distributed
*
*
* repeated string memberIds = 1;
* @return A list containing the memberIds.
*/
public com.google.protobuf.ProtocolStringList
getMemberIdsList() {
memberIds_.makeImmutable();
return memberIds_;
}
/**
*
* The ids of the brokers to which all partitions should be re-distributed
*
*
* repeated string memberIds = 1;
* @return The count of memberIds.
*/
public int getMemberIdsCount() {
return memberIds_.size();
}
/**
*
* The ids of the brokers to which all partitions should be re-distributed
*
*
* repeated string memberIds = 1;
* @param index The index of the element to return.
* @return The memberIds at the given index.
*/
public java.lang.String getMemberIds(int index) {
return memberIds_.get(index);
}
/**
*
* The ids of the brokers to which all partitions should be re-distributed
*
*
* repeated string memberIds = 1;
* @param index The index of the value to return.
* @return The bytes of the memberIds at the given index.
*/
public com.google.protobuf.ByteString
getMemberIdsBytes(int index) {
return memberIds_.getByteString(index);
}
/**
*
* The ids of the brokers to which all partitions should be re-distributed
*
*
* repeated string memberIds = 1;
* @param index The index to set the value at.
* @param value The memberIds to set.
* @return This builder for chaining.
*/
public Builder setMemberIds(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMemberIdsIsMutable();
memberIds_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The ids of the brokers to which all partitions should be re-distributed
*
*
* repeated string memberIds = 1;
* @param value The memberIds to add.
* @return This builder for chaining.
*/
public Builder addMemberIds(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMemberIdsIsMutable();
memberIds_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The ids of the brokers to which all partitions should be re-distributed
*
*
* repeated string memberIds = 1;
* @param values The memberIds to add.
* @return This builder for chaining.
*/
public Builder addAllMemberIds(
java.lang.Iterable values) {
ensureMemberIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, memberIds_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The ids of the brokers to which all partitions should be re-distributed
*