com.alibaba.graphscope.proto.groot.IndexDefProto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of groot-client Show documentation
Show all versions of groot-client Show documentation
The Java client of Groot, a persistence storage engine
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: groot/sdk/schema.proto
package com.alibaba.graphscope.proto.groot;
/**
* Protobuf type {@code gs.rpc.groot.IndexDefProto}
*/
public final class IndexDefProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gs.rpc.groot.IndexDefProto)
IndexDefProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use IndexDefProto.newBuilder() to construct.
private IndexDefProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IndexDefProto() {
name_ = "";
propertyId_ = emptyIntList();
indexType_ = 0;
property_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IndexDefProto();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.graphscope.proto.groot.Schema.internal_static_gs_rpc_groot_IndexDefProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.graphscope.proto.groot.Schema.internal_static_gs_rpc_groot_IndexDefProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.graphscope.proto.groot.IndexDefProto.class, com.alibaba.graphscope.proto.groot.IndexDefProto.Builder.class);
}
/**
* Protobuf enum {@code gs.rpc.groot.IndexDefProto.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* PRIMARY_KEY = 0;
*/
PRIMARY_KEY(0),
/**
* UNIQUE = 1;
*/
UNIQUE(1),
/**
* UNIQUE_WITH_EDGE = 2;
*/
UNIQUE_WITH_EDGE(2),
UNRECOGNIZED(-1),
;
/**
* PRIMARY_KEY = 0;
*/
public static final int PRIMARY_KEY_VALUE = 0;
/**
* UNIQUE = 1;
*/
public static final int UNIQUE_VALUE = 1;
/**
* UNIQUE_WITH_EDGE = 2;
*/
public static final int UNIQUE_WITH_EDGE_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 Type 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 Type forNumber(int value) {
switch (value) {
case 0: return PRIMARY_KEY;
case 1: return UNIQUE;
case 2: return UNIQUE_WITH_EDGE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.alibaba.graphscope.proto.groot.IndexDefProto.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:gs.rpc.groot.IndexDefProto.Type)
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* 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;
}
}
/**
* 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 PROPERTYID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList propertyId_;
/**
* repeated int32 propertyId = 2;
* @return A list containing the propertyId.
*/
@java.lang.Override
public java.util.List
getPropertyIdList() {
return propertyId_;
}
/**
* repeated int32 propertyId = 2;
* @return The count of propertyId.
*/
public int getPropertyIdCount() {
return propertyId_.size();
}
/**
* repeated int32 propertyId = 2;
* @param index The index of the element to return.
* @return The propertyId at the given index.
*/
public int getPropertyId(int index) {
return propertyId_.getInt(index);
}
private int propertyIdMemoizedSerializedSize = -1;
public static final int INDEXTYPE_FIELD_NUMBER = 3;
private int indexType_ = 0;
/**
* .gs.rpc.groot.IndexDefProto.Type indexType = 3;
* @return The enum numeric value on the wire for indexType.
*/
@java.lang.Override public int getIndexTypeValue() {
return indexType_;
}
/**
* .gs.rpc.groot.IndexDefProto.Type indexType = 3;
* @return The indexType.
*/
@java.lang.Override public com.alibaba.graphscope.proto.groot.IndexDefProto.Type getIndexType() {
com.alibaba.graphscope.proto.groot.IndexDefProto.Type result = com.alibaba.graphscope.proto.groot.IndexDefProto.Type.forNumber(indexType_);
return result == null ? com.alibaba.graphscope.proto.groot.IndexDefProto.Type.UNRECOGNIZED : result;
}
public static final int PROPERTY_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList property_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string property = 4;
* @return A list containing the property.
*/
public com.google.protobuf.ProtocolStringList
getPropertyList() {
return property_;
}
/**
* repeated string property = 4;
* @return The count of property.
*/
public int getPropertyCount() {
return property_.size();
}
/**
* repeated string property = 4;
* @param index The index of the element to return.
* @return The property at the given index.
*/
public java.lang.String getProperty(int index) {
return property_.get(index);
}
/**
* repeated string property = 4;
* @param index The index of the value to return.
* @return The bytes of the property at the given index.
*/
public com.google.protobuf.ByteString
getPropertyBytes(int index) {
return property_.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 {
getSerializedSize();
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (getPropertyIdList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(propertyIdMemoizedSerializedSize);
}
for (int i = 0; i < propertyId_.size(); i++) {
output.writeInt32NoTag(propertyId_.getInt(i));
}
if (indexType_ != com.alibaba.graphscope.proto.groot.IndexDefProto.Type.PRIMARY_KEY.getNumber()) {
output.writeEnum(3, indexType_);
}
for (int i = 0; i < property_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, property_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
{
int dataSize = 0;
for (int i = 0; i < propertyId_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(propertyId_.getInt(i));
}
size += dataSize;
if (!getPropertyIdList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
propertyIdMemoizedSerializedSize = dataSize;
}
if (indexType_ != com.alibaba.graphscope.proto.groot.IndexDefProto.Type.PRIMARY_KEY.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, indexType_);
}
{
int dataSize = 0;
for (int i = 0; i < property_.size(); i++) {
dataSize += computeStringSizeNoTag(property_.getRaw(i));
}
size += dataSize;
size += 1 * getPropertyList().size();
}
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 com.alibaba.graphscope.proto.groot.IndexDefProto)) {
return super.equals(obj);
}
com.alibaba.graphscope.proto.groot.IndexDefProto other = (com.alibaba.graphscope.proto.groot.IndexDefProto) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getPropertyIdList()
.equals(other.getPropertyIdList())) return false;
if (indexType_ != other.indexType_) return false;
if (!getPropertyList()
.equals(other.getPropertyList())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getPropertyIdCount() > 0) {
hash = (37 * hash) + PROPERTYID_FIELD_NUMBER;
hash = (53 * hash) + getPropertyIdList().hashCode();
}
hash = (37 * hash) + INDEXTYPE_FIELD_NUMBER;
hash = (53 * hash) + indexType_;
if (getPropertyCount() > 0) {
hash = (37 * hash) + PROPERTY_FIELD_NUMBER;
hash = (53 * hash) + getPropertyList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.alibaba.graphscope.proto.groot.IndexDefProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.graphscope.proto.groot.IndexDefProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.graphscope.proto.groot.IndexDefProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.graphscope.proto.groot.IndexDefProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.graphscope.proto.groot.IndexDefProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.graphscope.proto.groot.IndexDefProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.graphscope.proto.groot.IndexDefProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.graphscope.proto.groot.IndexDefProto 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 com.alibaba.graphscope.proto.groot.IndexDefProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.alibaba.graphscope.proto.groot.IndexDefProto 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 com.alibaba.graphscope.proto.groot.IndexDefProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.graphscope.proto.groot.IndexDefProto 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(com.alibaba.graphscope.proto.groot.IndexDefProto 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 gs.rpc.groot.IndexDefProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:gs.rpc.groot.IndexDefProto)
com.alibaba.graphscope.proto.groot.IndexDefProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.graphscope.proto.groot.Schema.internal_static_gs_rpc_groot_IndexDefProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.graphscope.proto.groot.Schema.internal_static_gs_rpc_groot_IndexDefProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.graphscope.proto.groot.IndexDefProto.class, com.alibaba.graphscope.proto.groot.IndexDefProto.Builder.class);
}
// Construct using com.alibaba.graphscope.proto.groot.IndexDefProto.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
propertyId_ = emptyIntList();
indexType_ = 0;
property_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alibaba.graphscope.proto.groot.Schema.internal_static_gs_rpc_groot_IndexDefProto_descriptor;
}
@java.lang.Override
public com.alibaba.graphscope.proto.groot.IndexDefProto getDefaultInstanceForType() {
return com.alibaba.graphscope.proto.groot.IndexDefProto.getDefaultInstance();
}
@java.lang.Override
public com.alibaba.graphscope.proto.groot.IndexDefProto build() {
com.alibaba.graphscope.proto.groot.IndexDefProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.alibaba.graphscope.proto.groot.IndexDefProto buildPartial() {
com.alibaba.graphscope.proto.groot.IndexDefProto result = new com.alibaba.graphscope.proto.groot.IndexDefProto(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.alibaba.graphscope.proto.groot.IndexDefProto result) {
if (((bitField0_ & 0x00000002) != 0)) {
propertyId_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.propertyId_ = propertyId_;
}
private void buildPartial0(com.alibaba.graphscope.proto.groot.IndexDefProto result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.indexType_ = indexType_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
property_.makeImmutable();
result.property_ = property_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alibaba.graphscope.proto.groot.IndexDefProto) {
return mergeFrom((com.alibaba.graphscope.proto.groot.IndexDefProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alibaba.graphscope.proto.groot.IndexDefProto other) {
if (other == com.alibaba.graphscope.proto.groot.IndexDefProto.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.propertyId_.isEmpty()) {
if (propertyId_.isEmpty()) {
propertyId_ = other.propertyId_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePropertyIdIsMutable();
propertyId_.addAll(other.propertyId_);
}
onChanged();
}
if (other.indexType_ != 0) {
setIndexTypeValue(other.getIndexTypeValue());
}
if (!other.property_.isEmpty()) {
if (property_.isEmpty()) {
property_ = other.property_;
bitField0_ |= 0x00000008;
} else {
ensurePropertyIsMutable();
property_.addAll(other.property_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
int v = input.readInt32();
ensurePropertyIdIsMutable();
propertyId_.addInt(v);
break;
} // case 16
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensurePropertyIdIsMutable();
while (input.getBytesUntilLimit() > 0) {
propertyId_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
} // case 18
case 24: {
indexType_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
java.lang.String s = input.readStringRequireUtf8();
ensurePropertyIsMutable();
property_.add(s);
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* 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;
}
}
/**
* 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;
}
}
/**
* 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* 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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList propertyId_ = emptyIntList();
private void ensurePropertyIdIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
propertyId_ = mutableCopy(propertyId_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated int32 propertyId = 2;
* @return A list containing the propertyId.
*/
public java.util.List
getPropertyIdList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(propertyId_) : propertyId_;
}
/**
* repeated int32 propertyId = 2;
* @return The count of propertyId.
*/
public int getPropertyIdCount() {
return propertyId_.size();
}
/**
* repeated int32 propertyId = 2;
* @param index The index of the element to return.
* @return The propertyId at the given index.
*/
public int getPropertyId(int index) {
return propertyId_.getInt(index);
}
/**
* repeated int32 propertyId = 2;
* @param index The index to set the value at.
* @param value The propertyId to set.
* @return This builder for chaining.
*/
public Builder setPropertyId(
int index, int value) {
ensurePropertyIdIsMutable();
propertyId_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated int32 propertyId = 2;
* @param value The propertyId to add.
* @return This builder for chaining.
*/
public Builder addPropertyId(int value) {
ensurePropertyIdIsMutable();
propertyId_.addInt(value);
onChanged();
return this;
}
/**
* repeated int32 propertyId = 2;
* @param values The propertyId to add.
* @return This builder for chaining.
*/
public Builder addAllPropertyId(
java.lang.Iterable extends java.lang.Integer> values) {
ensurePropertyIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, propertyId_);
onChanged();
return this;
}
/**
* repeated int32 propertyId = 2;
* @return This builder for chaining.
*/
public Builder clearPropertyId() {
propertyId_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private int indexType_ = 0;
/**
* .gs.rpc.groot.IndexDefProto.Type indexType = 3;
* @return The enum numeric value on the wire for indexType.
*/
@java.lang.Override public int getIndexTypeValue() {
return indexType_;
}
/**
* .gs.rpc.groot.IndexDefProto.Type indexType = 3;
* @param value The enum numeric value on the wire for indexType to set.
* @return This builder for chaining.
*/
public Builder setIndexTypeValue(int value) {
indexType_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .gs.rpc.groot.IndexDefProto.Type indexType = 3;
* @return The indexType.
*/
@java.lang.Override
public com.alibaba.graphscope.proto.groot.IndexDefProto.Type getIndexType() {
com.alibaba.graphscope.proto.groot.IndexDefProto.Type result = com.alibaba.graphscope.proto.groot.IndexDefProto.Type.forNumber(indexType_);
return result == null ? com.alibaba.graphscope.proto.groot.IndexDefProto.Type.UNRECOGNIZED : result;
}
/**
* .gs.rpc.groot.IndexDefProto.Type indexType = 3;
* @param value The indexType to set.
* @return This builder for chaining.
*/
public Builder setIndexType(com.alibaba.graphscope.proto.groot.IndexDefProto.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
indexType_ = value.getNumber();
onChanged();
return this;
}
/**
* .gs.rpc.groot.IndexDefProto.Type indexType = 3;
* @return This builder for chaining.
*/
public Builder clearIndexType() {
bitField0_ = (bitField0_ & ~0x00000004);
indexType_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList property_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePropertyIsMutable() {
if (!property_.isModifiable()) {
property_ = new com.google.protobuf.LazyStringArrayList(property_);
}
bitField0_ |= 0x00000008;
}
/**
* repeated string property = 4;
* @return A list containing the property.
*/
public com.google.protobuf.ProtocolStringList
getPropertyList() {
property_.makeImmutable();
return property_;
}
/**
* repeated string property = 4;
* @return The count of property.
*/
public int getPropertyCount() {
return property_.size();
}
/**
* repeated string property = 4;
* @param index The index of the element to return.
* @return The property at the given index.
*/
public java.lang.String getProperty(int index) {
return property_.get(index);
}
/**
* repeated string property = 4;
* @param index The index of the value to return.
* @return The bytes of the property at the given index.
*/
public com.google.protobuf.ByteString
getPropertyBytes(int index) {
return property_.getByteString(index);
}
/**
* repeated string property = 4;
* @param index The index to set the value at.
* @param value The property to set.
* @return This builder for chaining.
*/
public Builder setProperty(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePropertyIsMutable();
property_.set(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated string property = 4;
* @param value The property to add.
* @return This builder for chaining.
*/
public Builder addProperty(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePropertyIsMutable();
property_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated string property = 4;
* @param values The property to add.
* @return This builder for chaining.
*/
public Builder addAllProperty(
java.lang.Iterable values) {
ensurePropertyIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, property_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated string property = 4;
* @return This builder for chaining.
*/
public Builder clearProperty() {
property_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);;
onChanged();
return this;
}
/**
* repeated string property = 4;
* @param value The bytes of the property to add.
* @return This builder for chaining.
*/
public Builder addPropertyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensurePropertyIsMutable();
property_.add(value);
bitField0_ |= 0x00000008;
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:gs.rpc.groot.IndexDefProto)
}
// @@protoc_insertion_point(class_scope:gs.rpc.groot.IndexDefProto)
private static final com.alibaba.graphscope.proto.groot.IndexDefProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.alibaba.graphscope.proto.groot.IndexDefProto();
}
public static com.alibaba.graphscope.proto.groot.IndexDefProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IndexDefProto 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 com.alibaba.graphscope.proto.groot.IndexDefProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy