com.alibaba.graphscope.proto.groot.BackupInfoPb 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/model.proto
package com.alibaba.graphscope.proto.groot;
/**
* Protobuf type {@code gs.rpc.groot.BackupInfoPb}
*/
public final class BackupInfoPb extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:gs.rpc.groot.BackupInfoPb)
BackupInfoPbOrBuilder {
private static final long serialVersionUID = 0L;
// Use BackupInfoPb.newBuilder() to construct.
private BackupInfoPb(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BackupInfoPb() {
walOffsets_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BackupInfoPb();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.graphscope.proto.groot.Model.internal_static_gs_rpc_groot_BackupInfoPb_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetPartitionToBackupId();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.graphscope.proto.groot.Model.internal_static_gs_rpc_groot_BackupInfoPb_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.graphscope.proto.groot.BackupInfoPb.class, com.alibaba.graphscope.proto.groot.BackupInfoPb.Builder.class);
}
public static final int GLOBALBACKUPID_FIELD_NUMBER = 1;
private int globalBackupId_ = 0;
/**
* int32 globalBackupId = 1;
* @return The globalBackupId.
*/
@java.lang.Override
public int getGlobalBackupId() {
return globalBackupId_;
}
public static final int SNAPSHOTID_FIELD_NUMBER = 2;
private long snapshotId_ = 0L;
/**
* int64 snapshotId = 2;
* @return The snapshotId.
*/
@java.lang.Override
public long getSnapshotId() {
return snapshotId_;
}
public static final int GRAPHDEF_FIELD_NUMBER = 3;
private com.alibaba.graphscope.proto.groot.GraphDefPb graphDef_;
/**
* .gs.rpc.groot.GraphDefPb graphDef = 3;
* @return Whether the graphDef field is set.
*/
@java.lang.Override
public boolean hasGraphDef() {
return graphDef_ != null;
}
/**
* .gs.rpc.groot.GraphDefPb graphDef = 3;
* @return The graphDef.
*/
@java.lang.Override
public com.alibaba.graphscope.proto.groot.GraphDefPb getGraphDef() {
return graphDef_ == null ? com.alibaba.graphscope.proto.groot.GraphDefPb.getDefaultInstance() : graphDef_;
}
/**
* .gs.rpc.groot.GraphDefPb graphDef = 3;
*/
@java.lang.Override
public com.alibaba.graphscope.proto.groot.GraphDefPbOrBuilder getGraphDefOrBuilder() {
return graphDef_ == null ? com.alibaba.graphscope.proto.groot.GraphDefPb.getDefaultInstance() : graphDef_;
}
public static final int WALOFFSETS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList walOffsets_;
/**
* repeated int64 walOffsets = 4;
* @return A list containing the walOffsets.
*/
@java.lang.Override
public java.util.List
getWalOffsetsList() {
return walOffsets_;
}
/**
* repeated int64 walOffsets = 4;
* @return The count of walOffsets.
*/
public int getWalOffsetsCount() {
return walOffsets_.size();
}
/**
* repeated int64 walOffsets = 4;
* @param index The index of the element to return.
* @return The walOffsets at the given index.
*/
public long getWalOffsets(int index) {
return walOffsets_.getLong(index);
}
private int walOffsetsMemoizedSerializedSize = -1;
public static final int PARTITIONTOBACKUPID_FIELD_NUMBER = 5;
private static final class PartitionToBackupIdDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Integer, java.lang.Integer> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.alibaba.graphscope.proto.groot.Model.internal_static_gs_rpc_groot_BackupInfoPb_PartitionToBackupIdEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.INT32,
0,
com.google.protobuf.WireFormat.FieldType.INT32,
0);
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> partitionToBackupId_;
private com.google.protobuf.MapField
internalGetPartitionToBackupId() {
if (partitionToBackupId_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PartitionToBackupIdDefaultEntryHolder.defaultEntry);
}
return partitionToBackupId_;
}
public int getPartitionToBackupIdCount() {
return internalGetPartitionToBackupId().getMap().size();
}
/**
* map<int32, int32> partitionToBackupId = 5;
*/
@java.lang.Override
public boolean containsPartitionToBackupId(
int key) {
return internalGetPartitionToBackupId().getMap().containsKey(key);
}
/**
* Use {@link #getPartitionToBackupIdMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getPartitionToBackupId() {
return getPartitionToBackupIdMap();
}
/**
* map<int32, int32> partitionToBackupId = 5;
*/
@java.lang.Override
public java.util.Map getPartitionToBackupIdMap() {
return internalGetPartitionToBackupId().getMap();
}
/**
* map<int32, int32> partitionToBackupId = 5;
*/
@java.lang.Override
public int getPartitionToBackupIdOrDefault(
int key,
int defaultValue) {
java.util.Map map =
internalGetPartitionToBackupId().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int32, int32> partitionToBackupId = 5;
*/
@java.lang.Override
public int getPartitionToBackupIdOrThrow(
int key) {
java.util.Map map =
internalGetPartitionToBackupId().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 (globalBackupId_ != 0) {
output.writeInt32(1, globalBackupId_);
}
if (snapshotId_ != 0L) {
output.writeInt64(2, snapshotId_);
}
if (graphDef_ != null) {
output.writeMessage(3, getGraphDef());
}
if (getWalOffsetsList().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(walOffsetsMemoizedSerializedSize);
}
for (int i = 0; i < walOffsets_.size(); i++) {
output.writeInt64NoTag(walOffsets_.getLong(i));
}
com.google.protobuf.GeneratedMessageV3
.serializeIntegerMapTo(
output,
internalGetPartitionToBackupId(),
PartitionToBackupIdDefaultEntryHolder.defaultEntry,
5);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (globalBackupId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, globalBackupId_);
}
if (snapshotId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, snapshotId_);
}
if (graphDef_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getGraphDef());
}
{
int dataSize = 0;
for (int i = 0; i < walOffsets_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(walOffsets_.getLong(i));
}
size += dataSize;
if (!getWalOffsetsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
walOffsetsMemoizedSerializedSize = dataSize;
}
for (java.util.Map.Entry entry
: internalGetPartitionToBackupId().getMap().entrySet()) {
com.google.protobuf.MapEntry
partitionToBackupId__ = PartitionToBackupIdDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, partitionToBackupId__);
}
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.BackupInfoPb)) {
return super.equals(obj);
}
com.alibaba.graphscope.proto.groot.BackupInfoPb other = (com.alibaba.graphscope.proto.groot.BackupInfoPb) obj;
if (getGlobalBackupId()
!= other.getGlobalBackupId()) return false;
if (getSnapshotId()
!= other.getSnapshotId()) return false;
if (hasGraphDef() != other.hasGraphDef()) return false;
if (hasGraphDef()) {
if (!getGraphDef()
.equals(other.getGraphDef())) return false;
}
if (!getWalOffsetsList()
.equals(other.getWalOffsetsList())) return false;
if (!internalGetPartitionToBackupId().equals(
other.internalGetPartitionToBackupId())) 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) + GLOBALBACKUPID_FIELD_NUMBER;
hash = (53 * hash) + getGlobalBackupId();
hash = (37 * hash) + SNAPSHOTID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSnapshotId());
if (hasGraphDef()) {
hash = (37 * hash) + GRAPHDEF_FIELD_NUMBER;
hash = (53 * hash) + getGraphDef().hashCode();
}
if (getWalOffsetsCount() > 0) {
hash = (37 * hash) + WALOFFSETS_FIELD_NUMBER;
hash = (53 * hash) + getWalOffsetsList().hashCode();
}
if (!internalGetPartitionToBackupId().getMap().isEmpty()) {
hash = (37 * hash) + PARTITIONTOBACKUPID_FIELD_NUMBER;
hash = (53 * hash) + internalGetPartitionToBackupId().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.alibaba.graphscope.proto.groot.BackupInfoPb parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.graphscope.proto.groot.BackupInfoPb 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.BackupInfoPb parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.graphscope.proto.groot.BackupInfoPb 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.BackupInfoPb parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.graphscope.proto.groot.BackupInfoPb 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.BackupInfoPb parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.graphscope.proto.groot.BackupInfoPb 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.BackupInfoPb parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.alibaba.graphscope.proto.groot.BackupInfoPb 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.BackupInfoPb 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.BackupInfoPb 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.BackupInfoPb 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.BackupInfoPb}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:gs.rpc.groot.BackupInfoPb)
com.alibaba.graphscope.proto.groot.BackupInfoPbOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.graphscope.proto.groot.Model.internal_static_gs_rpc_groot_BackupInfoPb_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetPartitionToBackupId();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 5:
return internalGetMutablePartitionToBackupId();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.graphscope.proto.groot.Model.internal_static_gs_rpc_groot_BackupInfoPb_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.graphscope.proto.groot.BackupInfoPb.class, com.alibaba.graphscope.proto.groot.BackupInfoPb.Builder.class);
}
// Construct using com.alibaba.graphscope.proto.groot.BackupInfoPb.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
globalBackupId_ = 0;
snapshotId_ = 0L;
graphDef_ = null;
if (graphDefBuilder_ != null) {
graphDefBuilder_.dispose();
graphDefBuilder_ = null;
}
walOffsets_ = emptyLongList();
internalGetMutablePartitionToBackupId().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alibaba.graphscope.proto.groot.Model.internal_static_gs_rpc_groot_BackupInfoPb_descriptor;
}
@java.lang.Override
public com.alibaba.graphscope.proto.groot.BackupInfoPb getDefaultInstanceForType() {
return com.alibaba.graphscope.proto.groot.BackupInfoPb.getDefaultInstance();
}
@java.lang.Override
public com.alibaba.graphscope.proto.groot.BackupInfoPb build() {
com.alibaba.graphscope.proto.groot.BackupInfoPb result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.alibaba.graphscope.proto.groot.BackupInfoPb buildPartial() {
com.alibaba.graphscope.proto.groot.BackupInfoPb result = new com.alibaba.graphscope.proto.groot.BackupInfoPb(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.alibaba.graphscope.proto.groot.BackupInfoPb result) {
if (((bitField0_ & 0x00000008) != 0)) {
walOffsets_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.walOffsets_ = walOffsets_;
}
private void buildPartial0(com.alibaba.graphscope.proto.groot.BackupInfoPb result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.globalBackupId_ = globalBackupId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.snapshotId_ = snapshotId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.graphDef_ = graphDefBuilder_ == null
? graphDef_
: graphDefBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.partitionToBackupId_ = internalGetPartitionToBackupId();
result.partitionToBackupId_.makeImmutable();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alibaba.graphscope.proto.groot.BackupInfoPb) {
return mergeFrom((com.alibaba.graphscope.proto.groot.BackupInfoPb)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alibaba.graphscope.proto.groot.BackupInfoPb other) {
if (other == com.alibaba.graphscope.proto.groot.BackupInfoPb.getDefaultInstance()) return this;
if (other.getGlobalBackupId() != 0) {
setGlobalBackupId(other.getGlobalBackupId());
}
if (other.getSnapshotId() != 0L) {
setSnapshotId(other.getSnapshotId());
}
if (other.hasGraphDef()) {
mergeGraphDef(other.getGraphDef());
}
if (!other.walOffsets_.isEmpty()) {
if (walOffsets_.isEmpty()) {
walOffsets_ = other.walOffsets_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureWalOffsetsIsMutable();
walOffsets_.addAll(other.walOffsets_);
}
onChanged();
}
internalGetMutablePartitionToBackupId().mergeFrom(
other.internalGetPartitionToBackupId());
bitField0_ |= 0x00000010;
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: {
globalBackupId_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
snapshotId_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getGraphDefFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
long v = input.readInt64();
ensureWalOffsetsIsMutable();
walOffsets_.addLong(v);
break;
} // case 32
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureWalOffsetsIsMutable();
while (input.getBytesUntilLimit() > 0) {
walOffsets_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
} // case 34
case 42: {
com.google.protobuf.MapEntry
partitionToBackupId__ = input.readMessage(
PartitionToBackupIdDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutablePartitionToBackupId().getMutableMap().put(
partitionToBackupId__.getKey(), partitionToBackupId__.getValue());
bitField0_ |= 0x00000010;
break;
} // case 42
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 globalBackupId_ ;
/**
* int32 globalBackupId = 1;
* @return The globalBackupId.
*/
@java.lang.Override
public int getGlobalBackupId() {
return globalBackupId_;
}
/**
* int32 globalBackupId = 1;
* @param value The globalBackupId to set.
* @return This builder for chaining.
*/
public Builder setGlobalBackupId(int value) {
globalBackupId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int32 globalBackupId = 1;
* @return This builder for chaining.
*/
public Builder clearGlobalBackupId() {
bitField0_ = (bitField0_ & ~0x00000001);
globalBackupId_ = 0;
onChanged();
return this;
}
private long snapshotId_ ;
/**
* int64 snapshotId = 2;
* @return The snapshotId.
*/
@java.lang.Override
public long getSnapshotId() {
return snapshotId_;
}
/**
* int64 snapshotId = 2;
* @param value The snapshotId to set.
* @return This builder for chaining.
*/
public Builder setSnapshotId(long value) {
snapshotId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 snapshotId = 2;
* @return This builder for chaining.
*/
public Builder clearSnapshotId() {
bitField0_ = (bitField0_ & ~0x00000002);
snapshotId_ = 0L;
onChanged();
return this;
}
private com.alibaba.graphscope.proto.groot.GraphDefPb graphDef_;
private com.google.protobuf.SingleFieldBuilderV3<
com.alibaba.graphscope.proto.groot.GraphDefPb, com.alibaba.graphscope.proto.groot.GraphDefPb.Builder, com.alibaba.graphscope.proto.groot.GraphDefPbOrBuilder> graphDefBuilder_;
/**
* .gs.rpc.groot.GraphDefPb graphDef = 3;
* @return Whether the graphDef field is set.
*/
public boolean hasGraphDef() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .gs.rpc.groot.GraphDefPb graphDef = 3;
* @return The graphDef.
*/
public com.alibaba.graphscope.proto.groot.GraphDefPb getGraphDef() {
if (graphDefBuilder_ == null) {
return graphDef_ == null ? com.alibaba.graphscope.proto.groot.GraphDefPb.getDefaultInstance() : graphDef_;
} else {
return graphDefBuilder_.getMessage();
}
}
/**
* .gs.rpc.groot.GraphDefPb graphDef = 3;
*/
public Builder setGraphDef(com.alibaba.graphscope.proto.groot.GraphDefPb value) {
if (graphDefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
graphDef_ = value;
} else {
graphDefBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .gs.rpc.groot.GraphDefPb graphDef = 3;
*/
public Builder setGraphDef(
com.alibaba.graphscope.proto.groot.GraphDefPb.Builder builderForValue) {
if (graphDefBuilder_ == null) {
graphDef_ = builderForValue.build();
} else {
graphDefBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .gs.rpc.groot.GraphDefPb graphDef = 3;
*/
public Builder mergeGraphDef(com.alibaba.graphscope.proto.groot.GraphDefPb value) {
if (graphDefBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
graphDef_ != null &&
graphDef_ != com.alibaba.graphscope.proto.groot.GraphDefPb.getDefaultInstance()) {
getGraphDefBuilder().mergeFrom(value);
} else {
graphDef_ = value;
}
} else {
graphDefBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .gs.rpc.groot.GraphDefPb graphDef = 3;
*/
public Builder clearGraphDef() {
bitField0_ = (bitField0_ & ~0x00000004);
graphDef_ = null;
if (graphDefBuilder_ != null) {
graphDefBuilder_.dispose();
graphDefBuilder_ = null;
}
onChanged();
return this;
}
/**
* .gs.rpc.groot.GraphDefPb graphDef = 3;
*/
public com.alibaba.graphscope.proto.groot.GraphDefPb.Builder getGraphDefBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getGraphDefFieldBuilder().getBuilder();
}
/**
* .gs.rpc.groot.GraphDefPb graphDef = 3;
*/
public com.alibaba.graphscope.proto.groot.GraphDefPbOrBuilder getGraphDefOrBuilder() {
if (graphDefBuilder_ != null) {
return graphDefBuilder_.getMessageOrBuilder();
} else {
return graphDef_ == null ?
com.alibaba.graphscope.proto.groot.GraphDefPb.getDefaultInstance() : graphDef_;
}
}
/**
* .gs.rpc.groot.GraphDefPb graphDef = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.alibaba.graphscope.proto.groot.GraphDefPb, com.alibaba.graphscope.proto.groot.GraphDefPb.Builder, com.alibaba.graphscope.proto.groot.GraphDefPbOrBuilder>
getGraphDefFieldBuilder() {
if (graphDefBuilder_ == null) {
graphDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.alibaba.graphscope.proto.groot.GraphDefPb, com.alibaba.graphscope.proto.groot.GraphDefPb.Builder, com.alibaba.graphscope.proto.groot.GraphDefPbOrBuilder>(
getGraphDef(),
getParentForChildren(),
isClean());
graphDef_ = null;
}
return graphDefBuilder_;
}
private com.google.protobuf.Internal.LongList walOffsets_ = emptyLongList();
private void ensureWalOffsetsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
walOffsets_ = mutableCopy(walOffsets_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated int64 walOffsets = 4;
* @return A list containing the walOffsets.
*/
public java.util.List
getWalOffsetsList() {
return ((bitField0_ & 0x00000008) != 0) ?
java.util.Collections.unmodifiableList(walOffsets_) : walOffsets_;
}
/**
* repeated int64 walOffsets = 4;
* @return The count of walOffsets.
*/
public int getWalOffsetsCount() {
return walOffsets_.size();
}
/**
* repeated int64 walOffsets = 4;
* @param index The index of the element to return.
* @return The walOffsets at the given index.
*/
public long getWalOffsets(int index) {
return walOffsets_.getLong(index);
}
/**
* repeated int64 walOffsets = 4;
* @param index The index to set the value at.
* @param value The walOffsets to set.
* @return This builder for chaining.
*/
public Builder setWalOffsets(
int index, long value) {
ensureWalOffsetsIsMutable();
walOffsets_.setLong(index, value);
onChanged();
return this;
}
/**
* repeated int64 walOffsets = 4;
* @param value The walOffsets to add.
* @return This builder for chaining.
*/
public Builder addWalOffsets(long value) {
ensureWalOffsetsIsMutable();
walOffsets_.addLong(value);
onChanged();
return this;
}
/**
* repeated int64 walOffsets = 4;
* @param values The walOffsets to add.
* @return This builder for chaining.
*/
public Builder addAllWalOffsets(
java.lang.Iterable extends java.lang.Long> values) {
ensureWalOffsetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, walOffsets_);
onChanged();
return this;
}
/**
* repeated int64 walOffsets = 4;
* @return This builder for chaining.
*/
public Builder clearWalOffsets() {
walOffsets_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> partitionToBackupId_;
private com.google.protobuf.MapField
internalGetPartitionToBackupId() {
if (partitionToBackupId_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PartitionToBackupIdDefaultEntryHolder.defaultEntry);
}
return partitionToBackupId_;
}
private com.google.protobuf.MapField
internalGetMutablePartitionToBackupId() {
if (partitionToBackupId_ == null) {
partitionToBackupId_ = com.google.protobuf.MapField.newMapField(
PartitionToBackupIdDefaultEntryHolder.defaultEntry);
}
if (!partitionToBackupId_.isMutable()) {
partitionToBackupId_ = partitionToBackupId_.copy();
}
bitField0_ |= 0x00000010;
onChanged();
return partitionToBackupId_;
}
public int getPartitionToBackupIdCount() {
return internalGetPartitionToBackupId().getMap().size();
}
/**
* map<int32, int32> partitionToBackupId = 5;
*/
@java.lang.Override
public boolean containsPartitionToBackupId(
int key) {
return internalGetPartitionToBackupId().getMap().containsKey(key);
}
/**
* Use {@link #getPartitionToBackupIdMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getPartitionToBackupId() {
return getPartitionToBackupIdMap();
}
/**
* map<int32, int32> partitionToBackupId = 5;
*/
@java.lang.Override
public java.util.Map getPartitionToBackupIdMap() {
return internalGetPartitionToBackupId().getMap();
}
/**
* map<int32, int32> partitionToBackupId = 5;
*/
@java.lang.Override
public int getPartitionToBackupIdOrDefault(
int key,
int defaultValue) {
java.util.Map map =
internalGetPartitionToBackupId().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int32, int32> partitionToBackupId = 5;
*/
@java.lang.Override
public int getPartitionToBackupIdOrThrow(
int key) {
java.util.Map map =
internalGetPartitionToBackupId().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearPartitionToBackupId() {
bitField0_ = (bitField0_ & ~0x00000010);
internalGetMutablePartitionToBackupId().getMutableMap()
.clear();
return this;
}
/**
* map<int32, int32> partitionToBackupId = 5;
*/
public Builder removePartitionToBackupId(
int key) {
internalGetMutablePartitionToBackupId().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutablePartitionToBackupId() {
bitField0_ |= 0x00000010;
return internalGetMutablePartitionToBackupId().getMutableMap();
}
/**
* map<int32, int32> partitionToBackupId = 5;
*/
public Builder putPartitionToBackupId(
int key,
int value) {
internalGetMutablePartitionToBackupId().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000010;
return this;
}
/**
* map<int32, int32> partitionToBackupId = 5;
*/
public Builder putAllPartitionToBackupId(
java.util.Map values) {
internalGetMutablePartitionToBackupId().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000010;
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.BackupInfoPb)
}
// @@protoc_insertion_point(class_scope:gs.rpc.groot.BackupInfoPb)
private static final com.alibaba.graphscope.proto.groot.BackupInfoPb DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.alibaba.graphscope.proto.groot.BackupInfoPb();
}
public static com.alibaba.graphscope.proto.groot.BackupInfoPb getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BackupInfoPb 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.BackupInfoPb getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy