com.alibaba.graphscope.proto.groot.PropertyDefProto 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.PropertyDefProto}
*/
public final class PropertyDefProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gs.rpc.groot.PropertyDefProto)
PropertyDefProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use PropertyDefProto.newBuilder() to construct.
private PropertyDefProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PropertyDefProto() {
name_ = "";
typeExpression_ = "";
comment_ = "";
defaultValue_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PropertyDefProto();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.graphscope.proto.groot.Schema.internal_static_gs_rpc_groot_PropertyDefProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.graphscope.proto.groot.Schema.internal_static_gs_rpc_groot_PropertyDefProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.graphscope.proto.groot.PropertyDefProto.class, com.alibaba.graphscope.proto.groot.PropertyDefProto.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private int id_ = 0;
/**
* int32 id = 1;
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
public static final int NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* string name = 2;
* @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 = 2;
* @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 DATATYPE_FIELD_NUMBER = 3;
private int dataType_ = 0;
/**
* int32 dataType = 3;
* @return The dataType.
*/
@java.lang.Override
public int getDataType() {
return dataType_;
}
public static final int TYPEEXPRESSION_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object typeExpression_ = "";
/**
* string typeExpression = 4;
* @return The typeExpression.
*/
@java.lang.Override
public java.lang.String getTypeExpression() {
java.lang.Object ref = typeExpression_;
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();
typeExpression_ = s;
return s;
}
}
/**
* string typeExpression = 4;
* @return The bytes for typeExpression.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeExpressionBytes() {
java.lang.Object ref = typeExpression_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeExpression_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMENT_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object comment_ = "";
/**
* string comment = 5;
* @return The comment.
*/
@java.lang.Override
public java.lang.String getComment() {
java.lang.Object ref = comment_;
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();
comment_ = s;
return s;
}
}
/**
* string comment = 5;
* @return The bytes for comment.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCommentBytes() {
java.lang.Object ref = comment_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
comment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HASDEFAULTVALUE_FIELD_NUMBER = 6;
private boolean hasDefaultValue_ = false;
/**
* bool hasDefaultValue = 6;
* @return The hasDefaultValue.
*/
@java.lang.Override
public boolean getHasDefaultValue() {
return hasDefaultValue_;
}
public static final int DEFAULTVALUE_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString defaultValue_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes defaultValue = 7;
* @return The defaultValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDefaultValue() {
return defaultValue_;
}
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 (id_ != 0) {
output.writeInt32(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (dataType_ != 0) {
output.writeInt32(3, dataType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeExpression_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, typeExpression_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, comment_);
}
if (hasDefaultValue_ != false) {
output.writeBool(6, hasDefaultValue_);
}
if (!defaultValue_.isEmpty()) {
output.writeBytes(7, defaultValue_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (dataType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, dataType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeExpression_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, typeExpression_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, comment_);
}
if (hasDefaultValue_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, hasDefaultValue_);
}
if (!defaultValue_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, defaultValue_);
}
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.PropertyDefProto)) {
return super.equals(obj);
}
com.alibaba.graphscope.proto.groot.PropertyDefProto other = (com.alibaba.graphscope.proto.groot.PropertyDefProto) obj;
if (getId()
!= other.getId()) return false;
if (!getName()
.equals(other.getName())) return false;
if (getDataType()
!= other.getDataType()) return false;
if (!getTypeExpression()
.equals(other.getTypeExpression())) return false;
if (!getComment()
.equals(other.getComment())) return false;
if (getHasDefaultValue()
!= other.getHasDefaultValue()) return false;
if (!getDefaultValue()
.equals(other.getDefaultValue())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DATATYPE_FIELD_NUMBER;
hash = (53 * hash) + getDataType();
hash = (37 * hash) + TYPEEXPRESSION_FIELD_NUMBER;
hash = (53 * hash) + getTypeExpression().hashCode();
hash = (37 * hash) + COMMENT_FIELD_NUMBER;
hash = (53 * hash) + getComment().hashCode();
hash = (37 * hash) + HASDEFAULTVALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHasDefaultValue());
hash = (37 * hash) + DEFAULTVALUE_FIELD_NUMBER;
hash = (53 * hash) + getDefaultValue().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.alibaba.graphscope.proto.groot.PropertyDefProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.graphscope.proto.groot.PropertyDefProto 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.PropertyDefProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.graphscope.proto.groot.PropertyDefProto 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.PropertyDefProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.graphscope.proto.groot.PropertyDefProto 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.PropertyDefProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.graphscope.proto.groot.PropertyDefProto 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.PropertyDefProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.alibaba.graphscope.proto.groot.PropertyDefProto 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.PropertyDefProto 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.PropertyDefProto 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.PropertyDefProto 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.PropertyDefProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:gs.rpc.groot.PropertyDefProto)
com.alibaba.graphscope.proto.groot.PropertyDefProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.graphscope.proto.groot.Schema.internal_static_gs_rpc_groot_PropertyDefProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.graphscope.proto.groot.Schema.internal_static_gs_rpc_groot_PropertyDefProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.graphscope.proto.groot.PropertyDefProto.class, com.alibaba.graphscope.proto.groot.PropertyDefProto.Builder.class);
}
// Construct using com.alibaba.graphscope.proto.groot.PropertyDefProto.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = 0;
name_ = "";
dataType_ = 0;
typeExpression_ = "";
comment_ = "";
hasDefaultValue_ = false;
defaultValue_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alibaba.graphscope.proto.groot.Schema.internal_static_gs_rpc_groot_PropertyDefProto_descriptor;
}
@java.lang.Override
public com.alibaba.graphscope.proto.groot.PropertyDefProto getDefaultInstanceForType() {
return com.alibaba.graphscope.proto.groot.PropertyDefProto.getDefaultInstance();
}
@java.lang.Override
public com.alibaba.graphscope.proto.groot.PropertyDefProto build() {
com.alibaba.graphscope.proto.groot.PropertyDefProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.alibaba.graphscope.proto.groot.PropertyDefProto buildPartial() {
com.alibaba.graphscope.proto.groot.PropertyDefProto result = new com.alibaba.graphscope.proto.groot.PropertyDefProto(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.alibaba.graphscope.proto.groot.PropertyDefProto result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.dataType_ = dataType_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.typeExpression_ = typeExpression_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.comment_ = comment_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.hasDefaultValue_ = hasDefaultValue_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.defaultValue_ = defaultValue_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alibaba.graphscope.proto.groot.PropertyDefProto) {
return mergeFrom((com.alibaba.graphscope.proto.groot.PropertyDefProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alibaba.graphscope.proto.groot.PropertyDefProto other) {
if (other == com.alibaba.graphscope.proto.groot.PropertyDefProto.getDefaultInstance()) return this;
if (other.getId() != 0) {
setId(other.getId());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getDataType() != 0) {
setDataType(other.getDataType());
}
if (!other.getTypeExpression().isEmpty()) {
typeExpression_ = other.typeExpression_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getComment().isEmpty()) {
comment_ = other.comment_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.getHasDefaultValue() != false) {
setHasDefaultValue(other.getHasDefaultValue());
}
if (other.getDefaultValue() != com.google.protobuf.ByteString.EMPTY) {
setDefaultValue(other.getDefaultValue());
}
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: {
id_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
dataType_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
typeExpression_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
comment_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
hasDefaultValue_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
defaultValue_ = input.readBytes();
bitField0_ |= 0x00000040;
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int id_ ;
/**
* int32 id = 1;
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
/**
* int32 id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(int value) {
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int32 id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 2;
* @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 = 2;
* @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 = 2;
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string name = 2;
* @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_ |= 0x00000002;
onChanged();
return this;
}
private int dataType_ ;
/**
* int32 dataType = 3;
* @return The dataType.
*/
@java.lang.Override
public int getDataType() {
return dataType_;
}
/**
* int32 dataType = 3;
* @param value The dataType to set.
* @return This builder for chaining.
*/
public Builder setDataType(int value) {
dataType_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int32 dataType = 3;
* @return This builder for chaining.
*/
public Builder clearDataType() {
bitField0_ = (bitField0_ & ~0x00000004);
dataType_ = 0;
onChanged();
return this;
}
private java.lang.Object typeExpression_ = "";
/**
* string typeExpression = 4;
* @return The typeExpression.
*/
public java.lang.String getTypeExpression() {
java.lang.Object ref = typeExpression_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
typeExpression_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string typeExpression = 4;
* @return The bytes for typeExpression.
*/
public com.google.protobuf.ByteString
getTypeExpressionBytes() {
java.lang.Object ref = typeExpression_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeExpression_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string typeExpression = 4;
* @param value The typeExpression to set.
* @return This builder for chaining.
*/
public Builder setTypeExpression(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
typeExpression_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* string typeExpression = 4;
* @return This builder for chaining.
*/
public Builder clearTypeExpression() {
typeExpression_ = getDefaultInstance().getTypeExpression();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* string typeExpression = 4;
* @param value The bytes for typeExpression to set.
* @return This builder for chaining.
*/
public Builder setTypeExpressionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
typeExpression_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object comment_ = "";
/**
* string comment = 5;
* @return The comment.
*/
public java.lang.String getComment() {
java.lang.Object ref = comment_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
comment_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string comment = 5;
* @return The bytes for comment.
*/
public com.google.protobuf.ByteString
getCommentBytes() {
java.lang.Object ref = comment_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
comment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string comment = 5;
* @param value The comment to set.
* @return This builder for chaining.
*/
public Builder setComment(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
comment_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* string comment = 5;
* @return This builder for chaining.
*/
public Builder clearComment() {
comment_ = getDefaultInstance().getComment();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* string comment = 5;
* @param value The bytes for comment to set.
* @return This builder for chaining.
*/
public Builder setCommentBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
comment_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private boolean hasDefaultValue_ ;
/**
* bool hasDefaultValue = 6;
* @return The hasDefaultValue.
*/
@java.lang.Override
public boolean getHasDefaultValue() {
return hasDefaultValue_;
}
/**
* bool hasDefaultValue = 6;
* @param value The hasDefaultValue to set.
* @return This builder for chaining.
*/
public Builder setHasDefaultValue(boolean value) {
hasDefaultValue_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* bool hasDefaultValue = 6;
* @return This builder for chaining.
*/
public Builder clearHasDefaultValue() {
bitField0_ = (bitField0_ & ~0x00000020);
hasDefaultValue_ = false;
onChanged();
return this;
}
private com.google.protobuf.ByteString defaultValue_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes defaultValue = 7;
* @return The defaultValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDefaultValue() {
return defaultValue_;
}
/**
* bytes defaultValue = 7;
* @param value The defaultValue to set.
* @return This builder for chaining.
*/
public Builder setDefaultValue(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
defaultValue_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* bytes defaultValue = 7;
* @return This builder for chaining.
*/
public Builder clearDefaultValue() {
bitField0_ = (bitField0_ & ~0x00000040);
defaultValue_ = getDefaultInstance().getDefaultValue();
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.PropertyDefProto)
}
// @@protoc_insertion_point(class_scope:gs.rpc.groot.PropertyDefProto)
private static final com.alibaba.graphscope.proto.groot.PropertyDefProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.alibaba.graphscope.proto.groot.PropertyDefProto();
}
public static com.alibaba.graphscope.proto.groot.PropertyDefProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PropertyDefProto 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.PropertyDefProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy