de.tum.cit.ase.athena.protobuf.ClusterNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of athena-client Show documentation
Show all versions of athena-client Show documentation
A system to support (semi-)automated assessment of textual exercises.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: clustering.proto
package de.tum.cit.ase.athena.protobuf;
/**
* Protobuf type {@code ClusterNode}
*/
public final class ClusterNode extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ClusterNode)
ClusterNodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClusterNode.newBuilder() to construct.
private ClusterNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClusterNode() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClusterNode();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return de.tum.cit.ase.athena.protobuf.Clustering.internal_static_ClusterNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return de.tum.cit.ase.athena.protobuf.Clustering.internal_static_ClusterNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
de.tum.cit.ase.athena.protobuf.ClusterNode.class, de.tum.cit.ase.athena.protobuf.ClusterNode.Builder.class);
}
public static final int PARENT_FIELD_NUMBER = 1;
private int parent_;
/**
* int32 parent = 1;
* @return The parent.
*/
@java.lang.Override
public int getParent() {
return parent_;
}
public static final int CHILD_FIELD_NUMBER = 2;
private int child_;
/**
* int32 child = 2;
* @return The child.
*/
@java.lang.Override
public int getChild() {
return child_;
}
public static final int LAMBDAVAL_FIELD_NUMBER = 3;
private float lambdaVal_;
/**
* float lambdaVal = 3;
* @return The lambdaVal.
*/
@java.lang.Override
public float getLambdaVal() {
return lambdaVal_;
}
public static final int CHILDSIZE_FIELD_NUMBER = 4;
private int childSize_;
/**
* int32 childSize = 4;
* @return The childSize.
*/
@java.lang.Override
public int getChildSize() {
return childSize_;
}
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 (parent_ != 0) {
output.writeInt32(1, parent_);
}
if (child_ != 0) {
output.writeInt32(2, child_);
}
if (java.lang.Float.floatToRawIntBits(lambdaVal_) != 0) {
output.writeFloat(3, lambdaVal_);
}
if (childSize_ != 0) {
output.writeInt32(4, childSize_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (parent_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, parent_);
}
if (child_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, child_);
}
if (java.lang.Float.floatToRawIntBits(lambdaVal_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, lambdaVal_);
}
if (childSize_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, childSize_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof de.tum.cit.ase.athena.protobuf.ClusterNode)) {
return super.equals(obj);
}
de.tum.cit.ase.athena.protobuf.ClusterNode other = (de.tum.cit.ase.athena.protobuf.ClusterNode) obj;
if (getParent()
!= other.getParent()) return false;
if (getChild()
!= other.getChild()) return false;
if (java.lang.Float.floatToIntBits(getLambdaVal())
!= java.lang.Float.floatToIntBits(
other.getLambdaVal())) return false;
if (getChildSize()
!= other.getChildSize()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PARENT_FIELD_NUMBER;
hash = (53 * hash) + getParent();
hash = (37 * hash) + CHILD_FIELD_NUMBER;
hash = (53 * hash) + getChild();
hash = (37 * hash) + LAMBDAVAL_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getLambdaVal());
hash = (37 * hash) + CHILDSIZE_FIELD_NUMBER;
hash = (53 * hash) + getChildSize();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static de.tum.cit.ase.athena.protobuf.ClusterNode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static de.tum.cit.ase.athena.protobuf.ClusterNode parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static de.tum.cit.ase.athena.protobuf.ClusterNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static de.tum.cit.ase.athena.protobuf.ClusterNode parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static de.tum.cit.ase.athena.protobuf.ClusterNode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static de.tum.cit.ase.athena.protobuf.ClusterNode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static de.tum.cit.ase.athena.protobuf.ClusterNode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static de.tum.cit.ase.athena.protobuf.ClusterNode 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 de.tum.cit.ase.athena.protobuf.ClusterNode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static de.tum.cit.ase.athena.protobuf.ClusterNode 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 de.tum.cit.ase.athena.protobuf.ClusterNode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static de.tum.cit.ase.athena.protobuf.ClusterNode 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(de.tum.cit.ase.athena.protobuf.ClusterNode 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 ClusterNode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ClusterNode)
de.tum.cit.ase.athena.protobuf.ClusterNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return de.tum.cit.ase.athena.protobuf.Clustering.internal_static_ClusterNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return de.tum.cit.ase.athena.protobuf.Clustering.internal_static_ClusterNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
de.tum.cit.ase.athena.protobuf.ClusterNode.class, de.tum.cit.ase.athena.protobuf.ClusterNode.Builder.class);
}
// Construct using de.tum.cit.ase.athena.protobuf.ClusterNode.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
parent_ = 0;
child_ = 0;
lambdaVal_ = 0F;
childSize_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return de.tum.cit.ase.athena.protobuf.Clustering.internal_static_ClusterNode_descriptor;
}
@java.lang.Override
public de.tum.cit.ase.athena.protobuf.ClusterNode getDefaultInstanceForType() {
return de.tum.cit.ase.athena.protobuf.ClusterNode.getDefaultInstance();
}
@java.lang.Override
public de.tum.cit.ase.athena.protobuf.ClusterNode build() {
de.tum.cit.ase.athena.protobuf.ClusterNode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public de.tum.cit.ase.athena.protobuf.ClusterNode buildPartial() {
de.tum.cit.ase.athena.protobuf.ClusterNode result = new de.tum.cit.ase.athena.protobuf.ClusterNode(this);
result.parent_ = parent_;
result.child_ = child_;
result.lambdaVal_ = lambdaVal_;
result.childSize_ = childSize_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof de.tum.cit.ase.athena.protobuf.ClusterNode) {
return mergeFrom((de.tum.cit.ase.athena.protobuf.ClusterNode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(de.tum.cit.ase.athena.protobuf.ClusterNode other) {
if (other == de.tum.cit.ase.athena.protobuf.ClusterNode.getDefaultInstance()) return this;
if (other.getParent() != 0) {
setParent(other.getParent());
}
if (other.getChild() != 0) {
setChild(other.getChild());
}
if (other.getLambdaVal() != 0F) {
setLambdaVal(other.getLambdaVal());
}
if (other.getChildSize() != 0) {
setChildSize(other.getChildSize());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
parent_ = input.readInt32();
break;
} // case 8
case 16: {
child_ = input.readInt32();
break;
} // case 16
case 29: {
lambdaVal_ = input.readFloat();
break;
} // case 29
case 32: {
childSize_ = input.readInt32();
break;
} // case 32
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int parent_ ;
/**
* int32 parent = 1;
* @return The parent.
*/
@java.lang.Override
public int getParent() {
return parent_;
}
/**
* int32 parent = 1;
* @param value The parent to set.
* @return This builder for chaining.
*/
public Builder setParent(int value) {
parent_ = value;
onChanged();
return this;
}
/**
* int32 parent = 1;
* @return This builder for chaining.
*/
public Builder clearParent() {
parent_ = 0;
onChanged();
return this;
}
private int child_ ;
/**
* int32 child = 2;
* @return The child.
*/
@java.lang.Override
public int getChild() {
return child_;
}
/**
* int32 child = 2;
* @param value The child to set.
* @return This builder for chaining.
*/
public Builder setChild(int value) {
child_ = value;
onChanged();
return this;
}
/**
* int32 child = 2;
* @return This builder for chaining.
*/
public Builder clearChild() {
child_ = 0;
onChanged();
return this;
}
private float lambdaVal_ ;
/**
* float lambdaVal = 3;
* @return The lambdaVal.
*/
@java.lang.Override
public float getLambdaVal() {
return lambdaVal_;
}
/**
* float lambdaVal = 3;
* @param value The lambdaVal to set.
* @return This builder for chaining.
*/
public Builder setLambdaVal(float value) {
lambdaVal_ = value;
onChanged();
return this;
}
/**
* float lambdaVal = 3;
* @return This builder for chaining.
*/
public Builder clearLambdaVal() {
lambdaVal_ = 0F;
onChanged();
return this;
}
private int childSize_ ;
/**
* int32 childSize = 4;
* @return The childSize.
*/
@java.lang.Override
public int getChildSize() {
return childSize_;
}
/**
* int32 childSize = 4;
* @param value The childSize to set.
* @return This builder for chaining.
*/
public Builder setChildSize(int value) {
childSize_ = value;
onChanged();
return this;
}
/**
* int32 childSize = 4;
* @return This builder for chaining.
*/
public Builder clearChildSize() {
childSize_ = 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:ClusterNode)
}
// @@protoc_insertion_point(class_scope:ClusterNode)
private static final de.tum.cit.ase.athena.protobuf.ClusterNode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new de.tum.cit.ase.athena.protobuf.ClusterNode();
}
public static de.tum.cit.ase.athena.protobuf.ClusterNode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClusterNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public de.tum.cit.ase.athena.protobuf.ClusterNode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}