All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.apache.bookkeeper.stream.proto.RangeProperties Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: stream.proto
package org.apache.bookkeeper.stream.proto;
/**
* Protobuf type {@code bookkeeper.proto.stream.RangeProperties}
*/
public final class RangeProperties extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:bookkeeper.proto.stream.RangeProperties)
RangePropertiesOrBuilder {
private static final long serialVersionUID = 0L;
// Use RangeProperties.newBuilder() to construct.
private RangeProperties(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RangeProperties() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RangeProperties();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.bookkeeper.stream.proto.Stream.internal_static_bookkeeper_proto_stream_RangeProperties_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.bookkeeper.stream.proto.Stream.internal_static_bookkeeper_proto_stream_RangeProperties_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.bookkeeper.stream.proto.RangeProperties.class, org.apache.bookkeeper.stream.proto.RangeProperties.Builder.class);
}
public static final int START_HASH_KEY_FIELD_NUMBER = 1;
private long startHashKey_ = 0L;
/**
* int64 start_hash_key = 1;
* @return The startHashKey.
*/
@java.lang.Override
public long getStartHashKey() {
return startHashKey_;
}
public static final int END_HASH_KEY_FIELD_NUMBER = 2;
private long endHashKey_ = 0L;
/**
* int64 end_hash_key = 2;
* @return The endHashKey.
*/
@java.lang.Override
public long getEndHashKey() {
return endHashKey_;
}
public static final int RANGE_ID_FIELD_NUMBER = 3;
private long rangeId_ = 0L;
/**
* int64 range_id = 3;
* @return The rangeId.
*/
@java.lang.Override
public long getRangeId() {
return rangeId_;
}
public static final int STORAGE_CONTAINER_ID_FIELD_NUMBER = 4;
private long storageContainerId_ = 0L;
/**
* int64 storage_container_id = 4;
* @return The storageContainerId.
*/
@java.lang.Override
public long getStorageContainerId() {
return storageContainerId_;
}
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 (startHashKey_ != 0L) {
output.writeInt64(1, startHashKey_);
}
if (endHashKey_ != 0L) {
output.writeInt64(2, endHashKey_);
}
if (rangeId_ != 0L) {
output.writeInt64(3, rangeId_);
}
if (storageContainerId_ != 0L) {
output.writeInt64(4, storageContainerId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (startHashKey_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, startHashKey_);
}
if (endHashKey_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, endHashKey_);
}
if (rangeId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, rangeId_);
}
if (storageContainerId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, storageContainerId_);
}
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 org.apache.bookkeeper.stream.proto.RangeProperties)) {
return super.equals(obj);
}
org.apache.bookkeeper.stream.proto.RangeProperties other = (org.apache.bookkeeper.stream.proto.RangeProperties) obj;
if (getStartHashKey()
!= other.getStartHashKey()) return false;
if (getEndHashKey()
!= other.getEndHashKey()) return false;
if (getRangeId()
!= other.getRangeId()) return false;
if (getStorageContainerId()
!= other.getStorageContainerId()) 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) + START_HASH_KEY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartHashKey());
hash = (37 * hash) + END_HASH_KEY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEndHashKey());
hash = (37 * hash) + RANGE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRangeId());
hash = (37 * hash) + STORAGE_CONTAINER_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStorageContainerId());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.bookkeeper.stream.proto.RangeProperties parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.bookkeeper.stream.proto.RangeProperties parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.bookkeeper.stream.proto.RangeProperties parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.bookkeeper.stream.proto.RangeProperties parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.bookkeeper.stream.proto.RangeProperties parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.bookkeeper.stream.proto.RangeProperties parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.bookkeeper.stream.proto.RangeProperties parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.bookkeeper.stream.proto.RangeProperties 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 org.apache.bookkeeper.stream.proto.RangeProperties parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.bookkeeper.stream.proto.RangeProperties 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 org.apache.bookkeeper.stream.proto.RangeProperties parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.bookkeeper.stream.proto.RangeProperties 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(org.apache.bookkeeper.stream.proto.RangeProperties 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 bookkeeper.proto.stream.RangeProperties}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:bookkeeper.proto.stream.RangeProperties)
org.apache.bookkeeper.stream.proto.RangePropertiesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.bookkeeper.stream.proto.Stream.internal_static_bookkeeper_proto_stream_RangeProperties_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.bookkeeper.stream.proto.Stream.internal_static_bookkeeper_proto_stream_RangeProperties_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.bookkeeper.stream.proto.RangeProperties.class, org.apache.bookkeeper.stream.proto.RangeProperties.Builder.class);
}
// Construct using org.apache.bookkeeper.stream.proto.RangeProperties.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
startHashKey_ = 0L;
endHashKey_ = 0L;
rangeId_ = 0L;
storageContainerId_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.bookkeeper.stream.proto.Stream.internal_static_bookkeeper_proto_stream_RangeProperties_descriptor;
}
@java.lang.Override
public org.apache.bookkeeper.stream.proto.RangeProperties getDefaultInstanceForType() {
return org.apache.bookkeeper.stream.proto.RangeProperties.getDefaultInstance();
}
@java.lang.Override
public org.apache.bookkeeper.stream.proto.RangeProperties build() {
org.apache.bookkeeper.stream.proto.RangeProperties result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.bookkeeper.stream.proto.RangeProperties buildPartial() {
org.apache.bookkeeper.stream.proto.RangeProperties result = new org.apache.bookkeeper.stream.proto.RangeProperties(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.bookkeeper.stream.proto.RangeProperties result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.startHashKey_ = startHashKey_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.endHashKey_ = endHashKey_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.rangeId_ = rangeId_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.storageContainerId_ = storageContainerId_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.bookkeeper.stream.proto.RangeProperties) {
return mergeFrom((org.apache.bookkeeper.stream.proto.RangeProperties)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.bookkeeper.stream.proto.RangeProperties other) {
if (other == org.apache.bookkeeper.stream.proto.RangeProperties.getDefaultInstance()) return this;
if (other.getStartHashKey() != 0L) {
setStartHashKey(other.getStartHashKey());
}
if (other.getEndHashKey() != 0L) {
setEndHashKey(other.getEndHashKey());
}
if (other.getRangeId() != 0L) {
setRangeId(other.getRangeId());
}
if (other.getStorageContainerId() != 0L) {
setStorageContainerId(other.getStorageContainerId());
}
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: {
startHashKey_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
endHashKey_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
rangeId_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
storageContainerId_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long startHashKey_ ;
/**
* int64 start_hash_key = 1;
* @return The startHashKey.
*/
@java.lang.Override
public long getStartHashKey() {
return startHashKey_;
}
/**
* int64 start_hash_key = 1;
* @param value The startHashKey to set.
* @return This builder for chaining.
*/
public Builder setStartHashKey(long value) {
startHashKey_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int64 start_hash_key = 1;
* @return This builder for chaining.
*/
public Builder clearStartHashKey() {
bitField0_ = (bitField0_ & ~0x00000001);
startHashKey_ = 0L;
onChanged();
return this;
}
private long endHashKey_ ;
/**
* int64 end_hash_key = 2;
* @return The endHashKey.
*/
@java.lang.Override
public long getEndHashKey() {
return endHashKey_;
}
/**
* int64 end_hash_key = 2;
* @param value The endHashKey to set.
* @return This builder for chaining.
*/
public Builder setEndHashKey(long value) {
endHashKey_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* int64 end_hash_key = 2;
* @return This builder for chaining.
*/
public Builder clearEndHashKey() {
bitField0_ = (bitField0_ & ~0x00000002);
endHashKey_ = 0L;
onChanged();
return this;
}
private long rangeId_ ;
/**
* int64 range_id = 3;
* @return The rangeId.
*/
@java.lang.Override
public long getRangeId() {
return rangeId_;
}
/**
* int64 range_id = 3;
* @param value The rangeId to set.
* @return This builder for chaining.
*/
public Builder setRangeId(long value) {
rangeId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* int64 range_id = 3;
* @return This builder for chaining.
*/
public Builder clearRangeId() {
bitField0_ = (bitField0_ & ~0x00000004);
rangeId_ = 0L;
onChanged();
return this;
}
private long storageContainerId_ ;
/**
* int64 storage_container_id = 4;
* @return The storageContainerId.
*/
@java.lang.Override
public long getStorageContainerId() {
return storageContainerId_;
}
/**
* int64 storage_container_id = 4;
* @param value The storageContainerId to set.
* @return This builder for chaining.
*/
public Builder setStorageContainerId(long value) {
storageContainerId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* int64 storage_container_id = 4;
* @return This builder for chaining.
*/
public Builder clearStorageContainerId() {
bitField0_ = (bitField0_ & ~0x00000008);
storageContainerId_ = 0L;
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:bookkeeper.proto.stream.RangeProperties)
}
// @@protoc_insertion_point(class_scope:bookkeeper.proto.stream.RangeProperties)
private static final org.apache.bookkeeper.stream.proto.RangeProperties DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.bookkeeper.stream.proto.RangeProperties();
}
public static org.apache.bookkeeper.stream.proto.RangeProperties getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RangeProperties 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 org.apache.bookkeeper.stream.proto.RangeProperties getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}