com.dimajix.flowman.kernel.proto.job.GetJobResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flowman-kernel-api Show documentation
Show all versions of flowman-kernel-api Show documentation
Flowman Kernel gRPC protocol definition
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: job.proto
package com.dimajix.flowman.kernel.proto.job;
/**
* Protobuf type {@code com.dimajix.flowman.kernel.job.GetJobResponse}
*/
public final class GetJobResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.dimajix.flowman.kernel.job.GetJobResponse)
GetJobResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetJobResponse.newBuilder() to construct.
private GetJobResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetJobResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetJobResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dimajix.flowman.kernel.proto.job.JobProto.internal_static_com_dimajix_flowman_kernel_job_GetJobResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dimajix.flowman.kernel.proto.job.JobProto.internal_static_com_dimajix_flowman_kernel_job_GetJobResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.job.GetJobResponse.class, com.dimajix.flowman.kernel.proto.job.GetJobResponse.Builder.class);
}
public static final int JOB_FIELD_NUMBER = 2;
private com.dimajix.flowman.kernel.proto.job.JobDetails job_;
/**
* .com.dimajix.flowman.kernel.job.JobDetails job = 2;
* @return Whether the job field is set.
*/
@java.lang.Override
public boolean hasJob() {
return job_ != null;
}
/**
* .com.dimajix.flowman.kernel.job.JobDetails job = 2;
* @return The job.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.job.JobDetails getJob() {
return job_ == null ? com.dimajix.flowman.kernel.proto.job.JobDetails.getDefaultInstance() : job_;
}
/**
* .com.dimajix.flowman.kernel.job.JobDetails job = 2;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.job.JobDetailsOrBuilder getJobOrBuilder() {
return job_ == null ? com.dimajix.flowman.kernel.proto.job.JobDetails.getDefaultInstance() : job_;
}
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 (job_ != null) {
output.writeMessage(2, getJob());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (job_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getJob());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.dimajix.flowman.kernel.proto.job.GetJobResponse)) {
return super.equals(obj);
}
com.dimajix.flowman.kernel.proto.job.GetJobResponse other = (com.dimajix.flowman.kernel.proto.job.GetJobResponse) obj;
if (hasJob() != other.hasJob()) return false;
if (hasJob()) {
if (!getJob()
.equals(other.getJob())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasJob()) {
hash = (37 * hash) + JOB_FIELD_NUMBER;
hash = (53 * hash) + getJob().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.dimajix.flowman.kernel.proto.job.GetJobResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.job.GetJobResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.job.GetJobResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.job.GetJobResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.job.GetJobResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.job.GetJobResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.job.GetJobResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.job.GetJobResponse 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 com.dimajix.flowman.kernel.proto.job.GetJobResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.job.GetJobResponse 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 com.dimajix.flowman.kernel.proto.job.GetJobResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.job.GetJobResponse 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(com.dimajix.flowman.kernel.proto.job.GetJobResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.dimajix.flowman.kernel.job.GetJobResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.dimajix.flowman.kernel.job.GetJobResponse)
com.dimajix.flowman.kernel.proto.job.GetJobResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dimajix.flowman.kernel.proto.job.JobProto.internal_static_com_dimajix_flowman_kernel_job_GetJobResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dimajix.flowman.kernel.proto.job.JobProto.internal_static_com_dimajix_flowman_kernel_job_GetJobResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.job.GetJobResponse.class, com.dimajix.flowman.kernel.proto.job.GetJobResponse.Builder.class);
}
// Construct using com.dimajix.flowman.kernel.proto.job.GetJobResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
job_ = null;
if (jobBuilder_ != null) {
jobBuilder_.dispose();
jobBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.dimajix.flowman.kernel.proto.job.JobProto.internal_static_com_dimajix_flowman_kernel_job_GetJobResponse_descriptor;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.job.GetJobResponse getDefaultInstanceForType() {
return com.dimajix.flowman.kernel.proto.job.GetJobResponse.getDefaultInstance();
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.job.GetJobResponse build() {
com.dimajix.flowman.kernel.proto.job.GetJobResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.job.GetJobResponse buildPartial() {
com.dimajix.flowman.kernel.proto.job.GetJobResponse result = new com.dimajix.flowman.kernel.proto.job.GetJobResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.dimajix.flowman.kernel.proto.job.GetJobResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.job_ = jobBuilder_ == null
? job_
: jobBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.dimajix.flowman.kernel.proto.job.GetJobResponse) {
return mergeFrom((com.dimajix.flowman.kernel.proto.job.GetJobResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.dimajix.flowman.kernel.proto.job.GetJobResponse other) {
if (other == com.dimajix.flowman.kernel.proto.job.GetJobResponse.getDefaultInstance()) return this;
if (other.hasJob()) {
mergeJob(other.getJob());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 18: {
input.readMessage(
getJobFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.dimajix.flowman.kernel.proto.job.JobDetails job_;
private com.google.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.job.JobDetails, com.dimajix.flowman.kernel.proto.job.JobDetails.Builder, com.dimajix.flowman.kernel.proto.job.JobDetailsOrBuilder> jobBuilder_;
/**
* .com.dimajix.flowman.kernel.job.JobDetails job = 2;
* @return Whether the job field is set.
*/
public boolean hasJob() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .com.dimajix.flowman.kernel.job.JobDetails job = 2;
* @return The job.
*/
public com.dimajix.flowman.kernel.proto.job.JobDetails getJob() {
if (jobBuilder_ == null) {
return job_ == null ? com.dimajix.flowman.kernel.proto.job.JobDetails.getDefaultInstance() : job_;
} else {
return jobBuilder_.getMessage();
}
}
/**
* .com.dimajix.flowman.kernel.job.JobDetails job = 2;
*/
public Builder setJob(com.dimajix.flowman.kernel.proto.job.JobDetails value) {
if (jobBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
job_ = value;
} else {
jobBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.job.JobDetails job = 2;
*/
public Builder setJob(
com.dimajix.flowman.kernel.proto.job.JobDetails.Builder builderForValue) {
if (jobBuilder_ == null) {
job_ = builderForValue.build();
} else {
jobBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.job.JobDetails job = 2;
*/
public Builder mergeJob(com.dimajix.flowman.kernel.proto.job.JobDetails value) {
if (jobBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
job_ != null &&
job_ != com.dimajix.flowman.kernel.proto.job.JobDetails.getDefaultInstance()) {
getJobBuilder().mergeFrom(value);
} else {
job_ = value;
}
} else {
jobBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.job.JobDetails job = 2;
*/
public Builder clearJob() {
bitField0_ = (bitField0_ & ~0x00000001);
job_ = null;
if (jobBuilder_ != null) {
jobBuilder_.dispose();
jobBuilder_ = null;
}
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.job.JobDetails job = 2;
*/
public com.dimajix.flowman.kernel.proto.job.JobDetails.Builder getJobBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getJobFieldBuilder().getBuilder();
}
/**
* .com.dimajix.flowman.kernel.job.JobDetails job = 2;
*/
public com.dimajix.flowman.kernel.proto.job.JobDetailsOrBuilder getJobOrBuilder() {
if (jobBuilder_ != null) {
return jobBuilder_.getMessageOrBuilder();
} else {
return job_ == null ?
com.dimajix.flowman.kernel.proto.job.JobDetails.getDefaultInstance() : job_;
}
}
/**
* .com.dimajix.flowman.kernel.job.JobDetails job = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.job.JobDetails, com.dimajix.flowman.kernel.proto.job.JobDetails.Builder, com.dimajix.flowman.kernel.proto.job.JobDetailsOrBuilder>
getJobFieldBuilder() {
if (jobBuilder_ == null) {
jobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.job.JobDetails, com.dimajix.flowman.kernel.proto.job.JobDetails.Builder, com.dimajix.flowman.kernel.proto.job.JobDetailsOrBuilder>(
getJob(),
getParentForChildren(),
isClean());
job_ = null;
}
return jobBuilder_;
}
@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:com.dimajix.flowman.kernel.job.GetJobResponse)
}
// @@protoc_insertion_point(class_scope:com.dimajix.flowman.kernel.job.GetJobResponse)
private static final com.dimajix.flowman.kernel.proto.job.GetJobResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.dimajix.flowman.kernel.proto.job.GetJobResponse();
}
public static com.dimajix.flowman.kernel.proto.job.GetJobResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetJobResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.job.GetJobResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}