All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.block.ftl.v1.language.BuildSuccess Maven / Gradle / Ivy

There is a newer version: 0.397.2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: xyz/block/ftl/v1/language/language.proto

// Protobuf Java Version: 3.25.4
package xyz.block.ftl.v1.language;

/**
 * 
 * BuildSuccess should be sent when a build succeeds.
 *
 * FTL may ignore this event if it does not match FTL's current build context and state.
 * 
* * Protobuf type {@code xyz.block.ftl.v1.language.BuildSuccess} */ public final class BuildSuccess extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.language.BuildSuccess) BuildSuccessOrBuilder { private static final long serialVersionUID = 0L; // Use BuildSuccess.newBuilder() to construct. private BuildSuccess(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BuildSuccess() { contextId_ = ""; deploy_ = com.google.protobuf.LazyStringArrayList.emptyList(); dockerImage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BuildSuccess(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_BuildSuccess_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_BuildSuccess_fieldAccessorTable .ensureFieldAccessorsInitialized( xyz.block.ftl.v1.language.BuildSuccess.class, xyz.block.ftl.v1.language.BuildSuccess.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 MODULE_FIELD_NUMBER = 3; private xyz.block.ftl.v1.schema.Module module_; /** *
   * Module schema for the built module
   * 
* * .xyz.block.ftl.v1.schema.Module module = 3; * @return Whether the module field is set. */ @java.lang.Override public boolean hasModule() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Module schema for the built module
   * 
* * .xyz.block.ftl.v1.schema.Module module = 3; * @return The module. */ @java.lang.Override public xyz.block.ftl.v1.schema.Module getModule() { return module_ == null ? xyz.block.ftl.v1.schema.Module.getDefaultInstance() : module_; } /** *
   * Module schema for the built module
   * 
* * .xyz.block.ftl.v1.schema.Module module = 3; */ @java.lang.Override public xyz.block.ftl.v1.schema.ModuleOrBuilder getModuleOrBuilder() { return module_ == null ? xyz.block.ftl.v1.schema.Module.getDefaultInstance() : module_; } public static final int DEPLOY_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList deploy_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * Paths for files/directories to be deployed
   * 
* * repeated string deploy = 4; * @return A list containing the deploy. */ public com.google.protobuf.ProtocolStringList getDeployList() { return deploy_; } /** *
   * Paths for files/directories to be deployed
   * 
* * repeated string deploy = 4; * @return The count of deploy. */ public int getDeployCount() { return deploy_.size(); } /** *
   * Paths for files/directories to be deployed
   * 
* * repeated string deploy = 4; * @param index The index of the element to return. * @return The deploy at the given index. */ public java.lang.String getDeploy(int index) { return deploy_.get(index); } /** *
   * Paths for files/directories to be deployed
   * 
* * repeated string deploy = 4; * @param index The index of the value to return. * @return The bytes of the deploy at the given index. */ public com.google.protobuf.ByteString getDeployBytes(int index) { return deploy_.getByteString(index); } public static final int DOCKER_IMAGE_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object dockerImage_ = ""; /** *
   * Name of the docker image to use for the runner
   * 
* * string docker_image = 5; * @return The dockerImage. */ @java.lang.Override public java.lang.String getDockerImage() { java.lang.Object ref = dockerImage_; 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(); dockerImage_ = s; return s; } } /** *
   * Name of the docker image to use for the runner
   * 
* * string docker_image = 5; * @return The bytes for dockerImage. */ @java.lang.Override public com.google.protobuf.ByteString getDockerImageBytes() { java.lang.Object ref = dockerImage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dockerImage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ERRORS_FIELD_NUMBER = 6; private xyz.block.ftl.v1.language.ErrorList errors_; /** *
   * Errors contains any errors that occurred during the build
   * No errors can have a level of ERROR, instead a BuildFailure should be sent
   * Instead this is useful for INFO and WARN level errors.
   * 
* * .xyz.block.ftl.v1.language.ErrorList errors = 6; * @return Whether the errors field is set. */ @java.lang.Override public boolean hasErrors() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Errors contains any errors that occurred during the build
   * No errors can have a level of ERROR, instead a BuildFailure should be sent
   * Instead this is useful for INFO and WARN level errors.
   * 
* * .xyz.block.ftl.v1.language.ErrorList errors = 6; * @return The errors. */ @java.lang.Override public xyz.block.ftl.v1.language.ErrorList getErrors() { return errors_ == null ? xyz.block.ftl.v1.language.ErrorList.getDefaultInstance() : errors_; } /** *
   * Errors contains any errors that occurred during the build
   * No errors can have a level of ERROR, instead a BuildFailure should be sent
   * Instead this is useful for INFO and WARN level errors.
   * 
* * .xyz.block.ftl.v1.language.ErrorList errors = 6; */ @java.lang.Override public xyz.block.ftl.v1.language.ErrorListOrBuilder getErrorsOrBuilder() { return errors_ == null ? xyz.block.ftl.v1.language.ErrorList.getDefaultInstance() : errors_; } 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, getModule()); } for (int i = 0; i < deploy_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, deploy_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dockerImage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dockerImage_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getErrors()); } 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, getModule()); } { int dataSize = 0; for (int i = 0; i < deploy_.size(); i++) { dataSize += computeStringSizeNoTag(deploy_.getRaw(i)); } size += dataSize; size += 1 * getDeployList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dockerImage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, dockerImage_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getErrors()); } 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.v1.language.BuildSuccess)) { return super.equals(obj); } xyz.block.ftl.v1.language.BuildSuccess other = (xyz.block.ftl.v1.language.BuildSuccess) obj; if (!getContextId() .equals(other.getContextId())) return false; if (getIsAutomaticRebuild() != other.getIsAutomaticRebuild()) return false; if (hasModule() != other.hasModule()) return false; if (hasModule()) { if (!getModule() .equals(other.getModule())) return false; } if (!getDeployList() .equals(other.getDeployList())) return false; if (!getDockerImage() .equals(other.getDockerImage())) return false; if (hasErrors() != other.hasErrors()) return false; if (hasErrors()) { if (!getErrors() .equals(other.getErrors())) 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 (hasModule()) { hash = (37 * hash) + MODULE_FIELD_NUMBER; hash = (53 * hash) + getModule().hashCode(); } if (getDeployCount() > 0) { hash = (37 * hash) + DEPLOY_FIELD_NUMBER; hash = (53 * hash) + getDeployList().hashCode(); } hash = (37 * hash) + DOCKER_IMAGE_FIELD_NUMBER; hash = (53 * hash) + getDockerImage().hashCode(); if (hasErrors()) { hash = (37 * hash) + ERRORS_FIELD_NUMBER; hash = (53 * hash) + getErrors().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static xyz.block.ftl.v1.language.BuildSuccess parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.BuildSuccess 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.v1.language.BuildSuccess parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.BuildSuccess 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.v1.language.BuildSuccess parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.BuildSuccess parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xyz.block.ftl.v1.language.BuildSuccess parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xyz.block.ftl.v1.language.BuildSuccess 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.v1.language.BuildSuccess parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static xyz.block.ftl.v1.language.BuildSuccess 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.v1.language.BuildSuccess parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xyz.block.ftl.v1.language.BuildSuccess 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.v1.language.BuildSuccess 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; } /** *
   * BuildSuccess should be sent when a build succeeds.
   *
   * FTL may ignore this event if it does not match FTL's current build context and state.
   * 
* * Protobuf type {@code xyz.block.ftl.v1.language.BuildSuccess} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.language.BuildSuccess) xyz.block.ftl.v1.language.BuildSuccessOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_BuildSuccess_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_BuildSuccess_fieldAccessorTable .ensureFieldAccessorsInitialized( xyz.block.ftl.v1.language.BuildSuccess.class, xyz.block.ftl.v1.language.BuildSuccess.Builder.class); } // Construct using xyz.block.ftl.v1.language.BuildSuccess.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getModuleFieldBuilder(); getErrorsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; contextId_ = ""; isAutomaticRebuild_ = false; module_ = null; if (moduleBuilder_ != null) { moduleBuilder_.dispose(); moduleBuilder_ = null; } deploy_ = com.google.protobuf.LazyStringArrayList.emptyList(); dockerImage_ = ""; errors_ = null; if (errorsBuilder_ != null) { errorsBuilder_.dispose(); errorsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_BuildSuccess_descriptor; } @java.lang.Override public xyz.block.ftl.v1.language.BuildSuccess getDefaultInstanceForType() { return xyz.block.ftl.v1.language.BuildSuccess.getDefaultInstance(); } @java.lang.Override public xyz.block.ftl.v1.language.BuildSuccess build() { xyz.block.ftl.v1.language.BuildSuccess result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public xyz.block.ftl.v1.language.BuildSuccess buildPartial() { xyz.block.ftl.v1.language.BuildSuccess result = new xyz.block.ftl.v1.language.BuildSuccess(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(xyz.block.ftl.v1.language.BuildSuccess 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.module_ = moduleBuilder_ == null ? module_ : moduleBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { deploy_.makeImmutable(); result.deploy_ = deploy_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.dockerImage_ = dockerImage_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.errors_ = errorsBuilder_ == null ? errors_ : errorsBuilder_.build(); to_bitField0_ |= 0x00000002; } 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.v1.language.BuildSuccess) { return mergeFrom((xyz.block.ftl.v1.language.BuildSuccess)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(xyz.block.ftl.v1.language.BuildSuccess other) { if (other == xyz.block.ftl.v1.language.BuildSuccess.getDefaultInstance()) return this; if (!other.getContextId().isEmpty()) { contextId_ = other.contextId_; bitField0_ |= 0x00000001; onChanged(); } if (other.getIsAutomaticRebuild() != false) { setIsAutomaticRebuild(other.getIsAutomaticRebuild()); } if (other.hasModule()) { mergeModule(other.getModule()); } if (!other.deploy_.isEmpty()) { if (deploy_.isEmpty()) { deploy_ = other.deploy_; bitField0_ |= 0x00000008; } else { ensureDeployIsMutable(); deploy_.addAll(other.deploy_); } onChanged(); } if (!other.getDockerImage().isEmpty()) { dockerImage_ = other.dockerImage_; bitField0_ |= 0x00000010; onChanged(); } if (other.hasErrors()) { mergeErrors(other.getErrors()); } 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( getModuleFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureDeployIsMutable(); deploy_.add(s); break; } // case 34 case 42: { dockerImage_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getErrorsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 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.v1.schema.Module module_; private com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.schema.Module, xyz.block.ftl.v1.schema.Module.Builder, xyz.block.ftl.v1.schema.ModuleOrBuilder> moduleBuilder_; /** *
     * Module schema for the built module
     * 
* * .xyz.block.ftl.v1.schema.Module module = 3; * @return Whether the module field is set. */ public boolean hasModule() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Module schema for the built module
     * 
* * .xyz.block.ftl.v1.schema.Module module = 3; * @return The module. */ public xyz.block.ftl.v1.schema.Module getModule() { if (moduleBuilder_ == null) { return module_ == null ? xyz.block.ftl.v1.schema.Module.getDefaultInstance() : module_; } else { return moduleBuilder_.getMessage(); } } /** *
     * Module schema for the built module
     * 
* * .xyz.block.ftl.v1.schema.Module module = 3; */ public Builder setModule(xyz.block.ftl.v1.schema.Module value) { if (moduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } module_ = value; } else { moduleBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Module schema for the built module
     * 
* * .xyz.block.ftl.v1.schema.Module module = 3; */ public Builder setModule( xyz.block.ftl.v1.schema.Module.Builder builderForValue) { if (moduleBuilder_ == null) { module_ = builderForValue.build(); } else { moduleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Module schema for the built module
     * 
* * .xyz.block.ftl.v1.schema.Module module = 3; */ public Builder mergeModule(xyz.block.ftl.v1.schema.Module value) { if (moduleBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && module_ != null && module_ != xyz.block.ftl.v1.schema.Module.getDefaultInstance()) { getModuleBuilder().mergeFrom(value); } else { module_ = value; } } else { moduleBuilder_.mergeFrom(value); } if (module_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * Module schema for the built module
     * 
* * .xyz.block.ftl.v1.schema.Module module = 3; */ public Builder clearModule() { bitField0_ = (bitField0_ & ~0x00000004); module_ = null; if (moduleBuilder_ != null) { moduleBuilder_.dispose(); moduleBuilder_ = null; } onChanged(); return this; } /** *
     * Module schema for the built module
     * 
* * .xyz.block.ftl.v1.schema.Module module = 3; */ public xyz.block.ftl.v1.schema.Module.Builder getModuleBuilder() { bitField0_ |= 0x00000004; onChanged(); return getModuleFieldBuilder().getBuilder(); } /** *
     * Module schema for the built module
     * 
* * .xyz.block.ftl.v1.schema.Module module = 3; */ public xyz.block.ftl.v1.schema.ModuleOrBuilder getModuleOrBuilder() { if (moduleBuilder_ != null) { return moduleBuilder_.getMessageOrBuilder(); } else { return module_ == null ? xyz.block.ftl.v1.schema.Module.getDefaultInstance() : module_; } } /** *
     * Module schema for the built module
     * 
* * .xyz.block.ftl.v1.schema.Module module = 3; */ private com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.schema.Module, xyz.block.ftl.v1.schema.Module.Builder, xyz.block.ftl.v1.schema.ModuleOrBuilder> getModuleFieldBuilder() { if (moduleBuilder_ == null) { moduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.schema.Module, xyz.block.ftl.v1.schema.Module.Builder, xyz.block.ftl.v1.schema.ModuleOrBuilder>( getModule(), getParentForChildren(), isClean()); module_ = null; } return moduleBuilder_; } private com.google.protobuf.LazyStringArrayList deploy_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDeployIsMutable() { if (!deploy_.isModifiable()) { deploy_ = new com.google.protobuf.LazyStringArrayList(deploy_); } bitField0_ |= 0x00000008; } /** *
     * Paths for files/directories to be deployed
     * 
* * repeated string deploy = 4; * @return A list containing the deploy. */ public com.google.protobuf.ProtocolStringList getDeployList() { deploy_.makeImmutable(); return deploy_; } /** *
     * Paths for files/directories to be deployed
     * 
* * repeated string deploy = 4; * @return The count of deploy. */ public int getDeployCount() { return deploy_.size(); } /** *
     * Paths for files/directories to be deployed
     * 
* * repeated string deploy = 4; * @param index The index of the element to return. * @return The deploy at the given index. */ public java.lang.String getDeploy(int index) { return deploy_.get(index); } /** *
     * Paths for files/directories to be deployed
     * 
* * repeated string deploy = 4; * @param index The index of the value to return. * @return The bytes of the deploy at the given index. */ public com.google.protobuf.ByteString getDeployBytes(int index) { return deploy_.getByteString(index); } /** *
     * Paths for files/directories to be deployed
     * 
* * repeated string deploy = 4; * @param index The index to set the value at. * @param value The deploy to set. * @return This builder for chaining. */ public Builder setDeploy( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDeployIsMutable(); deploy_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Paths for files/directories to be deployed
     * 
* * repeated string deploy = 4; * @param value The deploy to add. * @return This builder for chaining. */ public Builder addDeploy( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDeployIsMutable(); deploy_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Paths for files/directories to be deployed
     * 
* * repeated string deploy = 4; * @param values The deploy to add. * @return This builder for chaining. */ public Builder addAllDeploy( java.lang.Iterable values) { ensureDeployIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, deploy_); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Paths for files/directories to be deployed
     * 
* * repeated string deploy = 4; * @return This builder for chaining. */ public Builder clearDeploy() { deploy_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** *
     * Paths for files/directories to be deployed
     * 
* * repeated string deploy = 4; * @param value The bytes of the deploy to add. * @return This builder for chaining. */ public Builder addDeployBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDeployIsMutable(); deploy_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object dockerImage_ = ""; /** *
     * Name of the docker image to use for the runner
     * 
* * string docker_image = 5; * @return The dockerImage. */ public java.lang.String getDockerImage() { java.lang.Object ref = dockerImage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dockerImage_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Name of the docker image to use for the runner
     * 
* * string docker_image = 5; * @return The bytes for dockerImage. */ public com.google.protobuf.ByteString getDockerImageBytes() { java.lang.Object ref = dockerImage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dockerImage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Name of the docker image to use for the runner
     * 
* * string docker_image = 5; * @param value The dockerImage to set. * @return This builder for chaining. */ public Builder setDockerImage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dockerImage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Name of the docker image to use for the runner
     * 
* * string docker_image = 5; * @return This builder for chaining. */ public Builder clearDockerImage() { dockerImage_ = getDefaultInstance().getDockerImage(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * Name of the docker image to use for the runner
     * 
* * string docker_image = 5; * @param value The bytes for dockerImage to set. * @return This builder for chaining. */ public Builder setDockerImageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dockerImage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private xyz.block.ftl.v1.language.ErrorList errors_; private com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.language.ErrorList, xyz.block.ftl.v1.language.ErrorList.Builder, xyz.block.ftl.v1.language.ErrorListOrBuilder> errorsBuilder_; /** *
     * Errors contains any errors that occurred during the build
     * No errors can have a level of ERROR, instead a BuildFailure should be sent
     * Instead this is useful for INFO and WARN level errors.
     * 
* * .xyz.block.ftl.v1.language.ErrorList errors = 6; * @return Whether the errors field is set. */ public boolean hasErrors() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Errors contains any errors that occurred during the build
     * No errors can have a level of ERROR, instead a BuildFailure should be sent
     * Instead this is useful for INFO and WARN level errors.
     * 
* * .xyz.block.ftl.v1.language.ErrorList errors = 6; * @return The errors. */ public xyz.block.ftl.v1.language.ErrorList getErrors() { if (errorsBuilder_ == null) { return errors_ == null ? xyz.block.ftl.v1.language.ErrorList.getDefaultInstance() : errors_; } else { return errorsBuilder_.getMessage(); } } /** *
     * Errors contains any errors that occurred during the build
     * No errors can have a level of ERROR, instead a BuildFailure should be sent
     * Instead this is useful for INFO and WARN level errors.
     * 
* * .xyz.block.ftl.v1.language.ErrorList errors = 6; */ public Builder setErrors(xyz.block.ftl.v1.language.ErrorList value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } errors_ = value; } else { errorsBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Errors contains any errors that occurred during the build
     * No errors can have a level of ERROR, instead a BuildFailure should be sent
     * Instead this is useful for INFO and WARN level errors.
     * 
* * .xyz.block.ftl.v1.language.ErrorList errors = 6; */ public Builder setErrors( xyz.block.ftl.v1.language.ErrorList.Builder builderForValue) { if (errorsBuilder_ == null) { errors_ = builderForValue.build(); } else { errorsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Errors contains any errors that occurred during the build
     * No errors can have a level of ERROR, instead a BuildFailure should be sent
     * Instead this is useful for INFO and WARN level errors.
     * 
* * .xyz.block.ftl.v1.language.ErrorList errors = 6; */ public Builder mergeErrors(xyz.block.ftl.v1.language.ErrorList value) { if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && errors_ != null && errors_ != xyz.block.ftl.v1.language.ErrorList.getDefaultInstance()) { getErrorsBuilder().mergeFrom(value); } else { errors_ = value; } } else { errorsBuilder_.mergeFrom(value); } if (errors_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
     * Errors contains any errors that occurred during the build
     * No errors can have a level of ERROR, instead a BuildFailure should be sent
     * Instead this is useful for INFO and WARN level errors.
     * 
* * .xyz.block.ftl.v1.language.ErrorList errors = 6; */ public Builder clearErrors() { bitField0_ = (bitField0_ & ~0x00000020); errors_ = null; if (errorsBuilder_ != null) { errorsBuilder_.dispose(); errorsBuilder_ = null; } onChanged(); return this; } /** *
     * Errors contains any errors that occurred during the build
     * No errors can have a level of ERROR, instead a BuildFailure should be sent
     * Instead this is useful for INFO and WARN level errors.
     * 
* * .xyz.block.ftl.v1.language.ErrorList errors = 6; */ public xyz.block.ftl.v1.language.ErrorList.Builder getErrorsBuilder() { bitField0_ |= 0x00000020; onChanged(); return getErrorsFieldBuilder().getBuilder(); } /** *
     * Errors contains any errors that occurred during the build
     * No errors can have a level of ERROR, instead a BuildFailure should be sent
     * Instead this is useful for INFO and WARN level errors.
     * 
* * .xyz.block.ftl.v1.language.ErrorList errors = 6; */ public xyz.block.ftl.v1.language.ErrorListOrBuilder getErrorsOrBuilder() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilder(); } else { return errors_ == null ? xyz.block.ftl.v1.language.ErrorList.getDefaultInstance() : errors_; } } /** *
     * Errors contains any errors that occurred during the build
     * No errors can have a level of ERROR, instead a BuildFailure should be sent
     * Instead this is useful for INFO and WARN level errors.
     * 
* * .xyz.block.ftl.v1.language.ErrorList errors = 6; */ private com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.language.ErrorList, xyz.block.ftl.v1.language.ErrorList.Builder, xyz.block.ftl.v1.language.ErrorListOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { errorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.language.ErrorList, xyz.block.ftl.v1.language.ErrorList.Builder, xyz.block.ftl.v1.language.ErrorListOrBuilder>( getErrors(), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; } @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.v1.language.BuildSuccess) } // @@protoc_insertion_point(class_scope:xyz.block.ftl.v1.language.BuildSuccess) private static final xyz.block.ftl.v1.language.BuildSuccess DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new xyz.block.ftl.v1.language.BuildSuccess(); } public static xyz.block.ftl.v1.language.BuildSuccess getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BuildSuccess 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.v1.language.BuildSuccess getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy