
xyz.block.ftl.language.v1.SyncStubReferencesRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: xyz/block/ftl/language/v1/language.proto
// Protobuf Java Version: 3.25.4
package xyz.block.ftl.language.v1;
/**
* Protobuf type {@code xyz.block.ftl.language.v1.SyncStubReferencesRequest}
*/
public final class SyncStubReferencesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xyz.block.ftl.language.v1.SyncStubReferencesRequest)
SyncStubReferencesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SyncStubReferencesRequest.newBuilder() to construct.
private SyncStubReferencesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SyncStubReferencesRequest() {
stubsRoot_ = "";
modules_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SyncStubReferencesRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.language.v1.Language.internal_static_xyz_block_ftl_language_v1_SyncStubReferencesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xyz.block.ftl.language.v1.Language.internal_static_xyz_block_ftl_language_v1_SyncStubReferencesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.language.v1.SyncStubReferencesRequest.class, xyz.block.ftl.language.v1.SyncStubReferencesRequest.Builder.class);
}
private int bitField0_;
public static final int MODULE_CONFIG_FIELD_NUMBER = 1;
private xyz.block.ftl.language.v1.ModuleConfig moduleConfig_;
/**
* .xyz.block.ftl.language.v1.ModuleConfig module_config = 1;
* @return Whether the moduleConfig field is set.
*/
@java.lang.Override
public boolean hasModuleConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .xyz.block.ftl.language.v1.ModuleConfig module_config = 1;
* @return The moduleConfig.
*/
@java.lang.Override
public xyz.block.ftl.language.v1.ModuleConfig getModuleConfig() {
return moduleConfig_ == null ? xyz.block.ftl.language.v1.ModuleConfig.getDefaultInstance() : moduleConfig_;
}
/**
* .xyz.block.ftl.language.v1.ModuleConfig module_config = 1;
*/
@java.lang.Override
public xyz.block.ftl.language.v1.ModuleConfigOrBuilder getModuleConfigOrBuilder() {
return moduleConfig_ == null ? xyz.block.ftl.language.v1.ModuleConfig.getDefaultInstance() : moduleConfig_;
}
public static final int STUBS_ROOT_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object stubsRoot_ = "";
/**
*
* The path of the directory containing all module stubs. Each module is in a subdirectory
*
*
* string stubs_root = 2;
* @return The stubsRoot.
*/
@java.lang.Override
public java.lang.String getStubsRoot() {
java.lang.Object ref = stubsRoot_;
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();
stubsRoot_ = s;
return s;
}
}
/**
*
* The path of the directory containing all module stubs. Each module is in a subdirectory
*
*
* string stubs_root = 2;
* @return The bytes for stubsRoot.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStubsRootBytes() {
java.lang.Object ref = stubsRoot_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stubsRoot_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MODULES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList modules_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* The names of all modules that have had stubs generated
*
*
* repeated string modules = 3;
* @return A list containing the modules.
*/
public com.google.protobuf.ProtocolStringList
getModulesList() {
return modules_;
}
/**
*
* The names of all modules that have had stubs generated
*
*
* repeated string modules = 3;
* @return The count of modules.
*/
public int getModulesCount() {
return modules_.size();
}
/**
*
* The names of all modules that have had stubs generated
*
*
* repeated string modules = 3;
* @param index The index of the element to return.
* @return The modules at the given index.
*/
public java.lang.String getModules(int index) {
return modules_.get(index);
}
/**
*
* The names of all modules that have had stubs generated
*
*
* repeated string modules = 3;
* @param index The index of the value to return.
* @return The bytes of the modules at the given index.
*/
public com.google.protobuf.ByteString
getModulesBytes(int index) {
return modules_.getByteString(index);
}
public static final int SCHEMA_FIELD_NUMBER = 4;
private xyz.block.ftl.schema.v1.Schema schema_;
/**
*
* The complete FTL schema
*
*
* .xyz.block.ftl.schema.v1.Schema schema = 4;
* @return Whether the schema field is set.
*/
@java.lang.Override
public boolean hasSchema() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The complete FTL schema
*
*
* .xyz.block.ftl.schema.v1.Schema schema = 4;
* @return The schema.
*/
@java.lang.Override
public xyz.block.ftl.schema.v1.Schema getSchema() {
return schema_ == null ? xyz.block.ftl.schema.v1.Schema.getDefaultInstance() : schema_;
}
/**
*
* The complete FTL schema
*
*
* .xyz.block.ftl.schema.v1.Schema schema = 4;
*/
@java.lang.Override
public xyz.block.ftl.schema.v1.SchemaOrBuilder getSchemaOrBuilder() {
return schema_ == null ? xyz.block.ftl.schema.v1.Schema.getDefaultInstance() : schema_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getModuleConfig());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stubsRoot_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, stubsRoot_);
}
for (int i = 0; i < modules_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, modules_.getRaw(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getSchema());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getModuleConfig());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stubsRoot_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stubsRoot_);
}
{
int dataSize = 0;
for (int i = 0; i < modules_.size(); i++) {
dataSize += computeStringSizeNoTag(modules_.getRaw(i));
}
size += dataSize;
size += 1 * getModulesList().size();
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getSchema());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof xyz.block.ftl.language.v1.SyncStubReferencesRequest)) {
return super.equals(obj);
}
xyz.block.ftl.language.v1.SyncStubReferencesRequest other = (xyz.block.ftl.language.v1.SyncStubReferencesRequest) obj;
if (hasModuleConfig() != other.hasModuleConfig()) return false;
if (hasModuleConfig()) {
if (!getModuleConfig()
.equals(other.getModuleConfig())) return false;
}
if (!getStubsRoot()
.equals(other.getStubsRoot())) return false;
if (!getModulesList()
.equals(other.getModulesList())) return false;
if (hasSchema() != other.hasSchema()) return false;
if (hasSchema()) {
if (!getSchema()
.equals(other.getSchema())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasModuleConfig()) {
hash = (37 * hash) + MODULE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getModuleConfig().hashCode();
}
hash = (37 * hash) + STUBS_ROOT_FIELD_NUMBER;
hash = (53 * hash) + getStubsRoot().hashCode();
if (getModulesCount() > 0) {
hash = (37 * hash) + MODULES_FIELD_NUMBER;
hash = (53 * hash) + getModulesList().hashCode();
}
if (hasSchema()) {
hash = (37 * hash) + SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getSchema().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static xyz.block.ftl.language.v1.SyncStubReferencesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.language.v1.SyncStubReferencesRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.language.v1.SyncStubReferencesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.language.v1.SyncStubReferencesRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.language.v1.SyncStubReferencesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.language.v1.SyncStubReferencesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.language.v1.SyncStubReferencesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xyz.block.ftl.language.v1.SyncStubReferencesRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static xyz.block.ftl.language.v1.SyncStubReferencesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xyz.block.ftl.language.v1.SyncStubReferencesRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static xyz.block.ftl.language.v1.SyncStubReferencesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xyz.block.ftl.language.v1.SyncStubReferencesRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(xyz.block.ftl.language.v1.SyncStubReferencesRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code xyz.block.ftl.language.v1.SyncStubReferencesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xyz.block.ftl.language.v1.SyncStubReferencesRequest)
xyz.block.ftl.language.v1.SyncStubReferencesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.language.v1.Language.internal_static_xyz_block_ftl_language_v1_SyncStubReferencesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xyz.block.ftl.language.v1.Language.internal_static_xyz_block_ftl_language_v1_SyncStubReferencesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.language.v1.SyncStubReferencesRequest.class, xyz.block.ftl.language.v1.SyncStubReferencesRequest.Builder.class);
}
// Construct using xyz.block.ftl.language.v1.SyncStubReferencesRequest.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;
moduleConfig_ = null;
if (moduleConfigBuilder_ != null) {
moduleConfigBuilder_.dispose();
moduleConfigBuilder_ = null;
}
stubsRoot_ = "";
modules_ =
com.google.protobuf.LazyStringArrayList.emptyList();
schema_ = null;
if (schemaBuilder_ != null) {
schemaBuilder_.dispose();
schemaBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xyz.block.ftl.language.v1.Language.internal_static_xyz_block_ftl_language_v1_SyncStubReferencesRequest_descriptor;
}
@java.lang.Override
public xyz.block.ftl.language.v1.SyncStubReferencesRequest getDefaultInstanceForType() {
return xyz.block.ftl.language.v1.SyncStubReferencesRequest.getDefaultInstance();
}
@java.lang.Override
public xyz.block.ftl.language.v1.SyncStubReferencesRequest build() {
xyz.block.ftl.language.v1.SyncStubReferencesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xyz.block.ftl.language.v1.SyncStubReferencesRequest buildPartial() {
xyz.block.ftl.language.v1.SyncStubReferencesRequest result = new xyz.block.ftl.language.v1.SyncStubReferencesRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(xyz.block.ftl.language.v1.SyncStubReferencesRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.moduleConfig_ = moduleConfigBuilder_ == null
? moduleConfig_
: moduleConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.stubsRoot_ = stubsRoot_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
modules_.makeImmutable();
result.modules_ = modules_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.schema_ = schemaBuilder_ == null
? schema_
: schemaBuilder_.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.language.v1.SyncStubReferencesRequest) {
return mergeFrom((xyz.block.ftl.language.v1.SyncStubReferencesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xyz.block.ftl.language.v1.SyncStubReferencesRequest other) {
if (other == xyz.block.ftl.language.v1.SyncStubReferencesRequest.getDefaultInstance()) return this;
if (other.hasModuleConfig()) {
mergeModuleConfig(other.getModuleConfig());
}
if (!other.getStubsRoot().isEmpty()) {
stubsRoot_ = other.stubsRoot_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.modules_.isEmpty()) {
if (modules_.isEmpty()) {
modules_ = other.modules_;
bitField0_ |= 0x00000004;
} else {
ensureModulesIsMutable();
modules_.addAll(other.modules_);
}
onChanged();
}
if (other.hasSchema()) {
mergeSchema(other.getSchema());
}
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: {
input.readMessage(
getModuleConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
stubsRoot_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureModulesIsMutable();
modules_.add(s);
break;
} // case 26
case 34: {
input.readMessage(
getSchemaFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
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 xyz.block.ftl.language.v1.ModuleConfig moduleConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.language.v1.ModuleConfig, xyz.block.ftl.language.v1.ModuleConfig.Builder, xyz.block.ftl.language.v1.ModuleConfigOrBuilder> moduleConfigBuilder_;
/**
* .xyz.block.ftl.language.v1.ModuleConfig module_config = 1;
* @return Whether the moduleConfig field is set.
*/
public boolean hasModuleConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .xyz.block.ftl.language.v1.ModuleConfig module_config = 1;
* @return The moduleConfig.
*/
public xyz.block.ftl.language.v1.ModuleConfig getModuleConfig() {
if (moduleConfigBuilder_ == null) {
return moduleConfig_ == null ? xyz.block.ftl.language.v1.ModuleConfig.getDefaultInstance() : moduleConfig_;
} else {
return moduleConfigBuilder_.getMessage();
}
}
/**
* .xyz.block.ftl.language.v1.ModuleConfig module_config = 1;
*/
public Builder setModuleConfig(xyz.block.ftl.language.v1.ModuleConfig value) {
if (moduleConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
moduleConfig_ = value;
} else {
moduleConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .xyz.block.ftl.language.v1.ModuleConfig module_config = 1;
*/
public Builder setModuleConfig(
xyz.block.ftl.language.v1.ModuleConfig.Builder builderForValue) {
if (moduleConfigBuilder_ == null) {
moduleConfig_ = builderForValue.build();
} else {
moduleConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .xyz.block.ftl.language.v1.ModuleConfig module_config = 1;
*/
public Builder mergeModuleConfig(xyz.block.ftl.language.v1.ModuleConfig value) {
if (moduleConfigBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
moduleConfig_ != null &&
moduleConfig_ != xyz.block.ftl.language.v1.ModuleConfig.getDefaultInstance()) {
getModuleConfigBuilder().mergeFrom(value);
} else {
moduleConfig_ = value;
}
} else {
moduleConfigBuilder_.mergeFrom(value);
}
if (moduleConfig_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .xyz.block.ftl.language.v1.ModuleConfig module_config = 1;
*/
public Builder clearModuleConfig() {
bitField0_ = (bitField0_ & ~0x00000001);
moduleConfig_ = null;
if (moduleConfigBuilder_ != null) {
moduleConfigBuilder_.dispose();
moduleConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
* .xyz.block.ftl.language.v1.ModuleConfig module_config = 1;
*/
public xyz.block.ftl.language.v1.ModuleConfig.Builder getModuleConfigBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getModuleConfigFieldBuilder().getBuilder();
}
/**
* .xyz.block.ftl.language.v1.ModuleConfig module_config = 1;
*/
public xyz.block.ftl.language.v1.ModuleConfigOrBuilder getModuleConfigOrBuilder() {
if (moduleConfigBuilder_ != null) {
return moduleConfigBuilder_.getMessageOrBuilder();
} else {
return moduleConfig_ == null ?
xyz.block.ftl.language.v1.ModuleConfig.getDefaultInstance() : moduleConfig_;
}
}
/**
* .xyz.block.ftl.language.v1.ModuleConfig module_config = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.language.v1.ModuleConfig, xyz.block.ftl.language.v1.ModuleConfig.Builder, xyz.block.ftl.language.v1.ModuleConfigOrBuilder>
getModuleConfigFieldBuilder() {
if (moduleConfigBuilder_ == null) {
moduleConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.language.v1.ModuleConfig, xyz.block.ftl.language.v1.ModuleConfig.Builder, xyz.block.ftl.language.v1.ModuleConfigOrBuilder>(
getModuleConfig(),
getParentForChildren(),
isClean());
moduleConfig_ = null;
}
return moduleConfigBuilder_;
}
private java.lang.Object stubsRoot_ = "";
/**
*
* The path of the directory containing all module stubs. Each module is in a subdirectory
*
*
* string stubs_root = 2;
* @return The stubsRoot.
*/
public java.lang.String getStubsRoot() {
java.lang.Object ref = stubsRoot_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
stubsRoot_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The path of the directory containing all module stubs. Each module is in a subdirectory
*
*
* string stubs_root = 2;
* @return The bytes for stubsRoot.
*/
public com.google.protobuf.ByteString
getStubsRootBytes() {
java.lang.Object ref = stubsRoot_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stubsRoot_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The path of the directory containing all module stubs. Each module is in a subdirectory
*
*
* string stubs_root = 2;
* @param value The stubsRoot to set.
* @return This builder for chaining.
*/
public Builder setStubsRoot(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
stubsRoot_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The path of the directory containing all module stubs. Each module is in a subdirectory
*
*
* string stubs_root = 2;
* @return This builder for chaining.
*/
public Builder clearStubsRoot() {
stubsRoot_ = getDefaultInstance().getStubsRoot();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The path of the directory containing all module stubs. Each module is in a subdirectory
*
*
* string stubs_root = 2;
* @param value The bytes for stubsRoot to set.
* @return This builder for chaining.
*/
public Builder setStubsRootBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
stubsRoot_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList modules_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureModulesIsMutable() {
if (!modules_.isModifiable()) {
modules_ = new com.google.protobuf.LazyStringArrayList(modules_);
}
bitField0_ |= 0x00000004;
}
/**
*
* The names of all modules that have had stubs generated
*
*
* repeated string modules = 3;
* @return A list containing the modules.
*/
public com.google.protobuf.ProtocolStringList
getModulesList() {
modules_.makeImmutable();
return modules_;
}
/**
*
* The names of all modules that have had stubs generated
*
*
* repeated string modules = 3;
* @return The count of modules.
*/
public int getModulesCount() {
return modules_.size();
}
/**
*
* The names of all modules that have had stubs generated
*
*
* repeated string modules = 3;
* @param index The index of the element to return.
* @return The modules at the given index.
*/
public java.lang.String getModules(int index) {
return modules_.get(index);
}
/**
*
* The names of all modules that have had stubs generated
*
*
* repeated string modules = 3;
* @param index The index of the value to return.
* @return The bytes of the modules at the given index.
*/
public com.google.protobuf.ByteString
getModulesBytes(int index) {
return modules_.getByteString(index);
}
/**
*
* The names of all modules that have had stubs generated
*
*
* repeated string modules = 3;
* @param index The index to set the value at.
* @param value The modules to set.
* @return This builder for chaining.
*/
public Builder setModules(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureModulesIsMutable();
modules_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The names of all modules that have had stubs generated
*
*
* repeated string modules = 3;
* @param value The modules to add.
* @return This builder for chaining.
*/
public Builder addModules(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureModulesIsMutable();
modules_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The names of all modules that have had stubs generated
*
*
* repeated string modules = 3;
* @param values The modules to add.
* @return This builder for chaining.
*/
public Builder addAllModules(
java.lang.Iterable values) {
ensureModulesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, modules_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The names of all modules that have had stubs generated
*
*
* repeated string modules = 3;
* @return This builder for chaining.
*/
public Builder clearModules() {
modules_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);;
onChanged();
return this;
}
/**
*
* The names of all modules that have had stubs generated
*
*
* repeated string modules = 3;
* @param value The bytes of the modules to add.
* @return This builder for chaining.
*/
public Builder addModulesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureModulesIsMutable();
modules_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private xyz.block.ftl.schema.v1.Schema schema_;
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.schema.v1.Schema, xyz.block.ftl.schema.v1.Schema.Builder, xyz.block.ftl.schema.v1.SchemaOrBuilder> schemaBuilder_;
/**
*
* The complete FTL schema
*
*
* .xyz.block.ftl.schema.v1.Schema schema = 4;
* @return Whether the schema field is set.
*/
public boolean hasSchema() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The complete FTL schema
*
*
* .xyz.block.ftl.schema.v1.Schema schema = 4;
* @return The schema.
*/
public xyz.block.ftl.schema.v1.Schema getSchema() {
if (schemaBuilder_ == null) {
return schema_ == null ? xyz.block.ftl.schema.v1.Schema.getDefaultInstance() : schema_;
} else {
return schemaBuilder_.getMessage();
}
}
/**
*
* The complete FTL schema
*
*
* .xyz.block.ftl.schema.v1.Schema schema = 4;
*/
public Builder setSchema(xyz.block.ftl.schema.v1.Schema value) {
if (schemaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schema_ = value;
} else {
schemaBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The complete FTL schema
*
*
* .xyz.block.ftl.schema.v1.Schema schema = 4;
*/
public Builder setSchema(
xyz.block.ftl.schema.v1.Schema.Builder builderForValue) {
if (schemaBuilder_ == null) {
schema_ = builderForValue.build();
} else {
schemaBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The complete FTL schema
*
*
* .xyz.block.ftl.schema.v1.Schema schema = 4;
*/
public Builder mergeSchema(xyz.block.ftl.schema.v1.Schema value) {
if (schemaBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
schema_ != null &&
schema_ != xyz.block.ftl.schema.v1.Schema.getDefaultInstance()) {
getSchemaBuilder().mergeFrom(value);
} else {
schema_ = value;
}
} else {
schemaBuilder_.mergeFrom(value);
}
if (schema_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* The complete FTL schema
*
*
* .xyz.block.ftl.schema.v1.Schema schema = 4;
*/
public Builder clearSchema() {
bitField0_ = (bitField0_ & ~0x00000008);
schema_ = null;
if (schemaBuilder_ != null) {
schemaBuilder_.dispose();
schemaBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The complete FTL schema
*
*
* .xyz.block.ftl.schema.v1.Schema schema = 4;
*/
public xyz.block.ftl.schema.v1.Schema.Builder getSchemaBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getSchemaFieldBuilder().getBuilder();
}
/**
*
* The complete FTL schema
*
*
* .xyz.block.ftl.schema.v1.Schema schema = 4;
*/
public xyz.block.ftl.schema.v1.SchemaOrBuilder getSchemaOrBuilder() {
if (schemaBuilder_ != null) {
return schemaBuilder_.getMessageOrBuilder();
} else {
return schema_ == null ?
xyz.block.ftl.schema.v1.Schema.getDefaultInstance() : schema_;
}
}
/**
*
* The complete FTL schema
*
*
* .xyz.block.ftl.schema.v1.Schema schema = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.schema.v1.Schema, xyz.block.ftl.schema.v1.Schema.Builder, xyz.block.ftl.schema.v1.SchemaOrBuilder>
getSchemaFieldBuilder() {
if (schemaBuilder_ == null) {
schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.schema.v1.Schema, xyz.block.ftl.schema.v1.Schema.Builder, xyz.block.ftl.schema.v1.SchemaOrBuilder>(
getSchema(),
getParentForChildren(),
isClean());
schema_ = null;
}
return schemaBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xyz.block.ftl.language.v1.SyncStubReferencesRequest)
}
// @@protoc_insertion_point(class_scope:xyz.block.ftl.language.v1.SyncStubReferencesRequest)
private static final xyz.block.ftl.language.v1.SyncStubReferencesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xyz.block.ftl.language.v1.SyncStubReferencesRequest();
}
public static xyz.block.ftl.language.v1.SyncStubReferencesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SyncStubReferencesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public xyz.block.ftl.language.v1.SyncStubReferencesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy