com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: target.proto
package com.dimajix.flowman.kernel.proto.target;
/**
* Protobuf type {@code com.dimajix.flowman.kernel.target.ExecuteTargetRequest}
*/
public final class ExecuteTargetRequest extends
com.dimajix.shaded.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.dimajix.flowman.kernel.target.ExecuteTargetRequest)
ExecuteTargetRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteTargetRequest.newBuilder() to construct.
private ExecuteTargetRequest(com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteTargetRequest() {
sessionId_ = "";
targets_ = java.util.Collections.emptyList();
phases_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteTargetRequest();
}
public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dimajix.flowman.kernel.proto.target.TargetProto.internal_static_com_dimajix_flowman_kernel_target_ExecuteTargetRequest_descriptor;
}
@java.lang.Override
protected com.dimajix.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dimajix.flowman.kernel.proto.target.TargetProto.internal_static_com_dimajix_flowman_kernel_target_ExecuteTargetRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest.class, com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest.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 TARGETS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List targets_;
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
@java.lang.Override
public java.util.List getTargetsList() {
return targets_;
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
@java.lang.Override
public java.util.List extends com.dimajix.flowman.kernel.proto.TargetIdentifierOrBuilder>
getTargetsOrBuilderList() {
return targets_;
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
@java.lang.Override
public int getTargetsCount() {
return targets_.size();
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.TargetIdentifier getTargets(int index) {
return targets_.get(index);
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.TargetIdentifierOrBuilder getTargetsOrBuilder(
int index) {
return targets_.get(index);
}
public static final int PHASES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List phases_;
private static final com.dimajix.shaded.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.dimajix.flowman.kernel.proto.ExecutionPhase> phases_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.dimajix.flowman.kernel.proto.ExecutionPhase>() {
public com.dimajix.flowman.kernel.proto.ExecutionPhase convert(java.lang.Integer from) {
com.dimajix.flowman.kernel.proto.ExecutionPhase result = com.dimajix.flowman.kernel.proto.ExecutionPhase.forNumber(from);
return result == null ? com.dimajix.flowman.kernel.proto.ExecutionPhase.UNRECOGNIZED : result;
}
};
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @return A list containing the phases.
*/
@java.lang.Override
public java.util.List getPhasesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.dimajix.flowman.kernel.proto.ExecutionPhase>(phases_, phases_converter_);
}
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @return The count of phases.
*/
@java.lang.Override
public int getPhasesCount() {
return phases_.size();
}
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @param index The index of the element to return.
* @return The phases at the given index.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.ExecutionPhase getPhases(int index) {
return phases_converter_.convert(phases_.get(index));
}
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @return A list containing the enum numeric values on the wire for phases.
*/
@java.lang.Override
public java.util.List
getPhasesValueList() {
return phases_;
}
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of phases at the given index.
*/
@java.lang.Override
public int getPhasesValue(int index) {
return phases_.get(index);
}
private int phasesMemoizedSerializedSize;
public static final int FORCE_FIELD_NUMBER = 4;
private boolean force_ = false;
/**
* bool force = 4;
* @return The force.
*/
@java.lang.Override
public boolean getForce() {
return force_;
}
public static final int KEEPGOING_FIELD_NUMBER = 5;
private boolean keepGoing_ = false;
/**
* bool keepGoing = 5;
* @return The keepGoing.
*/
@java.lang.Override
public boolean getKeepGoing() {
return keepGoing_;
}
public static final int DRYRUN_FIELD_NUMBER = 6;
private boolean dryRun_ = false;
/**
* bool dryRun = 6;
* @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 {
getSerializedSize();
if (!com.dimajix.shaded.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
com.dimajix.shaded.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_);
}
for (int i = 0; i < targets_.size(); i++) {
output.writeMessage(2, targets_.get(i));
}
if (getPhasesList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(phasesMemoizedSerializedSize);
}
for (int i = 0; i < phases_.size(); i++) {
output.writeEnumNoTag(phases_.get(i));
}
if (force_ != false) {
output.writeBool(4, force_);
}
if (keepGoing_ != false) {
output.writeBool(5, keepGoing_);
}
if (dryRun_ != false) {
output.writeBool(6, 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 < targets_.size(); i++) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(2, targets_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < phases_.size(); i++) {
dataSize += com.dimajix.shaded.protobuf.CodedOutputStream
.computeEnumSizeNoTag(phases_.get(i));
}
size += dataSize;
if (!getPhasesList().isEmpty()) { size += 1;
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}phasesMemoizedSerializedSize = dataSize;
}
if (force_ != false) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeBoolSize(4, force_);
}
if (keepGoing_ != false) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeBoolSize(5, keepGoing_);
}
if (dryRun_ != false) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeBoolSize(6, 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.target.ExecuteTargetRequest)) {
return super.equals(obj);
}
com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest other = (com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest) obj;
if (!getSessionId()
.equals(other.getSessionId())) return false;
if (!getTargetsList()
.equals(other.getTargetsList())) return false;
if (!phases_.equals(other.phases_)) 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 (getTargetsCount() > 0) {
hash = (37 * hash) + TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getTargetsList().hashCode();
}
if (getPhasesCount() > 0) {
hash = (37 * hash) + PHASES_FIELD_NUMBER;
hash = (53 * hash) + phases_.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.target.ExecuteTargetRequest parseFrom(
java.nio.ByteBuffer data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest 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.target.ExecuteTargetRequest parseFrom(
com.dimajix.shaded.protobuf.ByteString data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest 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.target.ExecuteTargetRequest parseFrom(byte[] data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest 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.target.ExecuteTargetRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest 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.target.ExecuteTargetRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest 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.target.ExecuteTargetRequest 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.target.ExecuteTargetRequest 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.target.ExecuteTargetRequest 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.target.ExecuteTargetRequest}
*/
public static final class Builder extends
com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.dimajix.flowman.kernel.target.ExecuteTargetRequest)
com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequestOrBuilder {
public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dimajix.flowman.kernel.proto.target.TargetProto.internal_static_com_dimajix_flowman_kernel_target_ExecuteTargetRequest_descriptor;
}
@java.lang.Override
protected com.dimajix.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dimajix.flowman.kernel.proto.target.TargetProto.internal_static_com_dimajix_flowman_kernel_target_ExecuteTargetRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest.class, com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest.Builder.class);
}
// Construct using com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest.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 (targetsBuilder_ == null) {
targets_ = java.util.Collections.emptyList();
} else {
targets_ = null;
targetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
phases_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
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.target.TargetProto.internal_static_com_dimajix_flowman_kernel_target_ExecuteTargetRequest_descriptor;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest getDefaultInstanceForType() {
return com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest.getDefaultInstance();
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest build() {
com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest buildPartial() {
com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest result = new com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest result) {
if (targetsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
targets_ = java.util.Collections.unmodifiableList(targets_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.targets_ = targets_;
} else {
result.targets_ = targetsBuilder_.build();
}
if (((bitField0_ & 0x00000004) != 0)) {
phases_ = java.util.Collections.unmodifiableList(phases_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.phases_ = phases_;
}
private void buildPartial0(com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sessionId_ = sessionId_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.force_ = force_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.keepGoing_ = keepGoing_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.dryRun_ = dryRun_;
}
}
@java.lang.Override
public Builder mergeFrom(com.dimajix.shaded.protobuf.Message other) {
if (other instanceof com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest) {
return mergeFrom((com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest other) {
if (other == com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest.getDefaultInstance()) return this;
if (!other.getSessionId().isEmpty()) {
sessionId_ = other.sessionId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (targetsBuilder_ == null) {
if (!other.targets_.isEmpty()) {
if (targets_.isEmpty()) {
targets_ = other.targets_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTargetsIsMutable();
targets_.addAll(other.targets_);
}
onChanged();
}
} else {
if (!other.targets_.isEmpty()) {
if (targetsBuilder_.isEmpty()) {
targetsBuilder_.dispose();
targetsBuilder_ = null;
targets_ = other.targets_;
bitField0_ = (bitField0_ & ~0x00000002);
targetsBuilder_ =
com.dimajix.shaded.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTargetsFieldBuilder() : null;
} else {
targetsBuilder_.addAllMessages(other.targets_);
}
}
}
if (!other.phases_.isEmpty()) {
if (phases_.isEmpty()) {
phases_ = other.phases_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensurePhasesIsMutable();
phases_.addAll(other.phases_);
}
onChanged();
}
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.TargetIdentifier m =
input.readMessage(
com.dimajix.flowman.kernel.proto.TargetIdentifier.parser(),
extensionRegistry);
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.add(m);
} else {
targetsBuilder_.addMessage(m);
}
break;
} // case 18
case 24: {
int tmpRaw = input.readEnum();
ensurePhasesIsMutable();
phases_.add(tmpRaw);
break;
} // case 24
case 26: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
ensurePhasesIsMutable();
phases_.add(tmpRaw);
}
input.popLimit(oldLimit);
break;
} // case 26
case 32: {
force_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
keepGoing_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
dryRun_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 48
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 targets_ =
java.util.Collections.emptyList();
private void ensureTargetsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
targets_ = new java.util.ArrayList(targets_);
bitField0_ |= 0x00000002;
}
}
private com.dimajix.shaded.protobuf.RepeatedFieldBuilderV3<
com.dimajix.flowman.kernel.proto.TargetIdentifier, com.dimajix.flowman.kernel.proto.TargetIdentifier.Builder, com.dimajix.flowman.kernel.proto.TargetIdentifierOrBuilder> targetsBuilder_;
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public java.util.List getTargetsList() {
if (targetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(targets_);
} else {
return targetsBuilder_.getMessageList();
}
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public int getTargetsCount() {
if (targetsBuilder_ == null) {
return targets_.size();
} else {
return targetsBuilder_.getCount();
}
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public com.dimajix.flowman.kernel.proto.TargetIdentifier getTargets(int index) {
if (targetsBuilder_ == null) {
return targets_.get(index);
} else {
return targetsBuilder_.getMessage(index);
}
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public Builder setTargets(
int index, com.dimajix.flowman.kernel.proto.TargetIdentifier value) {
if (targetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetsIsMutable();
targets_.set(index, value);
onChanged();
} else {
targetsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public Builder setTargets(
int index, com.dimajix.flowman.kernel.proto.TargetIdentifier.Builder builderForValue) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.set(index, builderForValue.build());
onChanged();
} else {
targetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public Builder addTargets(com.dimajix.flowman.kernel.proto.TargetIdentifier value) {
if (targetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetsIsMutable();
targets_.add(value);
onChanged();
} else {
targetsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public Builder addTargets(
int index, com.dimajix.flowman.kernel.proto.TargetIdentifier value) {
if (targetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetsIsMutable();
targets_.add(index, value);
onChanged();
} else {
targetsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public Builder addTargets(
com.dimajix.flowman.kernel.proto.TargetIdentifier.Builder builderForValue) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.add(builderForValue.build());
onChanged();
} else {
targetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public Builder addTargets(
int index, com.dimajix.flowman.kernel.proto.TargetIdentifier.Builder builderForValue) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.add(index, builderForValue.build());
onChanged();
} else {
targetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public Builder addAllTargets(
java.lang.Iterable extends com.dimajix.flowman.kernel.proto.TargetIdentifier> values) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
com.dimajix.shaded.protobuf.AbstractMessageLite.Builder.addAll(
values, targets_);
onChanged();
} else {
targetsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public Builder clearTargets() {
if (targetsBuilder_ == null) {
targets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
targetsBuilder_.clear();
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public Builder removeTargets(int index) {
if (targetsBuilder_ == null) {
ensureTargetsIsMutable();
targets_.remove(index);
onChanged();
} else {
targetsBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public com.dimajix.flowman.kernel.proto.TargetIdentifier.Builder getTargetsBuilder(
int index) {
return getTargetsFieldBuilder().getBuilder(index);
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public com.dimajix.flowman.kernel.proto.TargetIdentifierOrBuilder getTargetsOrBuilder(
int index) {
if (targetsBuilder_ == null) {
return targets_.get(index); } else {
return targetsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public java.util.List extends com.dimajix.flowman.kernel.proto.TargetIdentifierOrBuilder>
getTargetsOrBuilderList() {
if (targetsBuilder_ != null) {
return targetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(targets_);
}
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public com.dimajix.flowman.kernel.proto.TargetIdentifier.Builder addTargetsBuilder() {
return getTargetsFieldBuilder().addBuilder(
com.dimajix.flowman.kernel.proto.TargetIdentifier.getDefaultInstance());
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public com.dimajix.flowman.kernel.proto.TargetIdentifier.Builder addTargetsBuilder(
int index) {
return getTargetsFieldBuilder().addBuilder(
index, com.dimajix.flowman.kernel.proto.TargetIdentifier.getDefaultInstance());
}
/**
* repeated .com.dimajix.flowman.kernel.TargetIdentifier targets = 2;
*/
public java.util.List
getTargetsBuilderList() {
return getTargetsFieldBuilder().getBuilderList();
}
private com.dimajix.shaded.protobuf.RepeatedFieldBuilderV3<
com.dimajix.flowman.kernel.proto.TargetIdentifier, com.dimajix.flowman.kernel.proto.TargetIdentifier.Builder, com.dimajix.flowman.kernel.proto.TargetIdentifierOrBuilder>
getTargetsFieldBuilder() {
if (targetsBuilder_ == null) {
targetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.dimajix.flowman.kernel.proto.TargetIdentifier, com.dimajix.flowman.kernel.proto.TargetIdentifier.Builder, com.dimajix.flowman.kernel.proto.TargetIdentifierOrBuilder>(
targets_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
targets_ = null;
}
return targetsBuilder_;
}
private java.util.List phases_ =
java.util.Collections.emptyList();
private void ensurePhasesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
phases_ = new java.util.ArrayList(phases_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @return A list containing the phases.
*/
public java.util.List getPhasesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.dimajix.flowman.kernel.proto.ExecutionPhase>(phases_, phases_converter_);
}
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @return The count of phases.
*/
public int getPhasesCount() {
return phases_.size();
}
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @param index The index of the element to return.
* @return The phases at the given index.
*/
public com.dimajix.flowman.kernel.proto.ExecutionPhase getPhases(int index) {
return phases_converter_.convert(phases_.get(index));
}
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @param index The index to set the value at.
* @param value The phases to set.
* @return This builder for chaining.
*/
public Builder setPhases(
int index, com.dimajix.flowman.kernel.proto.ExecutionPhase value) {
if (value == null) {
throw new NullPointerException();
}
ensurePhasesIsMutable();
phases_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @param value The phases to add.
* @return This builder for chaining.
*/
public Builder addPhases(com.dimajix.flowman.kernel.proto.ExecutionPhase value) {
if (value == null) {
throw new NullPointerException();
}
ensurePhasesIsMutable();
phases_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @param values The phases to add.
* @return This builder for chaining.
*/
public Builder addAllPhases(
java.lang.Iterable extends com.dimajix.flowman.kernel.proto.ExecutionPhase> values) {
ensurePhasesIsMutable();
for (com.dimajix.flowman.kernel.proto.ExecutionPhase value : values) {
phases_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @return This builder for chaining.
*/
public Builder clearPhases() {
phases_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @return A list containing the enum numeric values on the wire for phases.
*/
public java.util.List
getPhasesValueList() {
return java.util.Collections.unmodifiableList(phases_);
}
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of phases at the given index.
*/
public int getPhasesValue(int index) {
return phases_.get(index);
}
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for phases to set.
* @return This builder for chaining.
*/
public Builder setPhasesValue(
int index, int value) {
ensurePhasesIsMutable();
phases_.set(index, value);
onChanged();
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @param value The enum numeric value on the wire for phases to add.
* @return This builder for chaining.
*/
public Builder addPhasesValue(int value) {
ensurePhasesIsMutable();
phases_.add(value);
onChanged();
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.ExecutionPhase phases = 3;
* @param values The enum numeric values on the wire for phases to add.
* @return This builder for chaining.
*/
public Builder addAllPhasesValue(
java.lang.Iterable values) {
ensurePhasesIsMutable();
for (int value : values) {
phases_.add(value);
}
onChanged();
return this;
}
private boolean force_ ;
/**
* bool force = 4;
* @return The force.
*/
@java.lang.Override
public boolean getForce() {
return force_;
}
/**
* bool force = 4;
* @param value The force to set.
* @return This builder for chaining.
*/
public Builder setForce(boolean value) {
force_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* bool force = 4;
* @return This builder for chaining.
*/
public Builder clearForce() {
bitField0_ = (bitField0_ & ~0x00000008);
force_ = false;
onChanged();
return this;
}
private boolean keepGoing_ ;
/**
* bool keepGoing = 5;
* @return The keepGoing.
*/
@java.lang.Override
public boolean getKeepGoing() {
return keepGoing_;
}
/**
* bool keepGoing = 5;
* @param value The keepGoing to set.
* @return This builder for chaining.
*/
public Builder setKeepGoing(boolean value) {
keepGoing_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* bool keepGoing = 5;
* @return This builder for chaining.
*/
public Builder clearKeepGoing() {
bitField0_ = (bitField0_ & ~0x00000010);
keepGoing_ = false;
onChanged();
return this;
}
private boolean dryRun_ ;
/**
* bool dryRun = 6;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
/**
* bool dryRun = 6;
* @param value The dryRun to set.
* @return This builder for chaining.
*/
public Builder setDryRun(boolean value) {
dryRun_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* bool dryRun = 6;
* @return This builder for chaining.
*/
public Builder clearDryRun() {
bitField0_ = (bitField0_ & ~0x00000020);
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.target.ExecuteTargetRequest)
}
// @@protoc_insertion_point(class_scope:com.dimajix.flowman.kernel.target.ExecuteTargetRequest)
private static final com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest();
}
public static com.dimajix.flowman.kernel.proto.target.ExecuteTargetRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.dimajix.shaded.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteTargetRequest 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.target.ExecuteTargetRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy