com.dimajix.flowman.kernel.proto.session.CreateSessionRequest Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: session.proto
package com.dimajix.flowman.kernel.proto.session;
/**
* Protobuf type {@code com.dimajix.flowman.kernel.session.CreateSessionRequest}
*/
public final class CreateSessionRequest extends
com.dimajix.shaded.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.dimajix.flowman.kernel.session.CreateSessionRequest)
CreateSessionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateSessionRequest.newBuilder() to construct.
private CreateSessionRequest(com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateSessionRequest() {
workspace_ = "";
name_ = "";
projectName_ = "";
projectLocation_ = "";
profiles_ =
com.dimajix.shaded.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateSessionRequest();
}
public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dimajix.flowman.kernel.proto.session.SessionProto.internal_static_com_dimajix_flowman_kernel_session_CreateSessionRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.dimajix.shaded.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetConfig();
case 7:
return internalGetEnvironment();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.dimajix.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dimajix.flowman.kernel.proto.session.SessionProto.internal_static_com_dimajix_flowman_kernel_session_CreateSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.session.CreateSessionRequest.class, com.dimajix.flowman.kernel.proto.session.CreateSessionRequest.Builder.class);
}
private int bitField0_;
public static final int WORKSPACE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object workspace_ = "";
/**
* optional string workspace = 1;
* @return Whether the workspace field is set.
*/
@java.lang.Override
public boolean hasWorkspace() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string workspace = 1;
* @return The workspace.
*/
@java.lang.Override
public java.lang.String getWorkspace() {
java.lang.Object ref = workspace_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
workspace_ = s;
return s;
}
}
/**
* optional string workspace = 1;
* @return The bytes for workspace.
*/
@java.lang.Override
public com.dimajix.shaded.protobuf.ByteString
getWorkspaceBytes() {
java.lang.Object ref = workspace_;
if (ref instanceof java.lang.String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workspace_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* optional string name = 2;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* optional string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.dimajix.shaded.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
public static final int PROJECTNAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object projectName_ = "";
/**
* optional string projectName = 3;
* @return Whether the projectName field is set.
*/
@java.lang.Override
public boolean hasProjectName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string projectName = 3;
* @return The projectName.
*/
@java.lang.Override
public java.lang.String getProjectName() {
java.lang.Object ref = projectName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
projectName_ = s;
return s;
}
}
/**
* optional string projectName = 3;
* @return The bytes for projectName.
*/
@java.lang.Override
public com.dimajix.shaded.protobuf.ByteString
getProjectNameBytes() {
java.lang.Object ref = projectName_;
if (ref instanceof java.lang.String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
projectName_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
public static final int PROJECTLOCATION_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object projectLocation_ = "";
/**
* optional string projectLocation = 4;
* @return Whether the projectLocation field is set.
*/
@java.lang.Override
public boolean hasProjectLocation() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string projectLocation = 4;
* @return The projectLocation.
*/
@java.lang.Override
public java.lang.String getProjectLocation() {
java.lang.Object ref = projectLocation_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
projectLocation_ = s;
return s;
}
}
/**
* optional string projectLocation = 4;
* @return The bytes for projectLocation.
*/
@java.lang.Override
public com.dimajix.shaded.protobuf.ByteString
getProjectLocationBytes() {
java.lang.Object ref = projectLocation_;
if (ref instanceof java.lang.String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
projectLocation_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
public static final int PROFILES_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private com.dimajix.shaded.protobuf.LazyStringArrayList profiles_ =
com.dimajix.shaded.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string profiles = 5;
* @return A list containing the profiles.
*/
public com.dimajix.shaded.protobuf.ProtocolStringList
getProfilesList() {
return profiles_;
}
/**
* repeated string profiles = 5;
* @return The count of profiles.
*/
public int getProfilesCount() {
return profiles_.size();
}
/**
* repeated string profiles = 5;
* @param index The index of the element to return.
* @return The profiles at the given index.
*/
public java.lang.String getProfiles(int index) {
return profiles_.get(index);
}
/**
* repeated string profiles = 5;
* @param index The index of the value to return.
* @return The bytes of the profiles at the given index.
*/
public com.dimajix.shaded.protobuf.ByteString
getProfilesBytes(int index) {
return profiles_.getByteString(index);
}
public static final int CONFIG_FIELD_NUMBER = 6;
private static final class ConfigDefaultEntryHolder {
static final com.dimajix.shaded.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.dimajix.shaded.protobuf.MapEntry
.newDefaultInstance(
com.dimajix.flowman.kernel.proto.session.SessionProto.internal_static_com_dimajix_flowman_kernel_session_CreateSessionRequest_ConfigEntry_descriptor,
com.dimajix.shaded.protobuf.WireFormat.FieldType.STRING,
"",
com.dimajix.shaded.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.dimajix.shaded.protobuf.MapField<
java.lang.String, java.lang.String> config_;
private com.dimajix.shaded.protobuf.MapField
internalGetConfig() {
if (config_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ConfigDefaultEntryHolder.defaultEntry);
}
return config_;
}
public int getConfigCount() {
return internalGetConfig().getMap().size();
}
/**
* map<string, string> config = 6;
*/
@java.lang.Override
public boolean containsConfig(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetConfig().getMap().containsKey(key);
}
/**
* Use {@link #getConfigMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getConfig() {
return getConfigMap();
}
/**
* map<string, string> config = 6;
*/
@java.lang.Override
public java.util.Map getConfigMap() {
return internalGetConfig().getMap();
}
/**
* map<string, string> config = 6;
*/
@java.lang.Override
public /* nullable */
java.lang.String getConfigOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetConfig().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> config = 6;
*/
@java.lang.Override
public java.lang.String getConfigOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetConfig().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ENVIRONMENT_FIELD_NUMBER = 7;
private static final class EnvironmentDefaultEntryHolder {
static final com.dimajix.shaded.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.dimajix.shaded.protobuf.MapEntry
.newDefaultInstance(
com.dimajix.flowman.kernel.proto.session.SessionProto.internal_static_com_dimajix_flowman_kernel_session_CreateSessionRequest_EnvironmentEntry_descriptor,
com.dimajix.shaded.protobuf.WireFormat.FieldType.STRING,
"",
com.dimajix.shaded.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.dimajix.shaded.protobuf.MapField<
java.lang.String, java.lang.String> environment_;
private com.dimajix.shaded.protobuf.MapField
internalGetEnvironment() {
if (environment_ == null) {
return com.google.protobuf.MapField.emptyMapField(
EnvironmentDefaultEntryHolder.defaultEntry);
}
return environment_;
}
public int getEnvironmentCount() {
return internalGetEnvironment().getMap().size();
}
/**
* map<string, string> environment = 7;
*/
@java.lang.Override
public boolean containsEnvironment(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetEnvironment().getMap().containsKey(key);
}
/**
* Use {@link #getEnvironmentMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getEnvironment() {
return getEnvironmentMap();
}
/**
* map<string, string> environment = 7;
*/
@java.lang.Override
public java.util.Map getEnvironmentMap() {
return internalGetEnvironment().getMap();
}
/**
* map<string, string> environment = 7;
*/
@java.lang.Override
public /* nullable */
java.lang.String getEnvironmentOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetEnvironment().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> environment = 7;
*/
@java.lang.Override
public java.lang.String getEnvironmentOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetEnvironment().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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.dimajix.shaded.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.dimajix.shaded.protobuf.GeneratedMessageV3.writeString(output, 1, workspace_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.dimajix.shaded.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.dimajix.shaded.protobuf.GeneratedMessageV3.writeString(output, 3, projectName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.dimajix.shaded.protobuf.GeneratedMessageV3.writeString(output, 4, projectLocation_);
}
for (int i = 0; i < profiles_.size(); i++) {
com.dimajix.shaded.protobuf.GeneratedMessageV3.writeString(output, 5, profiles_.getRaw(i));
}
com.dimajix.shaded.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetConfig(),
ConfigDefaultEntryHolder.defaultEntry,
6);
com.dimajix.shaded.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetEnvironment(),
EnvironmentDefaultEntryHolder.defaultEntry,
7);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.dimajix.shaded.protobuf.GeneratedMessageV3.computeStringSize(1, workspace_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.dimajix.shaded.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.dimajix.shaded.protobuf.GeneratedMessageV3.computeStringSize(3, projectName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.dimajix.shaded.protobuf.GeneratedMessageV3.computeStringSize(4, projectLocation_);
}
{
int dataSize = 0;
for (int i = 0; i < profiles_.size(); i++) {
dataSize += computeStringSizeNoTag(profiles_.getRaw(i));
}
size += dataSize;
size += 1 * getProfilesList().size();
}
for (java.util.Map.Entry entry
: internalGetConfig().getMap().entrySet()) {
com.dimajix.shaded.protobuf.MapEntry
config__ = ConfigDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(6, config__);
}
for (java.util.Map.Entry entry
: internalGetEnvironment().getMap().entrySet()) {
com.dimajix.shaded.protobuf.MapEntry
environment__ = EnvironmentDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(7, environment__);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.dimajix.flowman.kernel.proto.session.CreateSessionRequest)) {
return super.equals(obj);
}
com.dimajix.flowman.kernel.proto.session.CreateSessionRequest other = (com.dimajix.flowman.kernel.proto.session.CreateSessionRequest) obj;
if (hasWorkspace() != other.hasWorkspace()) return false;
if (hasWorkspace()) {
if (!getWorkspace()
.equals(other.getWorkspace())) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasProjectName() != other.hasProjectName()) return false;
if (hasProjectName()) {
if (!getProjectName()
.equals(other.getProjectName())) return false;
}
if (hasProjectLocation() != other.hasProjectLocation()) return false;
if (hasProjectLocation()) {
if (!getProjectLocation()
.equals(other.getProjectLocation())) return false;
}
if (!getProfilesList()
.equals(other.getProfilesList())) return false;
if (!internalGetConfig().equals(
other.internalGetConfig())) return false;
if (!internalGetEnvironment().equals(
other.internalGetEnvironment())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasWorkspace()) {
hash = (37 * hash) + WORKSPACE_FIELD_NUMBER;
hash = (53 * hash) + getWorkspace().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasProjectName()) {
hash = (37 * hash) + PROJECTNAME_FIELD_NUMBER;
hash = (53 * hash) + getProjectName().hashCode();
}
if (hasProjectLocation()) {
hash = (37 * hash) + PROJECTLOCATION_FIELD_NUMBER;
hash = (53 * hash) + getProjectLocation().hashCode();
}
if (getProfilesCount() > 0) {
hash = (37 * hash) + PROFILES_FIELD_NUMBER;
hash = (53 * hash) + getProfilesList().hashCode();
}
if (!internalGetConfig().getMap().isEmpty()) {
hash = (37 * hash) + CONFIG_FIELD_NUMBER;
hash = (53 * hash) + internalGetConfig().hashCode();
}
if (!internalGetEnvironment().getMap().isEmpty()) {
hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
hash = (53 * hash) + internalGetEnvironment().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.dimajix.flowman.kernel.proto.session.CreateSessionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.session.CreateSessionRequest parseFrom(
java.nio.ByteBuffer data,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.session.CreateSessionRequest parseFrom(
com.dimajix.shaded.protobuf.ByteString data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.session.CreateSessionRequest parseFrom(
com.dimajix.shaded.protobuf.ByteString data,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.session.CreateSessionRequest parseFrom(byte[] data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.session.CreateSessionRequest parseFrom(
byte[] data,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.session.CreateSessionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.session.CreateSessionRequest parseFrom(
java.io.InputStream input,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.session.CreateSessionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.session.CreateSessionRequest parseDelimitedFrom(
java.io.InputStream input,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.session.CreateSessionRequest parseFrom(
com.dimajix.shaded.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.session.CreateSessionRequest parseFrom(
com.dimajix.shaded.protobuf.CodedInputStream input,
com.dimajix.shaded.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(com.dimajix.flowman.kernel.proto.session.CreateSessionRequest 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.dimajix.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.dimajix.flowman.kernel.session.CreateSessionRequest}
*/
public static final class Builder extends
com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.dimajix.flowman.kernel.session.CreateSessionRequest)
com.dimajix.flowman.kernel.proto.session.CreateSessionRequestOrBuilder {
public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dimajix.flowman.kernel.proto.session.SessionProto.internal_static_com_dimajix_flowman_kernel_session_CreateSessionRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.dimajix.shaded.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetConfig();
case 7:
return internalGetEnvironment();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.dimajix.shaded.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 6:
return internalGetMutableConfig();
case 7:
return internalGetMutableEnvironment();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.dimajix.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dimajix.flowman.kernel.proto.session.SessionProto.internal_static_com_dimajix_flowman_kernel_session_CreateSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.session.CreateSessionRequest.class, com.dimajix.flowman.kernel.proto.session.CreateSessionRequest.Builder.class);
}
// Construct using com.dimajix.flowman.kernel.proto.session.CreateSessionRequest.newBuilder()
private Builder() {
}
private Builder(
com.dimajix.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
workspace_ = "";
name_ = "";
projectName_ = "";
projectLocation_ = "";
profiles_ =
com.dimajix.shaded.protobuf.LazyStringArrayList.emptyList();
internalGetMutableConfig().clear();
internalGetMutableEnvironment().clear();
return this;
}
@java.lang.Override
public com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.dimajix.flowman.kernel.proto.session.SessionProto.internal_static_com_dimajix_flowman_kernel_session_CreateSessionRequest_descriptor;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.session.CreateSessionRequest getDefaultInstanceForType() {
return com.dimajix.flowman.kernel.proto.session.CreateSessionRequest.getDefaultInstance();
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.session.CreateSessionRequest build() {
com.dimajix.flowman.kernel.proto.session.CreateSessionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.session.CreateSessionRequest buildPartial() {
com.dimajix.flowman.kernel.proto.session.CreateSessionRequest result = new com.dimajix.flowman.kernel.proto.session.CreateSessionRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.dimajix.flowman.kernel.proto.session.CreateSessionRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.workspace_ = workspace_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.projectName_ = projectName_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.projectLocation_ = projectLocation_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
profiles_.makeImmutable();
result.profiles_ = profiles_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.config_ = internalGetConfig();
result.config_.makeImmutable();
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.environment_ = internalGetEnvironment();
result.environment_.makeImmutable();
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.dimajix.shaded.protobuf.Message other) {
if (other instanceof com.dimajix.flowman.kernel.proto.session.CreateSessionRequest) {
return mergeFrom((com.dimajix.flowman.kernel.proto.session.CreateSessionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.dimajix.flowman.kernel.proto.session.CreateSessionRequest other) {
if (other == com.dimajix.flowman.kernel.proto.session.CreateSessionRequest.getDefaultInstance()) return this;
if (other.hasWorkspace()) {
workspace_ = other.workspace_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasName()) {
name_ = other.name_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasProjectName()) {
projectName_ = other.projectName_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasProjectLocation()) {
projectLocation_ = other.projectLocation_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.profiles_.isEmpty()) {
if (profiles_.isEmpty()) {
profiles_ = other.profiles_;
bitField0_ |= 0x00000010;
} else {
ensureProfilesIsMutable();
profiles_.addAll(other.profiles_);
}
onChanged();
}
internalGetMutableConfig().mergeFrom(
other.internalGetConfig());
bitField0_ |= 0x00000020;
internalGetMutableEnvironment().mergeFrom(
other.internalGetEnvironment());
bitField0_ |= 0x00000040;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.dimajix.shaded.protobuf.CodedInputStream input,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
workspace_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
projectName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
projectLocation_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
java.lang.String s = input.readStringRequireUtf8();
ensureProfilesIsMutable();
profiles_.add(s);
break;
} // case 42
case 50: {
com.dimajix.shaded.protobuf.MapEntry
config__ = input.readMessage(
ConfigDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableConfig().getMutableMap().put(
config__.getKey(), config__.getValue());
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
com.dimajix.shaded.protobuf.MapEntry
environment__ = input.readMessage(
EnvironmentDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableEnvironment().getMutableMap().put(
environment__.getKey(), environment__.getValue());
bitField0_ |= 0x00000040;
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.dimajix.shaded.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object workspace_ = "";
/**
* optional string workspace = 1;
* @return Whether the workspace field is set.
*/
public boolean hasWorkspace() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string workspace = 1;
* @return The workspace.
*/
public java.lang.String getWorkspace() {
java.lang.Object ref = workspace_;
if (!(ref instanceof java.lang.String)) {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
workspace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string workspace = 1;
* @return The bytes for workspace.
*/
public com.dimajix.shaded.protobuf.ByteString
getWorkspaceBytes() {
java.lang.Object ref = workspace_;
if (ref instanceof String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
workspace_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
/**
* optional string workspace = 1;
* @param value The workspace to set.
* @return This builder for chaining.
*/
public Builder setWorkspace(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
workspace_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string workspace = 1;
* @return This builder for chaining.
*/
public Builder clearWorkspace() {
workspace_ = getDefaultInstance().getWorkspace();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string workspace = 1;
* @param value The bytes for workspace to set.
* @return This builder for chaining.
*/
public Builder setWorkspaceBytes(
com.dimajix.shaded.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
workspace_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* optional string name = 2;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 2;
* @return The bytes for name.
*/
public com.dimajix.shaded.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
/**
* optional string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.dimajix.shaded.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object projectName_ = "";
/**
* optional string projectName = 3;
* @return Whether the projectName field is set.
*/
public boolean hasProjectName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string projectName = 3;
* @return The projectName.
*/
public java.lang.String getProjectName() {
java.lang.Object ref = projectName_;
if (!(ref instanceof java.lang.String)) {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
projectName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string projectName = 3;
* @return The bytes for projectName.
*/
public com.dimajix.shaded.protobuf.ByteString
getProjectNameBytes() {
java.lang.Object ref = projectName_;
if (ref instanceof String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
projectName_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
/**
* optional string projectName = 3;
* @param value The projectName to set.
* @return This builder for chaining.
*/
public Builder setProjectName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
projectName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional string projectName = 3;
* @return This builder for chaining.
*/
public Builder clearProjectName() {
projectName_ = getDefaultInstance().getProjectName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* optional string projectName = 3;
* @param value The bytes for projectName to set.
* @return This builder for chaining.
*/
public Builder setProjectNameBytes(
com.dimajix.shaded.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
projectName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object projectLocation_ = "";
/**
* optional string projectLocation = 4;
* @return Whether the projectLocation field is set.
*/
public boolean hasProjectLocation() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string projectLocation = 4;
* @return The projectLocation.
*/
public java.lang.String getProjectLocation() {
java.lang.Object ref = projectLocation_;
if (!(ref instanceof java.lang.String)) {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
projectLocation_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string projectLocation = 4;
* @return The bytes for projectLocation.
*/
public com.dimajix.shaded.protobuf.ByteString
getProjectLocationBytes() {
java.lang.Object ref = projectLocation_;
if (ref instanceof String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
projectLocation_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
/**
* optional string projectLocation = 4;
* @param value The projectLocation to set.
* @return This builder for chaining.
*/
public Builder setProjectLocation(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
projectLocation_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional string projectLocation = 4;
* @return This builder for chaining.
*/
public Builder clearProjectLocation() {
projectLocation_ = getDefaultInstance().getProjectLocation();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* optional string projectLocation = 4;
* @param value The bytes for projectLocation to set.
* @return This builder for chaining.
*/
public Builder setProjectLocationBytes(
com.dimajix.shaded.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
projectLocation_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private com.dimajix.shaded.protobuf.LazyStringArrayList profiles_ =
com.dimajix.shaded.protobuf.LazyStringArrayList.emptyList();
private void ensureProfilesIsMutable() {
if (!profiles_.isModifiable()) {
profiles_ = new com.google.protobuf.LazyStringArrayList(profiles_);
}
bitField0_ |= 0x00000010;
}
/**
* repeated string profiles = 5;
* @return A list containing the profiles.
*/
public com.dimajix.shaded.protobuf.ProtocolStringList
getProfilesList() {
profiles_.makeImmutable();
return profiles_;
}
/**
* repeated string profiles = 5;
* @return The count of profiles.
*/
public int getProfilesCount() {
return profiles_.size();
}
/**
* repeated string profiles = 5;
* @param index The index of the element to return.
* @return The profiles at the given index.
*/
public java.lang.String getProfiles(int index) {
return profiles_.get(index);
}
/**
* repeated string profiles = 5;
* @param index The index of the value to return.
* @return The bytes of the profiles at the given index.
*/
public com.dimajix.shaded.protobuf.ByteString
getProfilesBytes(int index) {
return profiles_.getByteString(index);
}
/**
* repeated string profiles = 5;
* @param index The index to set the value at.
* @param value The profiles to set.
* @return This builder for chaining.
*/
public Builder setProfiles(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureProfilesIsMutable();
profiles_.set(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated string profiles = 5;
* @param value The profiles to add.
* @return This builder for chaining.
*/
public Builder addProfiles(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureProfilesIsMutable();
profiles_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated string profiles = 5;
* @param values The profiles to add.
* @return This builder for chaining.
*/
public Builder addAllProfiles(
java.lang.Iterable values) {
ensureProfilesIsMutable();
com.dimajix.shaded.protobuf.AbstractMessageLite.Builder.addAll(
values, profiles_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated string profiles = 5;
* @return This builder for chaining.
*/
public Builder clearProfiles() {
profiles_ =
com.dimajix.shaded.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);;
onChanged();
return this;
}
/**
* repeated string profiles = 5;
* @param value The bytes of the profiles to add.
* @return This builder for chaining.
*/
public Builder addProfilesBytes(
com.dimajix.shaded.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureProfilesIsMutable();
profiles_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.dimajix.shaded.protobuf.MapField<
java.lang.String, java.lang.String> config_;
private com.dimajix.shaded.protobuf.MapField
internalGetConfig() {
if (config_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ConfigDefaultEntryHolder.defaultEntry);
}
return config_;
}
private com.dimajix.shaded.protobuf.MapField
internalGetMutableConfig() {
if (config_ == null) {
config_ = com.dimajix.shaded.protobuf.MapField.newMapField(
ConfigDefaultEntryHolder.defaultEntry);
}
if (!config_.isMutable()) {
config_ = config_.copy();
}
bitField0_ |= 0x00000020;
onChanged();
return config_;
}
public int getConfigCount() {
return internalGetConfig().getMap().size();
}
/**
* map<string, string> config = 6;
*/
@java.lang.Override
public boolean containsConfig(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetConfig().getMap().containsKey(key);
}
/**
* Use {@link #getConfigMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getConfig() {
return getConfigMap();
}
/**
* map<string, string> config = 6;
*/
@java.lang.Override
public java.util.Map getConfigMap() {
return internalGetConfig().getMap();
}
/**
* map<string, string> config = 6;
*/
@java.lang.Override
public /* nullable */
java.lang.String getConfigOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetConfig().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> config = 6;
*/
@java.lang.Override
public java.lang.String getConfigOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetConfig().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearConfig() {
bitField0_ = (bitField0_ & ~0x00000020);
internalGetMutableConfig().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> config = 6;
*/
public Builder removeConfig(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableConfig().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableConfig() {
bitField0_ |= 0x00000020;
return internalGetMutableConfig().getMutableMap();
}
/**
* map<string, string> config = 6;
*/
public Builder putConfig(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableConfig().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000020;
return this;
}
/**
* map<string, string> config = 6;
*/
public Builder putAllConfig(
java.util.Map values) {
internalGetMutableConfig().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000020;
return this;
}
private com.dimajix.shaded.protobuf.MapField<
java.lang.String, java.lang.String> environment_;
private com.dimajix.shaded.protobuf.MapField
internalGetEnvironment() {
if (environment_ == null) {
return com.google.protobuf.MapField.emptyMapField(
EnvironmentDefaultEntryHolder.defaultEntry);
}
return environment_;
}
private com.dimajix.shaded.protobuf.MapField
internalGetMutableEnvironment() {
if (environment_ == null) {
environment_ = com.dimajix.shaded.protobuf.MapField.newMapField(
EnvironmentDefaultEntryHolder.defaultEntry);
}
if (!environment_.isMutable()) {
environment_ = environment_.copy();
}
bitField0_ |= 0x00000040;
onChanged();
return environment_;
}
public int getEnvironmentCount() {
return internalGetEnvironment().getMap().size();
}
/**
* map<string, string> environment = 7;
*/
@java.lang.Override
public boolean containsEnvironment(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetEnvironment().getMap().containsKey(key);
}
/**
* Use {@link #getEnvironmentMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getEnvironment() {
return getEnvironmentMap();
}
/**
* map<string, string> environment = 7;
*/
@java.lang.Override
public java.util.Map getEnvironmentMap() {
return internalGetEnvironment().getMap();
}
/**
* map<string, string> environment = 7;
*/
@java.lang.Override
public /* nullable */
java.lang.String getEnvironmentOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetEnvironment().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> environment = 7;
*/
@java.lang.Override
public java.lang.String getEnvironmentOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetEnvironment().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearEnvironment() {
bitField0_ = (bitField0_ & ~0x00000040);
internalGetMutableEnvironment().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> environment = 7;
*/
public Builder removeEnvironment(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableEnvironment().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableEnvironment() {
bitField0_ |= 0x00000040;
return internalGetMutableEnvironment().getMutableMap();
}
/**
* map<string, string> environment = 7;
*/
public Builder putEnvironment(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableEnvironment().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000040;
return this;
}
/**
* map<string, string> environment = 7;
*/
public Builder putAllEnvironment(
java.util.Map values) {
internalGetMutableEnvironment().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000040;
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.dimajix.shaded.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.dimajix.shaded.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.dimajix.flowman.kernel.session.CreateSessionRequest)
}
// @@protoc_insertion_point(class_scope:com.dimajix.flowman.kernel.session.CreateSessionRequest)
private static final com.dimajix.flowman.kernel.proto.session.CreateSessionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.dimajix.flowman.kernel.proto.session.CreateSessionRequest();
}
public static com.dimajix.flowman.kernel.proto.session.CreateSessionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.dimajix.shaded.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateSessionRequest parsePartialFrom(
com.dimajix.shaded.protobuf.CodedInputStream input,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.dimajix.shaded.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.dimajix.shaded.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.dimajix.shaded.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.dimajix.shaded.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.session.CreateSessionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy