cz.proto.ConnectionMeta 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: connection_meta.proto
package cz.proto;
public final class ConnectionMeta {
private ConnectionMeta() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code cz.proto.ConnectionType}
*/
public enum ConnectionType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* CLOUD_FUNCTION = 0;
*/
CLOUD_FUNCTION(0),
/**
* FILE_SYSTEM = 1;
*/
FILE_SYSTEM(1),
UNRECOGNIZED(-1),
;
/**
* CLOUD_FUNCTION = 0;
*/
public static final int CLOUD_FUNCTION_VALUE = 0;
/**
* FILE_SYSTEM = 1;
*/
public static final int FILE_SYSTEM_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ConnectionType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ConnectionType forNumber(int value) {
switch (value) {
case 0: return CLOUD_FUNCTION;
case 1: return FILE_SYSTEM;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ConnectionType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ConnectionType findValueByNumber(int number) {
return ConnectionType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return cz.proto.ConnectionMeta.getDescriptor().getEnumTypes().get(0);
}
private static final ConnectionType[] VALUES = values();
public static ConnectionType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ConnectionType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cz.proto.ConnectionType)
}
/**
* Protobuf enum {@code cz.proto.ConnectionCategory}
*/
public enum ConnectionCategory
implements com.google.protobuf.ProtocolMessageEnum {
/**
* DATA_CONNECTION = 0;
*/
DATA_CONNECTION(0),
/**
* API_CONNECTION = 1;
*/
API_CONNECTION(1),
UNRECOGNIZED(-1),
;
/**
* DATA_CONNECTION = 0;
*/
public static final int DATA_CONNECTION_VALUE = 0;
/**
* API_CONNECTION = 1;
*/
public static final int API_CONNECTION_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ConnectionCategory valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ConnectionCategory forNumber(int value) {
switch (value) {
case 0: return DATA_CONNECTION;
case 1: return API_CONNECTION;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ConnectionCategory> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ConnectionCategory findValueByNumber(int number) {
return ConnectionCategory.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return cz.proto.ConnectionMeta.getDescriptor().getEnumTypes().get(1);
}
private static final ConnectionCategory[] VALUES = values();
public static ConnectionCategory valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ConnectionCategory(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cz.proto.ConnectionCategory)
}
public interface FileSystemConnectionInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.proto.FileSystemConnectionInfo)
com.google.protobuf.MessageOrBuilder {
/**
* string file_system_type = 1;
* @return The fileSystemType.
*/
java.lang.String getFileSystemType();
/**
* string file_system_type = 1;
* @return The bytes for fileSystemType.
*/
com.google.protobuf.ByteString
getFileSystemTypeBytes();
/**
* .cz.proto.Properties config = 50;
* @return Whether the config field is set.
*/
boolean hasConfig();
/**
* .cz.proto.Properties config = 50;
* @return The config.
*/
cz.proto.PropertyOuterClass.Properties getConfig();
/**
* .cz.proto.Properties config = 50;
*/
cz.proto.PropertyOuterClass.PropertiesOrBuilder getConfigOrBuilder();
public cz.proto.ConnectionMeta.FileSystemConnectionInfo.DerivedCase getDerivedCase();
}
/**
* Protobuf type {@code cz.proto.FileSystemConnectionInfo}
*/
public static final class FileSystemConnectionInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.FileSystemConnectionInfo)
FileSystemConnectionInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use FileSystemConnectionInfo.newBuilder() to construct.
private FileSystemConnectionInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FileSystemConnectionInfo() {
fileSystemType_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FileSystemConnectionInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FileSystemConnectionInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
fileSystemType_ = s;
break;
}
case 402: {
cz.proto.PropertyOuterClass.Properties.Builder subBuilder = null;
if (derivedCase_ == 50) {
subBuilder = ((cz.proto.PropertyOuterClass.Properties) derived_).toBuilder();
}
derived_ =
input.readMessage(cz.proto.PropertyOuterClass.Properties.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.PropertyOuterClass.Properties) derived_);
derived_ = subBuilder.buildPartial();
}
derivedCase_ = 50;
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.ConnectionMeta.internal_static_cz_proto_FileSystemConnectionInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.ConnectionMeta.internal_static_cz_proto_FileSystemConnectionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.ConnectionMeta.FileSystemConnectionInfo.class, cz.proto.ConnectionMeta.FileSystemConnectionInfo.Builder.class);
}
private int derivedCase_ = 0;
private java.lang.Object derived_;
public enum DerivedCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CONFIG(50),
DERIVED_NOT_SET(0);
private final int value;
private DerivedCase(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 DerivedCase valueOf(int value) {
return forNumber(value);
}
public static DerivedCase forNumber(int value) {
switch (value) {
case 50: return CONFIG;
case 0: return DERIVED_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DerivedCase
getDerivedCase() {
return DerivedCase.forNumber(
derivedCase_);
}
public static final int FILE_SYSTEM_TYPE_FIELD_NUMBER = 1;
private volatile java.lang.Object fileSystemType_;
/**
* string file_system_type = 1;
* @return The fileSystemType.
*/
@java.lang.Override
public java.lang.String getFileSystemType() {
java.lang.Object ref = fileSystemType_;
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();
fileSystemType_ = s;
return s;
}
}
/**
* string file_system_type = 1;
* @return The bytes for fileSystemType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFileSystemTypeBytes() {
java.lang.Object ref = fileSystemType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fileSystemType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONFIG_FIELD_NUMBER = 50;
/**
* .cz.proto.Properties config = 50;
* @return Whether the config field is set.
*/
@java.lang.Override
public boolean hasConfig() {
return derivedCase_ == 50;
}
/**
* .cz.proto.Properties config = 50;
* @return The config.
*/
@java.lang.Override
public cz.proto.PropertyOuterClass.Properties getConfig() {
if (derivedCase_ == 50) {
return (cz.proto.PropertyOuterClass.Properties) derived_;
}
return cz.proto.PropertyOuterClass.Properties.getDefaultInstance();
}
/**
* .cz.proto.Properties config = 50;
*/
@java.lang.Override
public cz.proto.PropertyOuterClass.PropertiesOrBuilder getConfigOrBuilder() {
if (derivedCase_ == 50) {
return (cz.proto.PropertyOuterClass.Properties) derived_;
}
return cz.proto.PropertyOuterClass.Properties.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileSystemType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fileSystemType_);
}
if (derivedCase_ == 50) {
output.writeMessage(50, (cz.proto.PropertyOuterClass.Properties) derived_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileSystemType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileSystemType_);
}
if (derivedCase_ == 50) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(50, (cz.proto.PropertyOuterClass.Properties) derived_);
}
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.ConnectionMeta.FileSystemConnectionInfo)) {
return super.equals(obj);
}
cz.proto.ConnectionMeta.FileSystemConnectionInfo other = (cz.proto.ConnectionMeta.FileSystemConnectionInfo) obj;
if (!getFileSystemType()
.equals(other.getFileSystemType())) return false;
if (!getDerivedCase().equals(other.getDerivedCase())) return false;
switch (derivedCase_) {
case 50:
if (!getConfig()
.equals(other.getConfig())) 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) + FILE_SYSTEM_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getFileSystemType().hashCode();
switch (derivedCase_) {
case 50:
hash = (37 * hash) + CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getConfig().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.ConnectionMeta.FileSystemConnectionInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.ConnectionMeta.FileSystemConnectionInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.ConnectionMeta.FileSystemConnectionInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.ConnectionMeta.FileSystemConnectionInfo 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.ConnectionMeta.FileSystemConnectionInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.ConnectionMeta.FileSystemConnectionInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.ConnectionMeta.FileSystemConnectionInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.ConnectionMeta.FileSystemConnectionInfo 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.ConnectionMeta.FileSystemConnectionInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.ConnectionMeta.FileSystemConnectionInfo 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.ConnectionMeta.FileSystemConnectionInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.ConnectionMeta.FileSystemConnectionInfo 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.ConnectionMeta.FileSystemConnectionInfo 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.FileSystemConnectionInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.FileSystemConnectionInfo)
cz.proto.ConnectionMeta.FileSystemConnectionInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.ConnectionMeta.internal_static_cz_proto_FileSystemConnectionInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.ConnectionMeta.internal_static_cz_proto_FileSystemConnectionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.ConnectionMeta.FileSystemConnectionInfo.class, cz.proto.ConnectionMeta.FileSystemConnectionInfo.Builder.class);
}
// Construct using cz.proto.ConnectionMeta.FileSystemConnectionInfo.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();
fileSystemType_ = "";
derivedCase_ = 0;
derived_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.ConnectionMeta.internal_static_cz_proto_FileSystemConnectionInfo_descriptor;
}
@java.lang.Override
public cz.proto.ConnectionMeta.FileSystemConnectionInfo getDefaultInstanceForType() {
return cz.proto.ConnectionMeta.FileSystemConnectionInfo.getDefaultInstance();
}
@java.lang.Override
public cz.proto.ConnectionMeta.FileSystemConnectionInfo build() {
cz.proto.ConnectionMeta.FileSystemConnectionInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.ConnectionMeta.FileSystemConnectionInfo buildPartial() {
cz.proto.ConnectionMeta.FileSystemConnectionInfo result = new cz.proto.ConnectionMeta.FileSystemConnectionInfo(this);
result.fileSystemType_ = fileSystemType_;
if (derivedCase_ == 50) {
if (configBuilder_ == null) {
result.derived_ = derived_;
} else {
result.derived_ = configBuilder_.build();
}
}
result.derivedCase_ = derivedCase_;
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.ConnectionMeta.FileSystemConnectionInfo) {
return mergeFrom((cz.proto.ConnectionMeta.FileSystemConnectionInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.ConnectionMeta.FileSystemConnectionInfo other) {
if (other == cz.proto.ConnectionMeta.FileSystemConnectionInfo.getDefaultInstance()) return this;
if (!other.getFileSystemType().isEmpty()) {
fileSystemType_ = other.fileSystemType_;
onChanged();
}
switch (other.getDerivedCase()) {
case CONFIG: {
mergeConfig(other.getConfig());
break;
}
case DERIVED_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.ConnectionMeta.FileSystemConnectionInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.ConnectionMeta.FileSystemConnectionInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int derivedCase_ = 0;
private java.lang.Object derived_;
public DerivedCase
getDerivedCase() {
return DerivedCase.forNumber(
derivedCase_);
}
public Builder clearDerived() {
derivedCase_ = 0;
derived_ = null;
onChanged();
return this;
}
private java.lang.Object fileSystemType_ = "";
/**
* string file_system_type = 1;
* @return The fileSystemType.
*/
public java.lang.String getFileSystemType() {
java.lang.Object ref = fileSystemType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fileSystemType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string file_system_type = 1;
* @return The bytes for fileSystemType.
*/
public com.google.protobuf.ByteString
getFileSystemTypeBytes() {
java.lang.Object ref = fileSystemType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fileSystemType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string file_system_type = 1;
* @param value The fileSystemType to set.
* @return This builder for chaining.
*/
public Builder setFileSystemType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fileSystemType_ = value;
onChanged();
return this;
}
/**
* string file_system_type = 1;
* @return This builder for chaining.
*/
public Builder clearFileSystemType() {
fileSystemType_ = getDefaultInstance().getFileSystemType();
onChanged();
return this;
}
/**
* string file_system_type = 1;
* @param value The bytes for fileSystemType to set.
* @return This builder for chaining.
*/
public Builder setFileSystemTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fileSystemType_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.PropertyOuterClass.Properties, cz.proto.PropertyOuterClass.Properties.Builder, cz.proto.PropertyOuterClass.PropertiesOrBuilder> configBuilder_;
/**
* .cz.proto.Properties config = 50;
* @return Whether the config field is set.
*/
@java.lang.Override
public boolean hasConfig() {
return derivedCase_ == 50;
}
/**
* .cz.proto.Properties config = 50;
* @return The config.
*/
@java.lang.Override
public cz.proto.PropertyOuterClass.Properties getConfig() {
if (configBuilder_ == null) {
if (derivedCase_ == 50) {
return (cz.proto.PropertyOuterClass.Properties) derived_;
}
return cz.proto.PropertyOuterClass.Properties.getDefaultInstance();
} else {
if (derivedCase_ == 50) {
return configBuilder_.getMessage();
}
return cz.proto.PropertyOuterClass.Properties.getDefaultInstance();
}
}
/**
* .cz.proto.Properties config = 50;
*/
public Builder setConfig(cz.proto.PropertyOuterClass.Properties value) {
if (configBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
derived_ = value;
onChanged();
} else {
configBuilder_.setMessage(value);
}
derivedCase_ = 50;
return this;
}
/**
* .cz.proto.Properties config = 50;
*/
public Builder setConfig(
cz.proto.PropertyOuterClass.Properties.Builder builderForValue) {
if (configBuilder_ == null) {
derived_ = builderForValue.build();
onChanged();
} else {
configBuilder_.setMessage(builderForValue.build());
}
derivedCase_ = 50;
return this;
}
/**
* .cz.proto.Properties config = 50;
*/
public Builder mergeConfig(cz.proto.PropertyOuterClass.Properties value) {
if (configBuilder_ == null) {
if (derivedCase_ == 50 &&
derived_ != cz.proto.PropertyOuterClass.Properties.getDefaultInstance()) {
derived_ = cz.proto.PropertyOuterClass.Properties.newBuilder((cz.proto.PropertyOuterClass.Properties) derived_)
.mergeFrom(value).buildPartial();
} else {
derived_ = value;
}
onChanged();
} else {
if (derivedCase_ == 50) {
configBuilder_.mergeFrom(value);
}
configBuilder_.setMessage(value);
}
derivedCase_ = 50;
return this;
}
/**
* .cz.proto.Properties config = 50;
*/
public Builder clearConfig() {
if (configBuilder_ == null) {
if (derivedCase_ == 50) {
derivedCase_ = 0;
derived_ = null;
onChanged();
}
} else {
if (derivedCase_ == 50) {
derivedCase_ = 0;
derived_ = null;
}
configBuilder_.clear();
}
return this;
}
/**
* .cz.proto.Properties config = 50;
*/
public cz.proto.PropertyOuterClass.Properties.Builder getConfigBuilder() {
return getConfigFieldBuilder().getBuilder();
}
/**
* .cz.proto.Properties config = 50;
*/
@java.lang.Override
public cz.proto.PropertyOuterClass.PropertiesOrBuilder getConfigOrBuilder() {
if ((derivedCase_ == 50) && (configBuilder_ != null)) {
return configBuilder_.getMessageOrBuilder();
} else {
if (derivedCase_ == 50) {
return (cz.proto.PropertyOuterClass.Properties) derived_;
}
return cz.proto.PropertyOuterClass.Properties.getDefaultInstance();
}
}
/**
* .cz.proto.Properties config = 50;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.PropertyOuterClass.Properties, cz.proto.PropertyOuterClass.Properties.Builder, cz.proto.PropertyOuterClass.PropertiesOrBuilder>
getConfigFieldBuilder() {
if (configBuilder_ == null) {
if (!(derivedCase_ == 50)) {
derived_ = cz.proto.PropertyOuterClass.Properties.getDefaultInstance();
}
configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.PropertyOuterClass.Properties, cz.proto.PropertyOuterClass.Properties.Builder, cz.proto.PropertyOuterClass.PropertiesOrBuilder>(
(cz.proto.PropertyOuterClass.Properties) derived_,
getParentForChildren(),
isClean());
derived_ = null;
}
derivedCase_ = 50;
onChanged();;
return configBuilder_;
}
@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.FileSystemConnectionInfo)
}
// @@protoc_insertion_point(class_scope:cz.proto.FileSystemConnectionInfo)
private static final cz.proto.ConnectionMeta.FileSystemConnectionInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.ConnectionMeta.FileSystemConnectionInfo();
}
public static cz.proto.ConnectionMeta.FileSystemConnectionInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FileSystemConnectionInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FileSystemConnectionInfo(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.ConnectionMeta.FileSystemConnectionInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConnectionInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.proto.ConnectionInfo)
com.google.protobuf.MessageOrBuilder {
/**
* .cz.proto.FileSystemConnectionInfo file_system_connection_info = 50;
* @return Whether the fileSystemConnectionInfo field is set.
*/
boolean hasFileSystemConnectionInfo();
/**
* .cz.proto.FileSystemConnectionInfo file_system_connection_info = 50;
* @return The fileSystemConnectionInfo.
*/
cz.proto.ConnectionMeta.FileSystemConnectionInfo getFileSystemConnectionInfo();
/**
* .cz.proto.FileSystemConnectionInfo file_system_connection_info = 50;
*/
cz.proto.ConnectionMeta.FileSystemConnectionInfoOrBuilder getFileSystemConnectionInfoOrBuilder();
public cz.proto.ConnectionMeta.ConnectionInfo.DerivedCase getDerivedCase();
}
/**
* Protobuf type {@code cz.proto.ConnectionInfo}
*/
public static final class ConnectionInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.ConnectionInfo)
ConnectionInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConnectionInfo.newBuilder() to construct.
private ConnectionInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConnectionInfo() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConnectionInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConnectionInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 402: {
cz.proto.ConnectionMeta.FileSystemConnectionInfo.Builder subBuilder = null;
if (derivedCase_ == 50) {
subBuilder = ((cz.proto.ConnectionMeta.FileSystemConnectionInfo) derived_).toBuilder();
}
derived_ =
input.readMessage(cz.proto.ConnectionMeta.FileSystemConnectionInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.ConnectionMeta.FileSystemConnectionInfo) derived_);
derived_ = subBuilder.buildPartial();
}
derivedCase_ = 50;
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.ConnectionMeta.internal_static_cz_proto_ConnectionInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.ConnectionMeta.internal_static_cz_proto_ConnectionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.ConnectionMeta.ConnectionInfo.class, cz.proto.ConnectionMeta.ConnectionInfo.Builder.class);
}
private int derivedCase_ = 0;
private java.lang.Object derived_;
public enum DerivedCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
FILE_SYSTEM_CONNECTION_INFO(50),
DERIVED_NOT_SET(0);
private final int value;
private DerivedCase(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 DerivedCase valueOf(int value) {
return forNumber(value);
}
public static DerivedCase forNumber(int value) {
switch (value) {
case 50: return FILE_SYSTEM_CONNECTION_INFO;
case 0: return DERIVED_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DerivedCase
getDerivedCase() {
return DerivedCase.forNumber(
derivedCase_);
}
public static final int FILE_SYSTEM_CONNECTION_INFO_FIELD_NUMBER = 50;
/**
* .cz.proto.FileSystemConnectionInfo file_system_connection_info = 50;
* @return Whether the fileSystemConnectionInfo field is set.
*/
@java.lang.Override
public boolean hasFileSystemConnectionInfo() {
return derivedCase_ == 50;
}
/**
* .cz.proto.FileSystemConnectionInfo file_system_connection_info = 50;
* @return The fileSystemConnectionInfo.
*/
@java.lang.Override
public cz.proto.ConnectionMeta.FileSystemConnectionInfo getFileSystemConnectionInfo() {
if (derivedCase_ == 50) {
return (cz.proto.ConnectionMeta.FileSystemConnectionInfo) derived_;
}
return cz.proto.ConnectionMeta.FileSystemConnectionInfo.getDefaultInstance();
}
/**
* .cz.proto.FileSystemConnectionInfo file_system_connection_info = 50;
*/
@java.lang.Override
public cz.proto.ConnectionMeta.FileSystemConnectionInfoOrBuilder getFileSystemConnectionInfoOrBuilder() {
if (derivedCase_ == 50) {
return (cz.proto.ConnectionMeta.FileSystemConnectionInfo) derived_;
}
return cz.proto.ConnectionMeta.FileSystemConnectionInfo.getDefaultInstance();
}
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 (derivedCase_ == 50) {
output.writeMessage(50, (cz.proto.ConnectionMeta.FileSystemConnectionInfo) derived_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (derivedCase_ == 50) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(50, (cz.proto.ConnectionMeta.FileSystemConnectionInfo) derived_);
}
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.ConnectionMeta.ConnectionInfo)) {
return super.equals(obj);
}
cz.proto.ConnectionMeta.ConnectionInfo other = (cz.proto.ConnectionMeta.ConnectionInfo) obj;
if (!getDerivedCase().equals(other.getDerivedCase())) return false;
switch (derivedCase_) {
case 50:
if (!getFileSystemConnectionInfo()
.equals(other.getFileSystemConnectionInfo())) 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();
switch (derivedCase_) {
case 50:
hash = (37 * hash) + FILE_SYSTEM_CONNECTION_INFO_FIELD_NUMBER;
hash = (53 * hash) + getFileSystemConnectionInfo().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.ConnectionMeta.ConnectionInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.ConnectionMeta.ConnectionInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.ConnectionMeta.ConnectionInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.ConnectionMeta.ConnectionInfo 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.ConnectionMeta.ConnectionInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.ConnectionMeta.ConnectionInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.ConnectionMeta.ConnectionInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.ConnectionMeta.ConnectionInfo 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.ConnectionMeta.ConnectionInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.ConnectionMeta.ConnectionInfo 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.ConnectionMeta.ConnectionInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.ConnectionMeta.ConnectionInfo 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.ConnectionMeta.ConnectionInfo 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.ConnectionInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.ConnectionInfo)
cz.proto.ConnectionMeta.ConnectionInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.ConnectionMeta.internal_static_cz_proto_ConnectionInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.ConnectionMeta.internal_static_cz_proto_ConnectionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.ConnectionMeta.ConnectionInfo.class, cz.proto.ConnectionMeta.ConnectionInfo.Builder.class);
}
// Construct using cz.proto.ConnectionMeta.ConnectionInfo.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();
derivedCase_ = 0;
derived_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.ConnectionMeta.internal_static_cz_proto_ConnectionInfo_descriptor;
}
@java.lang.Override
public cz.proto.ConnectionMeta.ConnectionInfo getDefaultInstanceForType() {
return cz.proto.ConnectionMeta.ConnectionInfo.getDefaultInstance();
}
@java.lang.Override
public cz.proto.ConnectionMeta.ConnectionInfo build() {
cz.proto.ConnectionMeta.ConnectionInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.ConnectionMeta.ConnectionInfo buildPartial() {
cz.proto.ConnectionMeta.ConnectionInfo result = new cz.proto.ConnectionMeta.ConnectionInfo(this);
if (derivedCase_ == 50) {
if (fileSystemConnectionInfoBuilder_ == null) {
result.derived_ = derived_;
} else {
result.derived_ = fileSystemConnectionInfoBuilder_.build();
}
}
result.derivedCase_ = derivedCase_;
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.ConnectionMeta.ConnectionInfo) {
return mergeFrom((cz.proto.ConnectionMeta.ConnectionInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.ConnectionMeta.ConnectionInfo other) {
if (other == cz.proto.ConnectionMeta.ConnectionInfo.getDefaultInstance()) return this;
switch (other.getDerivedCase()) {
case FILE_SYSTEM_CONNECTION_INFO: {
mergeFileSystemConnectionInfo(other.getFileSystemConnectionInfo());
break;
}
case DERIVED_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.ConnectionMeta.ConnectionInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.ConnectionMeta.ConnectionInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int derivedCase_ = 0;
private java.lang.Object derived_;
public DerivedCase
getDerivedCase() {
return DerivedCase.forNumber(
derivedCase_);
}
public Builder clearDerived() {
derivedCase_ = 0;
derived_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ConnectionMeta.FileSystemConnectionInfo, cz.proto.ConnectionMeta.FileSystemConnectionInfo.Builder, cz.proto.ConnectionMeta.FileSystemConnectionInfoOrBuilder> fileSystemConnectionInfoBuilder_;
/**
* .cz.proto.FileSystemConnectionInfo file_system_connection_info = 50;
* @return Whether the fileSystemConnectionInfo field is set.
*/
@java.lang.Override
public boolean hasFileSystemConnectionInfo() {
return derivedCase_ == 50;
}
/**
* .cz.proto.FileSystemConnectionInfo file_system_connection_info = 50;
* @return The fileSystemConnectionInfo.
*/
@java.lang.Override
public cz.proto.ConnectionMeta.FileSystemConnectionInfo getFileSystemConnectionInfo() {
if (fileSystemConnectionInfoBuilder_ == null) {
if (derivedCase_ == 50) {
return (cz.proto.ConnectionMeta.FileSystemConnectionInfo) derived_;
}
return cz.proto.ConnectionMeta.FileSystemConnectionInfo.getDefaultInstance();
} else {
if (derivedCase_ == 50) {
return fileSystemConnectionInfoBuilder_.getMessage();
}
return cz.proto.ConnectionMeta.FileSystemConnectionInfo.getDefaultInstance();
}
}
/**
* .cz.proto.FileSystemConnectionInfo file_system_connection_info = 50;
*/
public Builder setFileSystemConnectionInfo(cz.proto.ConnectionMeta.FileSystemConnectionInfo value) {
if (fileSystemConnectionInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
derived_ = value;
onChanged();
} else {
fileSystemConnectionInfoBuilder_.setMessage(value);
}
derivedCase_ = 50;
return this;
}
/**
* .cz.proto.FileSystemConnectionInfo file_system_connection_info = 50;
*/
public Builder setFileSystemConnectionInfo(
cz.proto.ConnectionMeta.FileSystemConnectionInfo.Builder builderForValue) {
if (fileSystemConnectionInfoBuilder_ == null) {
derived_ = builderForValue.build();
onChanged();
} else {
fileSystemConnectionInfoBuilder_.setMessage(builderForValue.build());
}
derivedCase_ = 50;
return this;
}
/**
* .cz.proto.FileSystemConnectionInfo file_system_connection_info = 50;
*/
public Builder mergeFileSystemConnectionInfo(cz.proto.ConnectionMeta.FileSystemConnectionInfo value) {
if (fileSystemConnectionInfoBuilder_ == null) {
if (derivedCase_ == 50 &&
derived_ != cz.proto.ConnectionMeta.FileSystemConnectionInfo.getDefaultInstance()) {
derived_ = cz.proto.ConnectionMeta.FileSystemConnectionInfo.newBuilder((cz.proto.ConnectionMeta.FileSystemConnectionInfo) derived_)
.mergeFrom(value).buildPartial();
} else {
derived_ = value;
}
onChanged();
} else {
if (derivedCase_ == 50) {
fileSystemConnectionInfoBuilder_.mergeFrom(value);
}
fileSystemConnectionInfoBuilder_.setMessage(value);
}
derivedCase_ = 50;
return this;
}
/**
* .cz.proto.FileSystemConnectionInfo file_system_connection_info = 50;
*/
public Builder clearFileSystemConnectionInfo() {
if (fileSystemConnectionInfoBuilder_ == null) {
if (derivedCase_ == 50) {
derivedCase_ = 0;
derived_ = null;
onChanged();
}
} else {
if (derivedCase_ == 50) {
derivedCase_ = 0;
derived_ = null;
}
fileSystemConnectionInfoBuilder_.clear();
}
return this;
}
/**
* .cz.proto.FileSystemConnectionInfo file_system_connection_info = 50;
*/
public cz.proto.ConnectionMeta.FileSystemConnectionInfo.Builder getFileSystemConnectionInfoBuilder() {
return getFileSystemConnectionInfoFieldBuilder().getBuilder();
}
/**
* .cz.proto.FileSystemConnectionInfo file_system_connection_info = 50;
*/
@java.lang.Override
public cz.proto.ConnectionMeta.FileSystemConnectionInfoOrBuilder getFileSystemConnectionInfoOrBuilder() {
if ((derivedCase_ == 50) && (fileSystemConnectionInfoBuilder_ != null)) {
return fileSystemConnectionInfoBuilder_.getMessageOrBuilder();
} else {
if (derivedCase_ == 50) {
return (cz.proto.ConnectionMeta.FileSystemConnectionInfo) derived_;
}
return cz.proto.ConnectionMeta.FileSystemConnectionInfo.getDefaultInstance();
}
}
/**
* .cz.proto.FileSystemConnectionInfo file_system_connection_info = 50;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ConnectionMeta.FileSystemConnectionInfo, cz.proto.ConnectionMeta.FileSystemConnectionInfo.Builder, cz.proto.ConnectionMeta.FileSystemConnectionInfoOrBuilder>
getFileSystemConnectionInfoFieldBuilder() {
if (fileSystemConnectionInfoBuilder_ == null) {
if (!(derivedCase_ == 50)) {
derived_ = cz.proto.ConnectionMeta.FileSystemConnectionInfo.getDefaultInstance();
}
fileSystemConnectionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ConnectionMeta.FileSystemConnectionInfo, cz.proto.ConnectionMeta.FileSystemConnectionInfo.Builder, cz.proto.ConnectionMeta.FileSystemConnectionInfoOrBuilder>(
(cz.proto.ConnectionMeta.FileSystemConnectionInfo) derived_,
getParentForChildren(),
isClean());
derived_ = null;
}
derivedCase_ = 50;
onChanged();;
return fileSystemConnectionInfoBuilder_;
}
@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.ConnectionInfo)
}
// @@protoc_insertion_point(class_scope:cz.proto.ConnectionInfo)
private static final cz.proto.ConnectionMeta.ConnectionInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.ConnectionMeta.ConnectionInfo();
}
public static cz.proto.ConnectionMeta.ConnectionInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConnectionInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConnectionInfo(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.ConnectionMeta.ConnectionInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConnectionOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.proto.Connection)
com.google.protobuf.MessageOrBuilder {
/**
* .cz.proto.ConnectionType connection_type = 1;
* @return The enum numeric value on the wire for connectionType.
*/
int getConnectionTypeValue();
/**
* .cz.proto.ConnectionType connection_type = 1;
* @return The connectionType.
*/
cz.proto.ConnectionMeta.ConnectionType getConnectionType();
/**
* .cz.proto.ConnectionCategory connection_category = 2;
* @return The enum numeric value on the wire for connectionCategory.
*/
int getConnectionCategoryValue();
/**
* .cz.proto.ConnectionCategory connection_category = 2;
* @return The connectionCategory.
*/
cz.proto.ConnectionMeta.ConnectionCategory getConnectionCategory();
/**
* bool enabled = 3;
* @return The enabled.
*/
boolean getEnabled();
/**
* .cz.proto.ConnectionInfo connection_info = 4;
* @return Whether the connectionInfo field is set.
*/
boolean hasConnectionInfo();
/**
* .cz.proto.ConnectionInfo connection_info = 4;
* @return The connectionInfo.
*/
cz.proto.ConnectionMeta.ConnectionInfo getConnectionInfo();
/**
* .cz.proto.ConnectionInfo connection_info = 4;
*/
cz.proto.ConnectionMeta.ConnectionInfoOrBuilder getConnectionInfoOrBuilder();
}
/**
* Protobuf type {@code cz.proto.Connection}
*/
public static final class Connection extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.Connection)
ConnectionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Connection.newBuilder() to construct.
private Connection(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Connection() {
connectionType_ = 0;
connectionCategory_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Connection();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Connection(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
connectionType_ = rawValue;
break;
}
case 16: {
int rawValue = input.readEnum();
connectionCategory_ = rawValue;
break;
}
case 24: {
enabled_ = input.readBool();
break;
}
case 34: {
cz.proto.ConnectionMeta.ConnectionInfo.Builder subBuilder = null;
if (connectionInfo_ != null) {
subBuilder = connectionInfo_.toBuilder();
}
connectionInfo_ = input.readMessage(cz.proto.ConnectionMeta.ConnectionInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(connectionInfo_);
connectionInfo_ = subBuilder.buildPartial();
}
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.ConnectionMeta.internal_static_cz_proto_Connection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.ConnectionMeta.internal_static_cz_proto_Connection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.ConnectionMeta.Connection.class, cz.proto.ConnectionMeta.Connection.Builder.class);
}
public static final int CONNECTION_TYPE_FIELD_NUMBER = 1;
private int connectionType_;
/**
* .cz.proto.ConnectionType connection_type = 1;
* @return The enum numeric value on the wire for connectionType.
*/
@java.lang.Override public int getConnectionTypeValue() {
return connectionType_;
}
/**
* .cz.proto.ConnectionType connection_type = 1;
* @return The connectionType.
*/
@java.lang.Override public cz.proto.ConnectionMeta.ConnectionType getConnectionType() {
@SuppressWarnings("deprecation")
cz.proto.ConnectionMeta.ConnectionType result = cz.proto.ConnectionMeta.ConnectionType.valueOf(connectionType_);
return result == null ? cz.proto.ConnectionMeta.ConnectionType.UNRECOGNIZED : result;
}
public static final int CONNECTION_CATEGORY_FIELD_NUMBER = 2;
private int connectionCategory_;
/**
* .cz.proto.ConnectionCategory connection_category = 2;
* @return The enum numeric value on the wire for connectionCategory.
*/
@java.lang.Override public int getConnectionCategoryValue() {
return connectionCategory_;
}
/**
* .cz.proto.ConnectionCategory connection_category = 2;
* @return The connectionCategory.
*/
@java.lang.Override public cz.proto.ConnectionMeta.ConnectionCategory getConnectionCategory() {
@SuppressWarnings("deprecation")
cz.proto.ConnectionMeta.ConnectionCategory result = cz.proto.ConnectionMeta.ConnectionCategory.valueOf(connectionCategory_);
return result == null ? cz.proto.ConnectionMeta.ConnectionCategory.UNRECOGNIZED : result;
}
public static final int ENABLED_FIELD_NUMBER = 3;
private boolean enabled_;
/**
* bool enabled = 3;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
public static final int CONNECTION_INFO_FIELD_NUMBER = 4;
private cz.proto.ConnectionMeta.ConnectionInfo connectionInfo_;
/**
* .cz.proto.ConnectionInfo connection_info = 4;
* @return Whether the connectionInfo field is set.
*/
@java.lang.Override
public boolean hasConnectionInfo() {
return connectionInfo_ != null;
}
/**
* .cz.proto.ConnectionInfo connection_info = 4;
* @return The connectionInfo.
*/
@java.lang.Override
public cz.proto.ConnectionMeta.ConnectionInfo getConnectionInfo() {
return connectionInfo_ == null ? cz.proto.ConnectionMeta.ConnectionInfo.getDefaultInstance() : connectionInfo_;
}
/**
* .cz.proto.ConnectionInfo connection_info = 4;
*/
@java.lang.Override
public cz.proto.ConnectionMeta.ConnectionInfoOrBuilder getConnectionInfoOrBuilder() {
return getConnectionInfo();
}
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 (connectionType_ != cz.proto.ConnectionMeta.ConnectionType.CLOUD_FUNCTION.getNumber()) {
output.writeEnum(1, connectionType_);
}
if (connectionCategory_ != cz.proto.ConnectionMeta.ConnectionCategory.DATA_CONNECTION.getNumber()) {
output.writeEnum(2, connectionCategory_);
}
if (enabled_ != false) {
output.writeBool(3, enabled_);
}
if (connectionInfo_ != null) {
output.writeMessage(4, getConnectionInfo());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (connectionType_ != cz.proto.ConnectionMeta.ConnectionType.CLOUD_FUNCTION.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, connectionType_);
}
if (connectionCategory_ != cz.proto.ConnectionMeta.ConnectionCategory.DATA_CONNECTION.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, connectionCategory_);
}
if (enabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, enabled_);
}
if (connectionInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getConnectionInfo());
}
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.ConnectionMeta.Connection)) {
return super.equals(obj);
}
cz.proto.ConnectionMeta.Connection other = (cz.proto.ConnectionMeta.Connection) obj;
if (connectionType_ != other.connectionType_) return false;
if (connectionCategory_ != other.connectionCategory_) return false;
if (getEnabled()
!= other.getEnabled()) return false;
if (hasConnectionInfo() != other.hasConnectionInfo()) return false;
if (hasConnectionInfo()) {
if (!getConnectionInfo()
.equals(other.getConnectionInfo())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CONNECTION_TYPE_FIELD_NUMBER;
hash = (53 * hash) + connectionType_;
hash = (37 * hash) + CONNECTION_CATEGORY_FIELD_NUMBER;
hash = (53 * hash) + connectionCategory_;
hash = (37 * hash) + ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnabled());
if (hasConnectionInfo()) {
hash = (37 * hash) + CONNECTION_INFO_FIELD_NUMBER;
hash = (53 * hash) + getConnectionInfo().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.ConnectionMeta.Connection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.ConnectionMeta.Connection parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.ConnectionMeta.Connection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.ConnectionMeta.Connection 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.ConnectionMeta.Connection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.ConnectionMeta.Connection parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.ConnectionMeta.Connection parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.ConnectionMeta.Connection 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.ConnectionMeta.Connection parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.ConnectionMeta.Connection 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.ConnectionMeta.Connection parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.ConnectionMeta.Connection 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.ConnectionMeta.Connection 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.Connection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.Connection)
cz.proto.ConnectionMeta.ConnectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.ConnectionMeta.internal_static_cz_proto_Connection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.ConnectionMeta.internal_static_cz_proto_Connection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.ConnectionMeta.Connection.class, cz.proto.ConnectionMeta.Connection.Builder.class);
}
// Construct using cz.proto.ConnectionMeta.Connection.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();
connectionType_ = 0;
connectionCategory_ = 0;
enabled_ = false;
if (connectionInfoBuilder_ == null) {
connectionInfo_ = null;
} else {
connectionInfo_ = null;
connectionInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.ConnectionMeta.internal_static_cz_proto_Connection_descriptor;
}
@java.lang.Override
public cz.proto.ConnectionMeta.Connection getDefaultInstanceForType() {
return cz.proto.ConnectionMeta.Connection.getDefaultInstance();
}
@java.lang.Override
public cz.proto.ConnectionMeta.Connection build() {
cz.proto.ConnectionMeta.Connection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.ConnectionMeta.Connection buildPartial() {
cz.proto.ConnectionMeta.Connection result = new cz.proto.ConnectionMeta.Connection(this);
result.connectionType_ = connectionType_;
result.connectionCategory_ = connectionCategory_;
result.enabled_ = enabled_;
if (connectionInfoBuilder_ == null) {
result.connectionInfo_ = connectionInfo_;
} else {
result.connectionInfo_ = connectionInfoBuilder_.build();
}
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.ConnectionMeta.Connection) {
return mergeFrom((cz.proto.ConnectionMeta.Connection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.ConnectionMeta.Connection other) {
if (other == cz.proto.ConnectionMeta.Connection.getDefaultInstance()) return this;
if (other.connectionType_ != 0) {
setConnectionTypeValue(other.getConnectionTypeValue());
}
if (other.connectionCategory_ != 0) {
setConnectionCategoryValue(other.getConnectionCategoryValue());
}
if (other.getEnabled() != false) {
setEnabled(other.getEnabled());
}
if (other.hasConnectionInfo()) {
mergeConnectionInfo(other.getConnectionInfo());
}
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.ConnectionMeta.Connection parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.ConnectionMeta.Connection) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int connectionType_ = 0;
/**
* .cz.proto.ConnectionType connection_type = 1;
* @return The enum numeric value on the wire for connectionType.
*/
@java.lang.Override public int getConnectionTypeValue() {
return connectionType_;
}
/**
* .cz.proto.ConnectionType connection_type = 1;
* @param value The enum numeric value on the wire for connectionType to set.
* @return This builder for chaining.
*/
public Builder setConnectionTypeValue(int value) {
connectionType_ = value;
onChanged();
return this;
}
/**
* .cz.proto.ConnectionType connection_type = 1;
* @return The connectionType.
*/
@java.lang.Override
public cz.proto.ConnectionMeta.ConnectionType getConnectionType() {
@SuppressWarnings("deprecation")
cz.proto.ConnectionMeta.ConnectionType result = cz.proto.ConnectionMeta.ConnectionType.valueOf(connectionType_);
return result == null ? cz.proto.ConnectionMeta.ConnectionType.UNRECOGNIZED : result;
}
/**
* .cz.proto.ConnectionType connection_type = 1;
* @param value The connectionType to set.
* @return This builder for chaining.
*/
public Builder setConnectionType(cz.proto.ConnectionMeta.ConnectionType value) {
if (value == null) {
throw new NullPointerException();
}
connectionType_ = value.getNumber();
onChanged();
return this;
}
/**
* .cz.proto.ConnectionType connection_type = 1;
* @return This builder for chaining.
*/
public Builder clearConnectionType() {
connectionType_ = 0;
onChanged();
return this;
}
private int connectionCategory_ = 0;
/**
* .cz.proto.ConnectionCategory connection_category = 2;
* @return The enum numeric value on the wire for connectionCategory.
*/
@java.lang.Override public int getConnectionCategoryValue() {
return connectionCategory_;
}
/**
* .cz.proto.ConnectionCategory connection_category = 2;
* @param value The enum numeric value on the wire for connectionCategory to set.
* @return This builder for chaining.
*/
public Builder setConnectionCategoryValue(int value) {
connectionCategory_ = value;
onChanged();
return this;
}
/**
* .cz.proto.ConnectionCategory connection_category = 2;
* @return The connectionCategory.
*/
@java.lang.Override
public cz.proto.ConnectionMeta.ConnectionCategory getConnectionCategory() {
@SuppressWarnings("deprecation")
cz.proto.ConnectionMeta.ConnectionCategory result = cz.proto.ConnectionMeta.ConnectionCategory.valueOf(connectionCategory_);
return result == null ? cz.proto.ConnectionMeta.ConnectionCategory.UNRECOGNIZED : result;
}
/**
* .cz.proto.ConnectionCategory connection_category = 2;
* @param value The connectionCategory to set.
* @return This builder for chaining.
*/
public Builder setConnectionCategory(cz.proto.ConnectionMeta.ConnectionCategory value) {
if (value == null) {
throw new NullPointerException();
}
connectionCategory_ = value.getNumber();
onChanged();
return this;
}
/**
* .cz.proto.ConnectionCategory connection_category = 2;
* @return This builder for chaining.
*/
public Builder clearConnectionCategory() {
connectionCategory_ = 0;
onChanged();
return this;
}
private boolean enabled_ ;
/**
* bool enabled = 3;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
/**
* bool enabled = 3;
* @param value The enabled to set.
* @return This builder for chaining.
*/
public Builder setEnabled(boolean value) {
enabled_ = value;
onChanged();
return this;
}
/**
* bool enabled = 3;
* @return This builder for chaining.
*/
public Builder clearEnabled() {
enabled_ = false;
onChanged();
return this;
}
private cz.proto.ConnectionMeta.ConnectionInfo connectionInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ConnectionMeta.ConnectionInfo, cz.proto.ConnectionMeta.ConnectionInfo.Builder, cz.proto.ConnectionMeta.ConnectionInfoOrBuilder> connectionInfoBuilder_;
/**
* .cz.proto.ConnectionInfo connection_info = 4;
* @return Whether the connectionInfo field is set.
*/
public boolean hasConnectionInfo() {
return connectionInfoBuilder_ != null || connectionInfo_ != null;
}
/**
* .cz.proto.ConnectionInfo connection_info = 4;
* @return The connectionInfo.
*/
public cz.proto.ConnectionMeta.ConnectionInfo getConnectionInfo() {
if (connectionInfoBuilder_ == null) {
return connectionInfo_ == null ? cz.proto.ConnectionMeta.ConnectionInfo.getDefaultInstance() : connectionInfo_;
} else {
return connectionInfoBuilder_.getMessage();
}
}
/**
* .cz.proto.ConnectionInfo connection_info = 4;
*/
public Builder setConnectionInfo(cz.proto.ConnectionMeta.ConnectionInfo value) {
if (connectionInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
connectionInfo_ = value;
onChanged();
} else {
connectionInfoBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.ConnectionInfo connection_info = 4;
*/
public Builder setConnectionInfo(
cz.proto.ConnectionMeta.ConnectionInfo.Builder builderForValue) {
if (connectionInfoBuilder_ == null) {
connectionInfo_ = builderForValue.build();
onChanged();
} else {
connectionInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.ConnectionInfo connection_info = 4;
*/
public Builder mergeConnectionInfo(cz.proto.ConnectionMeta.ConnectionInfo value) {
if (connectionInfoBuilder_ == null) {
if (connectionInfo_ != null) {
connectionInfo_ =
cz.proto.ConnectionMeta.ConnectionInfo.newBuilder(connectionInfo_).mergeFrom(value).buildPartial();
} else {
connectionInfo_ = value;
}
onChanged();
} else {
connectionInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.ConnectionInfo connection_info = 4;
*/
public Builder clearConnectionInfo() {
if (connectionInfoBuilder_ == null) {
connectionInfo_ = null;
onChanged();
} else {
connectionInfo_ = null;
connectionInfoBuilder_ = null;
}
return this;
}
/**
* .cz.proto.ConnectionInfo connection_info = 4;
*/
public cz.proto.ConnectionMeta.ConnectionInfo.Builder getConnectionInfoBuilder() {
onChanged();
return getConnectionInfoFieldBuilder().getBuilder();
}
/**
* .cz.proto.ConnectionInfo connection_info = 4;
*/
public cz.proto.ConnectionMeta.ConnectionInfoOrBuilder getConnectionInfoOrBuilder() {
if (connectionInfoBuilder_ != null) {
return connectionInfoBuilder_.getMessageOrBuilder();
} else {
return connectionInfo_ == null ?
cz.proto.ConnectionMeta.ConnectionInfo.getDefaultInstance() : connectionInfo_;
}
}
/**
* .cz.proto.ConnectionInfo connection_info = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ConnectionMeta.ConnectionInfo, cz.proto.ConnectionMeta.ConnectionInfo.Builder, cz.proto.ConnectionMeta.ConnectionInfoOrBuilder>
getConnectionInfoFieldBuilder() {
if (connectionInfoBuilder_ == null) {
connectionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ConnectionMeta.ConnectionInfo, cz.proto.ConnectionMeta.ConnectionInfo.Builder, cz.proto.ConnectionMeta.ConnectionInfoOrBuilder>(
getConnectionInfo(),
getParentForChildren(),
isClean());
connectionInfo_ = null;
}
return connectionInfoBuilder_;
}
@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.Connection)
}
// @@protoc_insertion_point(class_scope:cz.proto.Connection)
private static final cz.proto.ConnectionMeta.Connection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.ConnectionMeta.Connection();
}
public static cz.proto.ConnectionMeta.Connection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Connection parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Connection(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.ConnectionMeta.Connection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_proto_FileSystemConnectionInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_proto_FileSystemConnectionInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_proto_ConnectionInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_proto_ConnectionInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_proto_Connection_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_proto_Connection_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\025connection_meta.proto\022\010cz.proto\032\016prope" +
"rty.proto\"g\n\030FileSystemConnectionInfo\022\030\n" +
"\020file_system_type\030\001 \001(\t\022&\n\006config\0302 \001(\0132" +
"\024.cz.proto.PropertiesH\000B\t\n\007derived\"f\n\016Co" +
"nnectionInfo\022I\n\033file_system_connection_i" +
"nfo\0302 \001(\0132\".cz.proto.FileSystemConnectio" +
"nInfoH\000B\t\n\007derived\"\276\001\n\nConnection\0221\n\017con" +
"nection_type\030\001 \001(\0162\030.cz.proto.Connection" +
"Type\0229\n\023connection_category\030\002 \001(\0162\034.cz.p" +
"roto.ConnectionCategory\022\017\n\007enabled\030\003 \001(\010" +
"\0221\n\017connection_info\030\004 \001(\0132\030.cz.proto.Con" +
"nectionInfo*5\n\016ConnectionType\022\022\n\016CLOUD_F" +
"UNCTION\020\000\022\017\n\013FILE_SYSTEM\020\001*=\n\022Connection" +
"Category\022\023\n\017DATA_CONNECTION\020\000\022\022\n\016API_CON" +
"NECTION\020\001b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
cz.proto.PropertyOuterClass.getDescriptor(),
});
internal_static_cz_proto_FileSystemConnectionInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cz_proto_FileSystemConnectionInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_proto_FileSystemConnectionInfo_descriptor,
new java.lang.String[] { "FileSystemType", "Config", "Derived", });
internal_static_cz_proto_ConnectionInfo_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cz_proto_ConnectionInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_proto_ConnectionInfo_descriptor,
new java.lang.String[] { "FileSystemConnectionInfo", "Derived", });
internal_static_cz_proto_Connection_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_cz_proto_Connection_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_proto_Connection_descriptor,
new java.lang.String[] { "ConnectionType", "ConnectionCategory", "Enabled", "ConnectionInfo", });
cz.proto.PropertyOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy