com.alibaba.graphscope.proto.groot.WriteRequestPb 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: write_service.proto
package com.alibaba.graphscope.proto.groot;
/**
* Protobuf type {@code gs.rpc.groot.WriteRequestPb}
*/
public final class WriteRequestPb extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gs.rpc.groot.WriteRequestPb)
WriteRequestPbOrBuilder {
private static final long serialVersionUID = 0L;
// Use WriteRequestPb.newBuilder() to construct.
private WriteRequestPb(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WriteRequestPb() {
writeType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WriteRequestPb();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.graphscope.proto.groot.WriteService.internal_static_gs_rpc_groot_WriteRequestPb_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.graphscope.proto.groot.WriteService.internal_static_gs_rpc_groot_WriteRequestPb_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.graphscope.proto.groot.WriteRequestPb.class, com.alibaba.graphscope.proto.groot.WriteRequestPb.Builder.class);
}
public static final int WRITE_TYPE_FIELD_NUMBER = 1;
private int writeType_ = 0;
/**
* .gs.rpc.groot.WriteTypePb write_type = 1;
* @return The enum numeric value on the wire for writeType.
*/
@java.lang.Override public int getWriteTypeValue() {
return writeType_;
}
/**
* .gs.rpc.groot.WriteTypePb write_type = 1;
* @return The writeType.
*/
@java.lang.Override public com.alibaba.graphscope.proto.groot.WriteTypePb getWriteType() {
com.alibaba.graphscope.proto.groot.WriteTypePb result = com.alibaba.graphscope.proto.groot.WriteTypePb.forNumber(writeType_);
return result == null ? com.alibaba.graphscope.proto.groot.WriteTypePb.UNRECOGNIZED : result;
}
public static final int DATA_RECORD_FIELD_NUMBER = 2;
private com.alibaba.graphscope.proto.groot.DataRecordPb dataRecord_;
/**
* .gs.rpc.groot.DataRecordPb data_record = 2;
* @return Whether the dataRecord field is set.
*/
@java.lang.Override
public boolean hasDataRecord() {
return dataRecord_ != null;
}
/**
* .gs.rpc.groot.DataRecordPb data_record = 2;
* @return The dataRecord.
*/
@java.lang.Override
public com.alibaba.graphscope.proto.groot.DataRecordPb getDataRecord() {
return dataRecord_ == null ? com.alibaba.graphscope.proto.groot.DataRecordPb.getDefaultInstance() : dataRecord_;
}
/**
* .gs.rpc.groot.DataRecordPb data_record = 2;
*/
@java.lang.Override
public com.alibaba.graphscope.proto.groot.DataRecordPbOrBuilder getDataRecordOrBuilder() {
return dataRecord_ == null ? com.alibaba.graphscope.proto.groot.DataRecordPb.getDefaultInstance() : dataRecord_;
}
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 (writeType_ != com.alibaba.graphscope.proto.groot.WriteTypePb.UNKNOWN.getNumber()) {
output.writeEnum(1, writeType_);
}
if (dataRecord_ != null) {
output.writeMessage(2, getDataRecord());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (writeType_ != com.alibaba.graphscope.proto.groot.WriteTypePb.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, writeType_);
}
if (dataRecord_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getDataRecord());
}
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.WriteRequestPb)) {
return super.equals(obj);
}
com.alibaba.graphscope.proto.groot.WriteRequestPb other = (com.alibaba.graphscope.proto.groot.WriteRequestPb) obj;
if (writeType_ != other.writeType_) return false;
if (hasDataRecord() != other.hasDataRecord()) return false;
if (hasDataRecord()) {
if (!getDataRecord()
.equals(other.getDataRecord())) 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) + WRITE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + writeType_;
if (hasDataRecord()) {
hash = (37 * hash) + DATA_RECORD_FIELD_NUMBER;
hash = (53 * hash) + getDataRecord().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.alibaba.graphscope.proto.groot.WriteRequestPb parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.graphscope.proto.groot.WriteRequestPb 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.WriteRequestPb parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.graphscope.proto.groot.WriteRequestPb 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.WriteRequestPb parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.graphscope.proto.groot.WriteRequestPb 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.WriteRequestPb parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.graphscope.proto.groot.WriteRequestPb 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.WriteRequestPb parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.alibaba.graphscope.proto.groot.WriteRequestPb 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.WriteRequestPb 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.WriteRequestPb 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.WriteRequestPb 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.WriteRequestPb}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:gs.rpc.groot.WriteRequestPb)
com.alibaba.graphscope.proto.groot.WriteRequestPbOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.graphscope.proto.groot.WriteService.internal_static_gs_rpc_groot_WriteRequestPb_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.graphscope.proto.groot.WriteService.internal_static_gs_rpc_groot_WriteRequestPb_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.graphscope.proto.groot.WriteRequestPb.class, com.alibaba.graphscope.proto.groot.WriteRequestPb.Builder.class);
}
// Construct using com.alibaba.graphscope.proto.groot.WriteRequestPb.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
writeType_ = 0;
dataRecord_ = null;
if (dataRecordBuilder_ != null) {
dataRecordBuilder_.dispose();
dataRecordBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alibaba.graphscope.proto.groot.WriteService.internal_static_gs_rpc_groot_WriteRequestPb_descriptor;
}
@java.lang.Override
public com.alibaba.graphscope.proto.groot.WriteRequestPb getDefaultInstanceForType() {
return com.alibaba.graphscope.proto.groot.WriteRequestPb.getDefaultInstance();
}
@java.lang.Override
public com.alibaba.graphscope.proto.groot.WriteRequestPb build() {
com.alibaba.graphscope.proto.groot.WriteRequestPb result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.alibaba.graphscope.proto.groot.WriteRequestPb buildPartial() {
com.alibaba.graphscope.proto.groot.WriteRequestPb result = new com.alibaba.graphscope.proto.groot.WriteRequestPb(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.alibaba.graphscope.proto.groot.WriteRequestPb result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.writeType_ = writeType_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.dataRecord_ = dataRecordBuilder_ == null
? dataRecord_
: dataRecordBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alibaba.graphscope.proto.groot.WriteRequestPb) {
return mergeFrom((com.alibaba.graphscope.proto.groot.WriteRequestPb)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alibaba.graphscope.proto.groot.WriteRequestPb other) {
if (other == com.alibaba.graphscope.proto.groot.WriteRequestPb.getDefaultInstance()) return this;
if (other.writeType_ != 0) {
setWriteTypeValue(other.getWriteTypeValue());
}
if (other.hasDataRecord()) {
mergeDataRecord(other.getDataRecord());
}
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: {
writeType_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getDataRecordFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
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 writeType_ = 0;
/**
* .gs.rpc.groot.WriteTypePb write_type = 1;
* @return The enum numeric value on the wire for writeType.
*/
@java.lang.Override public int getWriteTypeValue() {
return writeType_;
}
/**
* .gs.rpc.groot.WriteTypePb write_type = 1;
* @param value The enum numeric value on the wire for writeType to set.
* @return This builder for chaining.
*/
public Builder setWriteTypeValue(int value) {
writeType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .gs.rpc.groot.WriteTypePb write_type = 1;
* @return The writeType.
*/
@java.lang.Override
public com.alibaba.graphscope.proto.groot.WriteTypePb getWriteType() {
com.alibaba.graphscope.proto.groot.WriteTypePb result = com.alibaba.graphscope.proto.groot.WriteTypePb.forNumber(writeType_);
return result == null ? com.alibaba.graphscope.proto.groot.WriteTypePb.UNRECOGNIZED : result;
}
/**
* .gs.rpc.groot.WriteTypePb write_type = 1;
* @param value The writeType to set.
* @return This builder for chaining.
*/
public Builder setWriteType(com.alibaba.graphscope.proto.groot.WriteTypePb value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
writeType_ = value.getNumber();
onChanged();
return this;
}
/**
* .gs.rpc.groot.WriteTypePb write_type = 1;
* @return This builder for chaining.
*/
public Builder clearWriteType() {
bitField0_ = (bitField0_ & ~0x00000001);
writeType_ = 0;
onChanged();
return this;
}
private com.alibaba.graphscope.proto.groot.DataRecordPb dataRecord_;
private com.google.protobuf.SingleFieldBuilderV3<
com.alibaba.graphscope.proto.groot.DataRecordPb, com.alibaba.graphscope.proto.groot.DataRecordPb.Builder, com.alibaba.graphscope.proto.groot.DataRecordPbOrBuilder> dataRecordBuilder_;
/**
* .gs.rpc.groot.DataRecordPb data_record = 2;
* @return Whether the dataRecord field is set.
*/
public boolean hasDataRecord() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .gs.rpc.groot.DataRecordPb data_record = 2;
* @return The dataRecord.
*/
public com.alibaba.graphscope.proto.groot.DataRecordPb getDataRecord() {
if (dataRecordBuilder_ == null) {
return dataRecord_ == null ? com.alibaba.graphscope.proto.groot.DataRecordPb.getDefaultInstance() : dataRecord_;
} else {
return dataRecordBuilder_.getMessage();
}
}
/**
* .gs.rpc.groot.DataRecordPb data_record = 2;
*/
public Builder setDataRecord(com.alibaba.graphscope.proto.groot.DataRecordPb value) {
if (dataRecordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataRecord_ = value;
} else {
dataRecordBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .gs.rpc.groot.DataRecordPb data_record = 2;
*/
public Builder setDataRecord(
com.alibaba.graphscope.proto.groot.DataRecordPb.Builder builderForValue) {
if (dataRecordBuilder_ == null) {
dataRecord_ = builderForValue.build();
} else {
dataRecordBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .gs.rpc.groot.DataRecordPb data_record = 2;
*/
public Builder mergeDataRecord(com.alibaba.graphscope.proto.groot.DataRecordPb value) {
if (dataRecordBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
dataRecord_ != null &&
dataRecord_ != com.alibaba.graphscope.proto.groot.DataRecordPb.getDefaultInstance()) {
getDataRecordBuilder().mergeFrom(value);
} else {
dataRecord_ = value;
}
} else {
dataRecordBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .gs.rpc.groot.DataRecordPb data_record = 2;
*/
public Builder clearDataRecord() {
bitField0_ = (bitField0_ & ~0x00000002);
dataRecord_ = null;
if (dataRecordBuilder_ != null) {
dataRecordBuilder_.dispose();
dataRecordBuilder_ = null;
}
onChanged();
return this;
}
/**
* .gs.rpc.groot.DataRecordPb data_record = 2;
*/
public com.alibaba.graphscope.proto.groot.DataRecordPb.Builder getDataRecordBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getDataRecordFieldBuilder().getBuilder();
}
/**
* .gs.rpc.groot.DataRecordPb data_record = 2;
*/
public com.alibaba.graphscope.proto.groot.DataRecordPbOrBuilder getDataRecordOrBuilder() {
if (dataRecordBuilder_ != null) {
return dataRecordBuilder_.getMessageOrBuilder();
} else {
return dataRecord_ == null ?
com.alibaba.graphscope.proto.groot.DataRecordPb.getDefaultInstance() : dataRecord_;
}
}
/**
* .gs.rpc.groot.DataRecordPb data_record = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.alibaba.graphscope.proto.groot.DataRecordPb, com.alibaba.graphscope.proto.groot.DataRecordPb.Builder, com.alibaba.graphscope.proto.groot.DataRecordPbOrBuilder>
getDataRecordFieldBuilder() {
if (dataRecordBuilder_ == null) {
dataRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.alibaba.graphscope.proto.groot.DataRecordPb, com.alibaba.graphscope.proto.groot.DataRecordPb.Builder, com.alibaba.graphscope.proto.groot.DataRecordPbOrBuilder>(
getDataRecord(),
getParentForChildren(),
isClean());
dataRecord_ = null;
}
return dataRecordBuilder_;
}
@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.WriteRequestPb)
}
// @@protoc_insertion_point(class_scope:gs.rpc.groot.WriteRequestPb)
private static final com.alibaba.graphscope.proto.groot.WriteRequestPb DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.alibaba.graphscope.proto.groot.WriteRequestPb();
}
public static com.alibaba.graphscope.proto.groot.WriteRequestPb getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WriteRequestPb 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.WriteRequestPb getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy