xyz.block.ftl.v1.schema.Value Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: xyz/block/ftl/v1/schema/schema.proto
// Protobuf Java Version: 3.25.4
package xyz.block.ftl.v1.schema;
/**
* Protobuf type {@code xyz.block.ftl.v1.schema.Value}
*/
public final class Value extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.schema.Value)
ValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use Value.newBuilder() to construct.
private Value(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Value() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Value();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_Value_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_Value_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.v1.schema.Value.class, xyz.block.ftl.v1.schema.Value.Builder.class);
}
private int valueCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object value_;
public enum ValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
INT_VALUE(2),
STRING_VALUE(1),
TYPE_VALUE(3),
VALUE_NOT_SET(0);
private final int value;
private ValueCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ValueCase valueOf(int value) {
return forNumber(value);
}
public static ValueCase forNumber(int value) {
switch (value) {
case 2: return INT_VALUE;
case 1: return STRING_VALUE;
case 3: return TYPE_VALUE;
case 0: return VALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public static final int INT_VALUE_FIELD_NUMBER = 2;
/**
* .xyz.block.ftl.v1.schema.IntValue int_value = 2;
* @return Whether the intValue field is set.
*/
@java.lang.Override
public boolean hasIntValue() {
return valueCase_ == 2;
}
/**
* .xyz.block.ftl.v1.schema.IntValue int_value = 2;
* @return The intValue.
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.IntValue getIntValue() {
if (valueCase_ == 2) {
return (xyz.block.ftl.v1.schema.IntValue) value_;
}
return xyz.block.ftl.v1.schema.IntValue.getDefaultInstance();
}
/**
* .xyz.block.ftl.v1.schema.IntValue int_value = 2;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.IntValueOrBuilder getIntValueOrBuilder() {
if (valueCase_ == 2) {
return (xyz.block.ftl.v1.schema.IntValue) value_;
}
return xyz.block.ftl.v1.schema.IntValue.getDefaultInstance();
}
public static final int STRING_VALUE_FIELD_NUMBER = 1;
/**
* .xyz.block.ftl.v1.schema.StringValue string_value = 1;
* @return Whether the stringValue field is set.
*/
@java.lang.Override
public boolean hasStringValue() {
return valueCase_ == 1;
}
/**
* .xyz.block.ftl.v1.schema.StringValue string_value = 1;
* @return The stringValue.
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.StringValue getStringValue() {
if (valueCase_ == 1) {
return (xyz.block.ftl.v1.schema.StringValue) value_;
}
return xyz.block.ftl.v1.schema.StringValue.getDefaultInstance();
}
/**
* .xyz.block.ftl.v1.schema.StringValue string_value = 1;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.StringValueOrBuilder getStringValueOrBuilder() {
if (valueCase_ == 1) {
return (xyz.block.ftl.v1.schema.StringValue) value_;
}
return xyz.block.ftl.v1.schema.StringValue.getDefaultInstance();
}
public static final int TYPE_VALUE_FIELD_NUMBER = 3;
/**
* .xyz.block.ftl.v1.schema.TypeValue type_value = 3;
* @return Whether the typeValue field is set.
*/
@java.lang.Override
public boolean hasTypeValue() {
return valueCase_ == 3;
}
/**
* .xyz.block.ftl.v1.schema.TypeValue type_value = 3;
* @return The typeValue.
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.TypeValue getTypeValue() {
if (valueCase_ == 3) {
return (xyz.block.ftl.v1.schema.TypeValue) value_;
}
return xyz.block.ftl.v1.schema.TypeValue.getDefaultInstance();
}
/**
* .xyz.block.ftl.v1.schema.TypeValue type_value = 3;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.TypeValueOrBuilder getTypeValueOrBuilder() {
if (valueCase_ == 3) {
return (xyz.block.ftl.v1.schema.TypeValue) value_;
}
return xyz.block.ftl.v1.schema.TypeValue.getDefaultInstance();
}
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 (valueCase_ == 1) {
output.writeMessage(1, (xyz.block.ftl.v1.schema.StringValue) value_);
}
if (valueCase_ == 2) {
output.writeMessage(2, (xyz.block.ftl.v1.schema.IntValue) value_);
}
if (valueCase_ == 3) {
output.writeMessage(3, (xyz.block.ftl.v1.schema.TypeValue) value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (valueCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (xyz.block.ftl.v1.schema.StringValue) value_);
}
if (valueCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (xyz.block.ftl.v1.schema.IntValue) value_);
}
if (valueCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (xyz.block.ftl.v1.schema.TypeValue) value_);
}
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.schema.Value)) {
return super.equals(obj);
}
xyz.block.ftl.v1.schema.Value other = (xyz.block.ftl.v1.schema.Value) obj;
if (!getValueCase().equals(other.getValueCase())) return false;
switch (valueCase_) {
case 2:
if (!getIntValue()
.equals(other.getIntValue())) return false;
break;
case 1:
if (!getStringValue()
.equals(other.getStringValue())) return false;
break;
case 3:
if (!getTypeValue()
.equals(other.getTypeValue())) return false;
break;
case 0:
default:
}
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();
switch (valueCase_) {
case 2:
hash = (37 * hash) + INT_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getIntValue().hashCode();
break;
case 1:
hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getStringValue().hashCode();
break;
case 3:
hash = (37 * hash) + TYPE_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getTypeValue().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static xyz.block.ftl.v1.schema.Value parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.schema.Value 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.schema.Value parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.schema.Value 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.schema.Value parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.schema.Value parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xyz.block.ftl.v1.schema.Value parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.schema.Value 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.schema.Value parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.schema.Value 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.schema.Value parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.schema.Value 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.schema.Value 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.v1.schema.Value}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.schema.Value)
xyz.block.ftl.v1.schema.ValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_Value_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_Value_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.v1.schema.Value.class, xyz.block.ftl.v1.schema.Value.Builder.class);
}
// Construct using xyz.block.ftl.v1.schema.Value.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (intValueBuilder_ != null) {
intValueBuilder_.clear();
}
if (stringValueBuilder_ != null) {
stringValueBuilder_.clear();
}
if (typeValueBuilder_ != null) {
typeValueBuilder_.clear();
}
valueCase_ = 0;
value_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_Value_descriptor;
}
@java.lang.Override
public xyz.block.ftl.v1.schema.Value getDefaultInstanceForType() {
return xyz.block.ftl.v1.schema.Value.getDefaultInstance();
}
@java.lang.Override
public xyz.block.ftl.v1.schema.Value build() {
xyz.block.ftl.v1.schema.Value result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xyz.block.ftl.v1.schema.Value buildPartial() {
xyz.block.ftl.v1.schema.Value result = new xyz.block.ftl.v1.schema.Value(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(xyz.block.ftl.v1.schema.Value result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(xyz.block.ftl.v1.schema.Value result) {
result.valueCase_ = valueCase_;
result.value_ = this.value_;
if (valueCase_ == 2 &&
intValueBuilder_ != null) {
result.value_ = intValueBuilder_.build();
}
if (valueCase_ == 1 &&
stringValueBuilder_ != null) {
result.value_ = stringValueBuilder_.build();
}
if (valueCase_ == 3 &&
typeValueBuilder_ != null) {
result.value_ = typeValueBuilder_.build();
}
}
@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.schema.Value) {
return mergeFrom((xyz.block.ftl.v1.schema.Value)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xyz.block.ftl.v1.schema.Value other) {
if (other == xyz.block.ftl.v1.schema.Value.getDefaultInstance()) return this;
switch (other.getValueCase()) {
case INT_VALUE: {
mergeIntValue(other.getIntValue());
break;
}
case STRING_VALUE: {
mergeStringValue(other.getStringValue());
break;
}
case TYPE_VALUE: {
mergeTypeValue(other.getTypeValue());
break;
}
case VALUE_NOT_SET: {
break;
}
}
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(
getStringValueFieldBuilder().getBuilder(),
extensionRegistry);
valueCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getIntValueFieldBuilder().getBuilder(),
extensionRegistry);
valueCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getTypeValueFieldBuilder().getBuilder(),
extensionRegistry);
valueCase_ = 3;
break;
} // case 26
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 valueCase_ = 0;
private java.lang.Object value_;
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public Builder clearValue() {
valueCase_ = 0;
value_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.IntValue, xyz.block.ftl.v1.schema.IntValue.Builder, xyz.block.ftl.v1.schema.IntValueOrBuilder> intValueBuilder_;
/**
* .xyz.block.ftl.v1.schema.IntValue int_value = 2;
* @return Whether the intValue field is set.
*/
@java.lang.Override
public boolean hasIntValue() {
return valueCase_ == 2;
}
/**
* .xyz.block.ftl.v1.schema.IntValue int_value = 2;
* @return The intValue.
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.IntValue getIntValue() {
if (intValueBuilder_ == null) {
if (valueCase_ == 2) {
return (xyz.block.ftl.v1.schema.IntValue) value_;
}
return xyz.block.ftl.v1.schema.IntValue.getDefaultInstance();
} else {
if (valueCase_ == 2) {
return intValueBuilder_.getMessage();
}
return xyz.block.ftl.v1.schema.IntValue.getDefaultInstance();
}
}
/**
* .xyz.block.ftl.v1.schema.IntValue int_value = 2;
*/
public Builder setIntValue(xyz.block.ftl.v1.schema.IntValue value) {
if (intValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
intValueBuilder_.setMessage(value);
}
valueCase_ = 2;
return this;
}
/**
* .xyz.block.ftl.v1.schema.IntValue int_value = 2;
*/
public Builder setIntValue(
xyz.block.ftl.v1.schema.IntValue.Builder builderForValue) {
if (intValueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
intValueBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 2;
return this;
}
/**
* .xyz.block.ftl.v1.schema.IntValue int_value = 2;
*/
public Builder mergeIntValue(xyz.block.ftl.v1.schema.IntValue value) {
if (intValueBuilder_ == null) {
if (valueCase_ == 2 &&
value_ != xyz.block.ftl.v1.schema.IntValue.getDefaultInstance()) {
value_ = xyz.block.ftl.v1.schema.IntValue.newBuilder((xyz.block.ftl.v1.schema.IntValue) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 2) {
intValueBuilder_.mergeFrom(value);
} else {
intValueBuilder_.setMessage(value);
}
}
valueCase_ = 2;
return this;
}
/**
* .xyz.block.ftl.v1.schema.IntValue int_value = 2;
*/
public Builder clearIntValue() {
if (intValueBuilder_ == null) {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
}
intValueBuilder_.clear();
}
return this;
}
/**
* .xyz.block.ftl.v1.schema.IntValue int_value = 2;
*/
public xyz.block.ftl.v1.schema.IntValue.Builder getIntValueBuilder() {
return getIntValueFieldBuilder().getBuilder();
}
/**
* .xyz.block.ftl.v1.schema.IntValue int_value = 2;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.IntValueOrBuilder getIntValueOrBuilder() {
if ((valueCase_ == 2) && (intValueBuilder_ != null)) {
return intValueBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 2) {
return (xyz.block.ftl.v1.schema.IntValue) value_;
}
return xyz.block.ftl.v1.schema.IntValue.getDefaultInstance();
}
}
/**
* .xyz.block.ftl.v1.schema.IntValue int_value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.IntValue, xyz.block.ftl.v1.schema.IntValue.Builder, xyz.block.ftl.v1.schema.IntValueOrBuilder>
getIntValueFieldBuilder() {
if (intValueBuilder_ == null) {
if (!(valueCase_ == 2)) {
value_ = xyz.block.ftl.v1.schema.IntValue.getDefaultInstance();
}
intValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.IntValue, xyz.block.ftl.v1.schema.IntValue.Builder, xyz.block.ftl.v1.schema.IntValueOrBuilder>(
(xyz.block.ftl.v1.schema.IntValue) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 2;
onChanged();
return intValueBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.StringValue, xyz.block.ftl.v1.schema.StringValue.Builder, xyz.block.ftl.v1.schema.StringValueOrBuilder> stringValueBuilder_;
/**
* .xyz.block.ftl.v1.schema.StringValue string_value = 1;
* @return Whether the stringValue field is set.
*/
@java.lang.Override
public boolean hasStringValue() {
return valueCase_ == 1;
}
/**
* .xyz.block.ftl.v1.schema.StringValue string_value = 1;
* @return The stringValue.
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.StringValue getStringValue() {
if (stringValueBuilder_ == null) {
if (valueCase_ == 1) {
return (xyz.block.ftl.v1.schema.StringValue) value_;
}
return xyz.block.ftl.v1.schema.StringValue.getDefaultInstance();
} else {
if (valueCase_ == 1) {
return stringValueBuilder_.getMessage();
}
return xyz.block.ftl.v1.schema.StringValue.getDefaultInstance();
}
}
/**
* .xyz.block.ftl.v1.schema.StringValue string_value = 1;
*/
public Builder setStringValue(xyz.block.ftl.v1.schema.StringValue value) {
if (stringValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
stringValueBuilder_.setMessage(value);
}
valueCase_ = 1;
return this;
}
/**
* .xyz.block.ftl.v1.schema.StringValue string_value = 1;
*/
public Builder setStringValue(
xyz.block.ftl.v1.schema.StringValue.Builder builderForValue) {
if (stringValueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
stringValueBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 1;
return this;
}
/**
* .xyz.block.ftl.v1.schema.StringValue string_value = 1;
*/
public Builder mergeStringValue(xyz.block.ftl.v1.schema.StringValue value) {
if (stringValueBuilder_ == null) {
if (valueCase_ == 1 &&
value_ != xyz.block.ftl.v1.schema.StringValue.getDefaultInstance()) {
value_ = xyz.block.ftl.v1.schema.StringValue.newBuilder((xyz.block.ftl.v1.schema.StringValue) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 1) {
stringValueBuilder_.mergeFrom(value);
} else {
stringValueBuilder_.setMessage(value);
}
}
valueCase_ = 1;
return this;
}
/**
* .xyz.block.ftl.v1.schema.StringValue string_value = 1;
*/
public Builder clearStringValue() {
if (stringValueBuilder_ == null) {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
}
stringValueBuilder_.clear();
}
return this;
}
/**
* .xyz.block.ftl.v1.schema.StringValue string_value = 1;
*/
public xyz.block.ftl.v1.schema.StringValue.Builder getStringValueBuilder() {
return getStringValueFieldBuilder().getBuilder();
}
/**
* .xyz.block.ftl.v1.schema.StringValue string_value = 1;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.StringValueOrBuilder getStringValueOrBuilder() {
if ((valueCase_ == 1) && (stringValueBuilder_ != null)) {
return stringValueBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 1) {
return (xyz.block.ftl.v1.schema.StringValue) value_;
}
return xyz.block.ftl.v1.schema.StringValue.getDefaultInstance();
}
}
/**
* .xyz.block.ftl.v1.schema.StringValue string_value = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.StringValue, xyz.block.ftl.v1.schema.StringValue.Builder, xyz.block.ftl.v1.schema.StringValueOrBuilder>
getStringValueFieldBuilder() {
if (stringValueBuilder_ == null) {
if (!(valueCase_ == 1)) {
value_ = xyz.block.ftl.v1.schema.StringValue.getDefaultInstance();
}
stringValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.StringValue, xyz.block.ftl.v1.schema.StringValue.Builder, xyz.block.ftl.v1.schema.StringValueOrBuilder>(
(xyz.block.ftl.v1.schema.StringValue) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 1;
onChanged();
return stringValueBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.TypeValue, xyz.block.ftl.v1.schema.TypeValue.Builder, xyz.block.ftl.v1.schema.TypeValueOrBuilder> typeValueBuilder_;
/**
* .xyz.block.ftl.v1.schema.TypeValue type_value = 3;
* @return Whether the typeValue field is set.
*/
@java.lang.Override
public boolean hasTypeValue() {
return valueCase_ == 3;
}
/**
* .xyz.block.ftl.v1.schema.TypeValue type_value = 3;
* @return The typeValue.
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.TypeValue getTypeValue() {
if (typeValueBuilder_ == null) {
if (valueCase_ == 3) {
return (xyz.block.ftl.v1.schema.TypeValue) value_;
}
return xyz.block.ftl.v1.schema.TypeValue.getDefaultInstance();
} else {
if (valueCase_ == 3) {
return typeValueBuilder_.getMessage();
}
return xyz.block.ftl.v1.schema.TypeValue.getDefaultInstance();
}
}
/**
* .xyz.block.ftl.v1.schema.TypeValue type_value = 3;
*/
public Builder setTypeValue(xyz.block.ftl.v1.schema.TypeValue value) {
if (typeValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
typeValueBuilder_.setMessage(value);
}
valueCase_ = 3;
return this;
}
/**
* .xyz.block.ftl.v1.schema.TypeValue type_value = 3;
*/
public Builder setTypeValue(
xyz.block.ftl.v1.schema.TypeValue.Builder builderForValue) {
if (typeValueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
typeValueBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 3;
return this;
}
/**
* .xyz.block.ftl.v1.schema.TypeValue type_value = 3;
*/
public Builder mergeTypeValue(xyz.block.ftl.v1.schema.TypeValue value) {
if (typeValueBuilder_ == null) {
if (valueCase_ == 3 &&
value_ != xyz.block.ftl.v1.schema.TypeValue.getDefaultInstance()) {
value_ = xyz.block.ftl.v1.schema.TypeValue.newBuilder((xyz.block.ftl.v1.schema.TypeValue) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 3) {
typeValueBuilder_.mergeFrom(value);
} else {
typeValueBuilder_.setMessage(value);
}
}
valueCase_ = 3;
return this;
}
/**
* .xyz.block.ftl.v1.schema.TypeValue type_value = 3;
*/
public Builder clearTypeValue() {
if (typeValueBuilder_ == null) {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
}
typeValueBuilder_.clear();
}
return this;
}
/**
* .xyz.block.ftl.v1.schema.TypeValue type_value = 3;
*/
public xyz.block.ftl.v1.schema.TypeValue.Builder getTypeValueBuilder() {
return getTypeValueFieldBuilder().getBuilder();
}
/**
* .xyz.block.ftl.v1.schema.TypeValue type_value = 3;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.TypeValueOrBuilder getTypeValueOrBuilder() {
if ((valueCase_ == 3) && (typeValueBuilder_ != null)) {
return typeValueBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 3) {
return (xyz.block.ftl.v1.schema.TypeValue) value_;
}
return xyz.block.ftl.v1.schema.TypeValue.getDefaultInstance();
}
}
/**
* .xyz.block.ftl.v1.schema.TypeValue type_value = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.TypeValue, xyz.block.ftl.v1.schema.TypeValue.Builder, xyz.block.ftl.v1.schema.TypeValueOrBuilder>
getTypeValueFieldBuilder() {
if (typeValueBuilder_ == null) {
if (!(valueCase_ == 3)) {
value_ = xyz.block.ftl.v1.schema.TypeValue.getDefaultInstance();
}
typeValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.TypeValue, xyz.block.ftl.v1.schema.TypeValue.Builder, xyz.block.ftl.v1.schema.TypeValueOrBuilder>(
(xyz.block.ftl.v1.schema.TypeValue) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 3;
onChanged();
return typeValueBuilder_;
}
@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.schema.Value)
}
// @@protoc_insertion_point(class_scope:xyz.block.ftl.v1.schema.Value)
private static final xyz.block.ftl.v1.schema.Value DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xyz.block.ftl.v1.schema.Value();
}
public static xyz.block.ftl.v1.schema.Value getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Value 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.schema.Value getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy