
flyteidl.core.Execution Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: flyteidl/core/execution.proto
package flyteidl.core;
public final class Execution {
private Execution() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface WorkflowExecutionOrBuilder extends
// @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowExecution)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* Indicates various phases of Workflow Execution
*
*
* Protobuf type {@code flyteidl.core.WorkflowExecution}
*/
public static final class WorkflowExecution extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowExecution)
WorkflowExecutionOrBuilder {
private static final long serialVersionUID = 0L;
// Use WorkflowExecution.newBuilder() to construct.
private WorkflowExecution(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WorkflowExecution() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WorkflowExecution();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WorkflowExecution(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable
.ensureFieldAccessorsInitialized(
flyteidl.core.Execution.WorkflowExecution.class, flyteidl.core.Execution.WorkflowExecution.Builder.class);
}
/**
* Protobuf enum {@code flyteidl.core.WorkflowExecution.Phase}
*/
public enum Phase
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNDEFINED = 0;
*/
UNDEFINED(0),
/**
* QUEUED = 1;
*/
QUEUED(1),
/**
* RUNNING = 2;
*/
RUNNING(2),
/**
* SUCCEEDING = 3;
*/
SUCCEEDING(3),
/**
* SUCCEEDED = 4;
*/
SUCCEEDED(4),
/**
* FAILING = 5;
*/
FAILING(5),
/**
* FAILED = 6;
*/
FAILED(6),
/**
* ABORTED = 7;
*/
ABORTED(7),
/**
* TIMED_OUT = 8;
*/
TIMED_OUT(8),
UNRECOGNIZED(-1),
;
/**
* UNDEFINED = 0;
*/
public static final int UNDEFINED_VALUE = 0;
/**
* QUEUED = 1;
*/
public static final int QUEUED_VALUE = 1;
/**
* RUNNING = 2;
*/
public static final int RUNNING_VALUE = 2;
/**
* SUCCEEDING = 3;
*/
public static final int SUCCEEDING_VALUE = 3;
/**
* SUCCEEDED = 4;
*/
public static final int SUCCEEDED_VALUE = 4;
/**
* FAILING = 5;
*/
public static final int FAILING_VALUE = 5;
/**
* FAILED = 6;
*/
public static final int FAILED_VALUE = 6;
/**
* ABORTED = 7;
*/
public static final int ABORTED_VALUE = 7;
/**
* TIMED_OUT = 8;
*/
public static final int TIMED_OUT_VALUE = 8;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Phase valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Phase forNumber(int value) {
switch (value) {
case 0: return UNDEFINED;
case 1: return QUEUED;
case 2: return RUNNING;
case 3: return SUCCEEDING;
case 4: return SUCCEEDED;
case 5: return FAILING;
case 6: return FAILED;
case 7: return ABORTED;
case 8: return TIMED_OUT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Phase> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Phase findValueByNumber(int number) {
return Phase.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return flyteidl.core.Execution.WorkflowExecution.getDescriptor().getEnumTypes().get(0);
}
private static final Phase[] VALUES = values();
public static Phase valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Phase(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:flyteidl.core.WorkflowExecution.Phase)
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof flyteidl.core.Execution.WorkflowExecution)) {
return super.equals(obj);
}
flyteidl.core.Execution.WorkflowExecution other = (flyteidl.core.Execution.WorkflowExecution) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static flyteidl.core.Execution.WorkflowExecution parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static flyteidl.core.Execution.WorkflowExecution parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static flyteidl.core.Execution.WorkflowExecution parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static flyteidl.core.Execution.WorkflowExecution parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static flyteidl.core.Execution.WorkflowExecution parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static flyteidl.core.Execution.WorkflowExecution parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static flyteidl.core.Execution.WorkflowExecution parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static flyteidl.core.Execution.WorkflowExecution parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static flyteidl.core.Execution.WorkflowExecution parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static flyteidl.core.Execution.WorkflowExecution parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static flyteidl.core.Execution.WorkflowExecution parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static flyteidl.core.Execution.WorkflowExecution parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(flyteidl.core.Execution.WorkflowExecution prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Indicates various phases of Workflow Execution
*
*
* Protobuf type {@code flyteidl.core.WorkflowExecution}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowExecution)
flyteidl.core.Execution.WorkflowExecutionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable
.ensureFieldAccessorsInitialized(
flyteidl.core.Execution.WorkflowExecution.class, flyteidl.core.Execution.WorkflowExecution.Builder.class);
}
// Construct using flyteidl.core.Execution.WorkflowExecution.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor;
}
@java.lang.Override
public flyteidl.core.Execution.WorkflowExecution getDefaultInstanceForType() {
return flyteidl.core.Execution.WorkflowExecution.getDefaultInstance();
}
@java.lang.Override
public flyteidl.core.Execution.WorkflowExecution build() {
flyteidl.core.Execution.WorkflowExecution result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public flyteidl.core.Execution.WorkflowExecution buildPartial() {
flyteidl.core.Execution.WorkflowExecution result = new flyteidl.core.Execution.WorkflowExecution(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof flyteidl.core.Execution.WorkflowExecution) {
return mergeFrom((flyteidl.core.Execution.WorkflowExecution)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(flyteidl.core.Execution.WorkflowExecution other) {
if (other == flyteidl.core.Execution.WorkflowExecution.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
flyteidl.core.Execution.WorkflowExecution parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (flyteidl.core.Execution.WorkflowExecution) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowExecution)
}
// @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecution)
private static final flyteidl.core.Execution.WorkflowExecution DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new flyteidl.core.Execution.WorkflowExecution();
}
public static flyteidl.core.Execution.WorkflowExecution getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WorkflowExecution parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WorkflowExecution(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public flyteidl.core.Execution.WorkflowExecution getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeExecutionOrBuilder extends
// @@protoc_insertion_point(interface_extends:flyteidl.core.NodeExecution)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* Indicates various phases of Node Execution
*
*
* Protobuf type {@code flyteidl.core.NodeExecution}
*/
public static final class NodeExecution extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flyteidl.core.NodeExecution)
NodeExecutionOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeExecution.newBuilder() to construct.
private NodeExecution(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeExecution() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeExecution();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeExecution(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_fieldAccessorTable
.ensureFieldAccessorsInitialized(
flyteidl.core.Execution.NodeExecution.class, flyteidl.core.Execution.NodeExecution.Builder.class);
}
/**
* Protobuf enum {@code flyteidl.core.NodeExecution.Phase}
*/
public enum Phase
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNDEFINED = 0;
*/
UNDEFINED(0),
/**
* QUEUED = 1;
*/
QUEUED(1),
/**
* RUNNING = 2;
*/
RUNNING(2),
/**
* SUCCEEDED = 3;
*/
SUCCEEDED(3),
/**
* FAILING = 4;
*/
FAILING(4),
/**
* FAILED = 5;
*/
FAILED(5),
/**
* ABORTED = 6;
*/
ABORTED(6),
/**
* SKIPPED = 7;
*/
SKIPPED(7),
/**
* TIMED_OUT = 8;
*/
TIMED_OUT(8),
UNRECOGNIZED(-1),
;
/**
* UNDEFINED = 0;
*/
public static final int UNDEFINED_VALUE = 0;
/**
* QUEUED = 1;
*/
public static final int QUEUED_VALUE = 1;
/**
* RUNNING = 2;
*/
public static final int RUNNING_VALUE = 2;
/**
* SUCCEEDED = 3;
*/
public static final int SUCCEEDED_VALUE = 3;
/**
* FAILING = 4;
*/
public static final int FAILING_VALUE = 4;
/**
* FAILED = 5;
*/
public static final int FAILED_VALUE = 5;
/**
* ABORTED = 6;
*/
public static final int ABORTED_VALUE = 6;
/**
* SKIPPED = 7;
*/
public static final int SKIPPED_VALUE = 7;
/**
* TIMED_OUT = 8;
*/
public static final int TIMED_OUT_VALUE = 8;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Phase valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Phase forNumber(int value) {
switch (value) {
case 0: return UNDEFINED;
case 1: return QUEUED;
case 2: return RUNNING;
case 3: return SUCCEEDED;
case 4: return FAILING;
case 5: return FAILED;
case 6: return ABORTED;
case 7: return SKIPPED;
case 8: return TIMED_OUT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Phase> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Phase findValueByNumber(int number) {
return Phase.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return flyteidl.core.Execution.NodeExecution.getDescriptor().getEnumTypes().get(0);
}
private static final Phase[] VALUES = values();
public static Phase valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Phase(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:flyteidl.core.NodeExecution.Phase)
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof flyteidl.core.Execution.NodeExecution)) {
return super.equals(obj);
}
flyteidl.core.Execution.NodeExecution other = (flyteidl.core.Execution.NodeExecution) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static flyteidl.core.Execution.NodeExecution parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static flyteidl.core.Execution.NodeExecution parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static flyteidl.core.Execution.NodeExecution parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static flyteidl.core.Execution.NodeExecution parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static flyteidl.core.Execution.NodeExecution parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static flyteidl.core.Execution.NodeExecution parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static flyteidl.core.Execution.NodeExecution parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static flyteidl.core.Execution.NodeExecution parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static flyteidl.core.Execution.NodeExecution parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static flyteidl.core.Execution.NodeExecution parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static flyteidl.core.Execution.NodeExecution parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static flyteidl.core.Execution.NodeExecution parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(flyteidl.core.Execution.NodeExecution prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Indicates various phases of Node Execution
*
*
* Protobuf type {@code flyteidl.core.NodeExecution}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flyteidl.core.NodeExecution)
flyteidl.core.Execution.NodeExecutionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_fieldAccessorTable
.ensureFieldAccessorsInitialized(
flyteidl.core.Execution.NodeExecution.class, flyteidl.core.Execution.NodeExecution.Builder.class);
}
// Construct using flyteidl.core.Execution.NodeExecution.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor;
}
@java.lang.Override
public flyteidl.core.Execution.NodeExecution getDefaultInstanceForType() {
return flyteidl.core.Execution.NodeExecution.getDefaultInstance();
}
@java.lang.Override
public flyteidl.core.Execution.NodeExecution build() {
flyteidl.core.Execution.NodeExecution result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public flyteidl.core.Execution.NodeExecution buildPartial() {
flyteidl.core.Execution.NodeExecution result = new flyteidl.core.Execution.NodeExecution(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof flyteidl.core.Execution.NodeExecution) {
return mergeFrom((flyteidl.core.Execution.NodeExecution)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(flyteidl.core.Execution.NodeExecution other) {
if (other == flyteidl.core.Execution.NodeExecution.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
flyteidl.core.Execution.NodeExecution parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (flyteidl.core.Execution.NodeExecution) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:flyteidl.core.NodeExecution)
}
// @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecution)
private static final flyteidl.core.Execution.NodeExecution DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new flyteidl.core.Execution.NodeExecution();
}
public static flyteidl.core.Execution.NodeExecution getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeExecution parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeExecution(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public flyteidl.core.Execution.NodeExecution getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskExecutionOrBuilder extends
// @@protoc_insertion_point(interface_extends:flyteidl.core.TaskExecution)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
* but this is the cumulative list that customers may want to know about for their task.
*
*
* Protobuf type {@code flyteidl.core.TaskExecution}
*/
public static final class TaskExecution extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flyteidl.core.TaskExecution)
TaskExecutionOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskExecution.newBuilder() to construct.
private TaskExecution(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskExecution() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskExecution();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TaskExecution(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_fieldAccessorTable
.ensureFieldAccessorsInitialized(
flyteidl.core.Execution.TaskExecution.class, flyteidl.core.Execution.TaskExecution.Builder.class);
}
/**
* Protobuf enum {@code flyteidl.core.TaskExecution.Phase}
*/
public enum Phase
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNDEFINED = 0;
*/
UNDEFINED(0),
/**
* QUEUED = 1;
*/
QUEUED(1),
/**
* RUNNING = 2;
*/
RUNNING(2),
/**
* SUCCEEDED = 3;
*/
SUCCEEDED(3),
/**
* ABORTED = 4;
*/
ABORTED(4),
/**
* FAILED = 5;
*/
FAILED(5),
UNRECOGNIZED(-1),
;
/**
* UNDEFINED = 0;
*/
public static final int UNDEFINED_VALUE = 0;
/**
* QUEUED = 1;
*/
public static final int QUEUED_VALUE = 1;
/**
* RUNNING = 2;
*/
public static final int RUNNING_VALUE = 2;
/**
* SUCCEEDED = 3;
*/
public static final int SUCCEEDED_VALUE = 3;
/**
* ABORTED = 4;
*/
public static final int ABORTED_VALUE = 4;
/**
* FAILED = 5;
*/
public static final int FAILED_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Phase valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Phase forNumber(int value) {
switch (value) {
case 0: return UNDEFINED;
case 1: return QUEUED;
case 2: return RUNNING;
case 3: return SUCCEEDED;
case 4: return ABORTED;
case 5: return FAILED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Phase> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Phase findValueByNumber(int number) {
return Phase.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return flyteidl.core.Execution.TaskExecution.getDescriptor().getEnumTypes().get(0);
}
private static final Phase[] VALUES = values();
public static Phase valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Phase(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:flyteidl.core.TaskExecution.Phase)
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof flyteidl.core.Execution.TaskExecution)) {
return super.equals(obj);
}
flyteidl.core.Execution.TaskExecution other = (flyteidl.core.Execution.TaskExecution) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static flyteidl.core.Execution.TaskExecution parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static flyteidl.core.Execution.TaskExecution parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static flyteidl.core.Execution.TaskExecution parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static flyteidl.core.Execution.TaskExecution parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static flyteidl.core.Execution.TaskExecution parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static flyteidl.core.Execution.TaskExecution parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static flyteidl.core.Execution.TaskExecution parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static flyteidl.core.Execution.TaskExecution parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static flyteidl.core.Execution.TaskExecution parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static flyteidl.core.Execution.TaskExecution parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static flyteidl.core.Execution.TaskExecution parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static flyteidl.core.Execution.TaskExecution parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(flyteidl.core.Execution.TaskExecution prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
* but this is the cumulative list that customers may want to know about for their task.
*
*
* Protobuf type {@code flyteidl.core.TaskExecution}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flyteidl.core.TaskExecution)
flyteidl.core.Execution.TaskExecutionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_fieldAccessorTable
.ensureFieldAccessorsInitialized(
flyteidl.core.Execution.TaskExecution.class, flyteidl.core.Execution.TaskExecution.Builder.class);
}
// Construct using flyteidl.core.Execution.TaskExecution.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor;
}
@java.lang.Override
public flyteidl.core.Execution.TaskExecution getDefaultInstanceForType() {
return flyteidl.core.Execution.TaskExecution.getDefaultInstance();
}
@java.lang.Override
public flyteidl.core.Execution.TaskExecution build() {
flyteidl.core.Execution.TaskExecution result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public flyteidl.core.Execution.TaskExecution buildPartial() {
flyteidl.core.Execution.TaskExecution result = new flyteidl.core.Execution.TaskExecution(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof flyteidl.core.Execution.TaskExecution) {
return mergeFrom((flyteidl.core.Execution.TaskExecution)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(flyteidl.core.Execution.TaskExecution other) {
if (other == flyteidl.core.Execution.TaskExecution.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
flyteidl.core.Execution.TaskExecution parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (flyteidl.core.Execution.TaskExecution) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:flyteidl.core.TaskExecution)
}
// @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecution)
private static final flyteidl.core.Execution.TaskExecution DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new flyteidl.core.Execution.TaskExecution();
}
public static flyteidl.core.Execution.TaskExecution getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskExecution parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TaskExecution(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public flyteidl.core.Execution.TaskExecution getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecutionErrorOrBuilder extends
// @@protoc_insertion_point(interface_extends:flyteidl.core.ExecutionError)
com.google.protobuf.MessageOrBuilder {
/**
*
* Error code indicates a grouping of a type of error.
* More Info: <Link>
*
*
* string code = 1;
* @return The code.
*/
java.lang.String getCode();
/**
*
* Error code indicates a grouping of a type of error.
* More Info: <Link>
*
*
* string code = 1;
* @return The bytes for code.
*/
com.google.protobuf.ByteString
getCodeBytes();
/**
*
* Detailed description of the error - including stack trace.
*
*
* string message = 2;
* @return The message.
*/
java.lang.String getMessage();
/**
*
* Detailed description of the error - including stack trace.
*
*
* string message = 2;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
*
* Full error contents accessible via a URI
*
*
* string error_uri = 3;
* @return The errorUri.
*/
java.lang.String getErrorUri();
/**
*
* Full error contents accessible via a URI
*
*
* string error_uri = 3;
* @return The bytes for errorUri.
*/
com.google.protobuf.ByteString
getErrorUriBytes();
/**
* .flyteidl.core.ExecutionError.ErrorKind kind = 4;
* @return The enum numeric value on the wire for kind.
*/
int getKindValue();
/**
* .flyteidl.core.ExecutionError.ErrorKind kind = 4;
* @return The kind.
*/
flyteidl.core.Execution.ExecutionError.ErrorKind getKind();
}
/**
*
* Represents the error message from the execution.
*
*
* Protobuf type {@code flyteidl.core.ExecutionError}
*/
public static final class ExecutionError extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flyteidl.core.ExecutionError)
ExecutionErrorOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecutionError.newBuilder() to construct.
private ExecutionError(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecutionError() {
code_ = "";
message_ = "";
errorUri_ = "";
kind_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecutionError();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecutionError(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
code_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
message_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
errorUri_ = s;
break;
}
case 32: {
int rawValue = input.readEnum();
kind_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
flyteidl.core.Execution.ExecutionError.class, flyteidl.core.Execution.ExecutionError.Builder.class);
}
/**
*
* Error type: System or User
*
*
* Protobuf enum {@code flyteidl.core.ExecutionError.ErrorKind}
*/
public enum ErrorKind
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
* USER = 1;
*/
USER(1),
/**
* SYSTEM = 2;
*/
SYSTEM(2),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
* USER = 1;
*/
public static final int USER_VALUE = 1;
/**
* SYSTEM = 2;
*/
public static final int SYSTEM_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ErrorKind valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ErrorKind forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return USER;
case 2: return SYSTEM;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ErrorKind> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ErrorKind findValueByNumber(int number) {
return ErrorKind.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return flyteidl.core.Execution.ExecutionError.getDescriptor().getEnumTypes().get(0);
}
private static final ErrorKind[] VALUES = values();
public static ErrorKind valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ErrorKind(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:flyteidl.core.ExecutionError.ErrorKind)
}
public static final int CODE_FIELD_NUMBER = 1;
private volatile java.lang.Object code_;
/**
*
* Error code indicates a grouping of a type of error.
* More Info: <Link>
*
*
* string code = 1;
* @return The code.
*/
public java.lang.String getCode() {
java.lang.Object ref = code_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
code_ = s;
return s;
}
}
/**
*
* Error code indicates a grouping of a type of error.
* More Info: <Link>
*
*
* string code = 1;
* @return The bytes for code.
*/
public com.google.protobuf.ByteString
getCodeBytes() {
java.lang.Object ref = code_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
code_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object message_;
/**
*
* Detailed description of the error - including stack trace.
*
*
* string message = 2;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
}
}
/**
*
* Detailed description of the error - including stack trace.
*
*
* string message = 2;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERROR_URI_FIELD_NUMBER = 3;
private volatile java.lang.Object errorUri_;
/**
*
* Full error contents accessible via a URI
*
*
* string error_uri = 3;
* @return The errorUri.
*/
public java.lang.String getErrorUri() {
java.lang.Object ref = errorUri_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorUri_ = s;
return s;
}
}
/**
*
* Full error contents accessible via a URI
*
*
* string error_uri = 3;
* @return The bytes for errorUri.
*/
public com.google.protobuf.ByteString
getErrorUriBytes() {
java.lang.Object ref = errorUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KIND_FIELD_NUMBER = 4;
private int kind_;
/**
* .flyteidl.core.ExecutionError.ErrorKind kind = 4;
* @return The enum numeric value on the wire for kind.
*/
public int getKindValue() {
return kind_;
}
/**
* .flyteidl.core.ExecutionError.ErrorKind kind = 4;
* @return The kind.
*/
public flyteidl.core.Execution.ExecutionError.ErrorKind getKind() {
@SuppressWarnings("deprecation")
flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(kind_);
return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_);
}
if (!getMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
}
if (!getErrorUriBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorUri_);
}
if (kind_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) {
output.writeEnum(4, kind_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_);
}
if (!getMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
}
if (!getErrorUriBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorUri_);
}
if (kind_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, kind_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof flyteidl.core.Execution.ExecutionError)) {
return super.equals(obj);
}
flyteidl.core.Execution.ExecutionError other = (flyteidl.core.Execution.ExecutionError) obj;
if (!getCode()
.equals(other.getCode())) return false;
if (!getMessage()
.equals(other.getMessage())) return false;
if (!getErrorUri()
.equals(other.getErrorUri())) return false;
if (kind_ != other.kind_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode().hashCode();
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (37 * hash) + ERROR_URI_FIELD_NUMBER;
hash = (53 * hash) + getErrorUri().hashCode();
hash = (37 * hash) + KIND_FIELD_NUMBER;
hash = (53 * hash) + kind_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static flyteidl.core.Execution.ExecutionError parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static flyteidl.core.Execution.ExecutionError parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static flyteidl.core.Execution.ExecutionError parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static flyteidl.core.Execution.ExecutionError parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static flyteidl.core.Execution.ExecutionError parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static flyteidl.core.Execution.ExecutionError parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static flyteidl.core.Execution.ExecutionError parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static flyteidl.core.Execution.ExecutionError parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static flyteidl.core.Execution.ExecutionError parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static flyteidl.core.Execution.ExecutionError parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static flyteidl.core.Execution.ExecutionError parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static flyteidl.core.Execution.ExecutionError parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(flyteidl.core.Execution.ExecutionError prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Represents the error message from the execution.
*
*
* Protobuf type {@code flyteidl.core.ExecutionError}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flyteidl.core.ExecutionError)
flyteidl.core.Execution.ExecutionErrorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_fieldAccessorTable
.ensureFieldAccessorsInitialized(
flyteidl.core.Execution.ExecutionError.class, flyteidl.core.Execution.ExecutionError.Builder.class);
}
// Construct using flyteidl.core.Execution.ExecutionError.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
code_ = "";
message_ = "";
errorUri_ = "";
kind_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor;
}
@java.lang.Override
public flyteidl.core.Execution.ExecutionError getDefaultInstanceForType() {
return flyteidl.core.Execution.ExecutionError.getDefaultInstance();
}
@java.lang.Override
public flyteidl.core.Execution.ExecutionError build() {
flyteidl.core.Execution.ExecutionError result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public flyteidl.core.Execution.ExecutionError buildPartial() {
flyteidl.core.Execution.ExecutionError result = new flyteidl.core.Execution.ExecutionError(this);
result.code_ = code_;
result.message_ = message_;
result.errorUri_ = errorUri_;
result.kind_ = kind_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof flyteidl.core.Execution.ExecutionError) {
return mergeFrom((flyteidl.core.Execution.ExecutionError)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(flyteidl.core.Execution.ExecutionError other) {
if (other == flyteidl.core.Execution.ExecutionError.getDefaultInstance()) return this;
if (!other.getCode().isEmpty()) {
code_ = other.code_;
onChanged();
}
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
if (!other.getErrorUri().isEmpty()) {
errorUri_ = other.errorUri_;
onChanged();
}
if (other.kind_ != 0) {
setKindValue(other.getKindValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
flyteidl.core.Execution.ExecutionError parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (flyteidl.core.Execution.ExecutionError) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object code_ = "";
/**
*
* Error code indicates a grouping of a type of error.
* More Info: <Link>
*
*
* string code = 1;
* @return The code.
*/
public java.lang.String getCode() {
java.lang.Object ref = code_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
code_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Error code indicates a grouping of a type of error.
* More Info: <Link>
*
*
* string code = 1;
* @return The bytes for code.
*/
public com.google.protobuf.ByteString
getCodeBytes() {
java.lang.Object ref = code_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
code_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Error code indicates a grouping of a type of error.
* More Info: <Link>
*
*
* string code = 1;
* @param value The code to set.
* @return This builder for chaining.
*/
public Builder setCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
code_ = value;
onChanged();
return this;
}
/**
*
* Error code indicates a grouping of a type of error.
* More Info: <Link>
*
*
* string code = 1;
* @return This builder for chaining.
*/
public Builder clearCode() {
code_ = getDefaultInstance().getCode();
onChanged();
return this;
}
/**
*
* Error code indicates a grouping of a type of error.
* More Info: <Link>
*
*
* string code = 1;
* @param value The bytes for code to set.
* @return This builder for chaining.
*/
public Builder setCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
code_ = value;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
*
* Detailed description of the error - including stack trace.
*
*
* string message = 2;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Detailed description of the error - including stack trace.
*
*
* string message = 2;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Detailed description of the error - including stack trace.
*
*
* string message = 2;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
*
* Detailed description of the error - including stack trace.
*
*
* string message = 2;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
*
* Detailed description of the error - including stack trace.
*
*
* string message = 2;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
private java.lang.Object errorUri_ = "";
/**
*
* Full error contents accessible via a URI
*
*
* string error_uri = 3;
* @return The errorUri.
*/
public java.lang.String getErrorUri() {
java.lang.Object ref = errorUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Full error contents accessible via a URI
*
*
* string error_uri = 3;
* @return The bytes for errorUri.
*/
public com.google.protobuf.ByteString
getErrorUriBytes() {
java.lang.Object ref = errorUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Full error contents accessible via a URI
*
*
* string error_uri = 3;
* @param value The errorUri to set.
* @return This builder for chaining.
*/
public Builder setErrorUri(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorUri_ = value;
onChanged();
return this;
}
/**
*
* Full error contents accessible via a URI
*
*
* string error_uri = 3;
* @return This builder for chaining.
*/
public Builder clearErrorUri() {
errorUri_ = getDefaultInstance().getErrorUri();
onChanged();
return this;
}
/**
*
* Full error contents accessible via a URI
*
*
* string error_uri = 3;
* @param value The bytes for errorUri to set.
* @return This builder for chaining.
*/
public Builder setErrorUriBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorUri_ = value;
onChanged();
return this;
}
private int kind_ = 0;
/**
* .flyteidl.core.ExecutionError.ErrorKind kind = 4;
* @return The enum numeric value on the wire for kind.
*/
public int getKindValue() {
return kind_;
}
/**
* .flyteidl.core.ExecutionError.ErrorKind kind = 4;
* @param value The enum numeric value on the wire for kind to set.
* @return This builder for chaining.
*/
public Builder setKindValue(int value) {
kind_ = value;
onChanged();
return this;
}
/**
* .flyteidl.core.ExecutionError.ErrorKind kind = 4;
* @return The kind.
*/
public flyteidl.core.Execution.ExecutionError.ErrorKind getKind() {
@SuppressWarnings("deprecation")
flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(kind_);
return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result;
}
/**
* .flyteidl.core.ExecutionError.ErrorKind kind = 4;
* @param value The kind to set.
* @return This builder for chaining.
*/
public Builder setKind(flyteidl.core.Execution.ExecutionError.ErrorKind value) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value.getNumber();
onChanged();
return this;
}
/**
* .flyteidl.core.ExecutionError.ErrorKind kind = 4;
* @return This builder for chaining.
*/
public Builder clearKind() {
kind_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:flyteidl.core.ExecutionError)
}
// @@protoc_insertion_point(class_scope:flyteidl.core.ExecutionError)
private static final flyteidl.core.Execution.ExecutionError DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new flyteidl.core.Execution.ExecutionError();
}
public static flyteidl.core.Execution.ExecutionError getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecutionError parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecutionError(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public flyteidl.core.Execution.ExecutionError getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskLogOrBuilder extends
// @@protoc_insertion_point(interface_extends:flyteidl.core.TaskLog)
com.google.protobuf.MessageOrBuilder {
/**
* string uri = 1;
* @return The uri.
*/
java.lang.String getUri();
/**
* string uri = 1;
* @return The bytes for uri.
*/
com.google.protobuf.ByteString
getUriBytes();
/**
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* .flyteidl.core.TaskLog.MessageFormat message_format = 3;
* @return The enum numeric value on the wire for messageFormat.
*/
int getMessageFormatValue();
/**
* .flyteidl.core.TaskLog.MessageFormat message_format = 3;
* @return The messageFormat.
*/
flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat();
/**
* .google.protobuf.Duration ttl = 4;
* @return Whether the ttl field is set.
*/
boolean hasTtl();
/**
* .google.protobuf.Duration ttl = 4;
* @return The ttl.
*/
com.google.protobuf.Duration getTtl();
/**
* .google.protobuf.Duration ttl = 4;
*/
com.google.protobuf.DurationOrBuilder getTtlOrBuilder();
}
/**
*
* Log information for the task that is specific to a log sink
* When our log story is flushed out, we may have more metadata here like log link expiry
*
*
* Protobuf type {@code flyteidl.core.TaskLog}
*/
public static final class TaskLog extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:flyteidl.core.TaskLog)
TaskLogOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskLog.newBuilder() to construct.
private TaskLog(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TaskLog() {
uri_ = "";
name_ = "";
messageFormat_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskLog();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TaskLog(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
uri_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 24: {
int rawValue = input.readEnum();
messageFormat_ = rawValue;
break;
}
case 34: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (ttl_ != null) {
subBuilder = ttl_.toBuilder();
}
ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ttl_);
ttl_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_fieldAccessorTable
.ensureFieldAccessorsInitialized(
flyteidl.core.Execution.TaskLog.class, flyteidl.core.Execution.TaskLog.Builder.class);
}
/**
* Protobuf enum {@code flyteidl.core.TaskLog.MessageFormat}
*/
public enum MessageFormat
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
* CSV = 1;
*/
CSV(1),
/**
* JSON = 2;
*/
JSON(2),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
* CSV = 1;
*/
public static final int CSV_VALUE = 1;
/**
* JSON = 2;
*/
public static final int JSON_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static MessageFormat valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static MessageFormat forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return CSV;
case 2: return JSON;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
MessageFormat> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public MessageFormat findValueByNumber(int number) {
return MessageFormat.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return flyteidl.core.Execution.TaskLog.getDescriptor().getEnumTypes().get(0);
}
private static final MessageFormat[] VALUES = values();
public static MessageFormat valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private MessageFormat(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:flyteidl.core.TaskLog.MessageFormat)
}
public static final int URI_FIELD_NUMBER = 1;
private volatile java.lang.Object uri_;
/**
* string uri = 1;
* @return The uri.
*/
public java.lang.String getUri() {
java.lang.Object ref = uri_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uri_ = s;
return s;
}
}
/**
* string uri = 1;
* @return The bytes for uri.
*/
public com.google.protobuf.ByteString
getUriBytes() {
java.lang.Object ref = uri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MESSAGE_FORMAT_FIELD_NUMBER = 3;
private int messageFormat_;
/**
* .flyteidl.core.TaskLog.MessageFormat message_format = 3;
* @return The enum numeric value on the wire for messageFormat.
*/
public int getMessageFormatValue() {
return messageFormat_;
}
/**
* .flyteidl.core.TaskLog.MessageFormat message_format = 3;
* @return The messageFormat.
*/
public flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat() {
@SuppressWarnings("deprecation")
flyteidl.core.Execution.TaskLog.MessageFormat result = flyteidl.core.Execution.TaskLog.MessageFormat.valueOf(messageFormat_);
return result == null ? flyteidl.core.Execution.TaskLog.MessageFormat.UNRECOGNIZED : result;
}
public static final int TTL_FIELD_NUMBER = 4;
private com.google.protobuf.Duration ttl_;
/**
* .google.protobuf.Duration ttl = 4;
* @return Whether the ttl field is set.
*/
public boolean hasTtl() {
return ttl_ != null;
}
/**
* .google.protobuf.Duration ttl = 4;
* @return The ttl.
*/
public com.google.protobuf.Duration getTtl() {
return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_;
}
/**
* .google.protobuf.Duration ttl = 4;
*/
public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
return getTtl();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getUriBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (messageFormat_ != flyteidl.core.Execution.TaskLog.MessageFormat.UNKNOWN.getNumber()) {
output.writeEnum(3, messageFormat_);
}
if (ttl_ != null) {
output.writeMessage(4, getTtl());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getUriBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (messageFormat_ != flyteidl.core.Execution.TaskLog.MessageFormat.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, messageFormat_);
}
if (ttl_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getTtl());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof flyteidl.core.Execution.TaskLog)) {
return super.equals(obj);
}
flyteidl.core.Execution.TaskLog other = (flyteidl.core.Execution.TaskLog) obj;
if (!getUri()
.equals(other.getUri())) return false;
if (!getName()
.equals(other.getName())) return false;
if (messageFormat_ != other.messageFormat_) return false;
if (hasTtl() != other.hasTtl()) return false;
if (hasTtl()) {
if (!getTtl()
.equals(other.getTtl())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + URI_FIELD_NUMBER;
hash = (53 * hash) + getUri().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + MESSAGE_FORMAT_FIELD_NUMBER;
hash = (53 * hash) + messageFormat_;
if (hasTtl()) {
hash = (37 * hash) + TTL_FIELD_NUMBER;
hash = (53 * hash) + getTtl().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static flyteidl.core.Execution.TaskLog parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static flyteidl.core.Execution.TaskLog parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static flyteidl.core.Execution.TaskLog parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static flyteidl.core.Execution.TaskLog parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static flyteidl.core.Execution.TaskLog parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static flyteidl.core.Execution.TaskLog parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static flyteidl.core.Execution.TaskLog parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static flyteidl.core.Execution.TaskLog parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static flyteidl.core.Execution.TaskLog parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static flyteidl.core.Execution.TaskLog parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static flyteidl.core.Execution.TaskLog parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static flyteidl.core.Execution.TaskLog parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(flyteidl.core.Execution.TaskLog prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Log information for the task that is specific to a log sink
* When our log story is flushed out, we may have more metadata here like log link expiry
*
*
* Protobuf type {@code flyteidl.core.TaskLog}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:flyteidl.core.TaskLog)
flyteidl.core.Execution.TaskLogOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_fieldAccessorTable
.ensureFieldAccessorsInitialized(
flyteidl.core.Execution.TaskLog.class, flyteidl.core.Execution.TaskLog.Builder.class);
}
// Construct using flyteidl.core.Execution.TaskLog.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
uri_ = "";
name_ = "";
messageFormat_ = 0;
if (ttlBuilder_ == null) {
ttl_ = null;
} else {
ttl_ = null;
ttlBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor;
}
@java.lang.Override
public flyteidl.core.Execution.TaskLog getDefaultInstanceForType() {
return flyteidl.core.Execution.TaskLog.getDefaultInstance();
}
@java.lang.Override
public flyteidl.core.Execution.TaskLog build() {
flyteidl.core.Execution.TaskLog result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public flyteidl.core.Execution.TaskLog buildPartial() {
flyteidl.core.Execution.TaskLog result = new flyteidl.core.Execution.TaskLog(this);
result.uri_ = uri_;
result.name_ = name_;
result.messageFormat_ = messageFormat_;
if (ttlBuilder_ == null) {
result.ttl_ = ttl_;
} else {
result.ttl_ = ttlBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof flyteidl.core.Execution.TaskLog) {
return mergeFrom((flyteidl.core.Execution.TaskLog)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(flyteidl.core.Execution.TaskLog other) {
if (other == flyteidl.core.Execution.TaskLog.getDefaultInstance()) return this;
if (!other.getUri().isEmpty()) {
uri_ = other.uri_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.messageFormat_ != 0) {
setMessageFormatValue(other.getMessageFormatValue());
}
if (other.hasTtl()) {
mergeTtl(other.getTtl());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
flyteidl.core.Execution.TaskLog parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (flyteidl.core.Execution.TaskLog) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object uri_ = "";
/**
* string uri = 1;
* @return The uri.
*/
public java.lang.String getUri() {
java.lang.Object ref = uri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string uri = 1;
* @return The bytes for uri.
*/
public com.google.protobuf.ByteString
getUriBytes() {
java.lang.Object ref = uri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string uri = 1;
* @param value The uri to set.
* @return This builder for chaining.
*/
public Builder setUri(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uri_ = value;
onChanged();
return this;
}
/**
* string uri = 1;
* @return This builder for chaining.
*/
public Builder clearUri() {
uri_ = getDefaultInstance().getUri();
onChanged();
return this;
}
/**
* string uri = 1;
* @param value The bytes for uri to set.
* @return This builder for chaining.
*/
public Builder setUriBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uri_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* 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;
onChanged();
return this;
}
/**
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private int messageFormat_ = 0;
/**
* .flyteidl.core.TaskLog.MessageFormat message_format = 3;
* @return The enum numeric value on the wire for messageFormat.
*/
public int getMessageFormatValue() {
return messageFormat_;
}
/**
* .flyteidl.core.TaskLog.MessageFormat message_format = 3;
* @param value The enum numeric value on the wire for messageFormat to set.
* @return This builder for chaining.
*/
public Builder setMessageFormatValue(int value) {
messageFormat_ = value;
onChanged();
return this;
}
/**
* .flyteidl.core.TaskLog.MessageFormat message_format = 3;
* @return The messageFormat.
*/
public flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat() {
@SuppressWarnings("deprecation")
flyteidl.core.Execution.TaskLog.MessageFormat result = flyteidl.core.Execution.TaskLog.MessageFormat.valueOf(messageFormat_);
return result == null ? flyteidl.core.Execution.TaskLog.MessageFormat.UNRECOGNIZED : result;
}
/**
* .flyteidl.core.TaskLog.MessageFormat message_format = 3;
* @param value The messageFormat to set.
* @return This builder for chaining.
*/
public Builder setMessageFormat(flyteidl.core.Execution.TaskLog.MessageFormat value) {
if (value == null) {
throw new NullPointerException();
}
messageFormat_ = value.getNumber();
onChanged();
return this;
}
/**
* .flyteidl.core.TaskLog.MessageFormat message_format = 3;
* @return This builder for chaining.
*/
public Builder clearMessageFormat() {
messageFormat_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Duration ttl_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_;
/**
* .google.protobuf.Duration ttl = 4;
* @return Whether the ttl field is set.
*/
public boolean hasTtl() {
return ttlBuilder_ != null || ttl_ != null;
}
/**
* .google.protobuf.Duration ttl = 4;
* @return The ttl.
*/
public com.google.protobuf.Duration getTtl() {
if (ttlBuilder_ == null) {
return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_;
} else {
return ttlBuilder_.getMessage();
}
}
/**
* .google.protobuf.Duration ttl = 4;
*/
public Builder setTtl(com.google.protobuf.Duration value) {
if (ttlBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ttl_ = value;
onChanged();
} else {
ttlBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Duration ttl = 4;
*/
public Builder setTtl(
com.google.protobuf.Duration.Builder builderForValue) {
if (ttlBuilder_ == null) {
ttl_ = builderForValue.build();
onChanged();
} else {
ttlBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Duration ttl = 4;
*/
public Builder mergeTtl(com.google.protobuf.Duration value) {
if (ttlBuilder_ == null) {
if (ttl_ != null) {
ttl_ =
com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial();
} else {
ttl_ = value;
}
onChanged();
} else {
ttlBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Duration ttl = 4;
*/
public Builder clearTtl() {
if (ttlBuilder_ == null) {
ttl_ = null;
onChanged();
} else {
ttl_ = null;
ttlBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Duration ttl = 4;
*/
public com.google.protobuf.Duration.Builder getTtlBuilder() {
onChanged();
return getTtlFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Duration ttl = 4;
*/
public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
if (ttlBuilder_ != null) {
return ttlBuilder_.getMessageOrBuilder();
} else {
return ttl_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : ttl_;
}
}
/**
* .google.protobuf.Duration ttl = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getTtlFieldBuilder() {
if (ttlBuilder_ == null) {
ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getTtl(),
getParentForChildren(),
isClean());
ttl_ = null;
}
return ttlBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:flyteidl.core.TaskLog)
}
// @@protoc_insertion_point(class_scope:flyteidl.core.TaskLog)
private static final flyteidl.core.Execution.TaskLog DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new flyteidl.core.Execution.TaskLog();
}
public static flyteidl.core.Execution.TaskLog getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TaskLog parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TaskLog(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public flyteidl.core.Execution.TaskLog getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flyteidl_core_WorkflowExecution_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flyteidl_core_NodeExecution_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flyteidl_core_NodeExecution_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flyteidl_core_TaskExecution_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flyteidl_core_TaskExecution_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flyteidl_core_ExecutionError_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flyteidl_core_ExecutionError_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_flyteidl_core_TaskLog_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_flyteidl_core_TaskLog_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\035flyteidl/core/execution.proto\022\rflyteid" +
"l.core\032\036google/protobuf/duration.proto\"\231" +
"\001\n\021WorkflowExecution\"\203\001\n\005Phase\022\r\n\tUNDEFI" +
"NED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\016\n\nSUCCEE" +
"DING\020\003\022\r\n\tSUCCEEDED\020\004\022\013\n\007FAILING\020\005\022\n\n\006FA" +
"ILED\020\006\022\013\n\007ABORTED\020\007\022\r\n\tTIMED_OUT\020\010\"\222\001\n\rN" +
"odeExecution\"\200\001\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n" +
"\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n" +
"\007FAILING\020\004\022\n\n\006FAILED\020\005\022\013\n\007ABORTED\020\006\022\013\n\007S" +
"KIPPED\020\007\022\r\n\tTIMED_OUT\020\010\"h\n\rTaskExecution" +
"\"W\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007" +
"RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n\007ABORTED\020\004\022\n\n" +
"\006FAILED\020\005\"\251\001\n\016ExecutionError\022\014\n\004code\030\001 \001" +
"(\t\022\017\n\007message\030\002 \001(\t\022\021\n\terror_uri\030\003 \001(\t\0225" +
"\n\004kind\030\004 \001(\0162\'.flyteidl.core.ExecutionEr" +
"ror.ErrorKind\".\n\tErrorKind\022\013\n\007UNKNOWN\020\000\022" +
"\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\"\273\001\n\007TaskLog\022\013\n\003uri" +
"\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022<\n\016message_format\030\003" +
" \001(\0162$.flyteidl.core.TaskLog.MessageForm" +
"at\022&\n\003ttl\030\004 \001(\0132\031.google.protobuf.Durati" +
"on\"/\n\rMessageFormat\022\013\n\007UNKNOWN\020\000\022\007\n\003CSV\020" +
"\001\022\010\n\004JSON\020\002B2Z0github.com/lyft/flyteidl/" +
"gen/pb-go/flyteidl/coreb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.DurationProto.getDescriptor(),
});
internal_static_flyteidl_core_WorkflowExecution_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flyteidl_core_WorkflowExecution_descriptor,
new java.lang.String[] { });
internal_static_flyteidl_core_NodeExecution_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_flyteidl_core_NodeExecution_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flyteidl_core_NodeExecution_descriptor,
new java.lang.String[] { });
internal_static_flyteidl_core_TaskExecution_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_flyteidl_core_TaskExecution_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flyteidl_core_TaskExecution_descriptor,
new java.lang.String[] { });
internal_static_flyteidl_core_ExecutionError_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_flyteidl_core_ExecutionError_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flyteidl_core_ExecutionError_descriptor,
new java.lang.String[] { "Code", "Message", "ErrorUri", "Kind", });
internal_static_flyteidl_core_TaskLog_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_flyteidl_core_TaskLog_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_flyteidl_core_TaskLog_descriptor,
new java.lang.String[] { "Uri", "Name", "MessageFormat", "Ttl", });
com.google.protobuf.DurationProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy