
xyz.block.ftl.language.v1.BuildFailure Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: xyz/block/ftl/language/v1/language.proto
// Protobuf Java Version: 3.25.4
package xyz.block.ftl.language.v1;
/**
*
* BuildFailure should be sent when a build fails.
*
* FTL may ignore this event if it does not match FTL's current build context and state.
*
*
* Protobuf type {@code xyz.block.ftl.language.v1.BuildFailure}
*/
public final class BuildFailure extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xyz.block.ftl.language.v1.BuildFailure)
BuildFailureOrBuilder {
private static final long serialVersionUID = 0L;
// Use BuildFailure.newBuilder() to construct.
private BuildFailure(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BuildFailure() {
contextId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BuildFailure();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.language.v1.Language.internal_static_xyz_block_ftl_language_v1_BuildFailure_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xyz.block.ftl.language.v1.Language.internal_static_xyz_block_ftl_language_v1_BuildFailure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.language.v1.BuildFailure.class, xyz.block.ftl.language.v1.BuildFailure.Builder.class);
}
private int bitField0_;
public static final int CONTEXT_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object contextId_ = "";
/**
*
* The id of build context used while building.
*
*
* string context_id = 1;
* @return The contextId.
*/
@java.lang.Override
public java.lang.String getContextId() {
java.lang.Object ref = contextId_;
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();
contextId_ = s;
return s;
}
}
/**
*
* The id of build context used while building.
*
*
* string context_id = 1;
* @return The bytes for contextId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContextIdBytes() {
java.lang.Object ref = contextId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contextId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IS_AUTOMATIC_REBUILD_FIELD_NUMBER = 2;
private boolean isAutomaticRebuild_ = false;
/**
*
* Indicates whether the build was automatically started by the plugin, rather than due to a Build rpc call.
*
*
* bool is_automatic_rebuild = 2;
* @return The isAutomaticRebuild.
*/
@java.lang.Override
public boolean getIsAutomaticRebuild() {
return isAutomaticRebuild_;
}
public static final int ERRORS_FIELD_NUMBER = 3;
private xyz.block.ftl.language.v1.ErrorList errors_;
/**
*
* Errors contains any errors that occurred during the build
*
*
* .xyz.block.ftl.language.v1.ErrorList errors = 3;
* @return Whether the errors field is set.
*/
@java.lang.Override
public boolean hasErrors() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Errors contains any errors that occurred during the build
*
*
* .xyz.block.ftl.language.v1.ErrorList errors = 3;
* @return The errors.
*/
@java.lang.Override
public xyz.block.ftl.language.v1.ErrorList getErrors() {
return errors_ == null ? xyz.block.ftl.language.v1.ErrorList.getDefaultInstance() : errors_;
}
/**
*
* Errors contains any errors that occurred during the build
*
*
* .xyz.block.ftl.language.v1.ErrorList errors = 3;
*/
@java.lang.Override
public xyz.block.ftl.language.v1.ErrorListOrBuilder getErrorsOrBuilder() {
return errors_ == null ? xyz.block.ftl.language.v1.ErrorList.getDefaultInstance() : errors_;
}
public static final int INVALIDATE_DEPENDENCIES_FIELD_NUMBER = 4;
private boolean invalidateDependencies_ = false;
/**
*
* Indicates the plugin determined that the dependencies in the BuildContext are out of date.
* If a Build stream is being kept open for automatic rebuilds, FTL will call GetDependencies, followed by
* BuildContextUpdated.
*
*
* bool invalidate_dependencies = 4;
* @return The invalidateDependencies.
*/
@java.lang.Override
public boolean getInvalidateDependencies() {
return invalidateDependencies_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contextId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contextId_);
}
if (isAutomaticRebuild_ != false) {
output.writeBool(2, isAutomaticRebuild_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getErrors());
}
if (invalidateDependencies_ != false) {
output.writeBool(4, invalidateDependencies_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contextId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contextId_);
}
if (isAutomaticRebuild_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, isAutomaticRebuild_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getErrors());
}
if (invalidateDependencies_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, invalidateDependencies_);
}
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 xyz.block.ftl.language.v1.BuildFailure)) {
return super.equals(obj);
}
xyz.block.ftl.language.v1.BuildFailure other = (xyz.block.ftl.language.v1.BuildFailure) obj;
if (!getContextId()
.equals(other.getContextId())) return false;
if (getIsAutomaticRebuild()
!= other.getIsAutomaticRebuild()) return false;
if (hasErrors() != other.hasErrors()) return false;
if (hasErrors()) {
if (!getErrors()
.equals(other.getErrors())) return false;
}
if (getInvalidateDependencies()
!= other.getInvalidateDependencies()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER;
hash = (53 * hash) + getContextId().hashCode();
hash = (37 * hash) + IS_AUTOMATIC_REBUILD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsAutomaticRebuild());
if (hasErrors()) {
hash = (37 * hash) + ERRORS_FIELD_NUMBER;
hash = (53 * hash) + getErrors().hashCode();
}
hash = (37 * hash) + INVALIDATE_DEPENDENCIES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getInvalidateDependencies());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static xyz.block.ftl.language.v1.BuildFailure parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.language.v1.BuildFailure parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.language.v1.BuildFailure parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.language.v1.BuildFailure parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.language.v1.BuildFailure parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.language.v1.BuildFailure parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.language.v1.BuildFailure parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xyz.block.ftl.language.v1.BuildFailure 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 xyz.block.ftl.language.v1.BuildFailure parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xyz.block.ftl.language.v1.BuildFailure 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 xyz.block.ftl.language.v1.BuildFailure parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xyz.block.ftl.language.v1.BuildFailure 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(xyz.block.ftl.language.v1.BuildFailure 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;
}
/**
*
* BuildFailure should be sent when a build fails.
*
* FTL may ignore this event if it does not match FTL's current build context and state.
*
*
* Protobuf type {@code xyz.block.ftl.language.v1.BuildFailure}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xyz.block.ftl.language.v1.BuildFailure)
xyz.block.ftl.language.v1.BuildFailureOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.language.v1.Language.internal_static_xyz_block_ftl_language_v1_BuildFailure_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xyz.block.ftl.language.v1.Language.internal_static_xyz_block_ftl_language_v1_BuildFailure_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.language.v1.BuildFailure.class, xyz.block.ftl.language.v1.BuildFailure.Builder.class);
}
// Construct using xyz.block.ftl.language.v1.BuildFailure.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getErrorsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
contextId_ = "";
isAutomaticRebuild_ = false;
errors_ = null;
if (errorsBuilder_ != null) {
errorsBuilder_.dispose();
errorsBuilder_ = null;
}
invalidateDependencies_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xyz.block.ftl.language.v1.Language.internal_static_xyz_block_ftl_language_v1_BuildFailure_descriptor;
}
@java.lang.Override
public xyz.block.ftl.language.v1.BuildFailure getDefaultInstanceForType() {
return xyz.block.ftl.language.v1.BuildFailure.getDefaultInstance();
}
@java.lang.Override
public xyz.block.ftl.language.v1.BuildFailure build() {
xyz.block.ftl.language.v1.BuildFailure result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xyz.block.ftl.language.v1.BuildFailure buildPartial() {
xyz.block.ftl.language.v1.BuildFailure result = new xyz.block.ftl.language.v1.BuildFailure(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(xyz.block.ftl.language.v1.BuildFailure result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.contextId_ = contextId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.isAutomaticRebuild_ = isAutomaticRebuild_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.errors_ = errorsBuilder_ == null
? errors_
: errorsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.invalidateDependencies_ = invalidateDependencies_;
}
result.bitField0_ |= to_bitField0_;
}
@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 xyz.block.ftl.language.v1.BuildFailure) {
return mergeFrom((xyz.block.ftl.language.v1.BuildFailure)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xyz.block.ftl.language.v1.BuildFailure other) {
if (other == xyz.block.ftl.language.v1.BuildFailure.getDefaultInstance()) return this;
if (!other.getContextId().isEmpty()) {
contextId_ = other.contextId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getIsAutomaticRebuild() != false) {
setIsAutomaticRebuild(other.getIsAutomaticRebuild());
}
if (other.hasErrors()) {
mergeErrors(other.getErrors());
}
if (other.getInvalidateDependencies() != false) {
setInvalidateDependencies(other.getInvalidateDependencies());
}
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 10: {
contextId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
isAutomaticRebuild_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getErrorsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
invalidateDependencies_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
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 java.lang.Object contextId_ = "";
/**
*
* The id of build context used while building.
*
*
* string context_id = 1;
* @return The contextId.
*/
public java.lang.String getContextId() {
java.lang.Object ref = contextId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
contextId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The id of build context used while building.
*
*
* string context_id = 1;
* @return The bytes for contextId.
*/
public com.google.protobuf.ByteString
getContextIdBytes() {
java.lang.Object ref = contextId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contextId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The id of build context used while building.
*
*
* string context_id = 1;
* @param value The contextId to set.
* @return This builder for chaining.
*/
public Builder setContextId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
contextId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The id of build context used while building.
*
*
* string context_id = 1;
* @return This builder for chaining.
*/
public Builder clearContextId() {
contextId_ = getDefaultInstance().getContextId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The id of build context used while building.
*
*
* string context_id = 1;
* @param value The bytes for contextId to set.
* @return This builder for chaining.
*/
public Builder setContextIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
contextId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private boolean isAutomaticRebuild_ ;
/**
*
* Indicates whether the build was automatically started by the plugin, rather than due to a Build rpc call.
*
*
* bool is_automatic_rebuild = 2;
* @return The isAutomaticRebuild.
*/
@java.lang.Override
public boolean getIsAutomaticRebuild() {
return isAutomaticRebuild_;
}
/**
*
* Indicates whether the build was automatically started by the plugin, rather than due to a Build rpc call.
*
*
* bool is_automatic_rebuild = 2;
* @param value The isAutomaticRebuild to set.
* @return This builder for chaining.
*/
public Builder setIsAutomaticRebuild(boolean value) {
isAutomaticRebuild_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Indicates whether the build was automatically started by the plugin, rather than due to a Build rpc call.
*
*
* bool is_automatic_rebuild = 2;
* @return This builder for chaining.
*/
public Builder clearIsAutomaticRebuild() {
bitField0_ = (bitField0_ & ~0x00000002);
isAutomaticRebuild_ = false;
onChanged();
return this;
}
private xyz.block.ftl.language.v1.ErrorList errors_;
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.language.v1.ErrorList, xyz.block.ftl.language.v1.ErrorList.Builder, xyz.block.ftl.language.v1.ErrorListOrBuilder> errorsBuilder_;
/**
*
* Errors contains any errors that occurred during the build
*
*
* .xyz.block.ftl.language.v1.ErrorList errors = 3;
* @return Whether the errors field is set.
*/
public boolean hasErrors() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Errors contains any errors that occurred during the build
*
*
* .xyz.block.ftl.language.v1.ErrorList errors = 3;
* @return The errors.
*/
public xyz.block.ftl.language.v1.ErrorList getErrors() {
if (errorsBuilder_ == null) {
return errors_ == null ? xyz.block.ftl.language.v1.ErrorList.getDefaultInstance() : errors_;
} else {
return errorsBuilder_.getMessage();
}
}
/**
*
* Errors contains any errors that occurred during the build
*
*
* .xyz.block.ftl.language.v1.ErrorList errors = 3;
*/
public Builder setErrors(xyz.block.ftl.language.v1.ErrorList value) {
if (errorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
errors_ = value;
} else {
errorsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Errors contains any errors that occurred during the build
*
*
* .xyz.block.ftl.language.v1.ErrorList errors = 3;
*/
public Builder setErrors(
xyz.block.ftl.language.v1.ErrorList.Builder builderForValue) {
if (errorsBuilder_ == null) {
errors_ = builderForValue.build();
} else {
errorsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Errors contains any errors that occurred during the build
*
*
* .xyz.block.ftl.language.v1.ErrorList errors = 3;
*/
public Builder mergeErrors(xyz.block.ftl.language.v1.ErrorList value) {
if (errorsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
errors_ != null &&
errors_ != xyz.block.ftl.language.v1.ErrorList.getDefaultInstance()) {
getErrorsBuilder().mergeFrom(value);
} else {
errors_ = value;
}
} else {
errorsBuilder_.mergeFrom(value);
}
if (errors_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* Errors contains any errors that occurred during the build
*
*
* .xyz.block.ftl.language.v1.ErrorList errors = 3;
*/
public Builder clearErrors() {
bitField0_ = (bitField0_ & ~0x00000004);
errors_ = null;
if (errorsBuilder_ != null) {
errorsBuilder_.dispose();
errorsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Errors contains any errors that occurred during the build
*
*
* .xyz.block.ftl.language.v1.ErrorList errors = 3;
*/
public xyz.block.ftl.language.v1.ErrorList.Builder getErrorsBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getErrorsFieldBuilder().getBuilder();
}
/**
*
* Errors contains any errors that occurred during the build
*
*
* .xyz.block.ftl.language.v1.ErrorList errors = 3;
*/
public xyz.block.ftl.language.v1.ErrorListOrBuilder getErrorsOrBuilder() {
if (errorsBuilder_ != null) {
return errorsBuilder_.getMessageOrBuilder();
} else {
return errors_ == null ?
xyz.block.ftl.language.v1.ErrorList.getDefaultInstance() : errors_;
}
}
/**
*
* Errors contains any errors that occurred during the build
*
*
* .xyz.block.ftl.language.v1.ErrorList errors = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.language.v1.ErrorList, xyz.block.ftl.language.v1.ErrorList.Builder, xyz.block.ftl.language.v1.ErrorListOrBuilder>
getErrorsFieldBuilder() {
if (errorsBuilder_ == null) {
errorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.language.v1.ErrorList, xyz.block.ftl.language.v1.ErrorList.Builder, xyz.block.ftl.language.v1.ErrorListOrBuilder>(
getErrors(),
getParentForChildren(),
isClean());
errors_ = null;
}
return errorsBuilder_;
}
private boolean invalidateDependencies_ ;
/**
*
* Indicates the plugin determined that the dependencies in the BuildContext are out of date.
* If a Build stream is being kept open for automatic rebuilds, FTL will call GetDependencies, followed by
* BuildContextUpdated.
*
*
* bool invalidate_dependencies = 4;
* @return The invalidateDependencies.
*/
@java.lang.Override
public boolean getInvalidateDependencies() {
return invalidateDependencies_;
}
/**
*
* Indicates the plugin determined that the dependencies in the BuildContext are out of date.
* If a Build stream is being kept open for automatic rebuilds, FTL will call GetDependencies, followed by
* BuildContextUpdated.
*
*
* bool invalidate_dependencies = 4;
* @param value The invalidateDependencies to set.
* @return This builder for chaining.
*/
public Builder setInvalidateDependencies(boolean value) {
invalidateDependencies_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Indicates the plugin determined that the dependencies in the BuildContext are out of date.
* If a Build stream is being kept open for automatic rebuilds, FTL will call GetDependencies, followed by
* BuildContextUpdated.
*
*
* bool invalidate_dependencies = 4;
* @return This builder for chaining.
*/
public Builder clearInvalidateDependencies() {
bitField0_ = (bitField0_ & ~0x00000008);
invalidateDependencies_ = false;
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:xyz.block.ftl.language.v1.BuildFailure)
}
// @@protoc_insertion_point(class_scope:xyz.block.ftl.language.v1.BuildFailure)
private static final xyz.block.ftl.language.v1.BuildFailure DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xyz.block.ftl.language.v1.BuildFailure();
}
public static xyz.block.ftl.language.v1.BuildFailure getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BuildFailure 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 xyz.block.ftl.language.v1.BuildFailure getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy