xyz.block.ftl.v1.language.CreateModuleRequest Maven / Gradle / Ivy
// 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;
/**
*
* Request to create a new module.
*
*
* Protobuf type {@code xyz.block.ftl.v1.language.CreateModuleRequest}
*/
public final class CreateModuleRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.language.CreateModuleRequest)
CreateModuleRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateModuleRequest.newBuilder() to construct.
private CreateModuleRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateModuleRequest() {
name_ = "";
dir_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateModuleRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_CreateModuleRequest_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_CreateModuleRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.v1.language.CreateModuleRequest.class, xyz.block.ftl.v1.language.CreateModuleRequest.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DIR_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object dir_ = "";
/**
*
* The root directory for the module, which does not yet exist.
* The plugin should create the directory.
*
*
* string dir = 2;
* @return The dir.
*/
@java.lang.Override
public java.lang.String getDir() {
java.lang.Object ref = dir_;
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();
dir_ = s;
return s;
}
}
/**
*
* The root directory for the module, which does not yet exist.
* The plugin should create the directory.
*
*
* string dir = 2;
* @return The bytes for dir.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDirBytes() {
java.lang.Object ref = dir_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dir_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROJECT_CONFIG_FIELD_NUMBER = 3;
private xyz.block.ftl.v1.language.ProjectConfig projectConfig_;
/**
*
* The project configuration
*
*
* .xyz.block.ftl.v1.language.ProjectConfig project_config = 3;
* @return Whether the projectConfig field is set.
*/
@java.lang.Override
public boolean hasProjectConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The project configuration
*
*
* .xyz.block.ftl.v1.language.ProjectConfig project_config = 3;
* @return The projectConfig.
*/
@java.lang.Override
public xyz.block.ftl.v1.language.ProjectConfig getProjectConfig() {
return projectConfig_ == null ? xyz.block.ftl.v1.language.ProjectConfig.getDefaultInstance() : projectConfig_;
}
/**
*
* The project configuration
*
*
* .xyz.block.ftl.v1.language.ProjectConfig project_config = 3;
*/
@java.lang.Override
public xyz.block.ftl.v1.language.ProjectConfigOrBuilder getProjectConfigOrBuilder() {
return projectConfig_ == null ? xyz.block.ftl.v1.language.ProjectConfig.getDefaultInstance() : projectConfig_;
}
public static final int FLAGS_FIELD_NUMBER = 4;
private com.google.protobuf.Struct flags_;
/**
*
* Flags contains any values set for those configured in the GetCreateModuleFlags call
*
*
* .google.protobuf.Struct Flags = 4;
* @return Whether the flags field is set.
*/
@java.lang.Override
public boolean hasFlags() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Flags contains any values set for those configured in the GetCreateModuleFlags call
*
*
* .google.protobuf.Struct Flags = 4;
* @return The flags.
*/
@java.lang.Override
public com.google.protobuf.Struct getFlags() {
return flags_ == null ? com.google.protobuf.Struct.getDefaultInstance() : flags_;
}
/**
*
* Flags contains any values set for those configured in the GetCreateModuleFlags call
*
*
* .google.protobuf.Struct Flags = 4;
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getFlagsOrBuilder() {
return flags_ == null ? com.google.protobuf.Struct.getDefaultInstance() : flags_;
}
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(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dir_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dir_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getProjectConfig());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getFlags());
}
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(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dir_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dir_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getProjectConfig());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getFlags());
}
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.CreateModuleRequest)) {
return super.equals(obj);
}
xyz.block.ftl.v1.language.CreateModuleRequest other = (xyz.block.ftl.v1.language.CreateModuleRequest) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getDir()
.equals(other.getDir())) return false;
if (hasProjectConfig() != other.hasProjectConfig()) return false;
if (hasProjectConfig()) {
if (!getProjectConfig()
.equals(other.getProjectConfig())) return false;
}
if (hasFlags() != other.hasFlags()) return false;
if (hasFlags()) {
if (!getFlags()
.equals(other.getFlags())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DIR_FIELD_NUMBER;
hash = (53 * hash) + getDir().hashCode();
if (hasProjectConfig()) {
hash = (37 * hash) + PROJECT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getProjectConfig().hashCode();
}
if (hasFlags()) {
hash = (37 * hash) + FLAGS_FIELD_NUMBER;
hash = (53 * hash) + getFlags().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static xyz.block.ftl.v1.language.CreateModuleRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.language.CreateModuleRequest 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.CreateModuleRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.language.CreateModuleRequest 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.CreateModuleRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.language.CreateModuleRequest 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.CreateModuleRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.language.CreateModuleRequest 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.CreateModuleRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.language.CreateModuleRequest 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.CreateModuleRequest 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.CreateModuleRequest 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.CreateModuleRequest 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;
}
/**
*
* Request to create a new module.
*
*
* Protobuf type {@code xyz.block.ftl.v1.language.CreateModuleRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.language.CreateModuleRequest)
xyz.block.ftl.v1.language.CreateModuleRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.v1.language.Language.internal_static_xyz_block_ftl_v1_language_CreateModuleRequest_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_CreateModuleRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.v1.language.CreateModuleRequest.class, xyz.block.ftl.v1.language.CreateModuleRequest.Builder.class);
}
// Construct using xyz.block.ftl.v1.language.CreateModuleRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getProjectConfigFieldBuilder();
getFlagsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
dir_ = "";
projectConfig_ = null;
if (projectConfigBuilder_ != null) {
projectConfigBuilder_.dispose();
projectConfigBuilder_ = null;
}
flags_ = null;
if (flagsBuilder_ != null) {
flagsBuilder_.dispose();
flagsBuilder_ = 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_CreateModuleRequest_descriptor;
}
@java.lang.Override
public xyz.block.ftl.v1.language.CreateModuleRequest getDefaultInstanceForType() {
return xyz.block.ftl.v1.language.CreateModuleRequest.getDefaultInstance();
}
@java.lang.Override
public xyz.block.ftl.v1.language.CreateModuleRequest build() {
xyz.block.ftl.v1.language.CreateModuleRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xyz.block.ftl.v1.language.CreateModuleRequest buildPartial() {
xyz.block.ftl.v1.language.CreateModuleRequest result = new xyz.block.ftl.v1.language.CreateModuleRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(xyz.block.ftl.v1.language.CreateModuleRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.dir_ = dir_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.projectConfig_ = projectConfigBuilder_ == null
? projectConfig_
: projectConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.flags_ = flagsBuilder_ == null
? flags_
: flagsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xyz.block.ftl.v1.language.CreateModuleRequest) {
return mergeFrom((xyz.block.ftl.v1.language.CreateModuleRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xyz.block.ftl.v1.language.CreateModuleRequest other) {
if (other == xyz.block.ftl.v1.language.CreateModuleRequest.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDir().isEmpty()) {
dir_ = other.dir_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasProjectConfig()) {
mergeProjectConfig(other.getProjectConfig());
}
if (other.hasFlags()) {
mergeFlags(other.getFlags());
}
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: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
dir_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getProjectConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getFlagsFieldBuilder().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 java.lang.Object name_ = "";
/**
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object dir_ = "";
/**
*
* The root directory for the module, which does not yet exist.
* The plugin should create the directory.
*
*
* string dir = 2;
* @return The dir.
*/
public java.lang.String getDir() {
java.lang.Object ref = dir_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dir_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The root directory for the module, which does not yet exist.
* The plugin should create the directory.
*
*
* string dir = 2;
* @return The bytes for dir.
*/
public com.google.protobuf.ByteString
getDirBytes() {
java.lang.Object ref = dir_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dir_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The root directory for the module, which does not yet exist.
* The plugin should create the directory.
*
*
* string dir = 2;
* @param value The dir to set.
* @return This builder for chaining.
*/
public Builder setDir(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
dir_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The root directory for the module, which does not yet exist.
* The plugin should create the directory.
*
*
* string dir = 2;
* @return This builder for chaining.
*/
public Builder clearDir() {
dir_ = getDefaultInstance().getDir();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The root directory for the module, which does not yet exist.
* The plugin should create the directory.
*
*
* string dir = 2;
* @param value The bytes for dir to set.
* @return This builder for chaining.
*/
public Builder setDirBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
dir_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private xyz.block.ftl.v1.language.ProjectConfig projectConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.language.ProjectConfig, xyz.block.ftl.v1.language.ProjectConfig.Builder, xyz.block.ftl.v1.language.ProjectConfigOrBuilder> projectConfigBuilder_;
/**
*
* The project configuration
*
*
* .xyz.block.ftl.v1.language.ProjectConfig project_config = 3;
* @return Whether the projectConfig field is set.
*/
public boolean hasProjectConfig() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The project configuration
*
*
* .xyz.block.ftl.v1.language.ProjectConfig project_config = 3;
* @return The projectConfig.
*/
public xyz.block.ftl.v1.language.ProjectConfig getProjectConfig() {
if (projectConfigBuilder_ == null) {
return projectConfig_ == null ? xyz.block.ftl.v1.language.ProjectConfig.getDefaultInstance() : projectConfig_;
} else {
return projectConfigBuilder_.getMessage();
}
}
/**
*
* The project configuration
*
*
* .xyz.block.ftl.v1.language.ProjectConfig project_config = 3;
*/
public Builder setProjectConfig(xyz.block.ftl.v1.language.ProjectConfig value) {
if (projectConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
projectConfig_ = value;
} else {
projectConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The project configuration
*
*
* .xyz.block.ftl.v1.language.ProjectConfig project_config = 3;
*/
public Builder setProjectConfig(
xyz.block.ftl.v1.language.ProjectConfig.Builder builderForValue) {
if (projectConfigBuilder_ == null) {
projectConfig_ = builderForValue.build();
} else {
projectConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The project configuration
*
*
* .xyz.block.ftl.v1.language.ProjectConfig project_config = 3;
*/
public Builder mergeProjectConfig(xyz.block.ftl.v1.language.ProjectConfig value) {
if (projectConfigBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
projectConfig_ != null &&
projectConfig_ != xyz.block.ftl.v1.language.ProjectConfig.getDefaultInstance()) {
getProjectConfigBuilder().mergeFrom(value);
} else {
projectConfig_ = value;
}
} else {
projectConfigBuilder_.mergeFrom(value);
}
if (projectConfig_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* The project configuration
*
*
* .xyz.block.ftl.v1.language.ProjectConfig project_config = 3;
*/
public Builder clearProjectConfig() {
bitField0_ = (bitField0_ & ~0x00000004);
projectConfig_ = null;
if (projectConfigBuilder_ != null) {
projectConfigBuilder_.dispose();
projectConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The project configuration
*
*
* .xyz.block.ftl.v1.language.ProjectConfig project_config = 3;
*/
public xyz.block.ftl.v1.language.ProjectConfig.Builder getProjectConfigBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getProjectConfigFieldBuilder().getBuilder();
}
/**
*
* The project configuration
*
*
* .xyz.block.ftl.v1.language.ProjectConfig project_config = 3;
*/
public xyz.block.ftl.v1.language.ProjectConfigOrBuilder getProjectConfigOrBuilder() {
if (projectConfigBuilder_ != null) {
return projectConfigBuilder_.getMessageOrBuilder();
} else {
return projectConfig_ == null ?
xyz.block.ftl.v1.language.ProjectConfig.getDefaultInstance() : projectConfig_;
}
}
/**
*
* The project configuration
*
*
* .xyz.block.ftl.v1.language.ProjectConfig project_config = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.language.ProjectConfig, xyz.block.ftl.v1.language.ProjectConfig.Builder, xyz.block.ftl.v1.language.ProjectConfigOrBuilder>
getProjectConfigFieldBuilder() {
if (projectConfigBuilder_ == null) {
projectConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.language.ProjectConfig, xyz.block.ftl.v1.language.ProjectConfig.Builder, xyz.block.ftl.v1.language.ProjectConfigOrBuilder>(
getProjectConfig(),
getParentForChildren(),
isClean());
projectConfig_ = null;
}
return projectConfigBuilder_;
}
private com.google.protobuf.Struct flags_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> flagsBuilder_;
/**
*
* Flags contains any values set for those configured in the GetCreateModuleFlags call
*
*
* .google.protobuf.Struct Flags = 4;
* @return Whether the flags field is set.
*/
public boolean hasFlags() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Flags contains any values set for those configured in the GetCreateModuleFlags call
*
*
* .google.protobuf.Struct Flags = 4;
* @return The flags.
*/
public com.google.protobuf.Struct getFlags() {
if (flagsBuilder_ == null) {
return flags_ == null ? com.google.protobuf.Struct.getDefaultInstance() : flags_;
} else {
return flagsBuilder_.getMessage();
}
}
/**
*
* Flags contains any values set for those configured in the GetCreateModuleFlags call
*
*
* .google.protobuf.Struct Flags = 4;
*/
public Builder setFlags(com.google.protobuf.Struct value) {
if (flagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
flags_ = value;
} else {
flagsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Flags contains any values set for those configured in the GetCreateModuleFlags call
*
*
* .google.protobuf.Struct Flags = 4;
*/
public Builder setFlags(
com.google.protobuf.Struct.Builder builderForValue) {
if (flagsBuilder_ == null) {
flags_ = builderForValue.build();
} else {
flagsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Flags contains any values set for those configured in the GetCreateModuleFlags call
*
*
* .google.protobuf.Struct Flags = 4;
*/
public Builder mergeFlags(com.google.protobuf.Struct value) {
if (flagsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
flags_ != null &&
flags_ != com.google.protobuf.Struct.getDefaultInstance()) {
getFlagsBuilder().mergeFrom(value);
} else {
flags_ = value;
}
} else {
flagsBuilder_.mergeFrom(value);
}
if (flags_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Flags contains any values set for those configured in the GetCreateModuleFlags call
*
*
* .google.protobuf.Struct Flags = 4;
*/
public Builder clearFlags() {
bitField0_ = (bitField0_ & ~0x00000008);
flags_ = null;
if (flagsBuilder_ != null) {
flagsBuilder_.dispose();
flagsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Flags contains any values set for those configured in the GetCreateModuleFlags call
*
*
* .google.protobuf.Struct Flags = 4;
*/
public com.google.protobuf.Struct.Builder getFlagsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getFlagsFieldBuilder().getBuilder();
}
/**
*
* Flags contains any values set for those configured in the GetCreateModuleFlags call
*
*
* .google.protobuf.Struct Flags = 4;
*/
public com.google.protobuf.StructOrBuilder getFlagsOrBuilder() {
if (flagsBuilder_ != null) {
return flagsBuilder_.getMessageOrBuilder();
} else {
return flags_ == null ?
com.google.protobuf.Struct.getDefaultInstance() : flags_;
}
}
/**
*
* Flags contains any values set for those configured in the GetCreateModuleFlags call
*
*
* .google.protobuf.Struct Flags = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getFlagsFieldBuilder() {
if (flagsBuilder_ == null) {
flagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getFlags(),
getParentForChildren(),
isClean());
flags_ = null;
}
return flagsBuilder_;
}
@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.CreateModuleRequest)
}
// @@protoc_insertion_point(class_scope:xyz.block.ftl.v1.language.CreateModuleRequest)
private static final xyz.block.ftl.v1.language.CreateModuleRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xyz.block.ftl.v1.language.CreateModuleRequest();
}
public static xyz.block.ftl.v1.language.CreateModuleRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateModuleRequest 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.CreateModuleRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy