cz.proto.DataSourceInfo 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.DataSourceInfo}
*/
public final class DataSourceInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.DataSourceInfo)
DataSourceInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataSourceInfo.newBuilder() to construct.
private DataSourceInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataSourceInfo() {
location_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DataSourceInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DataSourceInfo(
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: {
cz.proto.FileDataSourceInfo.Builder subBuilder = null;
if (dataSourceInfoCase_ == 1) {
subBuilder = ((cz.proto.FileDataSourceInfo) dataSourceInfo_).toBuilder();
}
dataSourceInfo_ =
input.readMessage(cz.proto.FileDataSourceInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.FileDataSourceInfo) dataSourceInfo_);
dataSourceInfo_ = subBuilder.buildPartial();
}
dataSourceInfoCase_ = 1;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
options_ = com.google.protobuf.MapField.newMapField(
OptionsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
options__ = input.readMessage(
OptionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
options_.getMutableMap().put(
options__.getKey(), options__.getValue());
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
location_ = s;
break;
}
case 32: {
bitField0_ |= 0x00000001;
dataSourceId_ = input.readUInt32();
break;
}
case 42: {
cz.proto.DqlDataSourceInfo.Builder subBuilder = null;
if (dataSourceInfoCase_ == 5) {
subBuilder = ((cz.proto.DqlDataSourceInfo) dataSourceInfo_).toBuilder();
}
dataSourceInfo_ =
input.readMessage(cz.proto.DqlDataSourceInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.DqlDataSourceInfo) dataSourceInfo_);
dataSourceInfo_ = subBuilder.buildPartial();
}
dataSourceInfoCase_ = 5;
break;
}
case 50: {
cz.proto.DataProperties.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = dataProps_.toBuilder();
}
dataProps_ = input.readMessage(cz.proto.DataProperties.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dataProps_);
dataProps_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 56: {
dataSourceType_ = input.readInt32();
break;
}
case 66: {
cz.proto.LocationDirectoryDataSourceInfo.Builder subBuilder = null;
if (dataSourceInfoCase_ == 8) {
subBuilder = ((cz.proto.LocationDirectoryDataSourceInfo) dataSourceInfo_).toBuilder();
}
dataSourceInfo_ =
input.readMessage(cz.proto.LocationDirectoryDataSourceInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.LocationDirectoryDataSourceInfo) dataSourceInfo_);
dataSourceInfo_ = subBuilder.buildPartial();
}
dataSourceInfoCase_ = 8;
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_DataSourceInfo_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetOptions();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.TableCommon.internal_static_cz_proto_DataSourceInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.DataSourceInfo.class, cz.proto.DataSourceInfo.Builder.class);
}
private int bitField0_;
private int dataSourceInfoCase_ = 0;
private java.lang.Object dataSourceInfo_;
public enum DataSourceInfoCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
FILE(1),
DQL(5),
LOCATION_DIRECTORY(8),
DATASOURCEINFO_NOT_SET(0);
private final int value;
private DataSourceInfoCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DataSourceInfoCase valueOf(int value) {
return forNumber(value);
}
public static DataSourceInfoCase forNumber(int value) {
switch (value) {
case 1: return FILE;
case 5: return DQL;
case 8: return LOCATION_DIRECTORY;
case 0: return DATASOURCEINFO_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DataSourceInfoCase
getDataSourceInfoCase() {
return DataSourceInfoCase.forNumber(
dataSourceInfoCase_);
}
public static final int DATA_SOURCE_TYPE_FIELD_NUMBER = 7;
private int dataSourceType_;
/**
* int32 data_source_type = 7;
* @return The dataSourceType.
*/
@java.lang.Override
public int getDataSourceType() {
return dataSourceType_;
}
public static final int FILE_FIELD_NUMBER = 1;
/**
* .cz.proto.FileDataSourceInfo file = 1;
* @return Whether the file field is set.
*/
@java.lang.Override
public boolean hasFile() {
return dataSourceInfoCase_ == 1;
}
/**
* .cz.proto.FileDataSourceInfo file = 1;
* @return The file.
*/
@java.lang.Override
public cz.proto.FileDataSourceInfo getFile() {
if (dataSourceInfoCase_ == 1) {
return (cz.proto.FileDataSourceInfo) dataSourceInfo_;
}
return cz.proto.FileDataSourceInfo.getDefaultInstance();
}
/**
* .cz.proto.FileDataSourceInfo file = 1;
*/
@java.lang.Override
public cz.proto.FileDataSourceInfoOrBuilder getFileOrBuilder() {
if (dataSourceInfoCase_ == 1) {
return (cz.proto.FileDataSourceInfo) dataSourceInfo_;
}
return cz.proto.FileDataSourceInfo.getDefaultInstance();
}
public static final int DQL_FIELD_NUMBER = 5;
/**
* .cz.proto.DqlDataSourceInfo dql = 5;
* @return Whether the dql field is set.
*/
@java.lang.Override
public boolean hasDql() {
return dataSourceInfoCase_ == 5;
}
/**
* .cz.proto.DqlDataSourceInfo dql = 5;
* @return The dql.
*/
@java.lang.Override
public cz.proto.DqlDataSourceInfo getDql() {
if (dataSourceInfoCase_ == 5) {
return (cz.proto.DqlDataSourceInfo) dataSourceInfo_;
}
return cz.proto.DqlDataSourceInfo.getDefaultInstance();
}
/**
* .cz.proto.DqlDataSourceInfo dql = 5;
*/
@java.lang.Override
public cz.proto.DqlDataSourceInfoOrBuilder getDqlOrBuilder() {
if (dataSourceInfoCase_ == 5) {
return (cz.proto.DqlDataSourceInfo) dataSourceInfo_;
}
return cz.proto.DqlDataSourceInfo.getDefaultInstance();
}
public static final int LOCATION_DIRECTORY_FIELD_NUMBER = 8;
/**
* .cz.proto.LocationDirectoryDataSourceInfo location_directory = 8;
* @return Whether the locationDirectory field is set.
*/
@java.lang.Override
public boolean hasLocationDirectory() {
return dataSourceInfoCase_ == 8;
}
/**
* .cz.proto.LocationDirectoryDataSourceInfo location_directory = 8;
* @return The locationDirectory.
*/
@java.lang.Override
public cz.proto.LocationDirectoryDataSourceInfo getLocationDirectory() {
if (dataSourceInfoCase_ == 8) {
return (cz.proto.LocationDirectoryDataSourceInfo) dataSourceInfo_;
}
return cz.proto.LocationDirectoryDataSourceInfo.getDefaultInstance();
}
/**
* .cz.proto.LocationDirectoryDataSourceInfo location_directory = 8;
*/
@java.lang.Override
public cz.proto.LocationDirectoryDataSourceInfoOrBuilder getLocationDirectoryOrBuilder() {
if (dataSourceInfoCase_ == 8) {
return (cz.proto.LocationDirectoryDataSourceInfo) dataSourceInfo_;
}
return cz.proto.LocationDirectoryDataSourceInfo.getDefaultInstance();
}
public static final int OPTIONS_FIELD_NUMBER = 2;
private static final class OptionsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
cz.proto.TableCommon.internal_static_cz_proto_DataSourceInfo_OptionsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> options_;
private com.google.protobuf.MapField
internalGetOptions() {
if (options_ == null) {
return com.google.protobuf.MapField.emptyMapField(
OptionsDefaultEntryHolder.defaultEntry);
}
return options_;
}
public int getOptionsCount() {
return internalGetOptions().getMap().size();
}
/**
* map<string, string> options = 2;
*/
@java.lang.Override
public boolean containsOptions(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetOptions().getMap().containsKey(key);
}
/**
* Use {@link #getOptionsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getOptions() {
return getOptionsMap();
}
/**
* map<string, string> options = 2;
*/
@java.lang.Override
public java.util.Map getOptionsMap() {
return internalGetOptions().getMap();
}
/**
* map<string, string> options = 2;
*/
@java.lang.Override
public java.lang.String getOptionsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetOptions().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> options = 2;
*/
@java.lang.Override
public java.lang.String getOptionsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetOptions().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int LOCATION_FIELD_NUMBER = 3;
private volatile java.lang.Object location_;
/**
* string location = 3;
* @return The location.
*/
@java.lang.Override
public java.lang.String getLocation() {
java.lang.Object ref = location_;
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();
location_ = s;
return s;
}
}
/**
* string location = 3;
* @return The bytes for location.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLocationBytes() {
java.lang.Object ref = location_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
location_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_SOURCE_ID_FIELD_NUMBER = 4;
private int dataSourceId_;
/**
* optional uint32 data_source_id = 4;
* @return Whether the dataSourceId field is set.
*/
@java.lang.Override
public boolean hasDataSourceId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional uint32 data_source_id = 4;
* @return The dataSourceId.
*/
@java.lang.Override
public int getDataSourceId() {
return dataSourceId_;
}
public static final int DATA_PROPS_FIELD_NUMBER = 6;
private cz.proto.DataProperties dataProps_;
/**
* optional .cz.proto.DataProperties data_props = 6;
* @return Whether the dataProps field is set.
*/
@java.lang.Override
public boolean hasDataProps() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .cz.proto.DataProperties data_props = 6;
* @return The dataProps.
*/
@java.lang.Override
public cz.proto.DataProperties getDataProps() {
return dataProps_ == null ? cz.proto.DataProperties.getDefaultInstance() : dataProps_;
}
/**
* optional .cz.proto.DataProperties data_props = 6;
*/
@java.lang.Override
public cz.proto.DataPropertiesOrBuilder getDataPropsOrBuilder() {
return dataProps_ == null ? cz.proto.DataProperties.getDefaultInstance() : dataProps_;
}
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 (dataSourceInfoCase_ == 1) {
output.writeMessage(1, (cz.proto.FileDataSourceInfo) dataSourceInfo_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetOptions(),
OptionsDefaultEntryHolder.defaultEntry,
2);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, location_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeUInt32(4, dataSourceId_);
}
if (dataSourceInfoCase_ == 5) {
output.writeMessage(5, (cz.proto.DqlDataSourceInfo) dataSourceInfo_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getDataProps());
}
if (dataSourceType_ != 0) {
output.writeInt32(7, dataSourceType_);
}
if (dataSourceInfoCase_ == 8) {
output.writeMessage(8, (cz.proto.LocationDirectoryDataSourceInfo) dataSourceInfo_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (dataSourceInfoCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (cz.proto.FileDataSourceInfo) dataSourceInfo_);
}
for (java.util.Map.Entry entry
: internalGetOptions().getMap().entrySet()) {
com.google.protobuf.MapEntry
options__ = OptionsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, options__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, location_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, dataSourceId_);
}
if (dataSourceInfoCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (cz.proto.DqlDataSourceInfo) dataSourceInfo_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getDataProps());
}
if (dataSourceType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, dataSourceType_);
}
if (dataSourceInfoCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (cz.proto.LocationDirectoryDataSourceInfo) dataSourceInfo_);
}
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.DataSourceInfo)) {
return super.equals(obj);
}
cz.proto.DataSourceInfo other = (cz.proto.DataSourceInfo) obj;
if (getDataSourceType()
!= other.getDataSourceType()) return false;
if (!internalGetOptions().equals(
other.internalGetOptions())) return false;
if (!getLocation()
.equals(other.getLocation())) return false;
if (hasDataSourceId() != other.hasDataSourceId()) return false;
if (hasDataSourceId()) {
if (getDataSourceId()
!= other.getDataSourceId()) return false;
}
if (hasDataProps() != other.hasDataProps()) return false;
if (hasDataProps()) {
if (!getDataProps()
.equals(other.getDataProps())) return false;
}
if (!getDataSourceInfoCase().equals(other.getDataSourceInfoCase())) return false;
switch (dataSourceInfoCase_) {
case 1:
if (!getFile()
.equals(other.getFile())) return false;
break;
case 5:
if (!getDql()
.equals(other.getDql())) return false;
break;
case 8:
if (!getLocationDirectory()
.equals(other.getLocationDirectory())) return false;
break;
case 0:
default:
}
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) + DATA_SOURCE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getDataSourceType();
if (!internalGetOptions().getMap().isEmpty()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + internalGetOptions().hashCode();
}
hash = (37 * hash) + LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getLocation().hashCode();
if (hasDataSourceId()) {
hash = (37 * hash) + DATA_SOURCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDataSourceId();
}
if (hasDataProps()) {
hash = (37 * hash) + DATA_PROPS_FIELD_NUMBER;
hash = (53 * hash) + getDataProps().hashCode();
}
switch (dataSourceInfoCase_) {
case 1:
hash = (37 * hash) + FILE_FIELD_NUMBER;
hash = (53 * hash) + getFile().hashCode();
break;
case 5:
hash = (37 * hash) + DQL_FIELD_NUMBER;
hash = (53 * hash) + getDql().hashCode();
break;
case 8:
hash = (37 * hash) + LOCATION_DIRECTORY_FIELD_NUMBER;
hash = (53 * hash) + getLocationDirectory().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.DataSourceInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.DataSourceInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.DataSourceInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.DataSourceInfo 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.DataSourceInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.DataSourceInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.DataSourceInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.DataSourceInfo 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.DataSourceInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.DataSourceInfo 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.DataSourceInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.DataSourceInfo 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.DataSourceInfo 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.DataSourceInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.DataSourceInfo)
cz.proto.DataSourceInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.TableCommon.internal_static_cz_proto_DataSourceInfo_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetOptions();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 2:
return internalGetMutableOptions();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.TableCommon.internal_static_cz_proto_DataSourceInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.DataSourceInfo.class, cz.proto.DataSourceInfo.Builder.class);
}
// Construct using cz.proto.DataSourceInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDataPropsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dataSourceType_ = 0;
internalGetMutableOptions().clear();
location_ = "";
dataSourceId_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
if (dataPropsBuilder_ == null) {
dataProps_ = null;
} else {
dataPropsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
dataSourceInfoCase_ = 0;
dataSourceInfo_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.TableCommon.internal_static_cz_proto_DataSourceInfo_descriptor;
}
@java.lang.Override
public cz.proto.DataSourceInfo getDefaultInstanceForType() {
return cz.proto.DataSourceInfo.getDefaultInstance();
}
@java.lang.Override
public cz.proto.DataSourceInfo build() {
cz.proto.DataSourceInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.DataSourceInfo buildPartial() {
cz.proto.DataSourceInfo result = new cz.proto.DataSourceInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.dataSourceType_ = dataSourceType_;
if (dataSourceInfoCase_ == 1) {
if (fileBuilder_ == null) {
result.dataSourceInfo_ = dataSourceInfo_;
} else {
result.dataSourceInfo_ = fileBuilder_.build();
}
}
if (dataSourceInfoCase_ == 5) {
if (dqlBuilder_ == null) {
result.dataSourceInfo_ = dataSourceInfo_;
} else {
result.dataSourceInfo_ = dqlBuilder_.build();
}
}
if (dataSourceInfoCase_ == 8) {
if (locationDirectoryBuilder_ == null) {
result.dataSourceInfo_ = dataSourceInfo_;
} else {
result.dataSourceInfo_ = locationDirectoryBuilder_.build();
}
}
result.options_ = internalGetOptions();
result.options_.makeImmutable();
result.location_ = location_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.dataSourceId_ = dataSourceId_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
if (dataPropsBuilder_ == null) {
result.dataProps_ = dataProps_;
} else {
result.dataProps_ = dataPropsBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
result.dataSourceInfoCase_ = dataSourceInfoCase_;
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.DataSourceInfo) {
return mergeFrom((cz.proto.DataSourceInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.DataSourceInfo other) {
if (other == cz.proto.DataSourceInfo.getDefaultInstance()) return this;
if (other.getDataSourceType() != 0) {
setDataSourceType(other.getDataSourceType());
}
internalGetMutableOptions().mergeFrom(
other.internalGetOptions());
if (!other.getLocation().isEmpty()) {
location_ = other.location_;
onChanged();
}
if (other.hasDataSourceId()) {
setDataSourceId(other.getDataSourceId());
}
if (other.hasDataProps()) {
mergeDataProps(other.getDataProps());
}
switch (other.getDataSourceInfoCase()) {
case FILE: {
mergeFile(other.getFile());
break;
}
case DQL: {
mergeDql(other.getDql());
break;
}
case LOCATION_DIRECTORY: {
mergeLocationDirectory(other.getLocationDirectory());
break;
}
case DATASOURCEINFO_NOT_SET: {
break;
}
}
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.DataSourceInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.DataSourceInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int dataSourceInfoCase_ = 0;
private java.lang.Object dataSourceInfo_;
public DataSourceInfoCase
getDataSourceInfoCase() {
return DataSourceInfoCase.forNumber(
dataSourceInfoCase_);
}
public Builder clearDataSourceInfo() {
dataSourceInfoCase_ = 0;
dataSourceInfo_ = null;
onChanged();
return this;
}
private int bitField0_;
private int dataSourceType_ ;
/**
* int32 data_source_type = 7;
* @return The dataSourceType.
*/
@java.lang.Override
public int getDataSourceType() {
return dataSourceType_;
}
/**
* int32 data_source_type = 7;
* @param value The dataSourceType to set.
* @return This builder for chaining.
*/
public Builder setDataSourceType(int value) {
dataSourceType_ = value;
onChanged();
return this;
}
/**
* int32 data_source_type = 7;
* @return This builder for chaining.
*/
public Builder clearDataSourceType() {
dataSourceType_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.FileDataSourceInfo, cz.proto.FileDataSourceInfo.Builder, cz.proto.FileDataSourceInfoOrBuilder> fileBuilder_;
/**
* .cz.proto.FileDataSourceInfo file = 1;
* @return Whether the file field is set.
*/
@java.lang.Override
public boolean hasFile() {
return dataSourceInfoCase_ == 1;
}
/**
* .cz.proto.FileDataSourceInfo file = 1;
* @return The file.
*/
@java.lang.Override
public cz.proto.FileDataSourceInfo getFile() {
if (fileBuilder_ == null) {
if (dataSourceInfoCase_ == 1) {
return (cz.proto.FileDataSourceInfo) dataSourceInfo_;
}
return cz.proto.FileDataSourceInfo.getDefaultInstance();
} else {
if (dataSourceInfoCase_ == 1) {
return fileBuilder_.getMessage();
}
return cz.proto.FileDataSourceInfo.getDefaultInstance();
}
}
/**
* .cz.proto.FileDataSourceInfo file = 1;
*/
public Builder setFile(cz.proto.FileDataSourceInfo value) {
if (fileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataSourceInfo_ = value;
onChanged();
} else {
fileBuilder_.setMessage(value);
}
dataSourceInfoCase_ = 1;
return this;
}
/**
* .cz.proto.FileDataSourceInfo file = 1;
*/
public Builder setFile(
cz.proto.FileDataSourceInfo.Builder builderForValue) {
if (fileBuilder_ == null) {
dataSourceInfo_ = builderForValue.build();
onChanged();
} else {
fileBuilder_.setMessage(builderForValue.build());
}
dataSourceInfoCase_ = 1;
return this;
}
/**
* .cz.proto.FileDataSourceInfo file = 1;
*/
public Builder mergeFile(cz.proto.FileDataSourceInfo value) {
if (fileBuilder_ == null) {
if (dataSourceInfoCase_ == 1 &&
dataSourceInfo_ != cz.proto.FileDataSourceInfo.getDefaultInstance()) {
dataSourceInfo_ = cz.proto.FileDataSourceInfo.newBuilder((cz.proto.FileDataSourceInfo) dataSourceInfo_)
.mergeFrom(value).buildPartial();
} else {
dataSourceInfo_ = value;
}
onChanged();
} else {
if (dataSourceInfoCase_ == 1) {
fileBuilder_.mergeFrom(value);
}
fileBuilder_.setMessage(value);
}
dataSourceInfoCase_ = 1;
return this;
}
/**
* .cz.proto.FileDataSourceInfo file = 1;
*/
public Builder clearFile() {
if (fileBuilder_ == null) {
if (dataSourceInfoCase_ == 1) {
dataSourceInfoCase_ = 0;
dataSourceInfo_ = null;
onChanged();
}
} else {
if (dataSourceInfoCase_ == 1) {
dataSourceInfoCase_ = 0;
dataSourceInfo_ = null;
}
fileBuilder_.clear();
}
return this;
}
/**
* .cz.proto.FileDataSourceInfo file = 1;
*/
public cz.proto.FileDataSourceInfo.Builder getFileBuilder() {
return getFileFieldBuilder().getBuilder();
}
/**
* .cz.proto.FileDataSourceInfo file = 1;
*/
@java.lang.Override
public cz.proto.FileDataSourceInfoOrBuilder getFileOrBuilder() {
if ((dataSourceInfoCase_ == 1) && (fileBuilder_ != null)) {
return fileBuilder_.getMessageOrBuilder();
} else {
if (dataSourceInfoCase_ == 1) {
return (cz.proto.FileDataSourceInfo) dataSourceInfo_;
}
return cz.proto.FileDataSourceInfo.getDefaultInstance();
}
}
/**
* .cz.proto.FileDataSourceInfo file = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.FileDataSourceInfo, cz.proto.FileDataSourceInfo.Builder, cz.proto.FileDataSourceInfoOrBuilder>
getFileFieldBuilder() {
if (fileBuilder_ == null) {
if (!(dataSourceInfoCase_ == 1)) {
dataSourceInfo_ = cz.proto.FileDataSourceInfo.getDefaultInstance();
}
fileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.FileDataSourceInfo, cz.proto.FileDataSourceInfo.Builder, cz.proto.FileDataSourceInfoOrBuilder>(
(cz.proto.FileDataSourceInfo) dataSourceInfo_,
getParentForChildren(),
isClean());
dataSourceInfo_ = null;
}
dataSourceInfoCase_ = 1;
onChanged();;
return fileBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DqlDataSourceInfo, cz.proto.DqlDataSourceInfo.Builder, cz.proto.DqlDataSourceInfoOrBuilder> dqlBuilder_;
/**
* .cz.proto.DqlDataSourceInfo dql = 5;
* @return Whether the dql field is set.
*/
@java.lang.Override
public boolean hasDql() {
return dataSourceInfoCase_ == 5;
}
/**
* .cz.proto.DqlDataSourceInfo dql = 5;
* @return The dql.
*/
@java.lang.Override
public cz.proto.DqlDataSourceInfo getDql() {
if (dqlBuilder_ == null) {
if (dataSourceInfoCase_ == 5) {
return (cz.proto.DqlDataSourceInfo) dataSourceInfo_;
}
return cz.proto.DqlDataSourceInfo.getDefaultInstance();
} else {
if (dataSourceInfoCase_ == 5) {
return dqlBuilder_.getMessage();
}
return cz.proto.DqlDataSourceInfo.getDefaultInstance();
}
}
/**
* .cz.proto.DqlDataSourceInfo dql = 5;
*/
public Builder setDql(cz.proto.DqlDataSourceInfo value) {
if (dqlBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataSourceInfo_ = value;
onChanged();
} else {
dqlBuilder_.setMessage(value);
}
dataSourceInfoCase_ = 5;
return this;
}
/**
* .cz.proto.DqlDataSourceInfo dql = 5;
*/
public Builder setDql(
cz.proto.DqlDataSourceInfo.Builder builderForValue) {
if (dqlBuilder_ == null) {
dataSourceInfo_ = builderForValue.build();
onChanged();
} else {
dqlBuilder_.setMessage(builderForValue.build());
}
dataSourceInfoCase_ = 5;
return this;
}
/**
* .cz.proto.DqlDataSourceInfo dql = 5;
*/
public Builder mergeDql(cz.proto.DqlDataSourceInfo value) {
if (dqlBuilder_ == null) {
if (dataSourceInfoCase_ == 5 &&
dataSourceInfo_ != cz.proto.DqlDataSourceInfo.getDefaultInstance()) {
dataSourceInfo_ = cz.proto.DqlDataSourceInfo.newBuilder((cz.proto.DqlDataSourceInfo) dataSourceInfo_)
.mergeFrom(value).buildPartial();
} else {
dataSourceInfo_ = value;
}
onChanged();
} else {
if (dataSourceInfoCase_ == 5) {
dqlBuilder_.mergeFrom(value);
}
dqlBuilder_.setMessage(value);
}
dataSourceInfoCase_ = 5;
return this;
}
/**
* .cz.proto.DqlDataSourceInfo dql = 5;
*/
public Builder clearDql() {
if (dqlBuilder_ == null) {
if (dataSourceInfoCase_ == 5) {
dataSourceInfoCase_ = 0;
dataSourceInfo_ = null;
onChanged();
}
} else {
if (dataSourceInfoCase_ == 5) {
dataSourceInfoCase_ = 0;
dataSourceInfo_ = null;
}
dqlBuilder_.clear();
}
return this;
}
/**
* .cz.proto.DqlDataSourceInfo dql = 5;
*/
public cz.proto.DqlDataSourceInfo.Builder getDqlBuilder() {
return getDqlFieldBuilder().getBuilder();
}
/**
* .cz.proto.DqlDataSourceInfo dql = 5;
*/
@java.lang.Override
public cz.proto.DqlDataSourceInfoOrBuilder getDqlOrBuilder() {
if ((dataSourceInfoCase_ == 5) && (dqlBuilder_ != null)) {
return dqlBuilder_.getMessageOrBuilder();
} else {
if (dataSourceInfoCase_ == 5) {
return (cz.proto.DqlDataSourceInfo) dataSourceInfo_;
}
return cz.proto.DqlDataSourceInfo.getDefaultInstance();
}
}
/**
* .cz.proto.DqlDataSourceInfo dql = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DqlDataSourceInfo, cz.proto.DqlDataSourceInfo.Builder, cz.proto.DqlDataSourceInfoOrBuilder>
getDqlFieldBuilder() {
if (dqlBuilder_ == null) {
if (!(dataSourceInfoCase_ == 5)) {
dataSourceInfo_ = cz.proto.DqlDataSourceInfo.getDefaultInstance();
}
dqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DqlDataSourceInfo, cz.proto.DqlDataSourceInfo.Builder, cz.proto.DqlDataSourceInfoOrBuilder>(
(cz.proto.DqlDataSourceInfo) dataSourceInfo_,
getParentForChildren(),
isClean());
dataSourceInfo_ = null;
}
dataSourceInfoCase_ = 5;
onChanged();;
return dqlBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.LocationDirectoryDataSourceInfo, cz.proto.LocationDirectoryDataSourceInfo.Builder, cz.proto.LocationDirectoryDataSourceInfoOrBuilder> locationDirectoryBuilder_;
/**
* .cz.proto.LocationDirectoryDataSourceInfo location_directory = 8;
* @return Whether the locationDirectory field is set.
*/
@java.lang.Override
public boolean hasLocationDirectory() {
return dataSourceInfoCase_ == 8;
}
/**
* .cz.proto.LocationDirectoryDataSourceInfo location_directory = 8;
* @return The locationDirectory.
*/
@java.lang.Override
public cz.proto.LocationDirectoryDataSourceInfo getLocationDirectory() {
if (locationDirectoryBuilder_ == null) {
if (dataSourceInfoCase_ == 8) {
return (cz.proto.LocationDirectoryDataSourceInfo) dataSourceInfo_;
}
return cz.proto.LocationDirectoryDataSourceInfo.getDefaultInstance();
} else {
if (dataSourceInfoCase_ == 8) {
return locationDirectoryBuilder_.getMessage();
}
return cz.proto.LocationDirectoryDataSourceInfo.getDefaultInstance();
}
}
/**
* .cz.proto.LocationDirectoryDataSourceInfo location_directory = 8;
*/
public Builder setLocationDirectory(cz.proto.LocationDirectoryDataSourceInfo value) {
if (locationDirectoryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataSourceInfo_ = value;
onChanged();
} else {
locationDirectoryBuilder_.setMessage(value);
}
dataSourceInfoCase_ = 8;
return this;
}
/**
* .cz.proto.LocationDirectoryDataSourceInfo location_directory = 8;
*/
public Builder setLocationDirectory(
cz.proto.LocationDirectoryDataSourceInfo.Builder builderForValue) {
if (locationDirectoryBuilder_ == null) {
dataSourceInfo_ = builderForValue.build();
onChanged();
} else {
locationDirectoryBuilder_.setMessage(builderForValue.build());
}
dataSourceInfoCase_ = 8;
return this;
}
/**
* .cz.proto.LocationDirectoryDataSourceInfo location_directory = 8;
*/
public Builder mergeLocationDirectory(cz.proto.LocationDirectoryDataSourceInfo value) {
if (locationDirectoryBuilder_ == null) {
if (dataSourceInfoCase_ == 8 &&
dataSourceInfo_ != cz.proto.LocationDirectoryDataSourceInfo.getDefaultInstance()) {
dataSourceInfo_ = cz.proto.LocationDirectoryDataSourceInfo.newBuilder((cz.proto.LocationDirectoryDataSourceInfo) dataSourceInfo_)
.mergeFrom(value).buildPartial();
} else {
dataSourceInfo_ = value;
}
onChanged();
} else {
if (dataSourceInfoCase_ == 8) {
locationDirectoryBuilder_.mergeFrom(value);
}
locationDirectoryBuilder_.setMessage(value);
}
dataSourceInfoCase_ = 8;
return this;
}
/**
* .cz.proto.LocationDirectoryDataSourceInfo location_directory = 8;
*/
public Builder clearLocationDirectory() {
if (locationDirectoryBuilder_ == null) {
if (dataSourceInfoCase_ == 8) {
dataSourceInfoCase_ = 0;
dataSourceInfo_ = null;
onChanged();
}
} else {
if (dataSourceInfoCase_ == 8) {
dataSourceInfoCase_ = 0;
dataSourceInfo_ = null;
}
locationDirectoryBuilder_.clear();
}
return this;
}
/**
* .cz.proto.LocationDirectoryDataSourceInfo location_directory = 8;
*/
public cz.proto.LocationDirectoryDataSourceInfo.Builder getLocationDirectoryBuilder() {
return getLocationDirectoryFieldBuilder().getBuilder();
}
/**
* .cz.proto.LocationDirectoryDataSourceInfo location_directory = 8;
*/
@java.lang.Override
public cz.proto.LocationDirectoryDataSourceInfoOrBuilder getLocationDirectoryOrBuilder() {
if ((dataSourceInfoCase_ == 8) && (locationDirectoryBuilder_ != null)) {
return locationDirectoryBuilder_.getMessageOrBuilder();
} else {
if (dataSourceInfoCase_ == 8) {
return (cz.proto.LocationDirectoryDataSourceInfo) dataSourceInfo_;
}
return cz.proto.LocationDirectoryDataSourceInfo.getDefaultInstance();
}
}
/**
* .cz.proto.LocationDirectoryDataSourceInfo location_directory = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.LocationDirectoryDataSourceInfo, cz.proto.LocationDirectoryDataSourceInfo.Builder, cz.proto.LocationDirectoryDataSourceInfoOrBuilder>
getLocationDirectoryFieldBuilder() {
if (locationDirectoryBuilder_ == null) {
if (!(dataSourceInfoCase_ == 8)) {
dataSourceInfo_ = cz.proto.LocationDirectoryDataSourceInfo.getDefaultInstance();
}
locationDirectoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.LocationDirectoryDataSourceInfo, cz.proto.LocationDirectoryDataSourceInfo.Builder, cz.proto.LocationDirectoryDataSourceInfoOrBuilder>(
(cz.proto.LocationDirectoryDataSourceInfo) dataSourceInfo_,
getParentForChildren(),
isClean());
dataSourceInfo_ = null;
}
dataSourceInfoCase_ = 8;
onChanged();;
return locationDirectoryBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> options_;
private com.google.protobuf.MapField
internalGetOptions() {
if (options_ == null) {
return com.google.protobuf.MapField.emptyMapField(
OptionsDefaultEntryHolder.defaultEntry);
}
return options_;
}
private com.google.protobuf.MapField
internalGetMutableOptions() {
onChanged();;
if (options_ == null) {
options_ = com.google.protobuf.MapField.newMapField(
OptionsDefaultEntryHolder.defaultEntry);
}
if (!options_.isMutable()) {
options_ = options_.copy();
}
return options_;
}
public int getOptionsCount() {
return internalGetOptions().getMap().size();
}
/**
* map<string, string> options = 2;
*/
@java.lang.Override
public boolean containsOptions(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetOptions().getMap().containsKey(key);
}
/**
* Use {@link #getOptionsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getOptions() {
return getOptionsMap();
}
/**
* map<string, string> options = 2;
*/
@java.lang.Override
public java.util.Map getOptionsMap() {
return internalGetOptions().getMap();
}
/**
* map<string, string> options = 2;
*/
@java.lang.Override
public java.lang.String getOptionsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetOptions().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> options = 2;
*/
@java.lang.Override
public java.lang.String getOptionsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetOptions().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearOptions() {
internalGetMutableOptions().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> options = 2;
*/
public Builder removeOptions(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableOptions().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableOptions() {
return internalGetMutableOptions().getMutableMap();
}
/**
* map<string, string> options = 2;
*/
public Builder putOptions(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableOptions().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, string> options = 2;
*/
public Builder putAllOptions(
java.util.Map values) {
internalGetMutableOptions().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object location_ = "";
/**
* string location = 3;
* @return The location.
*/
public java.lang.String getLocation() {
java.lang.Object ref = location_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
location_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string location = 3;
* @return The bytes for location.
*/
public com.google.protobuf.ByteString
getLocationBytes() {
java.lang.Object ref = location_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
location_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string location = 3;
* @param value The location to set.
* @return This builder for chaining.
*/
public Builder setLocation(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
location_ = value;
onChanged();
return this;
}
/**
* string location = 3;
* @return This builder for chaining.
*/
public Builder clearLocation() {
location_ = getDefaultInstance().getLocation();
onChanged();
return this;
}
/**
* string location = 3;
* @param value The bytes for location to set.
* @return This builder for chaining.
*/
public Builder setLocationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
location_ = value;
onChanged();
return this;
}
private int dataSourceId_ ;
/**
* optional uint32 data_source_id = 4;
* @return Whether the dataSourceId field is set.
*/
@java.lang.Override
public boolean hasDataSourceId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 data_source_id = 4;
* @return The dataSourceId.
*/
@java.lang.Override
public int getDataSourceId() {
return dataSourceId_;
}
/**
* optional uint32 data_source_id = 4;
* @param value The dataSourceId to set.
* @return This builder for chaining.
*/
public Builder setDataSourceId(int value) {
bitField0_ |= 0x00000002;
dataSourceId_ = value;
onChanged();
return this;
}
/**
* optional uint32 data_source_id = 4;
* @return This builder for chaining.
*/
public Builder clearDataSourceId() {
bitField0_ = (bitField0_ & ~0x00000002);
dataSourceId_ = 0;
onChanged();
return this;
}
private cz.proto.DataProperties dataProps_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataProperties, cz.proto.DataProperties.Builder, cz.proto.DataPropertiesOrBuilder> dataPropsBuilder_;
/**
* optional .cz.proto.DataProperties data_props = 6;
* @return Whether the dataProps field is set.
*/
public boolean hasDataProps() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .cz.proto.DataProperties data_props = 6;
* @return The dataProps.
*/
public cz.proto.DataProperties getDataProps() {
if (dataPropsBuilder_ == null) {
return dataProps_ == null ? cz.proto.DataProperties.getDefaultInstance() : dataProps_;
} else {
return dataPropsBuilder_.getMessage();
}
}
/**
* optional .cz.proto.DataProperties data_props = 6;
*/
public Builder setDataProps(cz.proto.DataProperties value) {
if (dataPropsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataProps_ = value;
onChanged();
} else {
dataPropsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .cz.proto.DataProperties data_props = 6;
*/
public Builder setDataProps(
cz.proto.DataProperties.Builder builderForValue) {
if (dataPropsBuilder_ == null) {
dataProps_ = builderForValue.build();
onChanged();
} else {
dataPropsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .cz.proto.DataProperties data_props = 6;
*/
public Builder mergeDataProps(cz.proto.DataProperties value) {
if (dataPropsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
dataProps_ != null &&
dataProps_ != cz.proto.DataProperties.getDefaultInstance()) {
dataProps_ =
cz.proto.DataProperties.newBuilder(dataProps_).mergeFrom(value).buildPartial();
} else {
dataProps_ = value;
}
onChanged();
} else {
dataPropsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .cz.proto.DataProperties data_props = 6;
*/
public Builder clearDataProps() {
if (dataPropsBuilder_ == null) {
dataProps_ = null;
onChanged();
} else {
dataPropsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .cz.proto.DataProperties data_props = 6;
*/
public cz.proto.DataProperties.Builder getDataPropsBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getDataPropsFieldBuilder().getBuilder();
}
/**
* optional .cz.proto.DataProperties data_props = 6;
*/
public cz.proto.DataPropertiesOrBuilder getDataPropsOrBuilder() {
if (dataPropsBuilder_ != null) {
return dataPropsBuilder_.getMessageOrBuilder();
} else {
return dataProps_ == null ?
cz.proto.DataProperties.getDefaultInstance() : dataProps_;
}
}
/**
* optional .cz.proto.DataProperties data_props = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataProperties, cz.proto.DataProperties.Builder, cz.proto.DataPropertiesOrBuilder>
getDataPropsFieldBuilder() {
if (dataPropsBuilder_ == null) {
dataPropsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataProperties, cz.proto.DataProperties.Builder, cz.proto.DataPropertiesOrBuilder>(
getDataProps(),
getParentForChildren(),
isClean());
dataProps_ = null;
}
return dataPropsBuilder_;
}
@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.DataSourceInfo)
}
// @@protoc_insertion_point(class_scope:cz.proto.DataSourceInfo)
private static final cz.proto.DataSourceInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.DataSourceInfo();
}
public static cz.proto.DataSourceInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataSourceInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DataSourceInfo(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.DataSourceInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy