cz.proto.WorkspaceMeta 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: workspace_meta.proto
package cz.proto;
public final class WorkspaceMeta {
private WorkspaceMeta() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface WorkspaceOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.proto.Workspace)
com.google.protobuf.MessageOrBuilder {
/**
*
* oss://{bucket}/{inst_ID}/workspaces/{wsName}_{wsId}/
* support multiple location, choose one of them when creating table/schema
*
*
* string location = 1;
* @return The location.
*/
java.lang.String getLocation();
/**
*
* oss://{bucket}/{inst_ID}/workspaces/{wsName}_{wsId}/
* support multiple location, choose one of them when creating table/schema
*
*
* string location = 1;
* @return The bytes for location.
*/
com.google.protobuf.ByteString
getLocationBytes();
/**
* repeated string optional_locations = 2;
* @return A list containing the optionalLocations.
*/
java.util.List
getOptionalLocationsList();
/**
* repeated string optional_locations = 2;
* @return The count of optionalLocations.
*/
int getOptionalLocationsCount();
/**
* repeated string optional_locations = 2;
* @param index The index of the element to return.
* @return The optionalLocations at the given index.
*/
java.lang.String getOptionalLocations(int index);
/**
* repeated string optional_locations = 2;
* @param index The index of the value to return.
* @return The bytes of the optionalLocations at the given index.
*/
com.google.protobuf.ByteString
getOptionalLocationsBytes(int index);
/**
* .cz.proto.EncryptionConfig encryption_config = 5;
* @return Whether the encryptionConfig field is set.
*/
boolean hasEncryptionConfig();
/**
* .cz.proto.EncryptionConfig encryption_config = 5;
* @return The encryptionConfig.
*/
cz.proto.Encryption.EncryptionConfig getEncryptionConfig();
/**
* .cz.proto.EncryptionConfig encryption_config = 5;
*/
cz.proto.Encryption.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder();
/**
* .cz.proto.ObjectIdentifier share = 10;
* @return Whether the share field is set.
*/
boolean hasShare();
/**
* .cz.proto.ObjectIdentifier share = 10;
* @return The share.
*/
cz.proto.ObjectIdentifier getShare();
/**
* .cz.proto.ObjectIdentifier share = 10;
*/
cz.proto.ObjectIdentifierOrBuilder getShareOrBuilder();
public cz.proto.WorkspaceMeta.Workspace.ConnectionCase getConnectionCase();
}
/**
* Protobuf type {@code cz.proto.Workspace}
*/
public static final class Workspace extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.Workspace)
WorkspaceOrBuilder {
private static final long serialVersionUID = 0L;
// Use Workspace.newBuilder() to construct.
private Workspace(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Workspace() {
location_ = "";
optionalLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Workspace();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Workspace(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
location_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
optionalLocations_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
optionalLocations_.add(s);
break;
}
case 42: {
cz.proto.Encryption.EncryptionConfig.Builder subBuilder = null;
if (encryptionConfig_ != null) {
subBuilder = encryptionConfig_.toBuilder();
}
encryptionConfig_ = input.readMessage(cz.proto.Encryption.EncryptionConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(encryptionConfig_);
encryptionConfig_ = subBuilder.buildPartial();
}
break;
}
case 82: {
cz.proto.ObjectIdentifier.Builder subBuilder = null;
if (connectionCase_ == 10) {
subBuilder = ((cz.proto.ObjectIdentifier) connection_).toBuilder();
}
connection_ =
input.readMessage(cz.proto.ObjectIdentifier.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.ObjectIdentifier) connection_);
connection_ = subBuilder.buildPartial();
}
connectionCase_ = 10;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
optionalLocations_ = optionalLocations_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.WorkspaceMeta.internal_static_cz_proto_Workspace_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.WorkspaceMeta.internal_static_cz_proto_Workspace_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.WorkspaceMeta.Workspace.class, cz.proto.WorkspaceMeta.Workspace.Builder.class);
}
private int connectionCase_ = 0;
private java.lang.Object connection_;
public enum ConnectionCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SHARE(10),
CONNECTION_NOT_SET(0);
private final int value;
private ConnectionCase(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 ConnectionCase valueOf(int value) {
return forNumber(value);
}
public static ConnectionCase forNumber(int value) {
switch (value) {
case 10: return SHARE;
case 0: return CONNECTION_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ConnectionCase
getConnectionCase() {
return ConnectionCase.forNumber(
connectionCase_);
}
public static final int LOCATION_FIELD_NUMBER = 1;
private volatile java.lang.Object location_;
/**
*
* oss://{bucket}/{inst_ID}/workspaces/{wsName}_{wsId}/
* support multiple location, choose one of them when creating table/schema
*
*
* string location = 1;
* @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;
}
}
/**
*
* oss://{bucket}/{inst_ID}/workspaces/{wsName}_{wsId}/
* support multiple location, choose one of them when creating table/schema
*
*
* string location = 1;
* @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 OPTIONAL_LOCATIONS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList optionalLocations_;
/**
* repeated string optional_locations = 2;
* @return A list containing the optionalLocations.
*/
public com.google.protobuf.ProtocolStringList
getOptionalLocationsList() {
return optionalLocations_;
}
/**
* repeated string optional_locations = 2;
* @return The count of optionalLocations.
*/
public int getOptionalLocationsCount() {
return optionalLocations_.size();
}
/**
* repeated string optional_locations = 2;
* @param index The index of the element to return.
* @return The optionalLocations at the given index.
*/
public java.lang.String getOptionalLocations(int index) {
return optionalLocations_.get(index);
}
/**
* repeated string optional_locations = 2;
* @param index The index of the value to return.
* @return The bytes of the optionalLocations at the given index.
*/
public com.google.protobuf.ByteString
getOptionalLocationsBytes(int index) {
return optionalLocations_.getByteString(index);
}
public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 5;
private cz.proto.Encryption.EncryptionConfig encryptionConfig_;
/**
* .cz.proto.EncryptionConfig encryption_config = 5;
* @return Whether the encryptionConfig field is set.
*/
@java.lang.Override
public boolean hasEncryptionConfig() {
return encryptionConfig_ != null;
}
/**
* .cz.proto.EncryptionConfig encryption_config = 5;
* @return The encryptionConfig.
*/
@java.lang.Override
public cz.proto.Encryption.EncryptionConfig getEncryptionConfig() {
return encryptionConfig_ == null ? cz.proto.Encryption.EncryptionConfig.getDefaultInstance() : encryptionConfig_;
}
/**
* .cz.proto.EncryptionConfig encryption_config = 5;
*/
@java.lang.Override
public cz.proto.Encryption.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() {
return getEncryptionConfig();
}
public static final int SHARE_FIELD_NUMBER = 10;
/**
* .cz.proto.ObjectIdentifier share = 10;
* @return Whether the share field is set.
*/
@java.lang.Override
public boolean hasShare() {
return connectionCase_ == 10;
}
/**
* .cz.proto.ObjectIdentifier share = 10;
* @return The share.
*/
@java.lang.Override
public cz.proto.ObjectIdentifier getShare() {
if (connectionCase_ == 10) {
return (cz.proto.ObjectIdentifier) connection_;
}
return cz.proto.ObjectIdentifier.getDefaultInstance();
}
/**
* .cz.proto.ObjectIdentifier share = 10;
*/
@java.lang.Override
public cz.proto.ObjectIdentifierOrBuilder getShareOrBuilder() {
if (connectionCase_ == 10) {
return (cz.proto.ObjectIdentifier) connection_;
}
return cz.proto.ObjectIdentifier.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(location_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_);
}
for (int i = 0; i < optionalLocations_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, optionalLocations_.getRaw(i));
}
if (encryptionConfig_ != null) {
output.writeMessage(5, getEncryptionConfig());
}
if (connectionCase_ == 10) {
output.writeMessage(10, (cz.proto.ObjectIdentifier) connection_);
}
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(location_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_);
}
{
int dataSize = 0;
for (int i = 0; i < optionalLocations_.size(); i++) {
dataSize += computeStringSizeNoTag(optionalLocations_.getRaw(i));
}
size += dataSize;
size += 1 * getOptionalLocationsList().size();
}
if (encryptionConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getEncryptionConfig());
}
if (connectionCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (cz.proto.ObjectIdentifier) connection_);
}
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.WorkspaceMeta.Workspace)) {
return super.equals(obj);
}
cz.proto.WorkspaceMeta.Workspace other = (cz.proto.WorkspaceMeta.Workspace) obj;
if (!getLocation()
.equals(other.getLocation())) return false;
if (!getOptionalLocationsList()
.equals(other.getOptionalLocationsList())) return false;
if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false;
if (hasEncryptionConfig()) {
if (!getEncryptionConfig()
.equals(other.getEncryptionConfig())) return false;
}
if (!getConnectionCase().equals(other.getConnectionCase())) return false;
switch (connectionCase_) {
case 10:
if (!getShare()
.equals(other.getShare())) 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) + LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getLocation().hashCode();
if (getOptionalLocationsCount() > 0) {
hash = (37 * hash) + OPTIONAL_LOCATIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptionalLocationsList().hashCode();
}
if (hasEncryptionConfig()) {
hash = (37 * hash) + ENCRYPTION_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getEncryptionConfig().hashCode();
}
switch (connectionCase_) {
case 10:
hash = (37 * hash) + SHARE_FIELD_NUMBER;
hash = (53 * hash) + getShare().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.WorkspaceMeta.Workspace parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.WorkspaceMeta.Workspace parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.WorkspaceMeta.Workspace parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.WorkspaceMeta.Workspace 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.WorkspaceMeta.Workspace parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.WorkspaceMeta.Workspace parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.WorkspaceMeta.Workspace parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.WorkspaceMeta.Workspace 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.WorkspaceMeta.Workspace parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.WorkspaceMeta.Workspace 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.WorkspaceMeta.Workspace parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.WorkspaceMeta.Workspace 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.WorkspaceMeta.Workspace 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.Workspace}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.Workspace)
cz.proto.WorkspaceMeta.WorkspaceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.WorkspaceMeta.internal_static_cz_proto_Workspace_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.WorkspaceMeta.internal_static_cz_proto_Workspace_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.WorkspaceMeta.Workspace.class, cz.proto.WorkspaceMeta.Workspace.Builder.class);
}
// Construct using cz.proto.WorkspaceMeta.Workspace.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();
location_ = "";
optionalLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (encryptionConfigBuilder_ == null) {
encryptionConfig_ = null;
} else {
encryptionConfig_ = null;
encryptionConfigBuilder_ = null;
}
connectionCase_ = 0;
connection_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.WorkspaceMeta.internal_static_cz_proto_Workspace_descriptor;
}
@java.lang.Override
public cz.proto.WorkspaceMeta.Workspace getDefaultInstanceForType() {
return cz.proto.WorkspaceMeta.Workspace.getDefaultInstance();
}
@java.lang.Override
public cz.proto.WorkspaceMeta.Workspace build() {
cz.proto.WorkspaceMeta.Workspace result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.WorkspaceMeta.Workspace buildPartial() {
cz.proto.WorkspaceMeta.Workspace result = new cz.proto.WorkspaceMeta.Workspace(this);
int from_bitField0_ = bitField0_;
result.location_ = location_;
if (((bitField0_ & 0x00000001) != 0)) {
optionalLocations_ = optionalLocations_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.optionalLocations_ = optionalLocations_;
if (encryptionConfigBuilder_ == null) {
result.encryptionConfig_ = encryptionConfig_;
} else {
result.encryptionConfig_ = encryptionConfigBuilder_.build();
}
if (connectionCase_ == 10) {
if (shareBuilder_ == null) {
result.connection_ = connection_;
} else {
result.connection_ = shareBuilder_.build();
}
}
result.connectionCase_ = connectionCase_;
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.WorkspaceMeta.Workspace) {
return mergeFrom((cz.proto.WorkspaceMeta.Workspace)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.WorkspaceMeta.Workspace other) {
if (other == cz.proto.WorkspaceMeta.Workspace.getDefaultInstance()) return this;
if (!other.getLocation().isEmpty()) {
location_ = other.location_;
onChanged();
}
if (!other.optionalLocations_.isEmpty()) {
if (optionalLocations_.isEmpty()) {
optionalLocations_ = other.optionalLocations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOptionalLocationsIsMutable();
optionalLocations_.addAll(other.optionalLocations_);
}
onChanged();
}
if (other.hasEncryptionConfig()) {
mergeEncryptionConfig(other.getEncryptionConfig());
}
switch (other.getConnectionCase()) {
case SHARE: {
mergeShare(other.getShare());
break;
}
case CONNECTION_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.WorkspaceMeta.Workspace parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.WorkspaceMeta.Workspace) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int connectionCase_ = 0;
private java.lang.Object connection_;
public ConnectionCase
getConnectionCase() {
return ConnectionCase.forNumber(
connectionCase_);
}
public Builder clearConnection() {
connectionCase_ = 0;
connection_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object location_ = "";
/**
*
* oss://{bucket}/{inst_ID}/workspaces/{wsName}_{wsId}/
* support multiple location, choose one of them when creating table/schema
*
*
* string location = 1;
* @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;
}
}
/**
*
* oss://{bucket}/{inst_ID}/workspaces/{wsName}_{wsId}/
* support multiple location, choose one of them when creating table/schema
*
*
* string location = 1;
* @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;
}
}
/**
*
* oss://{bucket}/{inst_ID}/workspaces/{wsName}_{wsId}/
* support multiple location, choose one of them when creating table/schema
*
*
* string location = 1;
* @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;
}
/**
*
* oss://{bucket}/{inst_ID}/workspaces/{wsName}_{wsId}/
* support multiple location, choose one of them when creating table/schema
*
*
* string location = 1;
* @return This builder for chaining.
*/
public Builder clearLocation() {
location_ = getDefaultInstance().getLocation();
onChanged();
return this;
}
/**
*
* oss://{bucket}/{inst_ID}/workspaces/{wsName}_{wsId}/
* support multiple location, choose one of them when creating table/schema
*
*
* string location = 1;
* @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 com.google.protobuf.LazyStringList optionalLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureOptionalLocationsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
optionalLocations_ = new com.google.protobuf.LazyStringArrayList(optionalLocations_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string optional_locations = 2;
* @return A list containing the optionalLocations.
*/
public com.google.protobuf.ProtocolStringList
getOptionalLocationsList() {
return optionalLocations_.getUnmodifiableView();
}
/**
* repeated string optional_locations = 2;
* @return The count of optionalLocations.
*/
public int getOptionalLocationsCount() {
return optionalLocations_.size();
}
/**
* repeated string optional_locations = 2;
* @param index The index of the element to return.
* @return The optionalLocations at the given index.
*/
public java.lang.String getOptionalLocations(int index) {
return optionalLocations_.get(index);
}
/**
* repeated string optional_locations = 2;
* @param index The index of the value to return.
* @return The bytes of the optionalLocations at the given index.
*/
public com.google.protobuf.ByteString
getOptionalLocationsBytes(int index) {
return optionalLocations_.getByteString(index);
}
/**
* repeated string optional_locations = 2;
* @param index The index to set the value at.
* @param value The optionalLocations to set.
* @return This builder for chaining.
*/
public Builder setOptionalLocations(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionalLocationsIsMutable();
optionalLocations_.set(index, value);
onChanged();
return this;
}
/**
* repeated string optional_locations = 2;
* @param value The optionalLocations to add.
* @return This builder for chaining.
*/
public Builder addOptionalLocations(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionalLocationsIsMutable();
optionalLocations_.add(value);
onChanged();
return this;
}
/**
* repeated string optional_locations = 2;
* @param values The optionalLocations to add.
* @return This builder for chaining.
*/
public Builder addAllOptionalLocations(
java.lang.Iterable values) {
ensureOptionalLocationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, optionalLocations_);
onChanged();
return this;
}
/**
* repeated string optional_locations = 2;
* @return This builder for chaining.
*/
public Builder clearOptionalLocations() {
optionalLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string optional_locations = 2;
* @param value The bytes of the optionalLocations to add.
* @return This builder for chaining.
*/
public Builder addOptionalLocationsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureOptionalLocationsIsMutable();
optionalLocations_.add(value);
onChanged();
return this;
}
private cz.proto.Encryption.EncryptionConfig encryptionConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Encryption.EncryptionConfig, cz.proto.Encryption.EncryptionConfig.Builder, cz.proto.Encryption.EncryptionConfigOrBuilder> encryptionConfigBuilder_;
/**
* .cz.proto.EncryptionConfig encryption_config = 5;
* @return Whether the encryptionConfig field is set.
*/
public boolean hasEncryptionConfig() {
return encryptionConfigBuilder_ != null || encryptionConfig_ != null;
}
/**
* .cz.proto.EncryptionConfig encryption_config = 5;
* @return The encryptionConfig.
*/
public cz.proto.Encryption.EncryptionConfig getEncryptionConfig() {
if (encryptionConfigBuilder_ == null) {
return encryptionConfig_ == null ? cz.proto.Encryption.EncryptionConfig.getDefaultInstance() : encryptionConfig_;
} else {
return encryptionConfigBuilder_.getMessage();
}
}
/**
* .cz.proto.EncryptionConfig encryption_config = 5;
*/
public Builder setEncryptionConfig(cz.proto.Encryption.EncryptionConfig value) {
if (encryptionConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
encryptionConfig_ = value;
onChanged();
} else {
encryptionConfigBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.EncryptionConfig encryption_config = 5;
*/
public Builder setEncryptionConfig(
cz.proto.Encryption.EncryptionConfig.Builder builderForValue) {
if (encryptionConfigBuilder_ == null) {
encryptionConfig_ = builderForValue.build();
onChanged();
} else {
encryptionConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.EncryptionConfig encryption_config = 5;
*/
public Builder mergeEncryptionConfig(cz.proto.Encryption.EncryptionConfig value) {
if (encryptionConfigBuilder_ == null) {
if (encryptionConfig_ != null) {
encryptionConfig_ =
cz.proto.Encryption.EncryptionConfig.newBuilder(encryptionConfig_).mergeFrom(value).buildPartial();
} else {
encryptionConfig_ = value;
}
onChanged();
} else {
encryptionConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.EncryptionConfig encryption_config = 5;
*/
public Builder clearEncryptionConfig() {
if (encryptionConfigBuilder_ == null) {
encryptionConfig_ = null;
onChanged();
} else {
encryptionConfig_ = null;
encryptionConfigBuilder_ = null;
}
return this;
}
/**
* .cz.proto.EncryptionConfig encryption_config = 5;
*/
public cz.proto.Encryption.EncryptionConfig.Builder getEncryptionConfigBuilder() {
onChanged();
return getEncryptionConfigFieldBuilder().getBuilder();
}
/**
* .cz.proto.EncryptionConfig encryption_config = 5;
*/
public cz.proto.Encryption.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() {
if (encryptionConfigBuilder_ != null) {
return encryptionConfigBuilder_.getMessageOrBuilder();
} else {
return encryptionConfig_ == null ?
cz.proto.Encryption.EncryptionConfig.getDefaultInstance() : encryptionConfig_;
}
}
/**
* .cz.proto.EncryptionConfig encryption_config = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Encryption.EncryptionConfig, cz.proto.Encryption.EncryptionConfig.Builder, cz.proto.Encryption.EncryptionConfigOrBuilder>
getEncryptionConfigFieldBuilder() {
if (encryptionConfigBuilder_ == null) {
encryptionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Encryption.EncryptionConfig, cz.proto.Encryption.EncryptionConfig.Builder, cz.proto.Encryption.EncryptionConfigOrBuilder>(
getEncryptionConfig(),
getParentForChildren(),
isClean());
encryptionConfig_ = null;
}
return encryptionConfigBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ObjectIdentifier, cz.proto.ObjectIdentifier.Builder, cz.proto.ObjectIdentifierOrBuilder> shareBuilder_;
/**
* .cz.proto.ObjectIdentifier share = 10;
* @return Whether the share field is set.
*/
@java.lang.Override
public boolean hasShare() {
return connectionCase_ == 10;
}
/**
* .cz.proto.ObjectIdentifier share = 10;
* @return The share.
*/
@java.lang.Override
public cz.proto.ObjectIdentifier getShare() {
if (shareBuilder_ == null) {
if (connectionCase_ == 10) {
return (cz.proto.ObjectIdentifier) connection_;
}
return cz.proto.ObjectIdentifier.getDefaultInstance();
} else {
if (connectionCase_ == 10) {
return shareBuilder_.getMessage();
}
return cz.proto.ObjectIdentifier.getDefaultInstance();
}
}
/**
* .cz.proto.ObjectIdentifier share = 10;
*/
public Builder setShare(cz.proto.ObjectIdentifier value) {
if (shareBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
connection_ = value;
onChanged();
} else {
shareBuilder_.setMessage(value);
}
connectionCase_ = 10;
return this;
}
/**
* .cz.proto.ObjectIdentifier share = 10;
*/
public Builder setShare(
cz.proto.ObjectIdentifier.Builder builderForValue) {
if (shareBuilder_ == null) {
connection_ = builderForValue.build();
onChanged();
} else {
shareBuilder_.setMessage(builderForValue.build());
}
connectionCase_ = 10;
return this;
}
/**
* .cz.proto.ObjectIdentifier share = 10;
*/
public Builder mergeShare(cz.proto.ObjectIdentifier value) {
if (shareBuilder_ == null) {
if (connectionCase_ == 10 &&
connection_ != cz.proto.ObjectIdentifier.getDefaultInstance()) {
connection_ = cz.proto.ObjectIdentifier.newBuilder((cz.proto.ObjectIdentifier) connection_)
.mergeFrom(value).buildPartial();
} else {
connection_ = value;
}
onChanged();
} else {
if (connectionCase_ == 10) {
shareBuilder_.mergeFrom(value);
}
shareBuilder_.setMessage(value);
}
connectionCase_ = 10;
return this;
}
/**
* .cz.proto.ObjectIdentifier share = 10;
*/
public Builder clearShare() {
if (shareBuilder_ == null) {
if (connectionCase_ == 10) {
connectionCase_ = 0;
connection_ = null;
onChanged();
}
} else {
if (connectionCase_ == 10) {
connectionCase_ = 0;
connection_ = null;
}
shareBuilder_.clear();
}
return this;
}
/**
* .cz.proto.ObjectIdentifier share = 10;
*/
public cz.proto.ObjectIdentifier.Builder getShareBuilder() {
return getShareFieldBuilder().getBuilder();
}
/**
* .cz.proto.ObjectIdentifier share = 10;
*/
@java.lang.Override
public cz.proto.ObjectIdentifierOrBuilder getShareOrBuilder() {
if ((connectionCase_ == 10) && (shareBuilder_ != null)) {
return shareBuilder_.getMessageOrBuilder();
} else {
if (connectionCase_ == 10) {
return (cz.proto.ObjectIdentifier) connection_;
}
return cz.proto.ObjectIdentifier.getDefaultInstance();
}
}
/**
* .cz.proto.ObjectIdentifier share = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ObjectIdentifier, cz.proto.ObjectIdentifier.Builder, cz.proto.ObjectIdentifierOrBuilder>
getShareFieldBuilder() {
if (shareBuilder_ == null) {
if (!(connectionCase_ == 10)) {
connection_ = cz.proto.ObjectIdentifier.getDefaultInstance();
}
shareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ObjectIdentifier, cz.proto.ObjectIdentifier.Builder, cz.proto.ObjectIdentifierOrBuilder>(
(cz.proto.ObjectIdentifier) connection_,
getParentForChildren(),
isClean());
connection_ = null;
}
connectionCase_ = 10;
onChanged();;
return shareBuilder_;
}
@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.Workspace)
}
// @@protoc_insertion_point(class_scope:cz.proto.Workspace)
private static final cz.proto.WorkspaceMeta.Workspace DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.WorkspaceMeta.Workspace();
}
public static cz.proto.WorkspaceMeta.Workspace getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Workspace parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Workspace(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.WorkspaceMeta.Workspace getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_proto_Workspace_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_proto_Workspace_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\024workspace_meta.proto\022\010cz.proto\032\027object" +
"_identifier.proto\032\020encryption.proto\"\253\001\n\t" +
"Workspace\022\020\n\010location\030\001 \001(\t\022\032\n\022optional_" +
"locations\030\002 \003(\t\0225\n\021encryption_config\030\005 \001" +
"(\0132\032.cz.proto.EncryptionConfig\022+\n\005share\030" +
"\n \001(\0132\032.cz.proto.ObjectIdentifierH\000B\014\n\nc" +
"onnectionb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
cz.proto.ObjectIdentifierOuterClass.getDescriptor(),
cz.proto.Encryption.getDescriptor(),
});
internal_static_cz_proto_Workspace_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cz_proto_Workspace_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_proto_Workspace_descriptor,
new java.lang.String[] { "Location", "OptionalLocations", "EncryptionConfig", "Share", "Connection", });
cz.proto.ObjectIdentifierOuterClass.getDescriptor();
cz.proto.Encryption.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy