cz.proto.JobHistory 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: job_meta.proto
package cz.proto;
/**
* Protobuf type {@code cz.proto.JobHistory}
*/
public final class JobHistory extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.JobHistory)
JobHistoryOrBuilder {
private static final long serialVersionUID = 0L;
// Use JobHistory.newBuilder() to construct.
private JobHistory(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private JobHistory() {
coordinatorHost_ = "";
releaseVersion_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new JobHistory();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private JobHistory(
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: {
java.lang.String s = input.readStringRequireUtf8();
coordinatorHost_ = s;
break;
}
case 16: {
coordinatorVersion_ = input.readUInt64();
break;
}
case 24: {
startTimeMs_ = input.readUInt64();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
releaseVersion_ = s;
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.JobMetaOuterClass.internal_static_cz_proto_JobHistory_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.JobMetaOuterClass.internal_static_cz_proto_JobHistory_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.JobHistory.class, cz.proto.JobHistory.Builder.class);
}
public static final int COORDINATOR_HOST_FIELD_NUMBER = 1;
private volatile java.lang.Object coordinatorHost_;
/**
* string coordinator_host = 1;
* @return The coordinatorHost.
*/
@java.lang.Override
public java.lang.String getCoordinatorHost() {
java.lang.Object ref = coordinatorHost_;
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();
coordinatorHost_ = s;
return s;
}
}
/**
* string coordinator_host = 1;
* @return The bytes for coordinatorHost.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCoordinatorHostBytes() {
java.lang.Object ref = coordinatorHost_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
coordinatorHost_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COORDINATOR_VERSION_FIELD_NUMBER = 2;
private long coordinatorVersion_;
/**
* uint64 coordinator_version = 2;
* @return The coordinatorVersion.
*/
@java.lang.Override
public long getCoordinatorVersion() {
return coordinatorVersion_;
}
public static final int START_TIME_MS_FIELD_NUMBER = 3;
private long startTimeMs_;
/**
* uint64 start_time_ms = 3;
* @return The startTimeMs.
*/
@java.lang.Override
public long getStartTimeMs() {
return startTimeMs_;
}
public static final int RELEASE_VERSION_FIELD_NUMBER = 4;
private volatile java.lang.Object releaseVersion_;
/**
* string release_version = 4;
* @return The releaseVersion.
*/
@java.lang.Override
public java.lang.String getReleaseVersion() {
java.lang.Object ref = releaseVersion_;
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();
releaseVersion_ = s;
return s;
}
}
/**
* string release_version = 4;
* @return The bytes for releaseVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReleaseVersionBytes() {
java.lang.Object ref = releaseVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
releaseVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(coordinatorHost_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, coordinatorHost_);
}
if (coordinatorVersion_ != 0L) {
output.writeUInt64(2, coordinatorVersion_);
}
if (startTimeMs_ != 0L) {
output.writeUInt64(3, startTimeMs_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, releaseVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(coordinatorHost_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, coordinatorHost_);
}
if (coordinatorVersion_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, coordinatorVersion_);
}
if (startTimeMs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, startTimeMs_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, releaseVersion_);
}
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.JobHistory)) {
return super.equals(obj);
}
cz.proto.JobHistory other = (cz.proto.JobHistory) obj;
if (!getCoordinatorHost()
.equals(other.getCoordinatorHost())) return false;
if (getCoordinatorVersion()
!= other.getCoordinatorVersion()) return false;
if (getStartTimeMs()
!= other.getStartTimeMs()) return false;
if (!getReleaseVersion()
.equals(other.getReleaseVersion())) 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();
hash = (37 * hash) + COORDINATOR_HOST_FIELD_NUMBER;
hash = (53 * hash) + getCoordinatorHost().hashCode();
hash = (37 * hash) + COORDINATOR_VERSION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCoordinatorVersion());
hash = (37 * hash) + START_TIME_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTimeMs());
hash = (37 * hash) + RELEASE_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getReleaseVersion().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.JobHistory parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.JobHistory parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.JobHistory parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.JobHistory 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.JobHistory parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.JobHistory parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.JobHistory parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.JobHistory 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.JobHistory parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.JobHistory 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.JobHistory parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.JobHistory 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.JobHistory 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.JobHistory}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.JobHistory)
cz.proto.JobHistoryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.JobMetaOuterClass.internal_static_cz_proto_JobHistory_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.JobMetaOuterClass.internal_static_cz_proto_JobHistory_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.JobHistory.class, cz.proto.JobHistory.Builder.class);
}
// Construct using cz.proto.JobHistory.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();
coordinatorHost_ = "";
coordinatorVersion_ = 0L;
startTimeMs_ = 0L;
releaseVersion_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.JobMetaOuterClass.internal_static_cz_proto_JobHistory_descriptor;
}
@java.lang.Override
public cz.proto.JobHistory getDefaultInstanceForType() {
return cz.proto.JobHistory.getDefaultInstance();
}
@java.lang.Override
public cz.proto.JobHistory build() {
cz.proto.JobHistory result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.JobHistory buildPartial() {
cz.proto.JobHistory result = new cz.proto.JobHistory(this);
result.coordinatorHost_ = coordinatorHost_;
result.coordinatorVersion_ = coordinatorVersion_;
result.startTimeMs_ = startTimeMs_;
result.releaseVersion_ = releaseVersion_;
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.JobHistory) {
return mergeFrom((cz.proto.JobHistory)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.JobHistory other) {
if (other == cz.proto.JobHistory.getDefaultInstance()) return this;
if (!other.getCoordinatorHost().isEmpty()) {
coordinatorHost_ = other.coordinatorHost_;
onChanged();
}
if (other.getCoordinatorVersion() != 0L) {
setCoordinatorVersion(other.getCoordinatorVersion());
}
if (other.getStartTimeMs() != 0L) {
setStartTimeMs(other.getStartTimeMs());
}
if (!other.getReleaseVersion().isEmpty()) {
releaseVersion_ = other.releaseVersion_;
onChanged();
}
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.JobHistory parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.JobHistory) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object coordinatorHost_ = "";
/**
* string coordinator_host = 1;
* @return The coordinatorHost.
*/
public java.lang.String getCoordinatorHost() {
java.lang.Object ref = coordinatorHost_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
coordinatorHost_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string coordinator_host = 1;
* @return The bytes for coordinatorHost.
*/
public com.google.protobuf.ByteString
getCoordinatorHostBytes() {
java.lang.Object ref = coordinatorHost_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
coordinatorHost_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string coordinator_host = 1;
* @param value The coordinatorHost to set.
* @return This builder for chaining.
*/
public Builder setCoordinatorHost(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
coordinatorHost_ = value;
onChanged();
return this;
}
/**
* string coordinator_host = 1;
* @return This builder for chaining.
*/
public Builder clearCoordinatorHost() {
coordinatorHost_ = getDefaultInstance().getCoordinatorHost();
onChanged();
return this;
}
/**
* string coordinator_host = 1;
* @param value The bytes for coordinatorHost to set.
* @return This builder for chaining.
*/
public Builder setCoordinatorHostBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
coordinatorHost_ = value;
onChanged();
return this;
}
private long coordinatorVersion_ ;
/**
* uint64 coordinator_version = 2;
* @return The coordinatorVersion.
*/
@java.lang.Override
public long getCoordinatorVersion() {
return coordinatorVersion_;
}
/**
* uint64 coordinator_version = 2;
* @param value The coordinatorVersion to set.
* @return This builder for chaining.
*/
public Builder setCoordinatorVersion(long value) {
coordinatorVersion_ = value;
onChanged();
return this;
}
/**
* uint64 coordinator_version = 2;
* @return This builder for chaining.
*/
public Builder clearCoordinatorVersion() {
coordinatorVersion_ = 0L;
onChanged();
return this;
}
private long startTimeMs_ ;
/**
* uint64 start_time_ms = 3;
* @return The startTimeMs.
*/
@java.lang.Override
public long getStartTimeMs() {
return startTimeMs_;
}
/**
* uint64 start_time_ms = 3;
* @param value The startTimeMs to set.
* @return This builder for chaining.
*/
public Builder setStartTimeMs(long value) {
startTimeMs_ = value;
onChanged();
return this;
}
/**
* uint64 start_time_ms = 3;
* @return This builder for chaining.
*/
public Builder clearStartTimeMs() {
startTimeMs_ = 0L;
onChanged();
return this;
}
private java.lang.Object releaseVersion_ = "";
/**
* string release_version = 4;
* @return The releaseVersion.
*/
public java.lang.String getReleaseVersion() {
java.lang.Object ref = releaseVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
releaseVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string release_version = 4;
* @return The bytes for releaseVersion.
*/
public com.google.protobuf.ByteString
getReleaseVersionBytes() {
java.lang.Object ref = releaseVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
releaseVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string release_version = 4;
* @param value The releaseVersion to set.
* @return This builder for chaining.
*/
public Builder setReleaseVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
releaseVersion_ = value;
onChanged();
return this;
}
/**
* string release_version = 4;
* @return This builder for chaining.
*/
public Builder clearReleaseVersion() {
releaseVersion_ = getDefaultInstance().getReleaseVersion();
onChanged();
return this;
}
/**
* string release_version = 4;
* @param value The bytes for releaseVersion to set.
* @return This builder for chaining.
*/
public Builder setReleaseVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
releaseVersion_ = value;
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.JobHistory)
}
// @@protoc_insertion_point(class_scope:cz.proto.JobHistory)
private static final cz.proto.JobHistory DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.JobHistory();
}
public static cz.proto.JobHistory getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public JobHistory parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new JobHistory(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.JobHistory getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy