cz.proto.SQLJob 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.SQLJob}
*/
public final class SQLJob extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.SQLJob)
SQLJobOrBuilder {
private static final long serialVersionUID = 0L;
// Use SQLJob.newBuilder() to construct.
private SQLJob(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SQLJob() {
query_ = com.google.protobuf.LazyStringArrayList.EMPTY;
defaultNamespace_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SQLJob();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SQLJob(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
query_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
query_.add(s);
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
defaultNamespace_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
defaultNamespace_.add(s);
break;
}
case 26: {
cz.proto.SQLJobConfig.Builder subBuilder = null;
if (sqlConfig_ != null) {
subBuilder = sqlConfig_.toBuilder();
}
sqlConfig_ = input.readMessage(cz.proto.SQLJobConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sqlConfig_);
sqlConfig_ = subBuilder.buildPartial();
}
break;
}
case 32: {
defaultInstanceId_ = 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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
query_ = query_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
defaultNamespace_ = defaultNamespace_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.JobMetaOuterClass.internal_static_cz_proto_SQLJob_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.JobMetaOuterClass.internal_static_cz_proto_SQLJob_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.SQLJob.class, cz.proto.SQLJob.Builder.class);
}
public static final int QUERY_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList query_;
/**
* repeated string query = 1;
* @return A list containing the query.
*/
public com.google.protobuf.ProtocolStringList
getQueryList() {
return query_;
}
/**
* repeated string query = 1;
* @return The count of query.
*/
public int getQueryCount() {
return query_.size();
}
/**
* repeated string query = 1;
* @param index The index of the element to return.
* @return The query at the given index.
*/
public java.lang.String getQuery(int index) {
return query_.get(index);
}
/**
* repeated string query = 1;
* @param index The index of the value to return.
* @return The bytes of the query at the given index.
*/
public com.google.protobuf.ByteString
getQueryBytes(int index) {
return query_.getByteString(index);
}
public static final int DEFAULT_NAMESPACE_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList defaultNamespace_;
/**
*
* namespace = [workspace, schema]
*
*
* repeated string default_namespace = 2;
* @return A list containing the defaultNamespace.
*/
public com.google.protobuf.ProtocolStringList
getDefaultNamespaceList() {
return defaultNamespace_;
}
/**
*
* namespace = [workspace, schema]
*
*
* repeated string default_namespace = 2;
* @return The count of defaultNamespace.
*/
public int getDefaultNamespaceCount() {
return defaultNamespace_.size();
}
/**
*
* namespace = [workspace, schema]
*
*
* repeated string default_namespace = 2;
* @param index The index of the element to return.
* @return The defaultNamespace at the given index.
*/
public java.lang.String getDefaultNamespace(int index) {
return defaultNamespace_.get(index);
}
/**
*
* namespace = [workspace, schema]
*
*
* repeated string default_namespace = 2;
* @param index The index of the value to return.
* @return The bytes of the defaultNamespace at the given index.
*/
public com.google.protobuf.ByteString
getDefaultNamespaceBytes(int index) {
return defaultNamespace_.getByteString(index);
}
public static final int SQL_CONFIG_FIELD_NUMBER = 3;
private cz.proto.SQLJobConfig sqlConfig_;
/**
* .cz.proto.SQLJobConfig sql_config = 3;
* @return Whether the sqlConfig field is set.
*/
@java.lang.Override
public boolean hasSqlConfig() {
return sqlConfig_ != null;
}
/**
* .cz.proto.SQLJobConfig sql_config = 3;
* @return The sqlConfig.
*/
@java.lang.Override
public cz.proto.SQLJobConfig getSqlConfig() {
return sqlConfig_ == null ? cz.proto.SQLJobConfig.getDefaultInstance() : sqlConfig_;
}
/**
* .cz.proto.SQLJobConfig sql_config = 3;
*/
@java.lang.Override
public cz.proto.SQLJobConfigOrBuilder getSqlConfigOrBuilder() {
return getSqlConfig();
}
public static final int DEFAULT_INSTANCE_ID_FIELD_NUMBER = 4;
private long defaultInstanceId_;
/**
* int64 default_instance_id = 4;
* @return The defaultInstanceId.
*/
@java.lang.Override
public long getDefaultInstanceId() {
return defaultInstanceId_;
}
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 {
for (int i = 0; i < query_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_.getRaw(i));
}
for (int i = 0; i < defaultNamespace_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultNamespace_.getRaw(i));
}
if (sqlConfig_ != null) {
output.writeMessage(3, getSqlConfig());
}
if (defaultInstanceId_ != 0L) {
output.writeInt64(4, defaultInstanceId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < query_.size(); i++) {
dataSize += computeStringSizeNoTag(query_.getRaw(i));
}
size += dataSize;
size += 1 * getQueryList().size();
}
{
int dataSize = 0;
for (int i = 0; i < defaultNamespace_.size(); i++) {
dataSize += computeStringSizeNoTag(defaultNamespace_.getRaw(i));
}
size += dataSize;
size += 1 * getDefaultNamespaceList().size();
}
if (sqlConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getSqlConfig());
}
if (defaultInstanceId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, defaultInstanceId_);
}
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.SQLJob)) {
return super.equals(obj);
}
cz.proto.SQLJob other = (cz.proto.SQLJob) obj;
if (!getQueryList()
.equals(other.getQueryList())) return false;
if (!getDefaultNamespaceList()
.equals(other.getDefaultNamespaceList())) return false;
if (hasSqlConfig() != other.hasSqlConfig()) return false;
if (hasSqlConfig()) {
if (!getSqlConfig()
.equals(other.getSqlConfig())) return false;
}
if (getDefaultInstanceId()
!= other.getDefaultInstanceId()) 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 (getQueryCount() > 0) {
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQueryList().hashCode();
}
if (getDefaultNamespaceCount() > 0) {
hash = (37 * hash) + DEFAULT_NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getDefaultNamespaceList().hashCode();
}
if (hasSqlConfig()) {
hash = (37 * hash) + SQL_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getSqlConfig().hashCode();
}
hash = (37 * hash) + DEFAULT_INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDefaultInstanceId());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.SQLJob parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.SQLJob parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.SQLJob parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.SQLJob 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.SQLJob parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.SQLJob parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.SQLJob parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.SQLJob 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.SQLJob parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.SQLJob 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.SQLJob parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.SQLJob 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.SQLJob 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.SQLJob}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.SQLJob)
cz.proto.SQLJobOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.JobMetaOuterClass.internal_static_cz_proto_SQLJob_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.JobMetaOuterClass.internal_static_cz_proto_SQLJob_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.SQLJob.class, cz.proto.SQLJob.Builder.class);
}
// Construct using cz.proto.SQLJob.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();
query_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
defaultNamespace_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
if (sqlConfigBuilder_ == null) {
sqlConfig_ = null;
} else {
sqlConfig_ = null;
sqlConfigBuilder_ = null;
}
defaultInstanceId_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.JobMetaOuterClass.internal_static_cz_proto_SQLJob_descriptor;
}
@java.lang.Override
public cz.proto.SQLJob getDefaultInstanceForType() {
return cz.proto.SQLJob.getDefaultInstance();
}
@java.lang.Override
public cz.proto.SQLJob build() {
cz.proto.SQLJob result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.SQLJob buildPartial() {
cz.proto.SQLJob result = new cz.proto.SQLJob(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
query_ = query_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.query_ = query_;
if (((bitField0_ & 0x00000002) != 0)) {
defaultNamespace_ = defaultNamespace_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.defaultNamespace_ = defaultNamespace_;
if (sqlConfigBuilder_ == null) {
result.sqlConfig_ = sqlConfig_;
} else {
result.sqlConfig_ = sqlConfigBuilder_.build();
}
result.defaultInstanceId_ = defaultInstanceId_;
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.SQLJob) {
return mergeFrom((cz.proto.SQLJob)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.SQLJob other) {
if (other == cz.proto.SQLJob.getDefaultInstance()) return this;
if (!other.query_.isEmpty()) {
if (query_.isEmpty()) {
query_ = other.query_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureQueryIsMutable();
query_.addAll(other.query_);
}
onChanged();
}
if (!other.defaultNamespace_.isEmpty()) {
if (defaultNamespace_.isEmpty()) {
defaultNamespace_ = other.defaultNamespace_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDefaultNamespaceIsMutable();
defaultNamespace_.addAll(other.defaultNamespace_);
}
onChanged();
}
if (other.hasSqlConfig()) {
mergeSqlConfig(other.getSqlConfig());
}
if (other.getDefaultInstanceId() != 0L) {
setDefaultInstanceId(other.getDefaultInstanceId());
}
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.SQLJob parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.SQLJob) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList query_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureQueryIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
query_ = new com.google.protobuf.LazyStringArrayList(query_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string query = 1;
* @return A list containing the query.
*/
public com.google.protobuf.ProtocolStringList
getQueryList() {
return query_.getUnmodifiableView();
}
/**
* repeated string query = 1;
* @return The count of query.
*/
public int getQueryCount() {
return query_.size();
}
/**
* repeated string query = 1;
* @param index The index of the element to return.
* @return The query at the given index.
*/
public java.lang.String getQuery(int index) {
return query_.get(index);
}
/**
* repeated string query = 1;
* @param index The index of the value to return.
* @return The bytes of the query at the given index.
*/
public com.google.protobuf.ByteString
getQueryBytes(int index) {
return query_.getByteString(index);
}
/**
* repeated string query = 1;
* @param index The index to set the value at.
* @param value The query to set.
* @return This builder for chaining.
*/
public Builder setQuery(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureQueryIsMutable();
query_.set(index, value);
onChanged();
return this;
}
/**
* repeated string query = 1;
* @param value The query to add.
* @return This builder for chaining.
*/
public Builder addQuery(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureQueryIsMutable();
query_.add(value);
onChanged();
return this;
}
/**
* repeated string query = 1;
* @param values The query to add.
* @return This builder for chaining.
*/
public Builder addAllQuery(
java.lang.Iterable values) {
ensureQueryIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, query_);
onChanged();
return this;
}
/**
* repeated string query = 1;
* @return This builder for chaining.
*/
public Builder clearQuery() {
query_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string query = 1;
* @param value The bytes of the query to add.
* @return This builder for chaining.
*/
public Builder addQueryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureQueryIsMutable();
query_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList defaultNamespace_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDefaultNamespaceIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
defaultNamespace_ = new com.google.protobuf.LazyStringArrayList(defaultNamespace_);
bitField0_ |= 0x00000002;
}
}
/**
*
* namespace = [workspace, schema]
*
*
* repeated string default_namespace = 2;
* @return A list containing the defaultNamespace.
*/
public com.google.protobuf.ProtocolStringList
getDefaultNamespaceList() {
return defaultNamespace_.getUnmodifiableView();
}
/**
*
* namespace = [workspace, schema]
*
*
* repeated string default_namespace = 2;
* @return The count of defaultNamespace.
*/
public int getDefaultNamespaceCount() {
return defaultNamespace_.size();
}
/**
*
* namespace = [workspace, schema]
*
*
* repeated string default_namespace = 2;
* @param index The index of the element to return.
* @return The defaultNamespace at the given index.
*/
public java.lang.String getDefaultNamespace(int index) {
return defaultNamespace_.get(index);
}
/**
*
* namespace = [workspace, schema]
*
*
* repeated string default_namespace = 2;
* @param index The index of the value to return.
* @return The bytes of the defaultNamespace at the given index.
*/
public com.google.protobuf.ByteString
getDefaultNamespaceBytes(int index) {
return defaultNamespace_.getByteString(index);
}
/**
*
* namespace = [workspace, schema]
*
*
* repeated string default_namespace = 2;
* @param index The index to set the value at.
* @param value The defaultNamespace to set.
* @return This builder for chaining.
*/
public Builder setDefaultNamespace(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDefaultNamespaceIsMutable();
defaultNamespace_.set(index, value);
onChanged();
return this;
}
/**
*
* namespace = [workspace, schema]
*
*
* repeated string default_namespace = 2;
* @param value The defaultNamespace to add.
* @return This builder for chaining.
*/
public Builder addDefaultNamespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDefaultNamespaceIsMutable();
defaultNamespace_.add(value);
onChanged();
return this;
}
/**
*
* namespace = [workspace, schema]
*
*
* repeated string default_namespace = 2;
* @param values The defaultNamespace to add.
* @return This builder for chaining.
*/
public Builder addAllDefaultNamespace(
java.lang.Iterable values) {
ensureDefaultNamespaceIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, defaultNamespace_);
onChanged();
return this;
}
/**
*
* namespace = [workspace, schema]
*
*
* repeated string default_namespace = 2;
* @return This builder for chaining.
*/
public Builder clearDefaultNamespace() {
defaultNamespace_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* namespace = [workspace, schema]
*
*
* repeated string default_namespace = 2;
* @param value The bytes of the defaultNamespace to add.
* @return This builder for chaining.
*/
public Builder addDefaultNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureDefaultNamespaceIsMutable();
defaultNamespace_.add(value);
onChanged();
return this;
}
private cz.proto.SQLJobConfig sqlConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.SQLJobConfig, cz.proto.SQLJobConfig.Builder, cz.proto.SQLJobConfigOrBuilder> sqlConfigBuilder_;
/**
* .cz.proto.SQLJobConfig sql_config = 3;
* @return Whether the sqlConfig field is set.
*/
public boolean hasSqlConfig() {
return sqlConfigBuilder_ != null || sqlConfig_ != null;
}
/**
* .cz.proto.SQLJobConfig sql_config = 3;
* @return The sqlConfig.
*/
public cz.proto.SQLJobConfig getSqlConfig() {
if (sqlConfigBuilder_ == null) {
return sqlConfig_ == null ? cz.proto.SQLJobConfig.getDefaultInstance() : sqlConfig_;
} else {
return sqlConfigBuilder_.getMessage();
}
}
/**
* .cz.proto.SQLJobConfig sql_config = 3;
*/
public Builder setSqlConfig(cz.proto.SQLJobConfig value) {
if (sqlConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sqlConfig_ = value;
onChanged();
} else {
sqlConfigBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.SQLJobConfig sql_config = 3;
*/
public Builder setSqlConfig(
cz.proto.SQLJobConfig.Builder builderForValue) {
if (sqlConfigBuilder_ == null) {
sqlConfig_ = builderForValue.build();
onChanged();
} else {
sqlConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.SQLJobConfig sql_config = 3;
*/
public Builder mergeSqlConfig(cz.proto.SQLJobConfig value) {
if (sqlConfigBuilder_ == null) {
if (sqlConfig_ != null) {
sqlConfig_ =
cz.proto.SQLJobConfig.newBuilder(sqlConfig_).mergeFrom(value).buildPartial();
} else {
sqlConfig_ = value;
}
onChanged();
} else {
sqlConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.SQLJobConfig sql_config = 3;
*/
public Builder clearSqlConfig() {
if (sqlConfigBuilder_ == null) {
sqlConfig_ = null;
onChanged();
} else {
sqlConfig_ = null;
sqlConfigBuilder_ = null;
}
return this;
}
/**
* .cz.proto.SQLJobConfig sql_config = 3;
*/
public cz.proto.SQLJobConfig.Builder getSqlConfigBuilder() {
onChanged();
return getSqlConfigFieldBuilder().getBuilder();
}
/**
* .cz.proto.SQLJobConfig sql_config = 3;
*/
public cz.proto.SQLJobConfigOrBuilder getSqlConfigOrBuilder() {
if (sqlConfigBuilder_ != null) {
return sqlConfigBuilder_.getMessageOrBuilder();
} else {
return sqlConfig_ == null ?
cz.proto.SQLJobConfig.getDefaultInstance() : sqlConfig_;
}
}
/**
* .cz.proto.SQLJobConfig sql_config = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.SQLJobConfig, cz.proto.SQLJobConfig.Builder, cz.proto.SQLJobConfigOrBuilder>
getSqlConfigFieldBuilder() {
if (sqlConfigBuilder_ == null) {
sqlConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.SQLJobConfig, cz.proto.SQLJobConfig.Builder, cz.proto.SQLJobConfigOrBuilder>(
getSqlConfig(),
getParentForChildren(),
isClean());
sqlConfig_ = null;
}
return sqlConfigBuilder_;
}
private long defaultInstanceId_ ;
/**
* int64 default_instance_id = 4;
* @return The defaultInstanceId.
*/
@java.lang.Override
public long getDefaultInstanceId() {
return defaultInstanceId_;
}
/**
* int64 default_instance_id = 4;
* @param value The defaultInstanceId to set.
* @return This builder for chaining.
*/
public Builder setDefaultInstanceId(long value) {
defaultInstanceId_ = value;
onChanged();
return this;
}
/**
* int64 default_instance_id = 4;
* @return This builder for chaining.
*/
public Builder clearDefaultInstanceId() {
defaultInstanceId_ = 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.SQLJob)
}
// @@protoc_insertion_point(class_scope:cz.proto.SQLJob)
private static final cz.proto.SQLJob DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.SQLJob();
}
public static cz.proto.SQLJob getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SQLJob parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SQLJob(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.SQLJob getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy