diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmMember.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmMember.java deleted file mode 100644 index 4c43bc2..0000000 --- a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmMember.java +++ /dev/null @@ -1,624 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: rpc.proto - -package org.eclipse.ecf.provider.etcd3.grpc.api; - -/** - * Protobuf type {@code etcdserverpb.AlarmMember} - */ -public final class AlarmMember extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:etcdserverpb.AlarmMember) - AlarmMemberOrBuilder { -private static final long serialVersionUID = 0L; - // Use AlarmMember.newBuilder() to construct. - private AlarmMember(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private AlarmMember() { - alarm_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AlarmMember(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AlarmMember( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - memberID_ = input.readUInt64(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - alarm_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmMember_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmMember_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.class, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder.class); - } - - public static final int MEMBERID_FIELD_NUMBER = 1; - private long memberID_; - /** - *
- * memberID is the ID of the member associated with the raised alarm. - *- * - *
uint64 memberID = 1;
- * @return The memberID.
- */
- @java.lang.Override
- public long getMemberID() {
- return memberID_;
- }
-
- public static final int ALARM_FIELD_NUMBER = 2;
- private int alarm_;
- /**
- * - * alarm is the type of alarm which has been raised. - *- * - *
.etcdserverpb.AlarmType alarm = 2;
- * @return The enum numeric value on the wire for alarm.
- */
- @java.lang.Override public int getAlarmValue() {
- return alarm_;
- }
- /**
- * - * alarm is the type of alarm which has been raised. - *- * - *
.etcdserverpb.AlarmType alarm = 2;
- * @return The alarm.
- */
- @java.lang.Override public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType getAlarm() {
- @SuppressWarnings("deprecation")
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType result = org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.valueOf(alarm_);
- return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.UNRECOGNIZED : result;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (memberID_ != 0L) {
- output.writeUInt64(1, memberID_);
- }
- if (alarm_ != org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.NONE.getNumber()) {
- output.writeEnum(2, alarm_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (memberID_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(1, memberID_);
- }
- if (alarm_ != org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.NONE.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, alarm_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember other = (org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember) obj;
-
- if (getMemberID()
- != other.getMemberID()) return false;
- if (alarm_ != other.alarm_) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + MEMBERID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getMemberID());
- hash = (37 * hash) + ALARM_FIELD_NUMBER;
- hash = (53 * hash) + alarm_;
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember 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 org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember 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 org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember 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(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember 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 etcdserverpb.AlarmMember}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder- * memberID is the ID of the member associated with the raised alarm. - *- * - *
uint64 memberID = 1;
- * @return The memberID.
- */
- @java.lang.Override
- public long getMemberID() {
- return memberID_;
- }
- /**
- * - * memberID is the ID of the member associated with the raised alarm. - *- * - *
uint64 memberID = 1;
- * @param value The memberID to set.
- * @return This builder for chaining.
- */
- public Builder setMemberID(long value) {
-
- memberID_ = value;
- onChanged();
- return this;
- }
- /**
- * - * memberID is the ID of the member associated with the raised alarm. - *- * - *
uint64 memberID = 1;
- * @return This builder for chaining.
- */
- public Builder clearMemberID() {
-
- memberID_ = 0L;
- onChanged();
- return this;
- }
-
- private int alarm_ = 0;
- /**
- * - * alarm is the type of alarm which has been raised. - *- * - *
.etcdserverpb.AlarmType alarm = 2;
- * @return The enum numeric value on the wire for alarm.
- */
- @java.lang.Override public int getAlarmValue() {
- return alarm_;
- }
- /**
- * - * alarm is the type of alarm which has been raised. - *- * - *
.etcdserverpb.AlarmType alarm = 2;
- * @param value The enum numeric value on the wire for alarm to set.
- * @return This builder for chaining.
- */
- public Builder setAlarmValue(int value) {
-
- alarm_ = value;
- onChanged();
- return this;
- }
- /**
- * - * alarm is the type of alarm which has been raised. - *- * - *
.etcdserverpb.AlarmType alarm = 2;
- * @return The alarm.
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType getAlarm() {
- @SuppressWarnings("deprecation")
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType result = org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.valueOf(alarm_);
- return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.UNRECOGNIZED : result;
- }
- /**
- * - * alarm is the type of alarm which has been raised. - *- * - *
.etcdserverpb.AlarmType alarm = 2;
- * @param value The alarm to set.
- * @return This builder for chaining.
- */
- public Builder setAlarm(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- alarm_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * - * alarm is the type of alarm which has been raised. - *- * - *
.etcdserverpb.AlarmType alarm = 2;
- * @return This builder for chaining.
- */
- public Builder clearAlarm() {
-
- alarm_ = 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:etcdserverpb.AlarmMember)
- }
-
- // @@protoc_insertion_point(class_scope:etcdserverpb.AlarmMember)
- private static final org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember();
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * memberID is the ID of the member associated with the raised alarm. - *- * - *
uint64 memberID = 1;
- * @return The memberID.
- */
- long getMemberID();
-
- /**
- * - * alarm is the type of alarm which has been raised. - *- * - *
.etcdserverpb.AlarmType alarm = 2;
- * @return The enum numeric value on the wire for alarm.
- */
- int getAlarmValue();
- /**
- * - * alarm is the type of alarm which has been raised. - *- * - *
.etcdserverpb.AlarmType alarm = 2;
- * @return The alarm.
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType getAlarm();
-}
diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmRequest.java
deleted file mode 100644
index d46071b..0000000
--- a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmRequest.java
+++ /dev/null
@@ -1,883 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: rpc.proto
-
-package org.eclipse.ecf.provider.etcd3.grpc.api;
-
-/**
- * Protobuf type {@code etcdserverpb.AlarmRequest}
- */
-public final class AlarmRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:etcdserverpb.AlarmRequest)
- AlarmRequestOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use AlarmRequest.newBuilder() to construct.
- private AlarmRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private AlarmRequest() {
- action_ = 0;
- alarm_ = 0;
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new AlarmRequest();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AlarmRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- int rawValue = input.readEnum();
-
- action_ = rawValue;
- break;
- }
- case 16: {
-
- memberID_ = input.readUInt64();
- break;
- }
- case 24: {
- int rawValue = input.readEnum();
-
- alarm_ = rawValue;
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AlarmRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.Builder.class);
- }
-
- /**
- * Protobuf enum {@code etcdserverpb.AlarmRequest.AlarmAction}
- */
- public enum AlarmAction
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * GET = 0;
- */
- GET(0),
- /**
- * ACTIVATE = 1;
- */
- ACTIVATE(1),
- /**
- * DEACTIVATE = 2;
- */
- DEACTIVATE(2),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * GET = 0;
- */
- public static final int GET_VALUE = 0;
- /**
- * ACTIVATE = 1;
- */
- public static final int ACTIVATE_VALUE = 1;
- /**
- * DEACTIVATE = 2;
- */
- public static final int DEACTIVATE_VALUE = 2;
-
-
- 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 AlarmAction 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 AlarmAction forNumber(int value) {
- switch (value) {
- case 0: return GET;
- case 1: return ACTIVATE;
- case 2: return DEACTIVATE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap- * action is the kind of alarm request to issue. The action - * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a - * raised alarm. - *- * - *
.etcdserverpb.AlarmRequest.AlarmAction action = 1;
- * @return The enum numeric value on the wire for action.
- */
- @java.lang.Override public int getActionValue() {
- return action_;
- }
- /**
- * - * action is the kind of alarm request to issue. The action - * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a - * raised alarm. - *- * - *
.etcdserverpb.AlarmRequest.AlarmAction action = 1;
- * @return The action.
- */
- @java.lang.Override public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction getAction() {
- @SuppressWarnings("deprecation")
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction result = org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction.valueOf(action_);
- return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction.UNRECOGNIZED : result;
- }
-
- public static final int MEMBERID_FIELD_NUMBER = 2;
- private long memberID_;
- /**
- * - * memberID is the ID of the member associated with the alarm. If memberID is 0, the - * alarm request covers all members. - *- * - *
uint64 memberID = 2;
- * @return The memberID.
- */
- @java.lang.Override
- public long getMemberID() {
- return memberID_;
- }
-
- public static final int ALARM_FIELD_NUMBER = 3;
- private int alarm_;
- /**
- * - * alarm is the type of alarm to consider for this request. - *- * - *
.etcdserverpb.AlarmType alarm = 3;
- * @return The enum numeric value on the wire for alarm.
- */
- @java.lang.Override public int getAlarmValue() {
- return alarm_;
- }
- /**
- * - * alarm is the type of alarm to consider for this request. - *- * - *
.etcdserverpb.AlarmType alarm = 3;
- * @return The alarm.
- */
- @java.lang.Override public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType getAlarm() {
- @SuppressWarnings("deprecation")
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType result = org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.valueOf(alarm_);
- return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.UNRECOGNIZED : result;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (action_ != org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction.GET.getNumber()) {
- output.writeEnum(1, action_);
- }
- if (memberID_ != 0L) {
- output.writeUInt64(2, memberID_);
- }
- if (alarm_ != org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.NONE.getNumber()) {
- output.writeEnum(3, alarm_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (action_ != org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction.GET.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, action_);
- }
- if (memberID_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(2, memberID_);
- }
- if (alarm_ != org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.NONE.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(3, alarm_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest) obj;
-
- if (action_ != other.action_) return false;
- if (getMemberID()
- != other.getMemberID()) return false;
- if (alarm_ != other.alarm_) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + ACTION_FIELD_NUMBER;
- hash = (53 * hash) + action_;
- hash = (37 * hash) + MEMBERID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getMemberID());
- hash = (37 * hash) + ALARM_FIELD_NUMBER;
- hash = (53 * hash) + alarm_;
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest 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 org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest 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 org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest 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(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest 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 etcdserverpb.AlarmRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder- * action is the kind of alarm request to issue. The action - * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a - * raised alarm. - *- * - *
.etcdserverpb.AlarmRequest.AlarmAction action = 1;
- * @return The enum numeric value on the wire for action.
- */
- @java.lang.Override public int getActionValue() {
- return action_;
- }
- /**
- * - * action is the kind of alarm request to issue. The action - * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a - * raised alarm. - *- * - *
.etcdserverpb.AlarmRequest.AlarmAction action = 1;
- * @param value The enum numeric value on the wire for action to set.
- * @return This builder for chaining.
- */
- public Builder setActionValue(int value) {
-
- action_ = value;
- onChanged();
- return this;
- }
- /**
- * - * action is the kind of alarm request to issue. The action - * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a - * raised alarm. - *- * - *
.etcdserverpb.AlarmRequest.AlarmAction action = 1;
- * @return The action.
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction getAction() {
- @SuppressWarnings("deprecation")
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction result = org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction.valueOf(action_);
- return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction.UNRECOGNIZED : result;
- }
- /**
- * - * action is the kind of alarm request to issue. The action - * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a - * raised alarm. - *- * - *
.etcdserverpb.AlarmRequest.AlarmAction action = 1;
- * @param value The action to set.
- * @return This builder for chaining.
- */
- public Builder setAction(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- action_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * - * action is the kind of alarm request to issue. The action - * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a - * raised alarm. - *- * - *
.etcdserverpb.AlarmRequest.AlarmAction action = 1;
- * @return This builder for chaining.
- */
- public Builder clearAction() {
-
- action_ = 0;
- onChanged();
- return this;
- }
-
- private long memberID_ ;
- /**
- * - * memberID is the ID of the member associated with the alarm. If memberID is 0, the - * alarm request covers all members. - *- * - *
uint64 memberID = 2;
- * @return The memberID.
- */
- @java.lang.Override
- public long getMemberID() {
- return memberID_;
- }
- /**
- * - * memberID is the ID of the member associated with the alarm. If memberID is 0, the - * alarm request covers all members. - *- * - *
uint64 memberID = 2;
- * @param value The memberID to set.
- * @return This builder for chaining.
- */
- public Builder setMemberID(long value) {
-
- memberID_ = value;
- onChanged();
- return this;
- }
- /**
- * - * memberID is the ID of the member associated with the alarm. If memberID is 0, the - * alarm request covers all members. - *- * - *
uint64 memberID = 2;
- * @return This builder for chaining.
- */
- public Builder clearMemberID() {
-
- memberID_ = 0L;
- onChanged();
- return this;
- }
-
- private int alarm_ = 0;
- /**
- * - * alarm is the type of alarm to consider for this request. - *- * - *
.etcdserverpb.AlarmType alarm = 3;
- * @return The enum numeric value on the wire for alarm.
- */
- @java.lang.Override public int getAlarmValue() {
- return alarm_;
- }
- /**
- * - * alarm is the type of alarm to consider for this request. - *- * - *
.etcdserverpb.AlarmType alarm = 3;
- * @param value The enum numeric value on the wire for alarm to set.
- * @return This builder for chaining.
- */
- public Builder setAlarmValue(int value) {
-
- alarm_ = value;
- onChanged();
- return this;
- }
- /**
- * - * alarm is the type of alarm to consider for this request. - *- * - *
.etcdserverpb.AlarmType alarm = 3;
- * @return The alarm.
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType getAlarm() {
- @SuppressWarnings("deprecation")
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType result = org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.valueOf(alarm_);
- return result == null ? org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType.UNRECOGNIZED : result;
- }
- /**
- * - * alarm is the type of alarm to consider for this request. - *- * - *
.etcdserverpb.AlarmType alarm = 3;
- * @param value The alarm to set.
- * @return This builder for chaining.
- */
- public Builder setAlarm(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- alarm_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * - * alarm is the type of alarm to consider for this request. - *- * - *
.etcdserverpb.AlarmType alarm = 3;
- * @return This builder for chaining.
- */
- public Builder clearAlarm() {
-
- alarm_ = 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:etcdserverpb.AlarmRequest)
- }
-
- // @@protoc_insertion_point(class_scope:etcdserverpb.AlarmRequest)
- private static final org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest();
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * action is the kind of alarm request to issue. The action - * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a - * raised alarm. - *- * - *
.etcdserverpb.AlarmRequest.AlarmAction action = 1;
- * @return The enum numeric value on the wire for action.
- */
- int getActionValue();
- /**
- * - * action is the kind of alarm request to issue. The action - * may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a - * raised alarm. - *- * - *
.etcdserverpb.AlarmRequest.AlarmAction action = 1;
- * @return The action.
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmRequest.AlarmAction getAction();
-
- /**
- * - * memberID is the ID of the member associated with the alarm. If memberID is 0, the - * alarm request covers all members. - *- * - *
uint64 memberID = 2;
- * @return The memberID.
- */
- long getMemberID();
-
- /**
- * - * alarm is the type of alarm to consider for this request. - *- * - *
.etcdserverpb.AlarmType alarm = 3;
- * @return The enum numeric value on the wire for alarm.
- */
- int getAlarmValue();
- /**
- * - * alarm is the type of alarm to consider for this request. - *- * - *
.etcdserverpb.AlarmType alarm = 3;
- * @return The alarm.
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmType getAlarm();
-}
diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmResponse.java
deleted file mode 100644
index d9b469e..0000000
--- a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmResponse.java
+++ /dev/null
@@ -1,1050 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: rpc.proto
-
-package org.eclipse.ecf.provider.etcd3.grpc.api;
-
-/**
- * Protobuf type {@code etcdserverpb.AlarmResponse}
- */
-public final class AlarmResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:etcdserverpb.AlarmResponse)
- AlarmResponseOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use AlarmResponse.newBuilder() to construct.
- private AlarmResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private AlarmResponse() {
- alarms_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new AlarmResponse();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AlarmResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null;
- if (header_ != null) {
- subBuilder = header_.toBuilder();
- }
- header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(header_);
- header_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 18: {
- if (!((mutable_bitField0_ & 0x00000001) != 0)) {
- alarms_ = new java.util.ArrayList.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- @java.lang.Override
- public boolean hasHeader() {
- return header_ != null;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() {
- return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() {
- return getHeader();
- }
-
- public static final int ALARMS_FIELD_NUMBER = 2;
- private java.util.List- * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- @java.lang.Override
- public java.util.List- * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- @java.lang.Override
- public java.util.List extends org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMemberOrBuilder>
- getAlarmsOrBuilderList() {
- return alarms_;
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- @java.lang.Override
- public int getAlarmsCount() {
- return alarms_.size();
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember getAlarms(int index) {
- return alarms_.get(index);
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMemberOrBuilder getAlarmsOrBuilder(
- int index) {
- return alarms_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (header_ != null) {
- output.writeMessage(1, getHeader());
- }
- for (int i = 0; i < alarms_.size(); i++) {
- output.writeMessage(2, alarms_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (header_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getHeader());
- }
- for (int i = 0; i < alarms_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, alarms_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse) obj;
-
- if (hasHeader() != other.hasHeader()) return false;
- if (hasHeader()) {
- if (!getHeader()
- .equals(other.getHeader())) return false;
- }
- if (!getAlarmsList()
- .equals(other.getAlarmsList())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasHeader()) {
- hash = (37 * hash) + HEADER_FIELD_NUMBER;
- hash = (53 * hash) + getHeader().hashCode();
- }
- if (getAlarmsCount() > 0) {
- hash = (37 * hash) + ALARMS_FIELD_NUMBER;
- hash = (53 * hash) + getAlarmsList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse 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 org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse 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 org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse 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(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmResponse 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 etcdserverpb.AlarmResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- public boolean hasHeader() {
- return headerBuilder_ != null || header_ != null;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() {
- if (headerBuilder_ == null) {
- return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- } else {
- return headerBuilder_.getMessage();
- }
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) {
- if (headerBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- header_ = value;
- onChanged();
- } else {
- headerBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder setHeader(
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) {
- if (headerBuilder_ == null) {
- header_ = builderForValue.build();
- onChanged();
- } else {
- headerBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) {
- if (headerBuilder_ == null) {
- if (header_ != null) {
- header_ =
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial();
- } else {
- header_ = value;
- }
- onChanged();
- } else {
- headerBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder clearHeader() {
- if (headerBuilder_ == null) {
- header_ = null;
- onChanged();
- } else {
- header_ = null;
- headerBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() {
-
- onChanged();
- return getHeaderFieldBuilder().getBuilder();
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() {
- if (headerBuilder_ != null) {
- return headerBuilder_.getMessageOrBuilder();
- } else {
- return header_ == null ?
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- }
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>
- getHeaderFieldBuilder() {
- if (headerBuilder_ == null) {
- headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>(
- getHeader(),
- getParentForChildren(),
- isClean());
- header_ = null;
- }
- return headerBuilder_;
- }
-
- private java.util.List- * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public java.util.List- * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public int getAlarmsCount() {
- if (alarmsBuilder_ == null) {
- return alarms_.size();
- } else {
- return alarmsBuilder_.getCount();
- }
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember getAlarms(int index) {
- if (alarmsBuilder_ == null) {
- return alarms_.get(index);
- } else {
- return alarmsBuilder_.getMessage(index);
- }
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public Builder setAlarms(
- int index, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember value) {
- if (alarmsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAlarmsIsMutable();
- alarms_.set(index, value);
- onChanged();
- } else {
- alarmsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public Builder setAlarms(
- int index, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder builderForValue) {
- if (alarmsBuilder_ == null) {
- ensureAlarmsIsMutable();
- alarms_.set(index, builderForValue.build());
- onChanged();
- } else {
- alarmsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public Builder addAlarms(org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember value) {
- if (alarmsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAlarmsIsMutable();
- alarms_.add(value);
- onChanged();
- } else {
- alarmsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public Builder addAlarms(
- int index, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember value) {
- if (alarmsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAlarmsIsMutable();
- alarms_.add(index, value);
- onChanged();
- } else {
- alarmsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public Builder addAlarms(
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder builderForValue) {
- if (alarmsBuilder_ == null) {
- ensureAlarmsIsMutable();
- alarms_.add(builderForValue.build());
- onChanged();
- } else {
- alarmsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public Builder addAlarms(
- int index, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder builderForValue) {
- if (alarmsBuilder_ == null) {
- ensureAlarmsIsMutable();
- alarms_.add(index, builderForValue.build());
- onChanged();
- } else {
- alarmsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public Builder addAllAlarms(
- java.lang.Iterable extends org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember> values) {
- if (alarmsBuilder_ == null) {
- ensureAlarmsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, alarms_);
- onChanged();
- } else {
- alarmsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public Builder clearAlarms() {
- if (alarmsBuilder_ == null) {
- alarms_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- alarmsBuilder_.clear();
- }
- return this;
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public Builder removeAlarms(int index) {
- if (alarmsBuilder_ == null) {
- ensureAlarmsIsMutable();
- alarms_.remove(index);
- onChanged();
- } else {
- alarmsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder getAlarmsBuilder(
- int index) {
- return getAlarmsFieldBuilder().getBuilder(index);
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMemberOrBuilder getAlarmsOrBuilder(
- int index) {
- if (alarmsBuilder_ == null) {
- return alarms_.get(index); } else {
- return alarmsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public java.util.List extends org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMemberOrBuilder>
- getAlarmsOrBuilderList() {
- if (alarmsBuilder_ != null) {
- return alarmsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(alarms_);
- }
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder addAlarmsBuilder() {
- return getAlarmsFieldBuilder().addBuilder(
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.getDefaultInstance());
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.Builder addAlarmsBuilder(
- int index) {
- return getAlarmsFieldBuilder().addBuilder(
- index, org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember.getDefaultInstance());
- }
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- public java.util.List.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- boolean hasHeader();
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader();
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder();
-
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- java.util.List- * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMember getAlarms(int index);
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- int getAlarmsCount();
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- java.util.List extends org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMemberOrBuilder>
- getAlarmsOrBuilderList();
- /**
- * - * alarms is a list of alarms associated with the alarm request. - *- * - *
repeated .etcdserverpb.AlarmMember alarms = 2;
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.AlarmMemberOrBuilder getAlarmsOrBuilder(
- int index);
-}
diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmType.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmType.java
deleted file mode 100644
index 631a2e7..0000000
--- a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AlarmType.java
+++ /dev/null
@@ -1,129 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: rpc.proto
-
-package org.eclipse.ecf.provider.etcd3.grpc.api;
-
-/**
- * Protobuf enum {@code etcdserverpb.AlarmType}
- */
-public enum AlarmType
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * - * default, used to query if any alarm is active - *- * - *
NONE = 0;
- */
- NONE(0),
- /**
- * - * space quota is exhausted - *- * - *
NOSPACE = 1;
- */
- NOSPACE(1),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * - * default, used to query if any alarm is active - *- * - *
NONE = 0;
- */
- public static final int NONE_VALUE = 0;
- /**
- * - * space quota is exhausted - *- * - *
NOSPACE = 1;
- */
- public static final int NOSPACE_VALUE = 1;
-
-
- 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 AlarmType 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 AlarmType forNumber(int value) {
- switch (value) {
- case 0: return NONE;
- case 1: return NOSPACE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- @java.lang.Override
- public boolean hasHeader() {
- return header_ != null;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() {
- return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() {
- return getHeader();
- }
-
- 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 (header_ != null) {
- output.writeMessage(1, getHeader());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (header_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getHeader());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse) obj;
-
- if (hasHeader() != other.hasHeader()) return false;
- if (hasHeader()) {
- if (!getHeader()
- .equals(other.getHeader())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasHeader()) {
- hash = (37 * hash) + HEADER_FIELD_NUMBER;
- hash = (53 * hash) + getHeader().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse 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(org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse 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 etcdserverpb.AuthDisableResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- public boolean hasHeader() {
- return headerBuilder_ != null || header_ != null;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() {
- if (headerBuilder_ == null) {
- return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- } else {
- return headerBuilder_.getMessage();
- }
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) {
- if (headerBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- header_ = value;
- onChanged();
- } else {
- headerBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder setHeader(
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) {
- if (headerBuilder_ == null) {
- header_ = builderForValue.build();
- onChanged();
- } else {
- headerBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) {
- if (headerBuilder_ == null) {
- if (header_ != null) {
- header_ =
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial();
- } else {
- header_ = value;
- }
- onChanged();
- } else {
- headerBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder clearHeader() {
- if (headerBuilder_ == null) {
- header_ = null;
- onChanged();
- } else {
- header_ = null;
- headerBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() {
-
- onChanged();
- return getHeaderFieldBuilder().getBuilder();
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() {
- if (headerBuilder_ != null) {
- return headerBuilder_.getMessageOrBuilder();
- } else {
- return header_ == null ?
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- }
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>
- getHeaderFieldBuilder() {
- if (headerBuilder_ == null) {
- headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>(
- getHeader(),
- getParentForChildren(),
- isClean());
- header_ = null;
- }
- return headerBuilder_;
- }
- @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:etcdserverpb.AuthDisableResponse)
- }
-
- // @@protoc_insertion_point(class_scope:etcdserverpb.AuthDisableResponse)
- private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse();
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- boolean hasHeader();
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader();
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder();
-}
diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableRequest.java
deleted file mode 100644
index 911c75a..0000000
--- a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthEnableRequest.java
+++ /dev/null
@@ -1,419 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: rpc.proto
-
-package org.eclipse.ecf.provider.etcd3.grpc.api;
-
-/**
- * Protobuf type {@code etcdserverpb.AuthEnableRequest}
- */
-public final class AuthEnableRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:etcdserverpb.AuthEnableRequest)
- AuthEnableRequestOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use AuthEnableRequest.newBuilder() to construct.
- private AuthEnableRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private AuthEnableRequest() {
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new AuthEnableRequest();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AuthEnableRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthEnableRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthEnableRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest.Builder.class);
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest) obj;
-
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest 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(org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest 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 etcdserverpb.AuthEnableRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- @java.lang.Override
- public boolean hasHeader() {
- return header_ != null;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() {
- return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() {
- return getHeader();
- }
-
- 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 (header_ != null) {
- output.writeMessage(1, getHeader());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (header_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getHeader());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse) obj;
-
- if (hasHeader() != other.hasHeader()) return false;
- if (hasHeader()) {
- if (!getHeader()
- .equals(other.getHeader())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasHeader()) {
- hash = (37 * hash) + HEADER_FIELD_NUMBER;
- hash = (53 * hash) + getHeader().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse 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(org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse 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 etcdserverpb.AuthEnableResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- public boolean hasHeader() {
- return headerBuilder_ != null || header_ != null;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() {
- if (headerBuilder_ == null) {
- return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- } else {
- return headerBuilder_.getMessage();
- }
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) {
- if (headerBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- header_ = value;
- onChanged();
- } else {
- headerBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder setHeader(
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) {
- if (headerBuilder_ == null) {
- header_ = builderForValue.build();
- onChanged();
- } else {
- headerBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) {
- if (headerBuilder_ == null) {
- if (header_ != null) {
- header_ =
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial();
- } else {
- header_ = value;
- }
- onChanged();
- } else {
- headerBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder clearHeader() {
- if (headerBuilder_ == null) {
- header_ = null;
- onChanged();
- } else {
- header_ = null;
- headerBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() {
-
- onChanged();
- return getHeaderFieldBuilder().getBuilder();
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() {
- if (headerBuilder_ != null) {
- return headerBuilder_.getMessageOrBuilder();
- } else {
- return header_ == null ?
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- }
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>
- getHeaderFieldBuilder() {
- if (headerBuilder_ == null) {
- headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>(
- getHeader(),
- getParentForChildren(),
- isClean());
- header_ = null;
- }
- return headerBuilder_;
- }
- @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:etcdserverpb.AuthEnableResponse)
- }
-
- // @@protoc_insertion_point(class_scope:etcdserverpb.AuthEnableResponse)
- private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse();
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- boolean hasHeader();
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader();
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder();
-}
diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthGrpc.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthGrpc.java
deleted file mode 100644
index a26fadd..0000000
--- a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthGrpc.java
+++ /dev/null
@@ -1,1577 +0,0 @@
-package org.eclipse.ecf.provider.etcd3.grpc.api;
-
-import static io.grpc.MethodDescriptor.generateFullMethodName;
-
-/**
- */
-@javax.annotation.Generated(
- value = "by gRPC proto compiler (version 1.39.0)",
- comments = "Source: rpc.proto")
-public final class AuthGrpc {
-
- private AuthGrpc() {}
-
- public static final String SERVICE_NAME = "etcdserverpb.Auth";
-
- // Static method descriptors that strictly reflect the proto.
- private static volatile io.grpc.MethodDescriptor- * AuthEnable enables authentication. - *- */ - public void authEnable(org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest request, - io.grpc.stub.StreamObserver
- * AuthDisable disables authentication. - *- */ - public void authDisable(org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest request, - io.grpc.stub.StreamObserver
- * Authenticate processes an authenticate request. - *- */ - public void authenticate(org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest request, - io.grpc.stub.StreamObserver
- * UserAdd adds a new user. - *- */ - public void userAdd(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest request, - io.grpc.stub.StreamObserver
- * UserGet gets detailed user information. - *- */ - public void userGet(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest request, - io.grpc.stub.StreamObserver
- * UserList gets a list of all users. - *- */ - public void userList(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest request, - io.grpc.stub.StreamObserver
- * UserDelete deletes a specified user. - *- */ - public void userDelete(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest request, - io.grpc.stub.StreamObserver
- * UserChangePassword changes the password of a specified user. - *- */ - public void userChangePassword(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest request, - io.grpc.stub.StreamObserver
- * UserGrant grants a role to a specified user. - *- */ - public void userGrantRole(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest request, - io.grpc.stub.StreamObserver
- * UserRevokeRole revokes a role of specified user. - *- */ - public void userRevokeRole(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest request, - io.grpc.stub.StreamObserver
- * RoleAdd adds a new role. - *- */ - public void roleAdd(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest request, - io.grpc.stub.StreamObserver
- * RoleGet gets detailed role information. - *- */ - public void roleGet(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest request, - io.grpc.stub.StreamObserver
- * RoleList gets lists of all roles. - *- */ - public void roleList(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest request, - io.grpc.stub.StreamObserver
- * RoleDelete deletes a specified role. - *- */ - public void roleDelete(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest request, - io.grpc.stub.StreamObserver
- * RoleGrantPermission grants a permission of a specified key or range to a specified role. - *- */ - public void roleGrantPermission(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest request, - io.grpc.stub.StreamObserver
- * RoleRevokePermission revokes a key or range permission of a specified role. - *- */ - public void roleRevokePermission(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest request, - io.grpc.stub.StreamObserver
- * AuthEnable enables authentication. - *- */ - public void authEnable(org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest request, - io.grpc.stub.StreamObserver
- * AuthDisable disables authentication. - *- */ - public void authDisable(org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest request, - io.grpc.stub.StreamObserver
- * Authenticate processes an authenticate request. - *- */ - public void authenticate(org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest request, - io.grpc.stub.StreamObserver
- * UserAdd adds a new user. - *- */ - public void userAdd(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest request, - io.grpc.stub.StreamObserver
- * UserGet gets detailed user information. - *- */ - public void userGet(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest request, - io.grpc.stub.StreamObserver
- * UserList gets a list of all users. - *- */ - public void userList(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest request, - io.grpc.stub.StreamObserver
- * UserDelete deletes a specified user. - *- */ - public void userDelete(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest request, - io.grpc.stub.StreamObserver
- * UserChangePassword changes the password of a specified user. - *- */ - public void userChangePassword(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest request, - io.grpc.stub.StreamObserver
- * UserGrant grants a role to a specified user. - *- */ - public void userGrantRole(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest request, - io.grpc.stub.StreamObserver
- * UserRevokeRole revokes a role of specified user. - *- */ - public void userRevokeRole(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest request, - io.grpc.stub.StreamObserver
- * RoleAdd adds a new role. - *- */ - public void roleAdd(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest request, - io.grpc.stub.StreamObserver
- * RoleGet gets detailed role information. - *- */ - public void roleGet(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest request, - io.grpc.stub.StreamObserver
- * RoleList gets lists of all roles. - *- */ - public void roleList(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest request, - io.grpc.stub.StreamObserver
- * RoleDelete deletes a specified role. - *- */ - public void roleDelete(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest request, - io.grpc.stub.StreamObserver
- * RoleGrantPermission grants a permission of a specified key or range to a specified role. - *- */ - public void roleGrantPermission(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest request, - io.grpc.stub.StreamObserver
- * RoleRevokePermission revokes a key or range permission of a specified role. - *- */ - public void roleRevokePermission(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest request, - io.grpc.stub.StreamObserver
- * AuthEnable enables authentication. - *- */ - public org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableResponse authEnable(org.eclipse.ecf.provider.etcd3.grpc.api.AuthEnableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAuthEnableMethod(), getCallOptions(), request); - } - - /** - *
- * AuthDisable disables authentication. - *- */ - public org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableResponse authDisable(org.eclipse.ecf.provider.etcd3.grpc.api.AuthDisableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAuthDisableMethod(), getCallOptions(), request); - } - - /** - *
- * Authenticate processes an authenticate request. - *- */ - public org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateResponse authenticate(org.eclipse.ecf.provider.etcd3.grpc.api.AuthenticateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAuthenticateMethod(), getCallOptions(), request); - } - - /** - *
- * UserAdd adds a new user. - *- */ - public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddResponse userAdd(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserAddRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUserAddMethod(), getCallOptions(), request); - } - - /** - *
- * UserGet gets detailed user information. - *- */ - public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetResponse userGet(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUserGetMethod(), getCallOptions(), request); - } - - /** - *
- * UserList gets a list of all users. - *- */ - public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListResponse userList(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUserListMethod(), getCallOptions(), request); - } - - /** - *
- * UserDelete deletes a specified user. - *- */ - public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteResponse userDelete(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserDeleteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUserDeleteMethod(), getCallOptions(), request); - } - - /** - *
- * UserChangePassword changes the password of a specified user. - *- */ - public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordResponse userChangePassword(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserChangePasswordRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUserChangePasswordMethod(), getCallOptions(), request); - } - - /** - *
- * UserGrant grants a role to a specified user. - *- */ - public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleResponse userGrantRole(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserGrantRoleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUserGrantRoleMethod(), getCallOptions(), request); - } - - /** - *
- * UserRevokeRole revokes a role of specified user. - *- */ - public org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleResponse userRevokeRole(org.eclipse.ecf.provider.etcd3.grpc.api.AuthUserRevokeRoleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUserRevokeRoleMethod(), getCallOptions(), request); - } - - /** - *
- * RoleAdd adds a new role. - *- */ - public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse roleAdd(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRoleAddMethod(), getCallOptions(), request); - } - - /** - *
- * RoleGet gets detailed role information. - *- */ - public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse roleGet(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRoleGetMethod(), getCallOptions(), request); - } - - /** - *
- * RoleList gets lists of all roles. - *- */ - public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse roleList(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRoleListMethod(), getCallOptions(), request); - } - - /** - *
- * RoleDelete deletes a specified role. - *- */ - public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse roleDelete(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRoleDeleteMethod(), getCallOptions(), request); - } - - /** - *
- * RoleGrantPermission grants a permission of a specified key or range to a specified role. - *- */ - public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse roleGrantPermission(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRoleGrantPermissionMethod(), getCallOptions(), request); - } - - /** - *
- * RoleRevokePermission revokes a key or range permission of a specified role. - *- */ - public org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionResponse roleRevokePermission(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRoleRevokePermissionMethod(), getCallOptions(), request); - } - } - - /** - */ - public static final class AuthFutureStub extends io.grpc.stub.AbstractFutureStub
- * AuthEnable enables authentication. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * AuthDisable disables authentication. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Authenticate processes an authenticate request. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * UserAdd adds a new user. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * UserGet gets detailed user information. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * UserList gets a list of all users. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * UserDelete deletes a specified user. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * UserChangePassword changes the password of a specified user. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * UserGrant grants a role to a specified user. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * UserRevokeRole revokes a role of specified user. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * RoleAdd adds a new role. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * RoleGet gets detailed role information. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * RoleList gets lists of all roles. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * RoleDelete deletes a specified role. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * RoleGrantPermission grants a permission of a specified key or range to a specified role. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * RoleRevokePermission revokes a key or range permission of a specified role. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * name is the name of the role to add to the authentication system. - *- * - *
string name = 1;
- * @return The name.
- */
- @java.lang.Override
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- name_ = s;
- return s;
- }
- }
- /**
- * - * name is the name of the role to add to the authentication system. - *- * - *
string name = 1;
- * @return The bytes for name.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- 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 (!getNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest) obj;
-
- if (!getName()
- .equals(other.getName())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + NAME_FIELD_NUMBER;
- hash = (53 * hash) + getName().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest 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(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest 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 etcdserverpb.AuthRoleAddRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder- * name is the name of the role to add to the authentication system. - *- * - *
string name = 1;
- * @return The name.
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- name_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * - * name is the name of the role to add to the authentication system. - *- * - *
string name = 1;
- * @return The bytes for name.
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * - * name is the name of the role to add to the authentication system. - *- * - *
string name = 1;
- * @param value The name to set.
- * @return This builder for chaining.
- */
- public Builder setName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- name_ = value;
- onChanged();
- return this;
- }
- /**
- * - * name is the name of the role to add to the authentication system. - *- * - *
string name = 1;
- * @return This builder for chaining.
- */
- public Builder clearName() {
-
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- * - * name is the name of the role to add to the authentication system. - *- * - *
string name = 1;
- * @param value The bytes for name to set.
- * @return This builder for chaining.
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- name_ = value;
- 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:etcdserverpb.AuthRoleAddRequest)
- }
-
- // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleAddRequest)
- private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest();
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * name is the name of the role to add to the authentication system. - *- * - *
string name = 1;
- * @return The name.
- */
- java.lang.String getName();
- /**
- * - * name is the name of the role to add to the authentication system. - *- * - *
string name = 1;
- * @return The bytes for name.
- */
- com.google.protobuf.ByteString
- getNameBytes();
-}
diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddResponse.java
deleted file mode 100644
index 6f811e2..0000000
--- a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleAddResponse.java
+++ /dev/null
@@ -1,607 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: rpc.proto
-
-package org.eclipse.ecf.provider.etcd3.grpc.api;
-
-/**
- * Protobuf type {@code etcdserverpb.AuthRoleAddResponse}
- */
-public final class AuthRoleAddResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleAddResponse)
- AuthRoleAddResponseOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use AuthRoleAddResponse.newBuilder() to construct.
- private AuthRoleAddResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private AuthRoleAddResponse() {
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new AuthRoleAddResponse();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AuthRoleAddResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null;
- if (header_ != null) {
- subBuilder = header_.toBuilder();
- }
- header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(header_);
- header_ = subBuilder.buildPartial();
- }
-
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleAddResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleAddResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse.Builder.class);
- }
-
- public static final int HEADER_FIELD_NUMBER = 1;
- private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_;
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- @java.lang.Override
- public boolean hasHeader() {
- return header_ != null;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() {
- return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() {
- return getHeader();
- }
-
- 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 (header_ != null) {
- output.writeMessage(1, getHeader());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (header_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getHeader());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse) obj;
-
- if (hasHeader() != other.hasHeader()) return false;
- if (hasHeader()) {
- if (!getHeader()
- .equals(other.getHeader())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasHeader()) {
- hash = (37 * hash) + HEADER_FIELD_NUMBER;
- hash = (53 * hash) + getHeader().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse 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(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse 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 etcdserverpb.AuthRoleAddResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- public boolean hasHeader() {
- return headerBuilder_ != null || header_ != null;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() {
- if (headerBuilder_ == null) {
- return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- } else {
- return headerBuilder_.getMessage();
- }
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) {
- if (headerBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- header_ = value;
- onChanged();
- } else {
- headerBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder setHeader(
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) {
- if (headerBuilder_ == null) {
- header_ = builderForValue.build();
- onChanged();
- } else {
- headerBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) {
- if (headerBuilder_ == null) {
- if (header_ != null) {
- header_ =
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial();
- } else {
- header_ = value;
- }
- onChanged();
- } else {
- headerBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder clearHeader() {
- if (headerBuilder_ == null) {
- header_ = null;
- onChanged();
- } else {
- header_ = null;
- headerBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() {
-
- onChanged();
- return getHeaderFieldBuilder().getBuilder();
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() {
- if (headerBuilder_ != null) {
- return headerBuilder_.getMessageOrBuilder();
- } else {
- return header_ == null ?
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- }
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>
- getHeaderFieldBuilder() {
- if (headerBuilder_ == null) {
- headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>(
- getHeader(),
- getParentForChildren(),
- isClean());
- header_ = null;
- }
- return headerBuilder_;
- }
- @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:etcdserverpb.AuthRoleAddResponse)
- }
-
- // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleAddResponse)
- private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse();
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleAddResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- boolean hasHeader();
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader();
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder();
-}
diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteRequest.java
deleted file mode 100644
index d318428..0000000
--- a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteRequest.java
+++ /dev/null
@@ -1,557 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: rpc.proto
-
-package org.eclipse.ecf.provider.etcd3.grpc.api;
-
-/**
- * Protobuf type {@code etcdserverpb.AuthRoleDeleteRequest}
- */
-public final class AuthRoleDeleteRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleDeleteRequest)
- AuthRoleDeleteRequestOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use AuthRoleDeleteRequest.newBuilder() to construct.
- private AuthRoleDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private AuthRoleDeleteRequest() {
- role_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new AuthRoleDeleteRequest();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AuthRoleDeleteRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- java.lang.String s = input.readStringRequireUtf8();
-
- role_ = s;
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleDeleteRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleDeleteRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest.Builder.class);
- }
-
- public static final int ROLE_FIELD_NUMBER = 1;
- private volatile java.lang.Object role_;
- /**
- * string role = 1;
- * @return The role.
- */
- @java.lang.Override
- public java.lang.String getRole() {
- java.lang.Object ref = role_;
- 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();
- role_ = s;
- return s;
- }
- }
- /**
- * string role = 1;
- * @return The bytes for role.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRoleBytes() {
- java.lang.Object ref = role_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- role_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- 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 (!getRoleBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getRoleBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest) obj;
-
- if (!getRole()
- .equals(other.getRole())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + ROLE_FIELD_NUMBER;
- hash = (53 * hash) + getRole().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest 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(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest 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 etcdserverpb.AuthRoleDeleteRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builderstring role = 1;
- * @return The role.
- */
- public java.lang.String getRole() {
- java.lang.Object ref = role_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- role_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string role = 1;
- * @return The bytes for role.
- */
- public com.google.protobuf.ByteString
- getRoleBytes() {
- java.lang.Object ref = role_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- role_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string role = 1;
- * @param value The role to set.
- * @return This builder for chaining.
- */
- public Builder setRole(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- role_ = value;
- onChanged();
- return this;
- }
- /**
- * string role = 1;
- * @return This builder for chaining.
- */
- public Builder clearRole() {
-
- role_ = getDefaultInstance().getRole();
- onChanged();
- return this;
- }
- /**
- * string role = 1;
- * @param value The bytes for role to set.
- * @return This builder for chaining.
- */
- public Builder setRoleBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- role_ = value;
- 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:etcdserverpb.AuthRoleDeleteRequest)
- }
-
- // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleDeleteRequest)
- private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest();
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parserstring role = 1;
- * @return The role.
- */
- java.lang.String getRole();
- /**
- * string role = 1;
- * @return The bytes for role.
- */
- com.google.protobuf.ByteString
- getRoleBytes();
-}
diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteResponse.java
deleted file mode 100644
index 13f7295..0000000
--- a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleDeleteResponse.java
+++ /dev/null
@@ -1,607 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: rpc.proto
-
-package org.eclipse.ecf.provider.etcd3.grpc.api;
-
-/**
- * Protobuf type {@code etcdserverpb.AuthRoleDeleteResponse}
- */
-public final class AuthRoleDeleteResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleDeleteResponse)
- AuthRoleDeleteResponseOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use AuthRoleDeleteResponse.newBuilder() to construct.
- private AuthRoleDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private AuthRoleDeleteResponse() {
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new AuthRoleDeleteResponse();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AuthRoleDeleteResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null;
- if (header_ != null) {
- subBuilder = header_.toBuilder();
- }
- header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(header_);
- header_ = subBuilder.buildPartial();
- }
-
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleDeleteResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleDeleteResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse.Builder.class);
- }
-
- public static final int HEADER_FIELD_NUMBER = 1;
- private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_;
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- @java.lang.Override
- public boolean hasHeader() {
- return header_ != null;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() {
- return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() {
- return getHeader();
- }
-
- 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 (header_ != null) {
- output.writeMessage(1, getHeader());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (header_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getHeader());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse) obj;
-
- if (hasHeader() != other.hasHeader()) return false;
- if (hasHeader()) {
- if (!getHeader()
- .equals(other.getHeader())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasHeader()) {
- hash = (37 * hash) + HEADER_FIELD_NUMBER;
- hash = (53 * hash) + getHeader().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse 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(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse 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 etcdserverpb.AuthRoleDeleteResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- public boolean hasHeader() {
- return headerBuilder_ != null || header_ != null;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() {
- if (headerBuilder_ == null) {
- return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- } else {
- return headerBuilder_.getMessage();
- }
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) {
- if (headerBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- header_ = value;
- onChanged();
- } else {
- headerBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder setHeader(
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) {
- if (headerBuilder_ == null) {
- header_ = builderForValue.build();
- onChanged();
- } else {
- headerBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) {
- if (headerBuilder_ == null) {
- if (header_ != null) {
- header_ =
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial();
- } else {
- header_ = value;
- }
- onChanged();
- } else {
- headerBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder clearHeader() {
- if (headerBuilder_ == null) {
- header_ = null;
- onChanged();
- } else {
- header_ = null;
- headerBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() {
-
- onChanged();
- return getHeaderFieldBuilder().getBuilder();
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() {
- if (headerBuilder_ != null) {
- return headerBuilder_.getMessageOrBuilder();
- } else {
- return header_ == null ?
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- }
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>
- getHeaderFieldBuilder() {
- if (headerBuilder_ == null) {
- headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>(
- getHeader(),
- getParentForChildren(),
- isClean());
- header_ = null;
- }
- return headerBuilder_;
- }
- @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:etcdserverpb.AuthRoleDeleteResponse)
- }
-
- // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleDeleteResponse)
- private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse();
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleDeleteResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- boolean hasHeader();
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader();
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder();
-}
diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetRequest.java
deleted file mode 100644
index 043c737..0000000
--- a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetRequest.java
+++ /dev/null
@@ -1,557 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: rpc.proto
-
-package org.eclipse.ecf.provider.etcd3.grpc.api;
-
-/**
- * Protobuf type {@code etcdserverpb.AuthRoleGetRequest}
- */
-public final class AuthRoleGetRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleGetRequest)
- AuthRoleGetRequestOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use AuthRoleGetRequest.newBuilder() to construct.
- private AuthRoleGetRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private AuthRoleGetRequest() {
- role_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new AuthRoleGetRequest();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AuthRoleGetRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- java.lang.String s = input.readStringRequireUtf8();
-
- role_ = s;
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGetRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGetRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest.Builder.class);
- }
-
- public static final int ROLE_FIELD_NUMBER = 1;
- private volatile java.lang.Object role_;
- /**
- * string role = 1;
- * @return The role.
- */
- @java.lang.Override
- public java.lang.String getRole() {
- java.lang.Object ref = role_;
- 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();
- role_ = s;
- return s;
- }
- }
- /**
- * string role = 1;
- * @return The bytes for role.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRoleBytes() {
- java.lang.Object ref = role_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- role_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- 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 (!getRoleBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getRoleBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest) obj;
-
- if (!getRole()
- .equals(other.getRole())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + ROLE_FIELD_NUMBER;
- hash = (53 * hash) + getRole().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest 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(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest 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 etcdserverpb.AuthRoleGetRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builderstring role = 1;
- * @return The role.
- */
- public java.lang.String getRole() {
- java.lang.Object ref = role_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- role_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string role = 1;
- * @return The bytes for role.
- */
- public com.google.protobuf.ByteString
- getRoleBytes() {
- java.lang.Object ref = role_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- role_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string role = 1;
- * @param value The role to set.
- * @return This builder for chaining.
- */
- public Builder setRole(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- role_ = value;
- onChanged();
- return this;
- }
- /**
- * string role = 1;
- * @return This builder for chaining.
- */
- public Builder clearRole() {
-
- role_ = getDefaultInstance().getRole();
- onChanged();
- return this;
- }
- /**
- * string role = 1;
- * @param value The bytes for role to set.
- * @return This builder for chaining.
- */
- public Builder setRoleBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- role_ = value;
- 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:etcdserverpb.AuthRoleGetRequest)
- }
-
- // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleGetRequest)
- private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest();
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parserstring role = 1;
- * @return The role.
- */
- java.lang.String getRole();
- /**
- * string role = 1;
- * @return The bytes for role.
- */
- com.google.protobuf.ByteString
- getRoleBytes();
-}
diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetResponse.java
deleted file mode 100644
index d94137a..0000000
--- a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGetResponse.java
+++ /dev/null
@@ -1,958 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: rpc.proto
-
-package org.eclipse.ecf.provider.etcd3.grpc.api;
-
-/**
- * Protobuf type {@code etcdserverpb.AuthRoleGetResponse}
- */
-public final class AuthRoleGetResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleGetResponse)
- AuthRoleGetResponseOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use AuthRoleGetResponse.newBuilder() to construct.
- private AuthRoleGetResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private AuthRoleGetResponse() {
- perm_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new AuthRoleGetResponse();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AuthRoleGetResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null;
- if (header_ != null) {
- subBuilder = header_.toBuilder();
- }
- header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(header_);
- header_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 18: {
- if (!((mutable_bitField0_ & 0x00000001) != 0)) {
- perm_ = new java.util.ArrayList.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- @java.lang.Override
- public boolean hasHeader() {
- return header_ != null;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() {
- return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() {
- return getHeader();
- }
-
- public static final int PERM_FIELD_NUMBER = 2;
- private java.util.Listrepeated .authpb.Permission perm = 2;
- */
- @java.lang.Override
- public java.util.Listrepeated .authpb.Permission perm = 2;
- */
- @java.lang.Override
- public java.util.List extends org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder>
- getPermOrBuilderList() {
- return perm_;
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- @java.lang.Override
- public int getPermCount() {
- return perm_.size();
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getPerm(int index) {
- return perm_.get(index);
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder getPermOrBuilder(
- int index) {
- return perm_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (header_ != null) {
- output.writeMessage(1, getHeader());
- }
- for (int i = 0; i < perm_.size(); i++) {
- output.writeMessage(2, perm_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (header_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getHeader());
- }
- for (int i = 0; i < perm_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, perm_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse) obj;
-
- if (hasHeader() != other.hasHeader()) return false;
- if (hasHeader()) {
- if (!getHeader()
- .equals(other.getHeader())) return false;
- }
- if (!getPermList()
- .equals(other.getPermList())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasHeader()) {
- hash = (37 * hash) + HEADER_FIELD_NUMBER;
- hash = (53 * hash) + getHeader().hashCode();
- }
- if (getPermCount() > 0) {
- hash = (37 * hash) + PERM_FIELD_NUMBER;
- hash = (53 * hash) + getPermList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse 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(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGetResponse 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 etcdserverpb.AuthRoleGetResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- public boolean hasHeader() {
- return headerBuilder_ != null || header_ != null;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() {
- if (headerBuilder_ == null) {
- return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- } else {
- return headerBuilder_.getMessage();
- }
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) {
- if (headerBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- header_ = value;
- onChanged();
- } else {
- headerBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder setHeader(
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) {
- if (headerBuilder_ == null) {
- header_ = builderForValue.build();
- onChanged();
- } else {
- headerBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) {
- if (headerBuilder_ == null) {
- if (header_ != null) {
- header_ =
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial();
- } else {
- header_ = value;
- }
- onChanged();
- } else {
- headerBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder clearHeader() {
- if (headerBuilder_ == null) {
- header_ = null;
- onChanged();
- } else {
- header_ = null;
- headerBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() {
-
- onChanged();
- return getHeaderFieldBuilder().getBuilder();
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() {
- if (headerBuilder_ != null) {
- return headerBuilder_.getMessageOrBuilder();
- } else {
- return header_ == null ?
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- }
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>
- getHeaderFieldBuilder() {
- if (headerBuilder_ == null) {
- headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>(
- getHeader(),
- getParentForChildren(),
- isClean());
- header_ = null;
- }
- return headerBuilder_;
- }
-
- private java.util.Listrepeated .authpb.Permission perm = 2;
- */
- public java.util.Listrepeated .authpb.Permission perm = 2;
- */
- public int getPermCount() {
- if (permBuilder_ == null) {
- return perm_.size();
- } else {
- return permBuilder_.getCount();
- }
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getPerm(int index) {
- if (permBuilder_ == null) {
- return perm_.get(index);
- } else {
- return permBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- public Builder setPerm(
- int index, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission value) {
- if (permBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermIsMutable();
- perm_.set(index, value);
- onChanged();
- } else {
- permBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- public Builder setPerm(
- int index, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder builderForValue) {
- if (permBuilder_ == null) {
- ensurePermIsMutable();
- perm_.set(index, builderForValue.build());
- onChanged();
- } else {
- permBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- public Builder addPerm(org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission value) {
- if (permBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermIsMutable();
- perm_.add(value);
- onChanged();
- } else {
- permBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- public Builder addPerm(
- int index, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission value) {
- if (permBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermIsMutable();
- perm_.add(index, value);
- onChanged();
- } else {
- permBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- public Builder addPerm(
- org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder builderForValue) {
- if (permBuilder_ == null) {
- ensurePermIsMutable();
- perm_.add(builderForValue.build());
- onChanged();
- } else {
- permBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- public Builder addPerm(
- int index, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder builderForValue) {
- if (permBuilder_ == null) {
- ensurePermIsMutable();
- perm_.add(index, builderForValue.build());
- onChanged();
- } else {
- permBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- public Builder addAllPerm(
- java.lang.Iterable extends org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission> values) {
- if (permBuilder_ == null) {
- ensurePermIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, perm_);
- onChanged();
- } else {
- permBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- public Builder clearPerm() {
- if (permBuilder_ == null) {
- perm_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- permBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- public Builder removePerm(int index) {
- if (permBuilder_ == null) {
- ensurePermIsMutable();
- perm_.remove(index);
- onChanged();
- } else {
- permBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder getPermBuilder(
- int index) {
- return getPermFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder getPermOrBuilder(
- int index) {
- if (permBuilder_ == null) {
- return perm_.get(index); } else {
- return permBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- public java.util.List extends org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder>
- getPermOrBuilderList() {
- if (permBuilder_ != null) {
- return permBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(perm_);
- }
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder addPermBuilder() {
- return getPermFieldBuilder().addBuilder(
- org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.getDefaultInstance());
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder addPermBuilder(
- int index) {
- return getPermFieldBuilder().addBuilder(
- index, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.getDefaultInstance());
- }
- /**
- * repeated .authpb.Permission perm = 2;
- */
- public java.util.List.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- boolean hasHeader();
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader();
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder();
-
- /**
- * repeated .authpb.Permission perm = 2;
- */
- java.util.Listrepeated .authpb.Permission perm = 2;
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getPerm(int index);
- /**
- * repeated .authpb.Permission perm = 2;
- */
- int getPermCount();
- /**
- * repeated .authpb.Permission perm = 2;
- */
- java.util.List extends org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder>
- getPermOrBuilderList();
- /**
- * repeated .authpb.Permission perm = 2;
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder getPermOrBuilder(
- int index);
-}
diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionRequest.java
deleted file mode 100644
index 8959d6e..0000000
--- a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionRequest.java
+++ /dev/null
@@ -1,821 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: rpc.proto
-
-package org.eclipse.ecf.provider.etcd3.grpc.api;
-
-/**
- * Protobuf type {@code etcdserverpb.AuthRoleGrantPermissionRequest}
- */
-public final class AuthRoleGrantPermissionRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleGrantPermissionRequest)
- AuthRoleGrantPermissionRequestOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use AuthRoleGrantPermissionRequest.newBuilder() to construct.
- private AuthRoleGrantPermissionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private AuthRoleGrantPermissionRequest() {
- name_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new AuthRoleGrantPermissionRequest();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AuthRoleGrantPermissionRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- java.lang.String s = input.readStringRequireUtf8();
-
- name_ = s;
- break;
- }
- case 18: {
- org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder subBuilder = null;
- if (perm_ != null) {
- subBuilder = perm_.toBuilder();
- }
- perm_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(perm_);
- perm_ = subBuilder.buildPartial();
- }
-
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGrantPermissionRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest.Builder.class);
- }
-
- public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
- /**
- * - * name is the name of the role which will be granted the permission. - *- * - *
string name = 1;
- * @return The name.
- */
- @java.lang.Override
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- name_ = s;
- return s;
- }
- }
- /**
- * - * name is the name of the role which will be granted the permission. - *- * - *
string name = 1;
- * @return The bytes for name.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int PERM_FIELD_NUMBER = 2;
- private org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission perm_;
- /**
- * - * perm is the permission to grant to the role. - *- * - *
.authpb.Permission perm = 2;
- * @return Whether the perm field is set.
- */
- @java.lang.Override
- public boolean hasPerm() {
- return perm_ != null;
- }
- /**
- * - * perm is the permission to grant to the role. - *- * - *
.authpb.Permission perm = 2;
- * @return The perm.
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getPerm() {
- return perm_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.getDefaultInstance() : perm_;
- }
- /**
- * - * perm is the permission to grant to the role. - *- * - *
.authpb.Permission perm = 2;
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder getPermOrBuilder() {
- return getPerm();
- }
-
- 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 (!getNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
- }
- if (perm_ != null) {
- output.writeMessage(2, getPerm());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
- }
- if (perm_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, getPerm());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest) obj;
-
- if (!getName()
- .equals(other.getName())) return false;
- if (hasPerm() != other.hasPerm()) return false;
- if (hasPerm()) {
- if (!getPerm()
- .equals(other.getPerm())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + NAME_FIELD_NUMBER;
- hash = (53 * hash) + getName().hashCode();
- if (hasPerm()) {
- hash = (37 * hash) + PERM_FIELD_NUMBER;
- hash = (53 * hash) + getPerm().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest 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(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest 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 etcdserverpb.AuthRoleGrantPermissionRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder- * name is the name of the role which will be granted the permission. - *- * - *
string name = 1;
- * @return The name.
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- name_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * - * name is the name of the role which will be granted the permission. - *- * - *
string name = 1;
- * @return The bytes for name.
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * - * name is the name of the role which will be granted the permission. - *- * - *
string name = 1;
- * @param value The name to set.
- * @return This builder for chaining.
- */
- public Builder setName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- name_ = value;
- onChanged();
- return this;
- }
- /**
- * - * name is the name of the role which will be granted the permission. - *- * - *
string name = 1;
- * @return This builder for chaining.
- */
- public Builder clearName() {
-
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- * - * name is the name of the role which will be granted the permission. - *- * - *
string name = 1;
- * @param value The bytes for name to set.
- * @return This builder for chaining.
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- name_ = value;
- onChanged();
- return this;
- }
-
- private org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission perm_;
- private com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder> permBuilder_;
- /**
- * - * perm is the permission to grant to the role. - *- * - *
.authpb.Permission perm = 2;
- * @return Whether the perm field is set.
- */
- public boolean hasPerm() {
- return permBuilder_ != null || perm_ != null;
- }
- /**
- * - * perm is the permission to grant to the role. - *- * - *
.authpb.Permission perm = 2;
- * @return The perm.
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getPerm() {
- if (permBuilder_ == null) {
- return perm_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.getDefaultInstance() : perm_;
- } else {
- return permBuilder_.getMessage();
- }
- }
- /**
- * - * perm is the permission to grant to the role. - *- * - *
.authpb.Permission perm = 2;
- */
- public Builder setPerm(org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission value) {
- if (permBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- perm_ = value;
- onChanged();
- } else {
- permBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * perm is the permission to grant to the role. - *- * - *
.authpb.Permission perm = 2;
- */
- public Builder setPerm(
- org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder builderForValue) {
- if (permBuilder_ == null) {
- perm_ = builderForValue.build();
- onChanged();
- } else {
- permBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * perm is the permission to grant to the role. - *- * - *
.authpb.Permission perm = 2;
- */
- public Builder mergePerm(org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission value) {
- if (permBuilder_ == null) {
- if (perm_ != null) {
- perm_ =
- org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.newBuilder(perm_).mergeFrom(value).buildPartial();
- } else {
- perm_ = value;
- }
- onChanged();
- } else {
- permBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * perm is the permission to grant to the role. - *- * - *
.authpb.Permission perm = 2;
- */
- public Builder clearPerm() {
- if (permBuilder_ == null) {
- perm_ = null;
- onChanged();
- } else {
- perm_ = null;
- permBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * perm is the permission to grant to the role. - *- * - *
.authpb.Permission perm = 2;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder getPermBuilder() {
-
- onChanged();
- return getPermFieldBuilder().getBuilder();
- }
- /**
- * - * perm is the permission to grant to the role. - *- * - *
.authpb.Permission perm = 2;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder getPermOrBuilder() {
- if (permBuilder_ != null) {
- return permBuilder_.getMessageOrBuilder();
- } else {
- return perm_ == null ?
- org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.getDefaultInstance() : perm_;
- }
- }
- /**
- * - * perm is the permission to grant to the role. - *- * - *
.authpb.Permission perm = 2;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder>
- getPermFieldBuilder() {
- if (permBuilder_ == null) {
- permBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission, org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder>(
- getPerm(),
- getParentForChildren(),
- isClean());
- perm_ = null;
- }
- return permBuilder_;
- }
- @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:etcdserverpb.AuthRoleGrantPermissionRequest)
- }
-
- // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleGrantPermissionRequest)
- private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest();
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * name is the name of the role which will be granted the permission. - *- * - *
string name = 1;
- * @return The name.
- */
- java.lang.String getName();
- /**
- * - * name is the name of the role which will be granted the permission. - *- * - *
string name = 1;
- * @return The bytes for name.
- */
- com.google.protobuf.ByteString
- getNameBytes();
-
- /**
- * - * perm is the permission to grant to the role. - *- * - *
.authpb.Permission perm = 2;
- * @return Whether the perm field is set.
- */
- boolean hasPerm();
- /**
- * - * perm is the permission to grant to the role. - *- * - *
.authpb.Permission perm = 2;
- * @return The perm.
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.auth.Permission getPerm();
- /**
- * - * perm is the permission to grant to the role. - *- * - *
.authpb.Permission perm = 2;
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.auth.PermissionOrBuilder getPermOrBuilder();
-}
diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionResponse.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionResponse.java
deleted file mode 100644
index b22820e..0000000
--- a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleGrantPermissionResponse.java
+++ /dev/null
@@ -1,607 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: rpc.proto
-
-package org.eclipse.ecf.provider.etcd3.grpc.api;
-
-/**
- * Protobuf type {@code etcdserverpb.AuthRoleGrantPermissionResponse}
- */
-public final class AuthRoleGrantPermissionResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleGrantPermissionResponse)
- AuthRoleGrantPermissionResponseOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use AuthRoleGrantPermissionResponse.newBuilder() to construct.
- private AuthRoleGrantPermissionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private AuthRoleGrantPermissionResponse() {
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new AuthRoleGrantPermissionResponse();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AuthRoleGrantPermissionResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder subBuilder = null;
- if (header_ != null) {
- subBuilder = header_.toBuilder();
- }
- header_ = input.readMessage(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(header_);
- header_ = subBuilder.buildPartial();
- }
-
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleGrantPermissionResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse.Builder.class);
- }
-
- public static final int HEADER_FIELD_NUMBER = 1;
- private org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader header_;
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- @java.lang.Override
- public boolean hasHeader() {
- return header_ != null;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() {
- return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() {
- return getHeader();
- }
-
- 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 (header_ != null) {
- output.writeMessage(1, getHeader());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (header_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getHeader());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse) obj;
-
- if (hasHeader() != other.hasHeader()) return false;
- if (hasHeader()) {
- if (!getHeader()
- .equals(other.getHeader())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasHeader()) {
- hash = (37 * hash) + HEADER_FIELD_NUMBER;
- hash = (53 * hash) + getHeader().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse 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(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse 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 etcdserverpb.AuthRoleGrantPermissionResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- public boolean hasHeader() {
- return headerBuilder_ != null || header_ != null;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() {
- if (headerBuilder_ == null) {
- return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- } else {
- return headerBuilder_.getMessage();
- }
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) {
- if (headerBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- header_ = value;
- onChanged();
- } else {
- headerBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder setHeader(
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) {
- if (headerBuilder_ == null) {
- header_ = builderForValue.build();
- onChanged();
- } else {
- headerBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) {
- if (headerBuilder_ == null) {
- if (header_ != null) {
- header_ =
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial();
- } else {
- header_ = value;
- }
- onChanged();
- } else {
- headerBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder clearHeader() {
- if (headerBuilder_ == null) {
- header_ = null;
- onChanged();
- } else {
- header_ = null;
- headerBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() {
-
- onChanged();
- return getHeaderFieldBuilder().getBuilder();
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() {
- if (headerBuilder_ != null) {
- return headerBuilder_.getMessageOrBuilder();
- } else {
- return header_ == null ?
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- }
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>
- getHeaderFieldBuilder() {
- if (headerBuilder_ == null) {
- headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>(
- getHeader(),
- getParentForChildren(),
- isClean());
- header_ = null;
- }
- return headerBuilder_;
- }
- @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:etcdserverpb.AuthRoleGrantPermissionResponse)
- }
-
- // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleGrantPermissionResponse)
- private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse();
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleGrantPermissionResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- boolean hasHeader();
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader();
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder();
-}
diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListRequest.java
deleted file mode 100644
index 6b83c9e..0000000
--- a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleListRequest.java
+++ /dev/null
@@ -1,419 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: rpc.proto
-
-package org.eclipse.ecf.provider.etcd3.grpc.api;
-
-/**
- * Protobuf type {@code etcdserverpb.AuthRoleListRequest}
- */
-public final class AuthRoleListRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleListRequest)
- AuthRoleListRequestOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use AuthRoleListRequest.newBuilder() to construct.
- private AuthRoleListRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private AuthRoleListRequest() {
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new AuthRoleListRequest();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AuthRoleListRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleListRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleListRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest.Builder.class);
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest) obj;
-
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest 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(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListRequest 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 etcdserverpb.AuthRoleListRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- @java.lang.Override
- public boolean hasHeader() {
- return header_ != null;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() {
- return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- @java.lang.Override
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() {
- return getHeader();
- }
-
- public static final int ROLES_FIELD_NUMBER = 2;
- private com.google.protobuf.LazyStringList roles_;
- /**
- * repeated string roles = 2;
- * @return A list containing the roles.
- */
- public com.google.protobuf.ProtocolStringList
- getRolesList() {
- return roles_;
- }
- /**
- * repeated string roles = 2;
- * @return The count of roles.
- */
- public int getRolesCount() {
- return roles_.size();
- }
- /**
- * repeated string roles = 2;
- * @param index The index of the element to return.
- * @return The roles at the given index.
- */
- public java.lang.String getRoles(int index) {
- return roles_.get(index);
- }
- /**
- * repeated string roles = 2;
- * @param index The index of the value to return.
- * @return The bytes of the roles at the given index.
- */
- public com.google.protobuf.ByteString
- getRolesBytes(int index) {
- return roles_.getByteString(index);
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (header_ != null) {
- output.writeMessage(1, getHeader());
- }
- for (int i = 0; i < roles_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, roles_.getRaw(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (header_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getHeader());
- }
- {
- int dataSize = 0;
- for (int i = 0; i < roles_.size(); i++) {
- dataSize += computeStringSizeNoTag(roles_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getRolesList().size();
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse) obj;
-
- if (hasHeader() != other.hasHeader()) return false;
- if (hasHeader()) {
- if (!getHeader()
- .equals(other.getHeader())) return false;
- }
- if (!getRolesList()
- .equals(other.getRolesList())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasHeader()) {
- hash = (37 * hash) + HEADER_FIELD_NUMBER;
- hash = (53 * hash) + getHeader().hashCode();
- }
- if (getRolesCount() > 0) {
- hash = (37 * hash) + ROLES_FIELD_NUMBER;
- hash = (53 * hash) + getRolesList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse 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(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse 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 etcdserverpb.AuthRoleListResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- public boolean hasHeader() {
- return headerBuilder_ != null || header_ != null;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader() {
- if (headerBuilder_ == null) {
- return header_ == null ? org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- } else {
- return headerBuilder_.getMessage();
- }
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder setHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) {
- if (headerBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- header_ = value;
- onChanged();
- } else {
- headerBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder setHeader(
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder builderForValue) {
- if (headerBuilder_ == null) {
- header_ = builderForValue.build();
- onChanged();
- } else {
- headerBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder mergeHeader(org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader value) {
- if (headerBuilder_ == null) {
- if (header_ != null) {
- header_ =
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial();
- } else {
- header_ = value;
- }
- onChanged();
- } else {
- headerBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public Builder clearHeader() {
- if (headerBuilder_ == null) {
- header_ = null;
- onChanged();
- } else {
- header_ = null;
- headerBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder getHeaderBuilder() {
-
- onChanged();
- return getHeaderFieldBuilder().getBuilder();
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- public org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder() {
- if (headerBuilder_ != null) {
- return headerBuilder_.getMessageOrBuilder();
- } else {
- return header_ == null ?
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.getDefaultInstance() : header_;
- }
- }
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>
- getHeaderFieldBuilder() {
- if (headerBuilder_ == null) {
- headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader.Builder, org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder>(
- getHeader(),
- getParentForChildren(),
- isClean());
- header_ = null;
- }
- return headerBuilder_;
- }
-
- private com.google.protobuf.LazyStringList roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- private void ensureRolesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
- roles_ = new com.google.protobuf.LazyStringArrayList(roles_);
- bitField0_ |= 0x00000001;
- }
- }
- /**
- * repeated string roles = 2;
- * @return A list containing the roles.
- */
- public com.google.protobuf.ProtocolStringList
- getRolesList() {
- return roles_.getUnmodifiableView();
- }
- /**
- * repeated string roles = 2;
- * @return The count of roles.
- */
- public int getRolesCount() {
- return roles_.size();
- }
- /**
- * repeated string roles = 2;
- * @param index The index of the element to return.
- * @return The roles at the given index.
- */
- public java.lang.String getRoles(int index) {
- return roles_.get(index);
- }
- /**
- * repeated string roles = 2;
- * @param index The index of the value to return.
- * @return The bytes of the roles at the given index.
- */
- public com.google.protobuf.ByteString
- getRolesBytes(int index) {
- return roles_.getByteString(index);
- }
- /**
- * repeated string roles = 2;
- * @param index The index to set the value at.
- * @param value The roles to set.
- * @return This builder for chaining.
- */
- public Builder setRoles(
- int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureRolesIsMutable();
- roles_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * repeated string roles = 2;
- * @param value The roles to add.
- * @return This builder for chaining.
- */
- public Builder addRoles(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureRolesIsMutable();
- roles_.add(value);
- onChanged();
- return this;
- }
- /**
- * repeated string roles = 2;
- * @param values The roles to add.
- * @return This builder for chaining.
- */
- public Builder addAllRoles(
- java.lang.Iterablerepeated string roles = 2;
- * @return This builder for chaining.
- */
- public Builder clearRoles() {
- roles_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- return this;
- }
- /**
- * repeated string roles = 2;
- * @param value The bytes of the roles to add.
- * @return This builder for chaining.
- */
- public Builder addRolesBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- ensureRolesIsMutable();
- roles_.add(value);
- 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:etcdserverpb.AuthRoleListResponse)
- }
-
- // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleListResponse)
- private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse();
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleListResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.etcdserverpb.ResponseHeader header = 1;
- * @return Whether the header field is set.
- */
- boolean hasHeader();
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- * @return The header.
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeader getHeader();
- /**
- * .etcdserverpb.ResponseHeader header = 1;
- */
- org.eclipse.ecf.provider.etcd3.grpc.api.ResponseHeaderOrBuilder getHeaderOrBuilder();
-
- /**
- * repeated string roles = 2;
- * @return A list containing the roles.
- */
- java.util.Listrepeated string roles = 2;
- * @return The count of roles.
- */
- int getRolesCount();
- /**
- * repeated string roles = 2;
- * @param index The index of the element to return.
- * @return The roles at the given index.
- */
- java.lang.String getRoles(int index);
- /**
- * repeated string roles = 2;
- * @param index The index of the value to return.
- * @return The bytes of the roles at the given index.
- */
- com.google.protobuf.ByteString
- getRolesBytes(int index);
-}
diff --git a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionRequest.java b/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionRequest.java
deleted file mode 100644
index 8dfffe6..0000000
--- a/org.eclipse.ecf.provider.etcd3/src-gen/main/java/org/eclipse/ecf/provider/etcd3/grpc/api/AuthRoleRevokePermissionRequest.java
+++ /dev/null
@@ -1,833 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: rpc.proto
-
-package org.eclipse.ecf.provider.etcd3.grpc.api;
-
-/**
- * Protobuf type {@code etcdserverpb.AuthRoleRevokePermissionRequest}
- */
-public final class AuthRoleRevokePermissionRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:etcdserverpb.AuthRoleRevokePermissionRequest)
- AuthRoleRevokePermissionRequestOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use AuthRoleRevokePermissionRequest.newBuilder() to construct.
- private AuthRoleRevokePermissionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private AuthRoleRevokePermissionRequest() {
- role_ = "";
- key_ = "";
- rangeEnd_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new AuthRoleRevokePermissionRequest();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AuthRoleRevokePermissionRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- java.lang.String s = input.readStringRequireUtf8();
-
- role_ = s;
- break;
- }
- case 18: {
- java.lang.String s = input.readStringRequireUtf8();
-
- key_ = s;
- break;
- }
- case 26: {
- java.lang.String s = input.readStringRequireUtf8();
-
- rangeEnd_ = s;
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.eclipse.ecf.provider.etcd3.grpc.api.ECFEtcdProto.internal_static_etcdserverpb_AuthRoleRevokePermissionRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest.class, org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest.Builder.class);
- }
-
- public static final int ROLE_FIELD_NUMBER = 1;
- private volatile java.lang.Object role_;
- /**
- * string role = 1;
- * @return The role.
- */
- @java.lang.Override
- public java.lang.String getRole() {
- java.lang.Object ref = role_;
- 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();
- role_ = s;
- return s;
- }
- }
- /**
- * string role = 1;
- * @return The bytes for role.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRoleBytes() {
- java.lang.Object ref = role_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- role_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int KEY_FIELD_NUMBER = 2;
- private volatile java.lang.Object key_;
- /**
- * string key = 2;
- * @return The key.
- */
- @java.lang.Override
- public java.lang.String getKey() {
- java.lang.Object ref = key_;
- 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();
- key_ = s;
- return s;
- }
- }
- /**
- * string key = 2;
- * @return The bytes for key.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getKeyBytes() {
- java.lang.Object ref = key_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- key_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int RANGE_END_FIELD_NUMBER = 3;
- private volatile java.lang.Object rangeEnd_;
- /**
- * string range_end = 3;
- * @return The rangeEnd.
- */
- @java.lang.Override
- public java.lang.String getRangeEnd() {
- java.lang.Object ref = rangeEnd_;
- 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();
- rangeEnd_ = s;
- return s;
- }
- }
- /**
- * string range_end = 3;
- * @return The bytes for rangeEnd.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRangeEndBytes() {
- java.lang.Object ref = rangeEnd_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- rangeEnd_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- 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 (!getRoleBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_);
- }
- if (!getKeyBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_);
- }
- if (!getRangeEndBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, rangeEnd_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getRoleBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_);
- }
- if (!getKeyBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_);
- }
- if (!getRangeEndBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, rangeEnd_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest)) {
- return super.equals(obj);
- }
- org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest other = (org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest) obj;
-
- if (!getRole()
- .equals(other.getRole())) return false;
- if (!getKey()
- .equals(other.getKey())) return false;
- if (!getRangeEnd()
- .equals(other.getRangeEnd())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + ROLE_FIELD_NUMBER;
- hash = (53 * hash) + getRole().hashCode();
- hash = (37 * hash) + KEY_FIELD_NUMBER;
- hash = (53 * hash) + getKey().hashCode();
- hash = (37 * hash) + RANGE_END_FIELD_NUMBER;
- hash = (53 * hash) + getRangeEnd().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest 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 org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest 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(org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest 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 etcdserverpb.AuthRoleRevokePermissionRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builderstring role = 1;
- * @return The role.
- */
- public java.lang.String getRole() {
- java.lang.Object ref = role_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- role_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string role = 1;
- * @return The bytes for role.
- */
- public com.google.protobuf.ByteString
- getRoleBytes() {
- java.lang.Object ref = role_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- role_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string role = 1;
- * @param value The role to set.
- * @return This builder for chaining.
- */
- public Builder setRole(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- role_ = value;
- onChanged();
- return this;
- }
- /**
- * string role = 1;
- * @return This builder for chaining.
- */
- public Builder clearRole() {
-
- role_ = getDefaultInstance().getRole();
- onChanged();
- return this;
- }
- /**
- * string role = 1;
- * @param value The bytes for role to set.
- * @return This builder for chaining.
- */
- public Builder setRoleBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- role_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object key_ = "";
- /**
- * string key = 2;
- * @return The key.
- */
- public java.lang.String getKey() {
- java.lang.Object ref = key_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- key_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string key = 2;
- * @return The bytes for key.
- */
- public com.google.protobuf.ByteString
- getKeyBytes() {
- java.lang.Object ref = key_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- key_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string key = 2;
- * @param value The key to set.
- * @return This builder for chaining.
- */
- public Builder setKey(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- key_ = value;
- onChanged();
- return this;
- }
- /**
- * string key = 2;
- * @return This builder for chaining.
- */
- public Builder clearKey() {
-
- key_ = getDefaultInstance().getKey();
- onChanged();
- return this;
- }
- /**
- * string key = 2;
- * @param value The bytes for key to set.
- * @return This builder for chaining.
- */
- public Builder setKeyBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- key_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object rangeEnd_ = "";
- /**
- * string range_end = 3;
- * @return The rangeEnd.
- */
- public java.lang.String getRangeEnd() {
- java.lang.Object ref = rangeEnd_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- rangeEnd_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string range_end = 3;
- * @return The bytes for rangeEnd.
- */
- public com.google.protobuf.ByteString
- getRangeEndBytes() {
- java.lang.Object ref = rangeEnd_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- rangeEnd_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string range_end = 3;
- * @param value The rangeEnd to set.
- * @return This builder for chaining.
- */
- public Builder setRangeEnd(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- rangeEnd_ = value;
- onChanged();
- return this;
- }
- /**
- * string range_end = 3;
- * @return This builder for chaining.
- */
- public Builder clearRangeEnd() {
-
- rangeEnd_ = getDefaultInstance().getRangeEnd();
- onChanged();
- return this;
- }
- /**
- * string range_end = 3;
- * @param value The bytes for rangeEnd to set.
- * @return This builder for chaining.
- */
- public Builder setRangeEndBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- rangeEnd_ = value;
- 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:etcdserverpb.AuthRoleRevokePermissionRequest)
- }
-
- // @@protoc_insertion_point(class_scope:etcdserverpb.AuthRoleRevokePermissionRequest)
- private static final org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest();
- }
-
- public static org.eclipse.ecf.provider.etcd3.grpc.api.AuthRoleRevokePermissionRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser