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

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

/**
 * 
 * ModuleConfigDefaultsResponse provides defaults for ModuleConfig.
 *
 * The result may be cached by FTL, so defaulting logic should not be changing due to normal module changes.
 * For example, it is valid to return defaults based on which build tool is configured within the module directory,
 * as that is not expected to change during normal operation.
 * It is not recommended to read the module's toml file to determine defaults, as when the toml file is updated,
 * the module defaults will not be recalculated.
 * 
* * Protobuf type {@code xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse} */ public final class ModuleConfigDefaultsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse) ModuleConfigDefaultsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ModuleConfigDefaultsResponse.newBuilder() to construct. private ModuleConfigDefaultsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ModuleConfigDefaultsResponse() { deployDir_ = ""; build_ = ""; buildLock_ = ""; generatedSchemaDir_ = ""; watch_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ModuleConfigDefaultsResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_ModuleConfigDefaultsResponse_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_ModuleConfigDefaultsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse.class, xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse.Builder.class); } private int bitField0_; public static final int DEPLOY_DIR_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object deployDir_ = ""; /** *
   * Default relative path to the directory containing all build artifacts for deployments
   * 
* * string deploy_dir = 1; * @return The deployDir. */ @java.lang.Override public java.lang.String getDeployDir() { java.lang.Object ref = deployDir_; 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(); deployDir_ = s; return s; } } /** *
   * Default relative path to the directory containing all build artifacts for deployments
   * 
* * string deploy_dir = 1; * @return The bytes for deployDir. */ @java.lang.Override public com.google.protobuf.ByteString getDeployDirBytes() { java.lang.Object ref = deployDir_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deployDir_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUILD_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object build_ = ""; /** *
   * Default build command
   * 
* * optional string build = 2; * @return Whether the build field is set. */ @java.lang.Override public boolean hasBuild() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Default build command
   * 
* * optional string build = 2; * @return The build. */ @java.lang.Override public java.lang.String getBuild() { java.lang.Object ref = build_; 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(); build_ = s; return s; } } /** *
   * Default build command
   * 
* * optional string build = 2; * @return The bytes for build. */ @java.lang.Override public com.google.protobuf.ByteString getBuildBytes() { java.lang.Object ref = build_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); build_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BUILD_LOCK_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object buildLock_ = ""; /** *
   * Build lock path to prevent concurrent builds
   * 
* * optional string build_lock = 3; * @return Whether the buildLock field is set. */ @java.lang.Override public boolean hasBuildLock() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Build lock path to prevent concurrent builds
   * 
* * optional string build_lock = 3; * @return The buildLock. */ @java.lang.Override public java.lang.String getBuildLock() { java.lang.Object ref = buildLock_; 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(); buildLock_ = s; return s; } } /** *
   * Build lock path to prevent concurrent builds
   * 
* * optional string build_lock = 3; * @return The bytes for buildLock. */ @java.lang.Override public com.google.protobuf.ByteString getBuildLockBytes() { java.lang.Object ref = buildLock_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); buildLock_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GENERATED_SCHEMA_DIR_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object generatedSchemaDir_ = ""; /** *
   * Default relative path to the directory containing generated schema files
   * 
* * optional string generated_schema_dir = 4; * @return Whether the generatedSchemaDir field is set. */ @java.lang.Override public boolean hasGeneratedSchemaDir() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Default relative path to the directory containing generated schema files
   * 
* * optional string generated_schema_dir = 4; * @return The generatedSchemaDir. */ @java.lang.Override public java.lang.String getGeneratedSchemaDir() { java.lang.Object ref = generatedSchemaDir_; 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(); generatedSchemaDir_ = s; return s; } } /** *
   * Default relative path to the directory containing generated schema files
   * 
* * optional string generated_schema_dir = 4; * @return The bytes for generatedSchemaDir. */ @java.lang.Override public com.google.protobuf.ByteString getGeneratedSchemaDirBytes() { java.lang.Object ref = generatedSchemaDir_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); generatedSchemaDir_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WATCH_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList watch_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * Default patterns to watch for file changes, relative to the module directory
   * 
* * repeated string watch = 5; * @return A list containing the watch. */ public com.google.protobuf.ProtocolStringList getWatchList() { return watch_; } /** *
   * Default patterns to watch for file changes, relative to the module directory
   * 
* * repeated string watch = 5; * @return The count of watch. */ public int getWatchCount() { return watch_.size(); } /** *
   * Default patterns to watch for file changes, relative to the module directory
   * 
* * repeated string watch = 5; * @param index The index of the element to return. * @return The watch at the given index. */ public java.lang.String getWatch(int index) { return watch_.get(index); } /** *
   * Default patterns to watch for file changes, relative to the module directory
   * 
* * repeated string watch = 5; * @param index The index of the value to return. * @return The bytes of the watch at the given index. */ public com.google.protobuf.ByteString getWatchBytes(int index) { return watch_.getByteString(index); } public static final int LANGUAGE_CONFIG_FIELD_NUMBER = 6; private com.google.protobuf.Struct languageConfig_; /** *
   * Default language specific configuration.
   * These defaults are filled in by looking at each root key only. If the key is not present, the default is used.
   * 
* * .google.protobuf.Struct language_config = 6; * @return Whether the languageConfig field is set. */ @java.lang.Override public boolean hasLanguageConfig() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Default language specific configuration.
   * These defaults are filled in by looking at each root key only. If the key is not present, the default is used.
   * 
* * .google.protobuf.Struct language_config = 6; * @return The languageConfig. */ @java.lang.Override public com.google.protobuf.Struct getLanguageConfig() { return languageConfig_ == null ? com.google.protobuf.Struct.getDefaultInstance() : languageConfig_; } /** *
   * Default language specific configuration.
   * These defaults are filled in by looking at each root key only. If the key is not present, the default is used.
   * 
* * .google.protobuf.Struct language_config = 6; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getLanguageConfigOrBuilder() { return languageConfig_ == null ? com.google.protobuf.Struct.getDefaultInstance() : languageConfig_; } 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(deployDir_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deployDir_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, build_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, buildLock_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, generatedSchemaDir_); } for (int i = 0; i < watch_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, watch_.getRaw(i)); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(6, getLanguageConfig()); } 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(deployDir_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deployDir_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, build_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, buildLock_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, generatedSchemaDir_); } { int dataSize = 0; for (int i = 0; i < watch_.size(); i++) { dataSize += computeStringSizeNoTag(watch_.getRaw(i)); } size += dataSize; size += 1 * getWatchList().size(); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getLanguageConfig()); } 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.ModuleConfigDefaultsResponse)) { return super.equals(obj); } xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse other = (xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse) obj; if (!getDeployDir() .equals(other.getDeployDir())) return false; if (hasBuild() != other.hasBuild()) return false; if (hasBuild()) { if (!getBuild() .equals(other.getBuild())) return false; } if (hasBuildLock() != other.hasBuildLock()) return false; if (hasBuildLock()) { if (!getBuildLock() .equals(other.getBuildLock())) return false; } if (hasGeneratedSchemaDir() != other.hasGeneratedSchemaDir()) return false; if (hasGeneratedSchemaDir()) { if (!getGeneratedSchemaDir() .equals(other.getGeneratedSchemaDir())) return false; } if (!getWatchList() .equals(other.getWatchList())) return false; if (hasLanguageConfig() != other.hasLanguageConfig()) return false; if (hasLanguageConfig()) { if (!getLanguageConfig() .equals(other.getLanguageConfig())) 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) + DEPLOY_DIR_FIELD_NUMBER; hash = (53 * hash) + getDeployDir().hashCode(); if (hasBuild()) { hash = (37 * hash) + BUILD_FIELD_NUMBER; hash = (53 * hash) + getBuild().hashCode(); } if (hasBuildLock()) { hash = (37 * hash) + BUILD_LOCK_FIELD_NUMBER; hash = (53 * hash) + getBuildLock().hashCode(); } if (hasGeneratedSchemaDir()) { hash = (37 * hash) + GENERATED_SCHEMA_DIR_FIELD_NUMBER; hash = (53 * hash) + getGeneratedSchemaDir().hashCode(); } if (getWatchCount() > 0) { hash = (37 * hash) + WATCH_FIELD_NUMBER; hash = (53 * hash) + getWatchList().hashCode(); } if (hasLanguageConfig()) { hash = (37 * hash) + LANGUAGE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getLanguageConfig().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse 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.ModuleConfigDefaultsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse 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.ModuleConfigDefaultsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse 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.ModuleConfigDefaultsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse 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.ModuleConfigDefaultsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse 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.ModuleConfigDefaultsResponse 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.ModuleConfigDefaultsResponse 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.ModuleConfigDefaultsResponse 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; } /** *
   * ModuleConfigDefaultsResponse provides defaults for ModuleConfig.
   *
   * The result may be cached by FTL, so defaulting logic should not be changing due to normal module changes.
   * For example, it is valid to return defaults based on which build tool is configured within the module directory,
   * as that is not expected to change during normal operation.
   * It is not recommended to read the module's toml file to determine defaults, as when the toml file is updated,
   * the module defaults will not be recalculated.
   * 
* * Protobuf type {@code xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse) xyz.block.ftl.v1.language.ModuleConfigDefaultsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_ModuleConfigDefaultsResponse_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_ModuleConfigDefaultsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse.class, xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse.Builder.class); } // Construct using xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLanguageConfigFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; deployDir_ = ""; build_ = ""; buildLock_ = ""; generatedSchemaDir_ = ""; watch_ = com.google.protobuf.LazyStringArrayList.emptyList(); languageConfig_ = null; if (languageConfigBuilder_ != null) { languageConfigBuilder_.dispose(); languageConfigBuilder_ = 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_ModuleConfigDefaultsResponse_descriptor; } @java.lang.Override public xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse getDefaultInstanceForType() { return xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse.getDefaultInstance(); } @java.lang.Override public xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse build() { xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse buildPartial() { xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse result = new xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.deployDir_ = deployDir_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.build_ = build_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.buildLock_ = buildLock_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.generatedSchemaDir_ = generatedSchemaDir_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { watch_.makeImmutable(); result.watch_ = watch_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.languageConfig_ = languageConfigBuilder_ == null ? languageConfig_ : languageConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } 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.ModuleConfigDefaultsResponse) { return mergeFrom((xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse other) { if (other == xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse.getDefaultInstance()) return this; if (!other.getDeployDir().isEmpty()) { deployDir_ = other.deployDir_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasBuild()) { build_ = other.build_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasBuildLock()) { buildLock_ = other.buildLock_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasGeneratedSchemaDir()) { generatedSchemaDir_ = other.generatedSchemaDir_; bitField0_ |= 0x00000008; onChanged(); } if (!other.watch_.isEmpty()) { if (watch_.isEmpty()) { watch_ = other.watch_; bitField0_ |= 0x00000010; } else { ensureWatchIsMutable(); watch_.addAll(other.watch_); } onChanged(); } if (other.hasLanguageConfig()) { mergeLanguageConfig(other.getLanguageConfig()); } 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: { deployDir_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { build_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { buildLock_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { generatedSchemaDir_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensureWatchIsMutable(); watch_.add(s); break; } // case 42 case 50: { input.readMessage( getLanguageConfigFieldBuilder().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 deployDir_ = ""; /** *
     * Default relative path to the directory containing all build artifacts for deployments
     * 
* * string deploy_dir = 1; * @return The deployDir. */ public java.lang.String getDeployDir() { java.lang.Object ref = deployDir_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deployDir_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Default relative path to the directory containing all build artifacts for deployments
     * 
* * string deploy_dir = 1; * @return The bytes for deployDir. */ public com.google.protobuf.ByteString getDeployDirBytes() { java.lang.Object ref = deployDir_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deployDir_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Default relative path to the directory containing all build artifacts for deployments
     * 
* * string deploy_dir = 1; * @param value The deployDir to set. * @return This builder for chaining. */ public Builder setDeployDir( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deployDir_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Default relative path to the directory containing all build artifacts for deployments
     * 
* * string deploy_dir = 1; * @return This builder for chaining. */ public Builder clearDeployDir() { deployDir_ = getDefaultInstance().getDeployDir(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Default relative path to the directory containing all build artifacts for deployments
     * 
* * string deploy_dir = 1; * @param value The bytes for deployDir to set. * @return This builder for chaining. */ public Builder setDeployDirBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deployDir_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object build_ = ""; /** *
     * Default build command
     * 
* * optional string build = 2; * @return Whether the build field is set. */ public boolean hasBuild() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Default build command
     * 
* * optional string build = 2; * @return The build. */ public java.lang.String getBuild() { java.lang.Object ref = build_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); build_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Default build command
     * 
* * optional string build = 2; * @return The bytes for build. */ public com.google.protobuf.ByteString getBuildBytes() { java.lang.Object ref = build_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); build_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Default build command
     * 
* * optional string build = 2; * @param value The build to set. * @return This builder for chaining. */ public Builder setBuild( java.lang.String value) { if (value == null) { throw new NullPointerException(); } build_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Default build command
     * 
* * optional string build = 2; * @return This builder for chaining. */ public Builder clearBuild() { build_ = getDefaultInstance().getBuild(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Default build command
     * 
* * optional string build = 2; * @param value The bytes for build to set. * @return This builder for chaining. */ public Builder setBuildBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); build_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object buildLock_ = ""; /** *
     * Build lock path to prevent concurrent builds
     * 
* * optional string build_lock = 3; * @return Whether the buildLock field is set. */ public boolean hasBuildLock() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Build lock path to prevent concurrent builds
     * 
* * optional string build_lock = 3; * @return The buildLock. */ public java.lang.String getBuildLock() { java.lang.Object ref = buildLock_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); buildLock_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Build lock path to prevent concurrent builds
     * 
* * optional string build_lock = 3; * @return The bytes for buildLock. */ public com.google.protobuf.ByteString getBuildLockBytes() { java.lang.Object ref = buildLock_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); buildLock_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Build lock path to prevent concurrent builds
     * 
* * optional string build_lock = 3; * @param value The buildLock to set. * @return This builder for chaining. */ public Builder setBuildLock( java.lang.String value) { if (value == null) { throw new NullPointerException(); } buildLock_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Build lock path to prevent concurrent builds
     * 
* * optional string build_lock = 3; * @return This builder for chaining. */ public Builder clearBuildLock() { buildLock_ = getDefaultInstance().getBuildLock(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * Build lock path to prevent concurrent builds
     * 
* * optional string build_lock = 3; * @param value The bytes for buildLock to set. * @return This builder for chaining. */ public Builder setBuildLockBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); buildLock_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object generatedSchemaDir_ = ""; /** *
     * Default relative path to the directory containing generated schema files
     * 
* * optional string generated_schema_dir = 4; * @return Whether the generatedSchemaDir field is set. */ public boolean hasGeneratedSchemaDir() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Default relative path to the directory containing generated schema files
     * 
* * optional string generated_schema_dir = 4; * @return The generatedSchemaDir. */ public java.lang.String getGeneratedSchemaDir() { java.lang.Object ref = generatedSchemaDir_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); generatedSchemaDir_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Default relative path to the directory containing generated schema files
     * 
* * optional string generated_schema_dir = 4; * @return The bytes for generatedSchemaDir. */ public com.google.protobuf.ByteString getGeneratedSchemaDirBytes() { java.lang.Object ref = generatedSchemaDir_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); generatedSchemaDir_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Default relative path to the directory containing generated schema files
     * 
* * optional string generated_schema_dir = 4; * @param value The generatedSchemaDir to set. * @return This builder for chaining. */ public Builder setGeneratedSchemaDir( java.lang.String value) { if (value == null) { throw new NullPointerException(); } generatedSchemaDir_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Default relative path to the directory containing generated schema files
     * 
* * optional string generated_schema_dir = 4; * @return This builder for chaining. */ public Builder clearGeneratedSchemaDir() { generatedSchemaDir_ = getDefaultInstance().getGeneratedSchemaDir(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * Default relative path to the directory containing generated schema files
     * 
* * optional string generated_schema_dir = 4; * @param value The bytes for generatedSchemaDir to set. * @return This builder for chaining. */ public Builder setGeneratedSchemaDirBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); generatedSchemaDir_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList watch_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureWatchIsMutable() { if (!watch_.isModifiable()) { watch_ = new com.google.protobuf.LazyStringArrayList(watch_); } bitField0_ |= 0x00000010; } /** *
     * Default patterns to watch for file changes, relative to the module directory
     * 
* * repeated string watch = 5; * @return A list containing the watch. */ public com.google.protobuf.ProtocolStringList getWatchList() { watch_.makeImmutable(); return watch_; } /** *
     * Default patterns to watch for file changes, relative to the module directory
     * 
* * repeated string watch = 5; * @return The count of watch. */ public int getWatchCount() { return watch_.size(); } /** *
     * Default patterns to watch for file changes, relative to the module directory
     * 
* * repeated string watch = 5; * @param index The index of the element to return. * @return The watch at the given index. */ public java.lang.String getWatch(int index) { return watch_.get(index); } /** *
     * Default patterns to watch for file changes, relative to the module directory
     * 
* * repeated string watch = 5; * @param index The index of the value to return. * @return The bytes of the watch at the given index. */ public com.google.protobuf.ByteString getWatchBytes(int index) { return watch_.getByteString(index); } /** *
     * Default patterns to watch for file changes, relative to the module directory
     * 
* * repeated string watch = 5; * @param index The index to set the value at. * @param value The watch to set. * @return This builder for chaining. */ public Builder setWatch( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureWatchIsMutable(); watch_.set(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Default patterns to watch for file changes, relative to the module directory
     * 
* * repeated string watch = 5; * @param value The watch to add. * @return This builder for chaining. */ public Builder addWatch( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureWatchIsMutable(); watch_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Default patterns to watch for file changes, relative to the module directory
     * 
* * repeated string watch = 5; * @param values The watch to add. * @return This builder for chaining. */ public Builder addAllWatch( java.lang.Iterable values) { ensureWatchIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, watch_); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Default patterns to watch for file changes, relative to the module directory
     * 
* * repeated string watch = 5; * @return This builder for chaining. */ public Builder clearWatch() { watch_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** *
     * Default patterns to watch for file changes, relative to the module directory
     * 
* * repeated string watch = 5; * @param value The bytes of the watch to add. * @return This builder for chaining. */ public Builder addWatchBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureWatchIsMutable(); watch_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } private com.google.protobuf.Struct languageConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> languageConfigBuilder_; /** *
     * Default language specific configuration.
     * These defaults are filled in by looking at each root key only. If the key is not present, the default is used.
     * 
* * .google.protobuf.Struct language_config = 6; * @return Whether the languageConfig field is set. */ public boolean hasLanguageConfig() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Default language specific configuration.
     * These defaults are filled in by looking at each root key only. If the key is not present, the default is used.
     * 
* * .google.protobuf.Struct language_config = 6; * @return The languageConfig. */ public com.google.protobuf.Struct getLanguageConfig() { if (languageConfigBuilder_ == null) { return languageConfig_ == null ? com.google.protobuf.Struct.getDefaultInstance() : languageConfig_; } else { return languageConfigBuilder_.getMessage(); } } /** *
     * Default language specific configuration.
     * These defaults are filled in by looking at each root key only. If the key is not present, the default is used.
     * 
* * .google.protobuf.Struct language_config = 6; */ public Builder setLanguageConfig(com.google.protobuf.Struct value) { if (languageConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } languageConfig_ = value; } else { languageConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Default language specific configuration.
     * These defaults are filled in by looking at each root key only. If the key is not present, the default is used.
     * 
* * .google.protobuf.Struct language_config = 6; */ public Builder setLanguageConfig( com.google.protobuf.Struct.Builder builderForValue) { if (languageConfigBuilder_ == null) { languageConfig_ = builderForValue.build(); } else { languageConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Default language specific configuration.
     * These defaults are filled in by looking at each root key only. If the key is not present, the default is used.
     * 
* * .google.protobuf.Struct language_config = 6; */ public Builder mergeLanguageConfig(com.google.protobuf.Struct value) { if (languageConfigBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && languageConfig_ != null && languageConfig_ != com.google.protobuf.Struct.getDefaultInstance()) { getLanguageConfigBuilder().mergeFrom(value); } else { languageConfig_ = value; } } else { languageConfigBuilder_.mergeFrom(value); } if (languageConfig_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
     * Default language specific configuration.
     * These defaults are filled in by looking at each root key only. If the key is not present, the default is used.
     * 
* * .google.protobuf.Struct language_config = 6; */ public Builder clearLanguageConfig() { bitField0_ = (bitField0_ & ~0x00000020); languageConfig_ = null; if (languageConfigBuilder_ != null) { languageConfigBuilder_.dispose(); languageConfigBuilder_ = null; } onChanged(); return this; } /** *
     * Default language specific configuration.
     * These defaults are filled in by looking at each root key only. If the key is not present, the default is used.
     * 
* * .google.protobuf.Struct language_config = 6; */ public com.google.protobuf.Struct.Builder getLanguageConfigBuilder() { bitField0_ |= 0x00000020; onChanged(); return getLanguageConfigFieldBuilder().getBuilder(); } /** *
     * Default language specific configuration.
     * These defaults are filled in by looking at each root key only. If the key is not present, the default is used.
     * 
* * .google.protobuf.Struct language_config = 6; */ public com.google.protobuf.StructOrBuilder getLanguageConfigOrBuilder() { if (languageConfigBuilder_ != null) { return languageConfigBuilder_.getMessageOrBuilder(); } else { return languageConfig_ == null ? com.google.protobuf.Struct.getDefaultInstance() : languageConfig_; } } /** *
     * Default language specific configuration.
     * These defaults are filled in by looking at each root key only. If the key is not present, the default is used.
     * 
* * .google.protobuf.Struct language_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getLanguageConfigFieldBuilder() { if (languageConfigBuilder_ == null) { languageConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getLanguageConfig(), getParentForChildren(), isClean()); languageConfig_ = null; } return languageConfigBuilder_; } @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.ModuleConfigDefaultsResponse) } // @@protoc_insertion_point(class_scope:xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse) private static final xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse(); } public static xyz.block.ftl.v1.language.ModuleConfigDefaultsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ModuleConfigDefaultsResponse 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.ModuleConfigDefaultsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy