cz.proto.TableStreamState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: table_common.proto
package cz.proto;
/**
* Protobuf type {@code cz.proto.TableStreamState}
*/
public final class TableStreamState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.TableStreamState)
TableStreamStateOrBuilder {
private static final long serialVersionUID = 0L;
// Use TableStreamState.newBuilder() to construct.
private TableStreamState(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TableStreamState() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TableStreamState();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TableStreamState(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
cz.proto.ObjectIdentifier.Builder subBuilder = null;
if (stream_ != null) {
subBuilder = stream_.toBuilder();
}
stream_ = input.readMessage(cz.proto.ObjectIdentifier.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(stream_);
stream_ = subBuilder.buildPartial();
}
break;
}
case 16: {
fromSnapshot_ = input.readInt64();
break;
}
case 24: {
toSnapshot_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.TableCommon.internal_static_cz_proto_TableStreamState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.TableCommon.internal_static_cz_proto_TableStreamState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.TableStreamState.class, cz.proto.TableStreamState.Builder.class);
}
public static final int STREAM_FIELD_NUMBER = 1;
private cz.proto.ObjectIdentifier stream_;
/**
* .cz.proto.ObjectIdentifier stream = 1;
* @return Whether the stream field is set.
*/
@java.lang.Override
public boolean hasStream() {
return stream_ != null;
}
/**
* .cz.proto.ObjectIdentifier stream = 1;
* @return The stream.
*/
@java.lang.Override
public cz.proto.ObjectIdentifier getStream() {
return stream_ == null ? cz.proto.ObjectIdentifier.getDefaultInstance() : stream_;
}
/**
* .cz.proto.ObjectIdentifier stream = 1;
*/
@java.lang.Override
public cz.proto.ObjectIdentifierOrBuilder getStreamOrBuilder() {
return getStream();
}
public static final int FROM_SNAPSHOT_FIELD_NUMBER = 2;
private long fromSnapshot_;
/**
* int64 from_snapshot = 2;
* @return The fromSnapshot.
*/
@java.lang.Override
public long getFromSnapshot() {
return fromSnapshot_;
}
public static final int TO_SNAPSHOT_FIELD_NUMBER = 3;
private long toSnapshot_;
/**
* int64 to_snapshot = 3;
* @return The toSnapshot.
*/
@java.lang.Override
public long getToSnapshot() {
return toSnapshot_;
}
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 (stream_ != null) {
output.writeMessage(1, getStream());
}
if (fromSnapshot_ != 0L) {
output.writeInt64(2, fromSnapshot_);
}
if (toSnapshot_ != 0L) {
output.writeInt64(3, toSnapshot_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (stream_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStream());
}
if (fromSnapshot_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, fromSnapshot_);
}
if (toSnapshot_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, toSnapshot_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cz.proto.TableStreamState)) {
return super.equals(obj);
}
cz.proto.TableStreamState other = (cz.proto.TableStreamState) obj;
if (hasStream() != other.hasStream()) return false;
if (hasStream()) {
if (!getStream()
.equals(other.getStream())) return false;
}
if (getFromSnapshot()
!= other.getFromSnapshot()) return false;
if (getToSnapshot()
!= other.getToSnapshot()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasStream()) {
hash = (37 * hash) + STREAM_FIELD_NUMBER;
hash = (53 * hash) + getStream().hashCode();
}
hash = (37 * hash) + FROM_SNAPSHOT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFromSnapshot());
hash = (37 * hash) + TO_SNAPSHOT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getToSnapshot());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.TableStreamState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.TableStreamState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.TableStreamState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.TableStreamState parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.TableStreamState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.TableStreamState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.TableStreamState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.TableStreamState 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 cz.proto.TableStreamState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.TableStreamState 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 cz.proto.TableStreamState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.TableStreamState 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(cz.proto.TableStreamState 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 cz.proto.TableStreamState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.TableStreamState)
cz.proto.TableStreamStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.TableCommon.internal_static_cz_proto_TableStreamState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.TableCommon.internal_static_cz_proto_TableStreamState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.TableStreamState.class, cz.proto.TableStreamState.Builder.class);
}
// Construct using cz.proto.TableStreamState.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (streamBuilder_ == null) {
stream_ = null;
} else {
stream_ = null;
streamBuilder_ = null;
}
fromSnapshot_ = 0L;
toSnapshot_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.TableCommon.internal_static_cz_proto_TableStreamState_descriptor;
}
@java.lang.Override
public cz.proto.TableStreamState getDefaultInstanceForType() {
return cz.proto.TableStreamState.getDefaultInstance();
}
@java.lang.Override
public cz.proto.TableStreamState build() {
cz.proto.TableStreamState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.TableStreamState buildPartial() {
cz.proto.TableStreamState result = new cz.proto.TableStreamState(this);
if (streamBuilder_ == null) {
result.stream_ = stream_;
} else {
result.stream_ = streamBuilder_.build();
}
result.fromSnapshot_ = fromSnapshot_;
result.toSnapshot_ = toSnapshot_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cz.proto.TableStreamState) {
return mergeFrom((cz.proto.TableStreamState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.TableStreamState other) {
if (other == cz.proto.TableStreamState.getDefaultInstance()) return this;
if (other.hasStream()) {
mergeStream(other.getStream());
}
if (other.getFromSnapshot() != 0L) {
setFromSnapshot(other.getFromSnapshot());
}
if (other.getToSnapshot() != 0L) {
setToSnapshot(other.getToSnapshot());
}
this.mergeUnknownFields(other.unknownFields);
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 {
cz.proto.TableStreamState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.TableStreamState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private cz.proto.ObjectIdentifier stream_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ObjectIdentifier, cz.proto.ObjectIdentifier.Builder, cz.proto.ObjectIdentifierOrBuilder> streamBuilder_;
/**
* .cz.proto.ObjectIdentifier stream = 1;
* @return Whether the stream field is set.
*/
public boolean hasStream() {
return streamBuilder_ != null || stream_ != null;
}
/**
* .cz.proto.ObjectIdentifier stream = 1;
* @return The stream.
*/
public cz.proto.ObjectIdentifier getStream() {
if (streamBuilder_ == null) {
return stream_ == null ? cz.proto.ObjectIdentifier.getDefaultInstance() : stream_;
} else {
return streamBuilder_.getMessage();
}
}
/**
* .cz.proto.ObjectIdentifier stream = 1;
*/
public Builder setStream(cz.proto.ObjectIdentifier value) {
if (streamBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stream_ = value;
onChanged();
} else {
streamBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.ObjectIdentifier stream = 1;
*/
public Builder setStream(
cz.proto.ObjectIdentifier.Builder builderForValue) {
if (streamBuilder_ == null) {
stream_ = builderForValue.build();
onChanged();
} else {
streamBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.ObjectIdentifier stream = 1;
*/
public Builder mergeStream(cz.proto.ObjectIdentifier value) {
if (streamBuilder_ == null) {
if (stream_ != null) {
stream_ =
cz.proto.ObjectIdentifier.newBuilder(stream_).mergeFrom(value).buildPartial();
} else {
stream_ = value;
}
onChanged();
} else {
streamBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.ObjectIdentifier stream = 1;
*/
public Builder clearStream() {
if (streamBuilder_ == null) {
stream_ = null;
onChanged();
} else {
stream_ = null;
streamBuilder_ = null;
}
return this;
}
/**
* .cz.proto.ObjectIdentifier stream = 1;
*/
public cz.proto.ObjectIdentifier.Builder getStreamBuilder() {
onChanged();
return getStreamFieldBuilder().getBuilder();
}
/**
* .cz.proto.ObjectIdentifier stream = 1;
*/
public cz.proto.ObjectIdentifierOrBuilder getStreamOrBuilder() {
if (streamBuilder_ != null) {
return streamBuilder_.getMessageOrBuilder();
} else {
return stream_ == null ?
cz.proto.ObjectIdentifier.getDefaultInstance() : stream_;
}
}
/**
* .cz.proto.ObjectIdentifier stream = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ObjectIdentifier, cz.proto.ObjectIdentifier.Builder, cz.proto.ObjectIdentifierOrBuilder>
getStreamFieldBuilder() {
if (streamBuilder_ == null) {
streamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ObjectIdentifier, cz.proto.ObjectIdentifier.Builder, cz.proto.ObjectIdentifierOrBuilder>(
getStream(),
getParentForChildren(),
isClean());
stream_ = null;
}
return streamBuilder_;
}
private long fromSnapshot_ ;
/**
* int64 from_snapshot = 2;
* @return The fromSnapshot.
*/
@java.lang.Override
public long getFromSnapshot() {
return fromSnapshot_;
}
/**
* int64 from_snapshot = 2;
* @param value The fromSnapshot to set.
* @return This builder for chaining.
*/
public Builder setFromSnapshot(long value) {
fromSnapshot_ = value;
onChanged();
return this;
}
/**
* int64 from_snapshot = 2;
* @return This builder for chaining.
*/
public Builder clearFromSnapshot() {
fromSnapshot_ = 0L;
onChanged();
return this;
}
private long toSnapshot_ ;
/**
* int64 to_snapshot = 3;
* @return The toSnapshot.
*/
@java.lang.Override
public long getToSnapshot() {
return toSnapshot_;
}
/**
* int64 to_snapshot = 3;
* @param value The toSnapshot to set.
* @return This builder for chaining.
*/
public Builder setToSnapshot(long value) {
toSnapshot_ = value;
onChanged();
return this;
}
/**
* int64 to_snapshot = 3;
* @return This builder for chaining.
*/
public Builder clearToSnapshot() {
toSnapshot_ = 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:cz.proto.TableStreamState)
}
// @@protoc_insertion_point(class_scope:cz.proto.TableStreamState)
private static final cz.proto.TableStreamState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.TableStreamState();
}
public static cz.proto.TableStreamState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TableStreamState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TableStreamState(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cz.proto.TableStreamState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy