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

xyz.block.ftl.v1.language.BuildContext 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;

/**
 * 
 * BuildContext contains contextual information needed to build.
 *
 * Plugins must include the build context's id when a build succeeds or fails.
 * For automatic rebuilds, plugins must use the most recent build context they have received.
 * 
* * Protobuf type {@code xyz.block.ftl.v1.language.BuildContext} */ public final class BuildContext extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.language.BuildContext) BuildContextOrBuilder { private static final long serialVersionUID = 0L; // Use BuildContext.newBuilder() to construct. private BuildContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BuildContext() { id_ = ""; dependencies_ = com.google.protobuf.LazyStringArrayList.emptyList(); buildEnv_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BuildContext(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_BuildContext_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_BuildContext_fieldAccessorTable .ensureFieldAccessorsInitialized( xyz.block.ftl.v1.language.BuildContext.class, xyz.block.ftl.v1.language.BuildContext.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MODULE_CONFIG_FIELD_NUMBER = 2; private xyz.block.ftl.v1.language.ModuleConfig moduleConfig_; /** *
   * The configuration for the module
   * 
* * .xyz.block.ftl.v1.language.ModuleConfig module_config = 2; * @return Whether the moduleConfig field is set. */ @java.lang.Override public boolean hasModuleConfig() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The configuration for the module
   * 
* * .xyz.block.ftl.v1.language.ModuleConfig module_config = 2; * @return The moduleConfig. */ @java.lang.Override public xyz.block.ftl.v1.language.ModuleConfig getModuleConfig() { return moduleConfig_ == null ? xyz.block.ftl.v1.language.ModuleConfig.getDefaultInstance() : moduleConfig_; } /** *
   * The configuration for the module
   * 
* * .xyz.block.ftl.v1.language.ModuleConfig module_config = 2; */ @java.lang.Override public xyz.block.ftl.v1.language.ModuleConfigOrBuilder getModuleConfigOrBuilder() { return moduleConfig_ == null ? xyz.block.ftl.v1.language.ModuleConfig.getDefaultInstance() : moduleConfig_; } public static final int SCHEMA_FIELD_NUMBER = 3; private xyz.block.ftl.v1.schema.Schema schema_; /** *
   * The FTL schema including all dependencies
   * 
* * .xyz.block.ftl.v1.schema.Schema schema = 3; * @return Whether the schema field is set. */ @java.lang.Override public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The FTL schema including all dependencies
   * 
* * .xyz.block.ftl.v1.schema.Schema schema = 3; * @return The schema. */ @java.lang.Override public xyz.block.ftl.v1.schema.Schema getSchema() { return schema_ == null ? xyz.block.ftl.v1.schema.Schema.getDefaultInstance() : schema_; } /** *
   * The FTL schema including all dependencies
   * 
* * .xyz.block.ftl.v1.schema.Schema schema = 3; */ @java.lang.Override public xyz.block.ftl.v1.schema.SchemaOrBuilder getSchemaOrBuilder() { return schema_ == null ? xyz.block.ftl.v1.schema.Schema.getDefaultInstance() : schema_; } public static final int DEPENDENCIES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList dependencies_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * The dependencies for the module
   * 
* * repeated string dependencies = 4; * @return A list containing the dependencies. */ public com.google.protobuf.ProtocolStringList getDependenciesList() { return dependencies_; } /** *
   * The dependencies for the module
   * 
* * repeated string dependencies = 4; * @return The count of dependencies. */ public int getDependenciesCount() { return dependencies_.size(); } /** *
   * The dependencies for the module
   * 
* * repeated string dependencies = 4; * @param index The index of the element to return. * @return The dependencies at the given index. */ public java.lang.String getDependencies(int index) { return dependencies_.get(index); } /** *
   * The dependencies for the module
   * 
* * repeated string dependencies = 4; * @param index The index of the value to return. * @return The bytes of the dependencies at the given index. */ public com.google.protobuf.ByteString getDependenciesBytes(int index) { return dependencies_.getByteString(index); } public static final int BUILD_ENV_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList buildEnv_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * Build environment provides environment variables to be set for the build command
   * 
* * repeated string build_env = 5; * @return A list containing the buildEnv. */ public com.google.protobuf.ProtocolStringList getBuildEnvList() { return buildEnv_; } /** *
   * Build environment provides environment variables to be set for the build command
   * 
* * repeated string build_env = 5; * @return The count of buildEnv. */ public int getBuildEnvCount() { return buildEnv_.size(); } /** *
   * Build environment provides environment variables to be set for the build command
   * 
* * repeated string build_env = 5; * @param index The index of the element to return. * @return The buildEnv at the given index. */ public java.lang.String getBuildEnv(int index) { return buildEnv_.get(index); } /** *
   * Build environment provides environment variables to be set for the build command
   * 
* * repeated string build_env = 5; * @param index The index of the value to return. * @return The bytes of the buildEnv at the given index. */ public com.google.protobuf.ByteString getBuildEnvBytes(int index) { return buildEnv_.getByteString(index); } 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getModuleConfig()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getSchema()); } for (int i = 0; i < dependencies_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dependencies_.getRaw(i)); } for (int i = 0; i < buildEnv_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, buildEnv_.getRaw(i)); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getModuleConfig()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSchema()); } { int dataSize = 0; for (int i = 0; i < dependencies_.size(); i++) { dataSize += computeStringSizeNoTag(dependencies_.getRaw(i)); } size += dataSize; size += 1 * getDependenciesList().size(); } { int dataSize = 0; for (int i = 0; i < buildEnv_.size(); i++) { dataSize += computeStringSizeNoTag(buildEnv_.getRaw(i)); } size += dataSize; size += 1 * getBuildEnvList().size(); } 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.BuildContext)) { return super.equals(obj); } xyz.block.ftl.v1.language.BuildContext other = (xyz.block.ftl.v1.language.BuildContext) obj; if (!getId() .equals(other.getId())) return false; if (hasModuleConfig() != other.hasModuleConfig()) return false; if (hasModuleConfig()) { if (!getModuleConfig() .equals(other.getModuleConfig())) return false; } if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { if (!getSchema() .equals(other.getSchema())) return false; } if (!getDependenciesList() .equals(other.getDependenciesList())) return false; if (!getBuildEnvList() .equals(other.getBuildEnvList())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); if (hasModuleConfig()) { hash = (37 * hash) + MODULE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getModuleConfig().hashCode(); } if (hasSchema()) { hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); } if (getDependenciesCount() > 0) { hash = (37 * hash) + DEPENDENCIES_FIELD_NUMBER; hash = (53 * hash) + getDependenciesList().hashCode(); } if (getBuildEnvCount() > 0) { hash = (37 * hash) + BUILD_ENV_FIELD_NUMBER; hash = (53 * hash) + getBuildEnvList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static xyz.block.ftl.v1.language.BuildContext parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.BuildContext 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.BuildContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.BuildContext 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.BuildContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.BuildContext 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.BuildContext parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xyz.block.ftl.v1.language.BuildContext 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.BuildContext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static xyz.block.ftl.v1.language.BuildContext 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.BuildContext 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.BuildContext 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.BuildContext 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; } /** *
   * BuildContext contains contextual information needed to build.
   *
   * Plugins must include the build context's id when a build succeeds or fails.
   * For automatic rebuilds, plugins must use the most recent build context they have received.
   * 
* * Protobuf type {@code xyz.block.ftl.v1.language.BuildContext} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.language.BuildContext) xyz.block.ftl.v1.language.BuildContextOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_BuildContext_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_BuildContext_fieldAccessorTable .ensureFieldAccessorsInitialized( xyz.block.ftl.v1.language.BuildContext.class, xyz.block.ftl.v1.language.BuildContext.Builder.class); } // Construct using xyz.block.ftl.v1.language.BuildContext.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getModuleConfigFieldBuilder(); getSchemaFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; moduleConfig_ = null; if (moduleConfigBuilder_ != null) { moduleConfigBuilder_.dispose(); moduleConfigBuilder_ = null; } schema_ = null; if (schemaBuilder_ != null) { schemaBuilder_.dispose(); schemaBuilder_ = null; } dependencies_ = com.google.protobuf.LazyStringArrayList.emptyList(); buildEnv_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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_BuildContext_descriptor; } @java.lang.Override public xyz.block.ftl.v1.language.BuildContext getDefaultInstanceForType() { return xyz.block.ftl.v1.language.BuildContext.getDefaultInstance(); } @java.lang.Override public xyz.block.ftl.v1.language.BuildContext build() { xyz.block.ftl.v1.language.BuildContext result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public xyz.block.ftl.v1.language.BuildContext buildPartial() { xyz.block.ftl.v1.language.BuildContext result = new xyz.block.ftl.v1.language.BuildContext(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(xyz.block.ftl.v1.language.BuildContext result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.moduleConfig_ = moduleConfigBuilder_ == null ? moduleConfig_ : moduleConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { dependencies_.makeImmutable(); result.dependencies_ = dependencies_; } if (((from_bitField0_ & 0x00000010) != 0)) { buildEnv_.makeImmutable(); result.buildEnv_ = buildEnv_; } 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.BuildContext) { return mergeFrom((xyz.block.ftl.v1.language.BuildContext)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(xyz.block.ftl.v1.language.BuildContext other) { if (other == xyz.block.ftl.v1.language.BuildContext.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasModuleConfig()) { mergeModuleConfig(other.getModuleConfig()); } if (other.hasSchema()) { mergeSchema(other.getSchema()); } if (!other.dependencies_.isEmpty()) { if (dependencies_.isEmpty()) { dependencies_ = other.dependencies_; bitField0_ |= 0x00000008; } else { ensureDependenciesIsMutable(); dependencies_.addAll(other.dependencies_); } onChanged(); } if (!other.buildEnv_.isEmpty()) { if (buildEnv_.isEmpty()) { buildEnv_ = other.buildEnv_; bitField0_ |= 0x00000010; } else { ensureBuildEnvIsMutable(); buildEnv_.addAll(other.buildEnv_); } onChanged(); } 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: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getModuleConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getSchemaFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureDependenciesIsMutable(); dependencies_.add(s); break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensureBuildEnvIsMutable(); buildEnv_.add(s); break; } // case 42 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 id_ = ""; /** * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private xyz.block.ftl.v1.language.ModuleConfig moduleConfig_; private com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.language.ModuleConfig, xyz.block.ftl.v1.language.ModuleConfig.Builder, xyz.block.ftl.v1.language.ModuleConfigOrBuilder> moduleConfigBuilder_; /** *
     * The configuration for the module
     * 
* * .xyz.block.ftl.v1.language.ModuleConfig module_config = 2; * @return Whether the moduleConfig field is set. */ public boolean hasModuleConfig() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The configuration for the module
     * 
* * .xyz.block.ftl.v1.language.ModuleConfig module_config = 2; * @return The moduleConfig. */ public xyz.block.ftl.v1.language.ModuleConfig getModuleConfig() { if (moduleConfigBuilder_ == null) { return moduleConfig_ == null ? xyz.block.ftl.v1.language.ModuleConfig.getDefaultInstance() : moduleConfig_; } else { return moduleConfigBuilder_.getMessage(); } } /** *
     * The configuration for the module
     * 
* * .xyz.block.ftl.v1.language.ModuleConfig module_config = 2; */ public Builder setModuleConfig(xyz.block.ftl.v1.language.ModuleConfig value) { if (moduleConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } moduleConfig_ = value; } else { moduleConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The configuration for the module
     * 
* * .xyz.block.ftl.v1.language.ModuleConfig module_config = 2; */ public Builder setModuleConfig( xyz.block.ftl.v1.language.ModuleConfig.Builder builderForValue) { if (moduleConfigBuilder_ == null) { moduleConfig_ = builderForValue.build(); } else { moduleConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The configuration for the module
     * 
* * .xyz.block.ftl.v1.language.ModuleConfig module_config = 2; */ public Builder mergeModuleConfig(xyz.block.ftl.v1.language.ModuleConfig value) { if (moduleConfigBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && moduleConfig_ != null && moduleConfig_ != xyz.block.ftl.v1.language.ModuleConfig.getDefaultInstance()) { getModuleConfigBuilder().mergeFrom(value); } else { moduleConfig_ = value; } } else { moduleConfigBuilder_.mergeFrom(value); } if (moduleConfig_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * The configuration for the module
     * 
* * .xyz.block.ftl.v1.language.ModuleConfig module_config = 2; */ public Builder clearModuleConfig() { bitField0_ = (bitField0_ & ~0x00000002); moduleConfig_ = null; if (moduleConfigBuilder_ != null) { moduleConfigBuilder_.dispose(); moduleConfigBuilder_ = null; } onChanged(); return this; } /** *
     * The configuration for the module
     * 
* * .xyz.block.ftl.v1.language.ModuleConfig module_config = 2; */ public xyz.block.ftl.v1.language.ModuleConfig.Builder getModuleConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getModuleConfigFieldBuilder().getBuilder(); } /** *
     * The configuration for the module
     * 
* * .xyz.block.ftl.v1.language.ModuleConfig module_config = 2; */ public xyz.block.ftl.v1.language.ModuleConfigOrBuilder getModuleConfigOrBuilder() { if (moduleConfigBuilder_ != null) { return moduleConfigBuilder_.getMessageOrBuilder(); } else { return moduleConfig_ == null ? xyz.block.ftl.v1.language.ModuleConfig.getDefaultInstance() : moduleConfig_; } } /** *
     * The configuration for the module
     * 
* * .xyz.block.ftl.v1.language.ModuleConfig module_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.language.ModuleConfig, xyz.block.ftl.v1.language.ModuleConfig.Builder, xyz.block.ftl.v1.language.ModuleConfigOrBuilder> getModuleConfigFieldBuilder() { if (moduleConfigBuilder_ == null) { moduleConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.language.ModuleConfig, xyz.block.ftl.v1.language.ModuleConfig.Builder, xyz.block.ftl.v1.language.ModuleConfigOrBuilder>( getModuleConfig(), getParentForChildren(), isClean()); moduleConfig_ = null; } return moduleConfigBuilder_; } private xyz.block.ftl.v1.schema.Schema schema_; private com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.schema.Schema, xyz.block.ftl.v1.schema.Schema.Builder, xyz.block.ftl.v1.schema.SchemaOrBuilder> schemaBuilder_; /** *
     * The FTL schema including all dependencies
     * 
* * .xyz.block.ftl.v1.schema.Schema schema = 3; * @return Whether the schema field is set. */ public boolean hasSchema() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The FTL schema including all dependencies
     * 
* * .xyz.block.ftl.v1.schema.Schema schema = 3; * @return The schema. */ public xyz.block.ftl.v1.schema.Schema getSchema() { if (schemaBuilder_ == null) { return schema_ == null ? xyz.block.ftl.v1.schema.Schema.getDefaultInstance() : schema_; } else { return schemaBuilder_.getMessage(); } } /** *
     * The FTL schema including all dependencies
     * 
* * .xyz.block.ftl.v1.schema.Schema schema = 3; */ public Builder setSchema(xyz.block.ftl.v1.schema.Schema value) { if (schemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schema_ = value; } else { schemaBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The FTL schema including all dependencies
     * 
* * .xyz.block.ftl.v1.schema.Schema schema = 3; */ public Builder setSchema( xyz.block.ftl.v1.schema.Schema.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); } else { schemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The FTL schema including all dependencies
     * 
* * .xyz.block.ftl.v1.schema.Schema schema = 3; */ public Builder mergeSchema(xyz.block.ftl.v1.schema.Schema value) { if (schemaBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && schema_ != null && schema_ != xyz.block.ftl.v1.schema.Schema.getDefaultInstance()) { getSchemaBuilder().mergeFrom(value); } else { schema_ = value; } } else { schemaBuilder_.mergeFrom(value); } if (schema_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * The FTL schema including all dependencies
     * 
* * .xyz.block.ftl.v1.schema.Schema schema = 3; */ public Builder clearSchema() { bitField0_ = (bitField0_ & ~0x00000004); schema_ = null; if (schemaBuilder_ != null) { schemaBuilder_.dispose(); schemaBuilder_ = null; } onChanged(); return this; } /** *
     * The FTL schema including all dependencies
     * 
* * .xyz.block.ftl.v1.schema.Schema schema = 3; */ public xyz.block.ftl.v1.schema.Schema.Builder getSchemaBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSchemaFieldBuilder().getBuilder(); } /** *
     * The FTL schema including all dependencies
     * 
* * .xyz.block.ftl.v1.schema.Schema schema = 3; */ public xyz.block.ftl.v1.schema.SchemaOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { return schema_ == null ? xyz.block.ftl.v1.schema.Schema.getDefaultInstance() : schema_; } } /** *
     * The FTL schema including all dependencies
     * 
* * .xyz.block.ftl.v1.schema.Schema schema = 3; */ private com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.schema.Schema, xyz.block.ftl.v1.schema.Schema.Builder, xyz.block.ftl.v1.schema.SchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< xyz.block.ftl.v1.schema.Schema, xyz.block.ftl.v1.schema.Schema.Builder, xyz.block.ftl.v1.schema.SchemaOrBuilder>( getSchema(), getParentForChildren(), isClean()); schema_ = null; } return schemaBuilder_; } private com.google.protobuf.LazyStringArrayList dependencies_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureDependenciesIsMutable() { if (!dependencies_.isModifiable()) { dependencies_ = new com.google.protobuf.LazyStringArrayList(dependencies_); } bitField0_ |= 0x00000008; } /** *
     * The dependencies for the module
     * 
* * repeated string dependencies = 4; * @return A list containing the dependencies. */ public com.google.protobuf.ProtocolStringList getDependenciesList() { dependencies_.makeImmutable(); return dependencies_; } /** *
     * The dependencies for the module
     * 
* * repeated string dependencies = 4; * @return The count of dependencies. */ public int getDependenciesCount() { return dependencies_.size(); } /** *
     * The dependencies for the module
     * 
* * repeated string dependencies = 4; * @param index The index of the element to return. * @return The dependencies at the given index. */ public java.lang.String getDependencies(int index) { return dependencies_.get(index); } /** *
     * The dependencies for the module
     * 
* * repeated string dependencies = 4; * @param index The index of the value to return. * @return The bytes of the dependencies at the given index. */ public com.google.protobuf.ByteString getDependenciesBytes(int index) { return dependencies_.getByteString(index); } /** *
     * The dependencies for the module
     * 
* * repeated string dependencies = 4; * @param index The index to set the value at. * @param value The dependencies to set. * @return This builder for chaining. */ public Builder setDependencies( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDependenciesIsMutable(); dependencies_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The dependencies for the module
     * 
* * repeated string dependencies = 4; * @param value The dependencies to add. * @return This builder for chaining. */ public Builder addDependencies( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDependenciesIsMutable(); dependencies_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The dependencies for the module
     * 
* * repeated string dependencies = 4; * @param values The dependencies to add. * @return This builder for chaining. */ public Builder addAllDependencies( java.lang.Iterable values) { ensureDependenciesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dependencies_); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The dependencies for the module
     * 
* * repeated string dependencies = 4; * @return This builder for chaining. */ public Builder clearDependencies() { dependencies_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** *
     * The dependencies for the module
     * 
* * repeated string dependencies = 4; * @param value The bytes of the dependencies to add. * @return This builder for chaining. */ public Builder addDependenciesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDependenciesIsMutable(); dependencies_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList buildEnv_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureBuildEnvIsMutable() { if (!buildEnv_.isModifiable()) { buildEnv_ = new com.google.protobuf.LazyStringArrayList(buildEnv_); } bitField0_ |= 0x00000010; } /** *
     * Build environment provides environment variables to be set for the build command
     * 
* * repeated string build_env = 5; * @return A list containing the buildEnv. */ public com.google.protobuf.ProtocolStringList getBuildEnvList() { buildEnv_.makeImmutable(); return buildEnv_; } /** *
     * Build environment provides environment variables to be set for the build command
     * 
* * repeated string build_env = 5; * @return The count of buildEnv. */ public int getBuildEnvCount() { return buildEnv_.size(); } /** *
     * Build environment provides environment variables to be set for the build command
     * 
* * repeated string build_env = 5; * @param index The index of the element to return. * @return The buildEnv at the given index. */ public java.lang.String getBuildEnv(int index) { return buildEnv_.get(index); } /** *
     * Build environment provides environment variables to be set for the build command
     * 
* * repeated string build_env = 5; * @param index The index of the value to return. * @return The bytes of the buildEnv at the given index. */ public com.google.protobuf.ByteString getBuildEnvBytes(int index) { return buildEnv_.getByteString(index); } /** *
     * Build environment provides environment variables to be set for the build command
     * 
* * repeated string build_env = 5; * @param index The index to set the value at. * @param value The buildEnv to set. * @return This builder for chaining. */ public Builder setBuildEnv( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureBuildEnvIsMutable(); buildEnv_.set(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Build environment provides environment variables to be set for the build command
     * 
* * repeated string build_env = 5; * @param value The buildEnv to add. * @return This builder for chaining. */ public Builder addBuildEnv( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureBuildEnvIsMutable(); buildEnv_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Build environment provides environment variables to be set for the build command
     * 
* * repeated string build_env = 5; * @param values The buildEnv to add. * @return This builder for chaining. */ public Builder addAllBuildEnv( java.lang.Iterable values) { ensureBuildEnvIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, buildEnv_); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Build environment provides environment variables to be set for the build command
     * 
* * repeated string build_env = 5; * @return This builder for chaining. */ public Builder clearBuildEnv() { buildEnv_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** *
     * Build environment provides environment variables to be set for the build command
     * 
* * repeated string build_env = 5; * @param value The bytes of the buildEnv to add. * @return This builder for chaining. */ public Builder addBuildEnvBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureBuildEnvIsMutable(); buildEnv_.add(value); bitField0_ |= 0x00000010; 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.v1.language.BuildContext) } // @@protoc_insertion_point(class_scope:xyz.block.ftl.v1.language.BuildContext) private static final xyz.block.ftl.v1.language.BuildContext DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new xyz.block.ftl.v1.language.BuildContext(); } public static xyz.block.ftl.v1.language.BuildContext getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BuildContext 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.BuildContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy