io.substrait.proto.Version Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Create a well-defined, cross-language specification for data compute operations
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: substrait/plan.proto
// Protobuf Java Version: 3.25.5
package io.substrait.proto;
/**
* Protobuf type {@code substrait.Version}
*/
public final class Version extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:substrait.Version)
VersionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Version.newBuilder() to construct.
private Version(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Version() {
gitHash_ = "";
producer_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Version();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.PlanOuterClass.internal_static_substrait_Version_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.PlanOuterClass.internal_static_substrait_Version_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Version.class, io.substrait.proto.Version.Builder.class);
}
public static final int MAJOR_NUMBER_FIELD_NUMBER = 1;
private int majorNumber_ = 0;
/**
*
* Substrait version number.
*
*
* uint32 major_number = 1;
* @return The majorNumber.
*/
@java.lang.Override
public int getMajorNumber() {
return majorNumber_;
}
public static final int MINOR_NUMBER_FIELD_NUMBER = 2;
private int minorNumber_ = 0;
/**
* uint32 minor_number = 2;
* @return The minorNumber.
*/
@java.lang.Override
public int getMinorNumber() {
return minorNumber_;
}
public static final int PATCH_NUMBER_FIELD_NUMBER = 3;
private int patchNumber_ = 0;
/**
* uint32 patch_number = 3;
* @return The patchNumber.
*/
@java.lang.Override
public int getPatchNumber() {
return patchNumber_;
}
public static final int GIT_HASH_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object gitHash_ = "";
/**
*
* If a particular version of Substrait is used that does not correspond to
* a version number exactly (for example when using an unofficial fork or
* using a version that is not yet released or is between versions), set this
* to the full git hash of the utilized commit of
* https://github.com/substrait-io/substrait (or fork thereof), represented
* using a lowercase hex ASCII string 40 characters in length. The version
* number above should be set to the most recent version tag in the history
* of that commit.
*
*
* string git_hash = 4;
* @return The gitHash.
*/
@java.lang.Override
public java.lang.String getGitHash() {
java.lang.Object ref = gitHash_;
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();
gitHash_ = s;
return s;
}
}
/**
*
* If a particular version of Substrait is used that does not correspond to
* a version number exactly (for example when using an unofficial fork or
* using a version that is not yet released or is between versions), set this
* to the full git hash of the utilized commit of
* https://github.com/substrait-io/substrait (or fork thereof), represented
* using a lowercase hex ASCII string 40 characters in length. The version
* number above should be set to the most recent version tag in the history
* of that commit.
*
*
* string git_hash = 4;
* @return The bytes for gitHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGitHashBytes() {
java.lang.Object ref = gitHash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gitHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRODUCER_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object producer_ = "";
/**
*
* Identifying information for the producer that created this plan. Under
* ideal circumstances, consumers should not need this information. However,
* it is foreseen that consumers may need to work around bugs in particular
* producers in practice, and therefore may need to know which producer
* created the plan.
*
*
* string producer = 5;
* @return The producer.
*/
@java.lang.Override
public java.lang.String getProducer() {
java.lang.Object ref = producer_;
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();
producer_ = s;
return s;
}
}
/**
*
* Identifying information for the producer that created this plan. Under
* ideal circumstances, consumers should not need this information. However,
* it is foreseen that consumers may need to work around bugs in particular
* producers in practice, and therefore may need to know which producer
* created the plan.
*
*
* string producer = 5;
* @return The bytes for producer.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getProducerBytes() {
java.lang.Object ref = producer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
producer_ = 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 (majorNumber_ != 0) {
output.writeUInt32(1, majorNumber_);
}
if (minorNumber_ != 0) {
output.writeUInt32(2, minorNumber_);
}
if (patchNumber_ != 0) {
output.writeUInt32(3, patchNumber_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gitHash_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, gitHash_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(producer_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, producer_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (majorNumber_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, majorNumber_);
}
if (minorNumber_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, minorNumber_);
}
if (patchNumber_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, patchNumber_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gitHash_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, gitHash_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(producer_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, producer_);
}
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 io.substrait.proto.Version)) {
return super.equals(obj);
}
io.substrait.proto.Version other = (io.substrait.proto.Version) obj;
if (getMajorNumber()
!= other.getMajorNumber()) return false;
if (getMinorNumber()
!= other.getMinorNumber()) return false;
if (getPatchNumber()
!= other.getPatchNumber()) return false;
if (!getGitHash()
.equals(other.getGitHash())) return false;
if (!getProducer()
.equals(other.getProducer())) 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) + MAJOR_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getMajorNumber();
hash = (37 * hash) + MINOR_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getMinorNumber();
hash = (37 * hash) + PATCH_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getPatchNumber();
hash = (37 * hash) + GIT_HASH_FIELD_NUMBER;
hash = (53 * hash) + getGitHash().hashCode();
hash = (37 * hash) + PRODUCER_FIELD_NUMBER;
hash = (53 * hash) + getProducer().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.substrait.proto.Version parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Version parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Version parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Version parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Version parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.substrait.proto.Version parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.substrait.proto.Version parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Version 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 io.substrait.proto.Version parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.substrait.proto.Version 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 io.substrait.proto.Version parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.substrait.proto.Version 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(io.substrait.proto.Version 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 substrait.Version}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:substrait.Version)
io.substrait.proto.VersionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.substrait.proto.PlanOuterClass.internal_static_substrait_Version_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.substrait.proto.PlanOuterClass.internal_static_substrait_Version_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.substrait.proto.Version.class, io.substrait.proto.Version.Builder.class);
}
// Construct using io.substrait.proto.Version.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
majorNumber_ = 0;
minorNumber_ = 0;
patchNumber_ = 0;
gitHash_ = "";
producer_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.substrait.proto.PlanOuterClass.internal_static_substrait_Version_descriptor;
}
@java.lang.Override
public io.substrait.proto.Version getDefaultInstanceForType() {
return io.substrait.proto.Version.getDefaultInstance();
}
@java.lang.Override
public io.substrait.proto.Version build() {
io.substrait.proto.Version result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.substrait.proto.Version buildPartial() {
io.substrait.proto.Version result = new io.substrait.proto.Version(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.substrait.proto.Version result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.majorNumber_ = majorNumber_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.minorNumber_ = minorNumber_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.patchNumber_ = patchNumber_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.gitHash_ = gitHash_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.producer_ = producer_;
}
}
@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 io.substrait.proto.Version) {
return mergeFrom((io.substrait.proto.Version)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.substrait.proto.Version other) {
if (other == io.substrait.proto.Version.getDefaultInstance()) return this;
if (other.getMajorNumber() != 0) {
setMajorNumber(other.getMajorNumber());
}
if (other.getMinorNumber() != 0) {
setMinorNumber(other.getMinorNumber());
}
if (other.getPatchNumber() != 0) {
setPatchNumber(other.getPatchNumber());
}
if (!other.getGitHash().isEmpty()) {
gitHash_ = other.gitHash_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getProducer().isEmpty()) {
producer_ = other.producer_;
bitField0_ |= 0x00000010;
onChanged();
}
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: {
majorNumber_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
minorNumber_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
patchNumber_ = input.readUInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
gitHash_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
producer_ = input.readStringRequireUtf8();
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 majorNumber_ ;
/**
*
* Substrait version number.
*
*
* uint32 major_number = 1;
* @return The majorNumber.
*/
@java.lang.Override
public int getMajorNumber() {
return majorNumber_;
}
/**
*
* Substrait version number.
*
*
* uint32 major_number = 1;
* @param value The majorNumber to set.
* @return This builder for chaining.
*/
public Builder setMajorNumber(int value) {
majorNumber_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Substrait version number.
*
*
* uint32 major_number = 1;
* @return This builder for chaining.
*/
public Builder clearMajorNumber() {
bitField0_ = (bitField0_ & ~0x00000001);
majorNumber_ = 0;
onChanged();
return this;
}
private int minorNumber_ ;
/**
* uint32 minor_number = 2;
* @return The minorNumber.
*/
@java.lang.Override
public int getMinorNumber() {
return minorNumber_;
}
/**
* uint32 minor_number = 2;
* @param value The minorNumber to set.
* @return This builder for chaining.
*/
public Builder setMinorNumber(int value) {
minorNumber_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* uint32 minor_number = 2;
* @return This builder for chaining.
*/
public Builder clearMinorNumber() {
bitField0_ = (bitField0_ & ~0x00000002);
minorNumber_ = 0;
onChanged();
return this;
}
private int patchNumber_ ;
/**
* uint32 patch_number = 3;
* @return The patchNumber.
*/
@java.lang.Override
public int getPatchNumber() {
return patchNumber_;
}
/**
* uint32 patch_number = 3;
* @param value The patchNumber to set.
* @return This builder for chaining.
*/
public Builder setPatchNumber(int value) {
patchNumber_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* uint32 patch_number = 3;
* @return This builder for chaining.
*/
public Builder clearPatchNumber() {
bitField0_ = (bitField0_ & ~0x00000004);
patchNumber_ = 0;
onChanged();
return this;
}
private java.lang.Object gitHash_ = "";
/**
*
* If a particular version of Substrait is used that does not correspond to
* a version number exactly (for example when using an unofficial fork or
* using a version that is not yet released or is between versions), set this
* to the full git hash of the utilized commit of
* https://github.com/substrait-io/substrait (or fork thereof), represented
* using a lowercase hex ASCII string 40 characters in length. The version
* number above should be set to the most recent version tag in the history
* of that commit.
*
*
* string git_hash = 4;
* @return The gitHash.
*/
public java.lang.String getGitHash() {
java.lang.Object ref = gitHash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
gitHash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If a particular version of Substrait is used that does not correspond to
* a version number exactly (for example when using an unofficial fork or
* using a version that is not yet released or is between versions), set this
* to the full git hash of the utilized commit of
* https://github.com/substrait-io/substrait (or fork thereof), represented
* using a lowercase hex ASCII string 40 characters in length. The version
* number above should be set to the most recent version tag in the history
* of that commit.
*
*
* string git_hash = 4;
* @return The bytes for gitHash.
*/
public com.google.protobuf.ByteString
getGitHashBytes() {
java.lang.Object ref = gitHash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gitHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If a particular version of Substrait is used that does not correspond to
* a version number exactly (for example when using an unofficial fork or
* using a version that is not yet released or is between versions), set this
* to the full git hash of the utilized commit of
* https://github.com/substrait-io/substrait (or fork thereof), represented
* using a lowercase hex ASCII string 40 characters in length. The version
* number above should be set to the most recent version tag in the history
* of that commit.
*
*
* string git_hash = 4;
* @param value The gitHash to set.
* @return This builder for chaining.
*/
public Builder setGitHash(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
gitHash_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* If a particular version of Substrait is used that does not correspond to
* a version number exactly (for example when using an unofficial fork or
* using a version that is not yet released or is between versions), set this
* to the full git hash of the utilized commit of
* https://github.com/substrait-io/substrait (or fork thereof), represented
* using a lowercase hex ASCII string 40 characters in length. The version
* number above should be set to the most recent version tag in the history
* of that commit.
*
*
* string git_hash = 4;
* @return This builder for chaining.
*/
public Builder clearGitHash() {
gitHash_ = getDefaultInstance().getGitHash();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* If a particular version of Substrait is used that does not correspond to
* a version number exactly (for example when using an unofficial fork or
* using a version that is not yet released or is between versions), set this
* to the full git hash of the utilized commit of
* https://github.com/substrait-io/substrait (or fork thereof), represented
* using a lowercase hex ASCII string 40 characters in length. The version
* number above should be set to the most recent version tag in the history
* of that commit.
*
*
* string git_hash = 4;
* @param value The bytes for gitHash to set.
* @return This builder for chaining.
*/
public Builder setGitHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
gitHash_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object producer_ = "";
/**
*
* Identifying information for the producer that created this plan. Under
* ideal circumstances, consumers should not need this information. However,
* it is foreseen that consumers may need to work around bugs in particular
* producers in practice, and therefore may need to know which producer
* created the plan.
*
*
* string producer = 5;
* @return The producer.
*/
public java.lang.String getProducer() {
java.lang.Object ref = producer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
producer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Identifying information for the producer that created this plan. Under
* ideal circumstances, consumers should not need this information. However,
* it is foreseen that consumers may need to work around bugs in particular
* producers in practice, and therefore may need to know which producer
* created the plan.
*
*
* string producer = 5;
* @return The bytes for producer.
*/
public com.google.protobuf.ByteString
getProducerBytes() {
java.lang.Object ref = producer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
producer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Identifying information for the producer that created this plan. Under
* ideal circumstances, consumers should not need this information. However,
* it is foreseen that consumers may need to work around bugs in particular
* producers in practice, and therefore may need to know which producer
* created the plan.
*
*
* string producer = 5;
* @param value The producer to set.
* @return This builder for chaining.
*/
public Builder setProducer(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
producer_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Identifying information for the producer that created this plan. Under
* ideal circumstances, consumers should not need this information. However,
* it is foreseen that consumers may need to work around bugs in particular
* producers in practice, and therefore may need to know which producer
* created the plan.
*
*
* string producer = 5;
* @return This builder for chaining.
*/
public Builder clearProducer() {
producer_ = getDefaultInstance().getProducer();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Identifying information for the producer that created this plan. Under
* ideal circumstances, consumers should not need this information. However,
* it is foreseen that consumers may need to work around bugs in particular
* producers in practice, and therefore may need to know which producer
* created the plan.
*
*
* string producer = 5;
* @param value The bytes for producer to set.
* @return This builder for chaining.
*/
public Builder setProducerBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
producer_ = value;
bitField0_ |= 0x00000010;
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:substrait.Version)
}
// @@protoc_insertion_point(class_scope:substrait.Version)
private static final io.substrait.proto.Version DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.substrait.proto.Version();
}
public static io.substrait.proto.Version getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Version 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 io.substrait.proto.Version getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy