com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: relation.proto
package com.dimajix.flowman.kernel.proto.relation;
/**
* Protobuf type {@code com.dimajix.flowman.kernel.relation.ExecuteRelationRequest}
*/
public final class ExecuteRelationRequest extends
com.dimajix.shaded.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.dimajix.flowman.kernel.relation.ExecuteRelationRequest)
ExecuteRelationRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteRelationRequest.newBuilder() to construct.
private ExecuteRelationRequest(com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteRelationRequest() {
sessionId_ = "";
relations_ = java.util.Collections.emptyList();
phase_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteRelationRequest();
}
public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dimajix.flowman.kernel.proto.relation.RelationProto.internal_static_com_dimajix_flowman_kernel_relation_ExecuteRelationRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.dimajix.shaded.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetPartition();
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.relation.RelationProto.internal_static_com_dimajix_flowman_kernel_relation_ExecuteRelationRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest.class, com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest.Builder.class);
}
public static final int SESSIONID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object sessionId_ = "";
/**
* string sessionId = 1;
* @return The sessionId.
*/
@java.lang.Override
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
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();
sessionId_ = s;
return s;
}
}
/**
* string sessionId = 1;
* @return The bytes for sessionId.
*/
@java.lang.Override
public com.dimajix.shaded.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
public static final int RELATIONS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List relations_;
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
@java.lang.Override
public java.util.List getRelationsList() {
return relations_;
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
@java.lang.Override
public java.util.List extends com.dimajix.flowman.kernel.proto.RelationIdentifierOrBuilder>
getRelationsOrBuilderList() {
return relations_;
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
@java.lang.Override
public int getRelationsCount() {
return relations_.size();
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.RelationIdentifier getRelations(int index) {
return relations_.get(index);
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.RelationIdentifierOrBuilder getRelationsOrBuilder(
int index) {
return relations_.get(index);
}
public static final int PHASE_FIELD_NUMBER = 3;
private int phase_ = 0;
/**
* .com.dimajix.flowman.kernel.ExecutionPhase phase = 3;
* @return The enum numeric value on the wire for phase.
*/
@java.lang.Override public int getPhaseValue() {
return phase_;
}
/**
* .com.dimajix.flowman.kernel.ExecutionPhase phase = 3;
* @return The phase.
*/
@java.lang.Override public com.dimajix.flowman.kernel.proto.ExecutionPhase getPhase() {
com.dimajix.flowman.kernel.proto.ExecutionPhase result = com.dimajix.flowman.kernel.proto.ExecutionPhase.forNumber(phase_);
return result == null ? com.dimajix.flowman.kernel.proto.ExecutionPhase.UNRECOGNIZED : result;
}
public static final int PARTITION_FIELD_NUMBER = 4;
private static final class PartitionDefaultEntryHolder {
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.relation.RelationProto.internal_static_com_dimajix_flowman_kernel_relation_ExecuteRelationRequest_PartitionEntry_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> partition_;
private com.dimajix.shaded.protobuf.MapField
internalGetPartition() {
if (partition_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PartitionDefaultEntryHolder.defaultEntry);
}
return partition_;
}
public int getPartitionCount() {
return internalGetPartition().getMap().size();
}
/**
* map<string, string> partition = 4;
*/
@java.lang.Override
public boolean containsPartition(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetPartition().getMap().containsKey(key);
}
/**
* Use {@link #getPartitionMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getPartition() {
return getPartitionMap();
}
/**
* map<string, string> partition = 4;
*/
@java.lang.Override
public java.util.Map getPartitionMap() {
return internalGetPartition().getMap();
}
/**
* map<string, string> partition = 4;
*/
@java.lang.Override
public /* nullable */
java.lang.String getPartitionOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetPartition().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> partition = 4;
*/
@java.lang.Override
public java.lang.String getPartitionOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetPartition().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int FORCE_FIELD_NUMBER = 5;
private boolean force_ = false;
/**
* bool force = 5;
* @return The force.
*/
@java.lang.Override
public boolean getForce() {
return force_;
}
public static final int KEEPGOING_FIELD_NUMBER = 6;
private boolean keepGoing_ = false;
/**
* bool keepGoing = 6;
* @return The keepGoing.
*/
@java.lang.Override
public boolean getKeepGoing() {
return keepGoing_;
}
public static final int DRYRUN_FIELD_NUMBER = 7;
private boolean dryRun_ = false;
/**
* bool dryRun = 7;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
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 (!com.dimajix.shaded.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
com.dimajix.shaded.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_);
}
for (int i = 0; i < relations_.size(); i++) {
output.writeMessage(2, relations_.get(i));
}
if (phase_ != com.dimajix.flowman.kernel.proto.ExecutionPhase.VALIDATE.getNumber()) {
output.writeEnum(3, phase_);
}
com.dimajix.shaded.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetPartition(),
PartitionDefaultEntryHolder.defaultEntry,
4);
if (force_ != false) {
output.writeBool(5, force_);
}
if (keepGoing_ != false) {
output.writeBool(6, keepGoing_);
}
if (dryRun_ != false) {
output.writeBool(7, dryRun_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.dimajix.shaded.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
size += com.dimajix.shaded.protobuf.GeneratedMessageV3.computeStringSize(1, sessionId_);
}
for (int i = 0; i < relations_.size(); i++) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(2, relations_.get(i));
}
if (phase_ != com.dimajix.flowman.kernel.proto.ExecutionPhase.VALIDATE.getNumber()) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeEnumSize(3, phase_);
}
for (java.util.Map.Entry entry
: internalGetPartition().getMap().entrySet()) {
com.dimajix.shaded.protobuf.MapEntry
partition__ = PartitionDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(4, partition__);
}
if (force_ != false) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeBoolSize(5, force_);
}
if (keepGoing_ != false) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeBoolSize(6, keepGoing_);
}
if (dryRun_ != false) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeBoolSize(7, dryRun_);
}
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.relation.ExecuteRelationRequest)) {
return super.equals(obj);
}
com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest other = (com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest) obj;
if (!getSessionId()
.equals(other.getSessionId())) return false;
if (!getRelationsList()
.equals(other.getRelationsList())) return false;
if (phase_ != other.phase_) return false;
if (!internalGetPartition().equals(
other.internalGetPartition())) return false;
if (getForce()
!= other.getForce()) return false;
if (getKeepGoing()
!= other.getKeepGoing()) return false;
if (getDryRun()
!= other.getDryRun()) 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();
hash = (37 * hash) + SESSIONID_FIELD_NUMBER;
hash = (53 * hash) + getSessionId().hashCode();
if (getRelationsCount() > 0) {
hash = (37 * hash) + RELATIONS_FIELD_NUMBER;
hash = (53 * hash) + getRelationsList().hashCode();
}
hash = (37 * hash) + PHASE_FIELD_NUMBER;
hash = (53 * hash) + phase_;
if (!internalGetPartition().getMap().isEmpty()) {
hash = (37 * hash) + PARTITION_FIELD_NUMBER;
hash = (53 * hash) + internalGetPartition().hashCode();
}
hash = (37 * hash) + FORCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getForce());
hash = (37 * hash) + KEEPGOING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getKeepGoing());
hash = (37 * hash) + DRYRUN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDryRun());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest parseFrom(
java.nio.ByteBuffer data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest 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.relation.ExecuteRelationRequest parseFrom(
com.dimajix.shaded.protobuf.ByteString data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest 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.relation.ExecuteRelationRequest parseFrom(byte[] data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest 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.relation.ExecuteRelationRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest 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.relation.ExecuteRelationRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest 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.relation.ExecuteRelationRequest 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.relation.ExecuteRelationRequest 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.relation.ExecuteRelationRequest 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.relation.ExecuteRelationRequest}
*/
public static final class Builder extends
com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.dimajix.flowman.kernel.relation.ExecuteRelationRequest)
com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequestOrBuilder {
public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dimajix.flowman.kernel.proto.relation.RelationProto.internal_static_com_dimajix_flowman_kernel_relation_ExecuteRelationRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.dimajix.shaded.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetPartition();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.dimajix.shaded.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 4:
return internalGetMutablePartition();
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.relation.RelationProto.internal_static_com_dimajix_flowman_kernel_relation_ExecuteRelationRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest.class, com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest.Builder.class);
}
// Construct using com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest.newBuilder()
private Builder() {
}
private Builder(
com.dimajix.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sessionId_ = "";
if (relationsBuilder_ == null) {
relations_ = java.util.Collections.emptyList();
} else {
relations_ = null;
relationsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
phase_ = 0;
internalGetMutablePartition().clear();
force_ = false;
keepGoing_ = false;
dryRun_ = false;
return this;
}
@java.lang.Override
public com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.dimajix.flowman.kernel.proto.relation.RelationProto.internal_static_com_dimajix_flowman_kernel_relation_ExecuteRelationRequest_descriptor;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest getDefaultInstanceForType() {
return com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest.getDefaultInstance();
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest build() {
com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest buildPartial() {
com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest result = new com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest result) {
if (relationsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
relations_ = java.util.Collections.unmodifiableList(relations_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.relations_ = relations_;
} else {
result.relations_ = relationsBuilder_.build();
}
}
private void buildPartial0(com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sessionId_ = sessionId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.phase_ = phase_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.partition_ = internalGetPartition();
result.partition_.makeImmutable();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.force_ = force_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.keepGoing_ = keepGoing_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.dryRun_ = dryRun_;
}
}
@java.lang.Override
public Builder mergeFrom(com.dimajix.shaded.protobuf.Message other) {
if (other instanceof com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest) {
return mergeFrom((com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest other) {
if (other == com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest.getDefaultInstance()) return this;
if (!other.getSessionId().isEmpty()) {
sessionId_ = other.sessionId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (relationsBuilder_ == null) {
if (!other.relations_.isEmpty()) {
if (relations_.isEmpty()) {
relations_ = other.relations_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRelationsIsMutable();
relations_.addAll(other.relations_);
}
onChanged();
}
} else {
if (!other.relations_.isEmpty()) {
if (relationsBuilder_.isEmpty()) {
relationsBuilder_.dispose();
relationsBuilder_ = null;
relations_ = other.relations_;
bitField0_ = (bitField0_ & ~0x00000002);
relationsBuilder_ =
com.dimajix.shaded.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRelationsFieldBuilder() : null;
} else {
relationsBuilder_.addAllMessages(other.relations_);
}
}
}
if (other.phase_ != 0) {
setPhaseValue(other.getPhaseValue());
}
internalGetMutablePartition().mergeFrom(
other.internalGetPartition());
bitField0_ |= 0x00000008;
if (other.getForce() != false) {
setForce(other.getForce());
}
if (other.getKeepGoing() != false) {
setKeepGoing(other.getKeepGoing());
}
if (other.getDryRun() != false) {
setDryRun(other.getDryRun());
}
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: {
sessionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.dimajix.flowman.kernel.proto.RelationIdentifier m =
input.readMessage(
com.dimajix.flowman.kernel.proto.RelationIdentifier.parser(),
extensionRegistry);
if (relationsBuilder_ == null) {
ensureRelationsIsMutable();
relations_.add(m);
} else {
relationsBuilder_.addMessage(m);
}
break;
} // case 18
case 24: {
phase_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
com.dimajix.shaded.protobuf.MapEntry
partition__ = input.readMessage(
PartitionDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutablePartition().getMutableMap().put(
partition__.getKey(), partition__.getValue());
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
force_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
keepGoing_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
dryRun_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 56
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 sessionId_ = "";
/**
* string sessionId = 1;
* @return The sessionId.
*/
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (!(ref instanceof java.lang.String)) {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string sessionId = 1;
* @return The bytes for sessionId.
*/
public com.dimajix.shaded.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
/**
* string sessionId = 1;
* @param value The sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sessionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string sessionId = 1;
* @return This builder for chaining.
*/
public Builder clearSessionId() {
sessionId_ = getDefaultInstance().getSessionId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string sessionId = 1;
* @param value The bytes for sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionIdBytes(
com.dimajix.shaded.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sessionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List relations_ =
java.util.Collections.emptyList();
private void ensureRelationsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
relations_ = new java.util.ArrayList(relations_);
bitField0_ |= 0x00000002;
}
}
private com.dimajix.shaded.protobuf.RepeatedFieldBuilderV3<
com.dimajix.flowman.kernel.proto.RelationIdentifier, com.dimajix.flowman.kernel.proto.RelationIdentifier.Builder, com.dimajix.flowman.kernel.proto.RelationIdentifierOrBuilder> relationsBuilder_;
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public java.util.List getRelationsList() {
if (relationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(relations_);
} else {
return relationsBuilder_.getMessageList();
}
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public int getRelationsCount() {
if (relationsBuilder_ == null) {
return relations_.size();
} else {
return relationsBuilder_.getCount();
}
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public com.dimajix.flowman.kernel.proto.RelationIdentifier getRelations(int index) {
if (relationsBuilder_ == null) {
return relations_.get(index);
} else {
return relationsBuilder_.getMessage(index);
}
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public Builder setRelations(
int index, com.dimajix.flowman.kernel.proto.RelationIdentifier value) {
if (relationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRelationsIsMutable();
relations_.set(index, value);
onChanged();
} else {
relationsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public Builder setRelations(
int index, com.dimajix.flowman.kernel.proto.RelationIdentifier.Builder builderForValue) {
if (relationsBuilder_ == null) {
ensureRelationsIsMutable();
relations_.set(index, builderForValue.build());
onChanged();
} else {
relationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public Builder addRelations(com.dimajix.flowman.kernel.proto.RelationIdentifier value) {
if (relationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRelationsIsMutable();
relations_.add(value);
onChanged();
} else {
relationsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public Builder addRelations(
int index, com.dimajix.flowman.kernel.proto.RelationIdentifier value) {
if (relationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRelationsIsMutable();
relations_.add(index, value);
onChanged();
} else {
relationsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public Builder addRelations(
com.dimajix.flowman.kernel.proto.RelationIdentifier.Builder builderForValue) {
if (relationsBuilder_ == null) {
ensureRelationsIsMutable();
relations_.add(builderForValue.build());
onChanged();
} else {
relationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public Builder addRelations(
int index, com.dimajix.flowman.kernel.proto.RelationIdentifier.Builder builderForValue) {
if (relationsBuilder_ == null) {
ensureRelationsIsMutable();
relations_.add(index, builderForValue.build());
onChanged();
} else {
relationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public Builder addAllRelations(
java.lang.Iterable extends com.dimajix.flowman.kernel.proto.RelationIdentifier> values) {
if (relationsBuilder_ == null) {
ensureRelationsIsMutable();
com.dimajix.shaded.protobuf.AbstractMessageLite.Builder.addAll(
values, relations_);
onChanged();
} else {
relationsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public Builder clearRelations() {
if (relationsBuilder_ == null) {
relations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
relationsBuilder_.clear();
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public Builder removeRelations(int index) {
if (relationsBuilder_ == null) {
ensureRelationsIsMutable();
relations_.remove(index);
onChanged();
} else {
relationsBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public com.dimajix.flowman.kernel.proto.RelationIdentifier.Builder getRelationsBuilder(
int index) {
return getRelationsFieldBuilder().getBuilder(index);
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public com.dimajix.flowman.kernel.proto.RelationIdentifierOrBuilder getRelationsOrBuilder(
int index) {
if (relationsBuilder_ == null) {
return relations_.get(index); } else {
return relationsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public java.util.List extends com.dimajix.flowman.kernel.proto.RelationIdentifierOrBuilder>
getRelationsOrBuilderList() {
if (relationsBuilder_ != null) {
return relationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(relations_);
}
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public com.dimajix.flowman.kernel.proto.RelationIdentifier.Builder addRelationsBuilder() {
return getRelationsFieldBuilder().addBuilder(
com.dimajix.flowman.kernel.proto.RelationIdentifier.getDefaultInstance());
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public com.dimajix.flowman.kernel.proto.RelationIdentifier.Builder addRelationsBuilder(
int index) {
return getRelationsFieldBuilder().addBuilder(
index, com.dimajix.flowman.kernel.proto.RelationIdentifier.getDefaultInstance());
}
/**
* repeated .com.dimajix.flowman.kernel.RelationIdentifier relations = 2;
*/
public java.util.List
getRelationsBuilderList() {
return getRelationsFieldBuilder().getBuilderList();
}
private com.dimajix.shaded.protobuf.RepeatedFieldBuilderV3<
com.dimajix.flowman.kernel.proto.RelationIdentifier, com.dimajix.flowman.kernel.proto.RelationIdentifier.Builder, com.dimajix.flowman.kernel.proto.RelationIdentifierOrBuilder>
getRelationsFieldBuilder() {
if (relationsBuilder_ == null) {
relationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.dimajix.flowman.kernel.proto.RelationIdentifier, com.dimajix.flowman.kernel.proto.RelationIdentifier.Builder, com.dimajix.flowman.kernel.proto.RelationIdentifierOrBuilder>(
relations_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
relations_ = null;
}
return relationsBuilder_;
}
private int phase_ = 0;
/**
* .com.dimajix.flowman.kernel.ExecutionPhase phase = 3;
* @return The enum numeric value on the wire for phase.
*/
@java.lang.Override public int getPhaseValue() {
return phase_;
}
/**
* .com.dimajix.flowman.kernel.ExecutionPhase phase = 3;
* @param value The enum numeric value on the wire for phase to set.
* @return This builder for chaining.
*/
public Builder setPhaseValue(int value) {
phase_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.ExecutionPhase phase = 3;
* @return The phase.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.ExecutionPhase getPhase() {
com.dimajix.flowman.kernel.proto.ExecutionPhase result = com.dimajix.flowman.kernel.proto.ExecutionPhase.forNumber(phase_);
return result == null ? com.dimajix.flowman.kernel.proto.ExecutionPhase.UNRECOGNIZED : result;
}
/**
* .com.dimajix.flowman.kernel.ExecutionPhase phase = 3;
* @param value The phase to set.
* @return This builder for chaining.
*/
public Builder setPhase(com.dimajix.flowman.kernel.proto.ExecutionPhase value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
phase_ = value.getNumber();
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.ExecutionPhase phase = 3;
* @return This builder for chaining.
*/
public Builder clearPhase() {
bitField0_ = (bitField0_ & ~0x00000004);
phase_ = 0;
onChanged();
return this;
}
private com.dimajix.shaded.protobuf.MapField<
java.lang.String, java.lang.String> partition_;
private com.dimajix.shaded.protobuf.MapField
internalGetPartition() {
if (partition_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PartitionDefaultEntryHolder.defaultEntry);
}
return partition_;
}
private com.dimajix.shaded.protobuf.MapField
internalGetMutablePartition() {
if (partition_ == null) {
partition_ = com.dimajix.shaded.protobuf.MapField.newMapField(
PartitionDefaultEntryHolder.defaultEntry);
}
if (!partition_.isMutable()) {
partition_ = partition_.copy();
}
bitField0_ |= 0x00000008;
onChanged();
return partition_;
}
public int getPartitionCount() {
return internalGetPartition().getMap().size();
}
/**
* map<string, string> partition = 4;
*/
@java.lang.Override
public boolean containsPartition(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetPartition().getMap().containsKey(key);
}
/**
* Use {@link #getPartitionMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getPartition() {
return getPartitionMap();
}
/**
* map<string, string> partition = 4;
*/
@java.lang.Override
public java.util.Map getPartitionMap() {
return internalGetPartition().getMap();
}
/**
* map<string, string> partition = 4;
*/
@java.lang.Override
public /* nullable */
java.lang.String getPartitionOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetPartition().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> partition = 4;
*/
@java.lang.Override
public java.lang.String getPartitionOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetPartition().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearPartition() {
bitField0_ = (bitField0_ & ~0x00000008);
internalGetMutablePartition().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> partition = 4;
*/
public Builder removePartition(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutablePartition().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutablePartition() {
bitField0_ |= 0x00000008;
return internalGetMutablePartition().getMutableMap();
}
/**
* map<string, string> partition = 4;
*/
public Builder putPartition(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutablePartition().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000008;
return this;
}
/**
* map<string, string> partition = 4;
*/
public Builder putAllPartition(
java.util.Map values) {
internalGetMutablePartition().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000008;
return this;
}
private boolean force_ ;
/**
* bool force = 5;
* @return The force.
*/
@java.lang.Override
public boolean getForce() {
return force_;
}
/**
* bool force = 5;
* @param value The force to set.
* @return This builder for chaining.
*/
public Builder setForce(boolean value) {
force_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* bool force = 5;
* @return This builder for chaining.
*/
public Builder clearForce() {
bitField0_ = (bitField0_ & ~0x00000010);
force_ = false;
onChanged();
return this;
}
private boolean keepGoing_ ;
/**
* bool keepGoing = 6;
* @return The keepGoing.
*/
@java.lang.Override
public boolean getKeepGoing() {
return keepGoing_;
}
/**
* bool keepGoing = 6;
* @param value The keepGoing to set.
* @return This builder for chaining.
*/
public Builder setKeepGoing(boolean value) {
keepGoing_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* bool keepGoing = 6;
* @return This builder for chaining.
*/
public Builder clearKeepGoing() {
bitField0_ = (bitField0_ & ~0x00000020);
keepGoing_ = false;
onChanged();
return this;
}
private boolean dryRun_ ;
/**
* bool dryRun = 7;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
/**
* bool dryRun = 7;
* @param value The dryRun to set.
* @return This builder for chaining.
*/
public Builder setDryRun(boolean value) {
dryRun_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* bool dryRun = 7;
* @return This builder for chaining.
*/
public Builder clearDryRun() {
bitField0_ = (bitField0_ & ~0x00000040);
dryRun_ = false;
onChanged();
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.relation.ExecuteRelationRequest)
}
// @@protoc_insertion_point(class_scope:com.dimajix.flowman.kernel.relation.ExecuteRelationRequest)
private static final com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest();
}
public static com.dimajix.flowman.kernel.proto.relation.ExecuteRelationRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.dimajix.shaded.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteRelationRequest 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.relation.ExecuteRelationRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy