xyz.block.ftl.v1.schema.Data 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.Data}
*/
public final class Data extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xyz.block.ftl.v1.schema.Data)
DataOrBuilder {
private static final long serialVersionUID = 0L;
// Use Data.newBuilder() to construct.
private Data(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Data() {
comments_ =
com.google.protobuf.LazyStringArrayList.emptyList();
name_ = "";
typeParameters_ = java.util.Collections.emptyList();
fields_ = java.util.Collections.emptyList();
metadata_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Data();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_Data_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_Data_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.v1.schema.Data.class, xyz.block.ftl.v1.schema.Data.Builder.class);
}
private int bitField0_;
public static final int POS_FIELD_NUMBER = 1;
private xyz.block.ftl.v1.schema.Position pos_;
/**
* optional .xyz.block.ftl.v1.schema.Position pos = 1;
* @return Whether the pos field is set.
*/
@java.lang.Override
public boolean hasPos() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .xyz.block.ftl.v1.schema.Position pos = 1;
* @return The pos.
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.Position getPos() {
return pos_ == null ? xyz.block.ftl.v1.schema.Position.getDefaultInstance() : pos_;
}
/**
* optional .xyz.block.ftl.v1.schema.Position pos = 1;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.PositionOrBuilder getPosOrBuilder() {
return pos_ == null ? xyz.block.ftl.v1.schema.Position.getDefaultInstance() : pos_;
}
public static final int COMMENTS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList comments_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string comments = 2;
* @return A list containing the comments.
*/
public com.google.protobuf.ProtocolStringList
getCommentsList() {
return comments_;
}
/**
* repeated string comments = 2;
* @return The count of comments.
*/
public int getCommentsCount() {
return comments_.size();
}
/**
* repeated string comments = 2;
* @param index The index of the element to return.
* @return The comments at the given index.
*/
public java.lang.String getComments(int index) {
return comments_.get(index);
}
/**
* repeated string comments = 2;
* @param index The index of the value to return.
* @return The bytes of the comments at the given index.
*/
public com.google.protobuf.ByteString
getCommentsBytes(int index) {
return comments_.getByteString(index);
}
public static final int EXPORT_FIELD_NUMBER = 3;
private boolean export_ = false;
/**
* bool export = 3;
* @return The export.
*/
@java.lang.Override
public boolean getExport() {
return export_;
}
public static final int NAME_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* string name = 4;
* @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 = 4;
* @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 TYPE_PARAMETERS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List typeParameters_;
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
@java.lang.Override
public java.util.List getTypeParametersList() {
return typeParameters_;
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
@java.lang.Override
public java.util.List extends xyz.block.ftl.v1.schema.TypeParameterOrBuilder>
getTypeParametersOrBuilderList() {
return typeParameters_;
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
@java.lang.Override
public int getTypeParametersCount() {
return typeParameters_.size();
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.TypeParameter getTypeParameters(int index) {
return typeParameters_.get(index);
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.TypeParameterOrBuilder getTypeParametersOrBuilder(
int index) {
return typeParameters_.get(index);
}
public static final int FIELDS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List fields_;
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
@java.lang.Override
public java.util.List getFieldsList() {
return fields_;
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
@java.lang.Override
public java.util.List extends xyz.block.ftl.v1.schema.FieldOrBuilder>
getFieldsOrBuilderList() {
return fields_;
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
@java.lang.Override
public int getFieldsCount() {
return fields_.size();
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.Field getFields(int index) {
return fields_.get(index);
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.FieldOrBuilder getFieldsOrBuilder(
int index) {
return fields_.get(index);
}
public static final int METADATA_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private java.util.List metadata_;
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
@java.lang.Override
public java.util.List getMetadataList() {
return metadata_;
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
@java.lang.Override
public java.util.List extends xyz.block.ftl.v1.schema.MetadataOrBuilder>
getMetadataOrBuilderList() {
return metadata_;
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
@java.lang.Override
public int getMetadataCount() {
return metadata_.size();
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.Metadata getMetadata(int index) {
return metadata_.get(index);
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
@java.lang.Override
public xyz.block.ftl.v1.schema.MetadataOrBuilder getMetadataOrBuilder(
int index) {
return metadata_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getPos());
}
for (int i = 0; i < comments_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, comments_.getRaw(i));
}
if (export_ != false) {
output.writeBool(3, export_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_);
}
for (int i = 0; i < typeParameters_.size(); i++) {
output.writeMessage(5, typeParameters_.get(i));
}
for (int i = 0; i < fields_.size(); i++) {
output.writeMessage(6, fields_.get(i));
}
for (int i = 0; i < metadata_.size(); i++) {
output.writeMessage(7, metadata_.get(i));
}
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, getPos());
}
{
int dataSize = 0;
for (int i = 0; i < comments_.size(); i++) {
dataSize += computeStringSizeNoTag(comments_.getRaw(i));
}
size += dataSize;
size += 1 * getCommentsList().size();
}
if (export_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, export_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_);
}
for (int i = 0; i < typeParameters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, typeParameters_.get(i));
}
for (int i = 0; i < fields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, fields_.get(i));
}
for (int i = 0; i < metadata_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, metadata_.get(i));
}
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.Data)) {
return super.equals(obj);
}
xyz.block.ftl.v1.schema.Data other = (xyz.block.ftl.v1.schema.Data) obj;
if (hasPos() != other.hasPos()) return false;
if (hasPos()) {
if (!getPos()
.equals(other.getPos())) return false;
}
if (!getCommentsList()
.equals(other.getCommentsList())) return false;
if (getExport()
!= other.getExport()) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getTypeParametersList()
.equals(other.getTypeParametersList())) return false;
if (!getFieldsList()
.equals(other.getFieldsList())) return false;
if (!getMetadataList()
.equals(other.getMetadataList())) 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 (hasPos()) {
hash = (37 * hash) + POS_FIELD_NUMBER;
hash = (53 * hash) + getPos().hashCode();
}
if (getCommentsCount() > 0) {
hash = (37 * hash) + COMMENTS_FIELD_NUMBER;
hash = (53 * hash) + getCommentsList().hashCode();
}
hash = (37 * hash) + EXPORT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getExport());
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getTypeParametersCount() > 0) {
hash = (37 * hash) + TYPE_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getTypeParametersList().hashCode();
}
if (getFieldsCount() > 0) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFieldsList().hashCode();
}
if (getMetadataCount() > 0) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadataList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static xyz.block.ftl.v1.schema.Data parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.schema.Data 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.Data parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.schema.Data 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.Data parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xyz.block.ftl.v1.schema.Data 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.Data parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.schema.Data 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.Data parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xyz.block.ftl.v1.schema.Data 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.Data 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.Data 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.Data 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.Data}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xyz.block.ftl.v1.schema.Data)
xyz.block.ftl.v1.schema.DataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xyz.block.ftl.v1.schema.SchemaOuterClass.internal_static_xyz_block_ftl_v1_schema_Data_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_Data_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xyz.block.ftl.v1.schema.Data.class, xyz.block.ftl.v1.schema.Data.Builder.class);
}
// Construct using xyz.block.ftl.v1.schema.Data.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPosFieldBuilder();
getTypeParametersFieldBuilder();
getFieldsFieldBuilder();
getMetadataFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
pos_ = null;
if (posBuilder_ != null) {
posBuilder_.dispose();
posBuilder_ = null;
}
comments_ =
com.google.protobuf.LazyStringArrayList.emptyList();
export_ = false;
name_ = "";
if (typeParametersBuilder_ == null) {
typeParameters_ = java.util.Collections.emptyList();
} else {
typeParameters_ = null;
typeParametersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
} else {
fields_ = null;
fieldsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (metadataBuilder_ == null) {
metadata_ = java.util.Collections.emptyList();
} else {
metadata_ = null;
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
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_Data_descriptor;
}
@java.lang.Override
public xyz.block.ftl.v1.schema.Data getDefaultInstanceForType() {
return xyz.block.ftl.v1.schema.Data.getDefaultInstance();
}
@java.lang.Override
public xyz.block.ftl.v1.schema.Data build() {
xyz.block.ftl.v1.schema.Data result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xyz.block.ftl.v1.schema.Data buildPartial() {
xyz.block.ftl.v1.schema.Data result = new xyz.block.ftl.v1.schema.Data(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(xyz.block.ftl.v1.schema.Data result) {
if (typeParametersBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
typeParameters_ = java.util.Collections.unmodifiableList(typeParameters_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.typeParameters_ = typeParameters_;
} else {
result.typeParameters_ = typeParametersBuilder_.build();
}
if (fieldsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.fields_ = fields_;
} else {
result.fields_ = fieldsBuilder_.build();
}
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
metadata_ = java.util.Collections.unmodifiableList(metadata_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
}
private void buildPartial0(xyz.block.ftl.v1.schema.Data result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.pos_ = posBuilder_ == null
? pos_
: posBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
comments_.makeImmutable();
result.comments_ = comments_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.export_ = export_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.name_ = name_;
}
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.schema.Data) {
return mergeFrom((xyz.block.ftl.v1.schema.Data)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xyz.block.ftl.v1.schema.Data other) {
if (other == xyz.block.ftl.v1.schema.Data.getDefaultInstance()) return this;
if (other.hasPos()) {
mergePos(other.getPos());
}
if (!other.comments_.isEmpty()) {
if (comments_.isEmpty()) {
comments_ = other.comments_;
bitField0_ |= 0x00000002;
} else {
ensureCommentsIsMutable();
comments_.addAll(other.comments_);
}
onChanged();
}
if (other.getExport() != false) {
setExport(other.getExport());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000008;
onChanged();
}
if (typeParametersBuilder_ == null) {
if (!other.typeParameters_.isEmpty()) {
if (typeParameters_.isEmpty()) {
typeParameters_ = other.typeParameters_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureTypeParametersIsMutable();
typeParameters_.addAll(other.typeParameters_);
}
onChanged();
}
} else {
if (!other.typeParameters_.isEmpty()) {
if (typeParametersBuilder_.isEmpty()) {
typeParametersBuilder_.dispose();
typeParametersBuilder_ = null;
typeParameters_ = other.typeParameters_;
bitField0_ = (bitField0_ & ~0x00000010);
typeParametersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTypeParametersFieldBuilder() : null;
} else {
typeParametersBuilder_.addAllMessages(other.typeParameters_);
}
}
}
if (fieldsBuilder_ == null) {
if (!other.fields_.isEmpty()) {
if (fields_.isEmpty()) {
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureFieldsIsMutable();
fields_.addAll(other.fields_);
}
onChanged();
}
} else {
if (!other.fields_.isEmpty()) {
if (fieldsBuilder_.isEmpty()) {
fieldsBuilder_.dispose();
fieldsBuilder_ = null;
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000020);
fieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldsFieldBuilder() : null;
} else {
fieldsBuilder_.addAllMessages(other.fields_);
}
}
}
if (metadataBuilder_ == null) {
if (!other.metadata_.isEmpty()) {
if (metadata_.isEmpty()) {
metadata_ = other.metadata_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureMetadataIsMutable();
metadata_.addAll(other.metadata_);
}
onChanged();
}
} else {
if (!other.metadata_.isEmpty()) {
if (metadataBuilder_.isEmpty()) {
metadataBuilder_.dispose();
metadataBuilder_ = null;
metadata_ = other.metadata_;
bitField0_ = (bitField0_ & ~0x00000040);
metadataBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMetadataFieldBuilder() : null;
} else {
metadataBuilder_.addAllMessages(other.metadata_);
}
}
}
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(
getPosFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureCommentsIsMutable();
comments_.add(s);
break;
} // case 18
case 24: {
export_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
xyz.block.ftl.v1.schema.TypeParameter m =
input.readMessage(
xyz.block.ftl.v1.schema.TypeParameter.parser(),
extensionRegistry);
if (typeParametersBuilder_ == null) {
ensureTypeParametersIsMutable();
typeParameters_.add(m);
} else {
typeParametersBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
xyz.block.ftl.v1.schema.Field m =
input.readMessage(
xyz.block.ftl.v1.schema.Field.parser(),
extensionRegistry);
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(m);
} else {
fieldsBuilder_.addMessage(m);
}
break;
} // case 50
case 58: {
xyz.block.ftl.v1.schema.Metadata m =
input.readMessage(
xyz.block.ftl.v1.schema.Metadata.parser(),
extensionRegistry);
if (metadataBuilder_ == null) {
ensureMetadataIsMutable();
metadata_.add(m);
} else {
metadataBuilder_.addMessage(m);
}
break;
} // case 58
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.v1.schema.Position pos_;
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.Position, xyz.block.ftl.v1.schema.Position.Builder, xyz.block.ftl.v1.schema.PositionOrBuilder> posBuilder_;
/**
* optional .xyz.block.ftl.v1.schema.Position pos = 1;
* @return Whether the pos field is set.
*/
public boolean hasPos() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .xyz.block.ftl.v1.schema.Position pos = 1;
* @return The pos.
*/
public xyz.block.ftl.v1.schema.Position getPos() {
if (posBuilder_ == null) {
return pos_ == null ? xyz.block.ftl.v1.schema.Position.getDefaultInstance() : pos_;
} else {
return posBuilder_.getMessage();
}
}
/**
* optional .xyz.block.ftl.v1.schema.Position pos = 1;
*/
public Builder setPos(xyz.block.ftl.v1.schema.Position value) {
if (posBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pos_ = value;
} else {
posBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional .xyz.block.ftl.v1.schema.Position pos = 1;
*/
public Builder setPos(
xyz.block.ftl.v1.schema.Position.Builder builderForValue) {
if (posBuilder_ == null) {
pos_ = builderForValue.build();
} else {
posBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional .xyz.block.ftl.v1.schema.Position pos = 1;
*/
public Builder mergePos(xyz.block.ftl.v1.schema.Position value) {
if (posBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
pos_ != null &&
pos_ != xyz.block.ftl.v1.schema.Position.getDefaultInstance()) {
getPosBuilder().mergeFrom(value);
} else {
pos_ = value;
}
} else {
posBuilder_.mergeFrom(value);
}
if (pos_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* optional .xyz.block.ftl.v1.schema.Position pos = 1;
*/
public Builder clearPos() {
bitField0_ = (bitField0_ & ~0x00000001);
pos_ = null;
if (posBuilder_ != null) {
posBuilder_.dispose();
posBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .xyz.block.ftl.v1.schema.Position pos = 1;
*/
public xyz.block.ftl.v1.schema.Position.Builder getPosBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getPosFieldBuilder().getBuilder();
}
/**
* optional .xyz.block.ftl.v1.schema.Position pos = 1;
*/
public xyz.block.ftl.v1.schema.PositionOrBuilder getPosOrBuilder() {
if (posBuilder_ != null) {
return posBuilder_.getMessageOrBuilder();
} else {
return pos_ == null ?
xyz.block.ftl.v1.schema.Position.getDefaultInstance() : pos_;
}
}
/**
* optional .xyz.block.ftl.v1.schema.Position pos = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.Position, xyz.block.ftl.v1.schema.Position.Builder, xyz.block.ftl.v1.schema.PositionOrBuilder>
getPosFieldBuilder() {
if (posBuilder_ == null) {
posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xyz.block.ftl.v1.schema.Position, xyz.block.ftl.v1.schema.Position.Builder, xyz.block.ftl.v1.schema.PositionOrBuilder>(
getPos(),
getParentForChildren(),
isClean());
pos_ = null;
}
return posBuilder_;
}
private com.google.protobuf.LazyStringArrayList comments_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureCommentsIsMutable() {
if (!comments_.isModifiable()) {
comments_ = new com.google.protobuf.LazyStringArrayList(comments_);
}
bitField0_ |= 0x00000002;
}
/**
* repeated string comments = 2;
* @return A list containing the comments.
*/
public com.google.protobuf.ProtocolStringList
getCommentsList() {
comments_.makeImmutable();
return comments_;
}
/**
* repeated string comments = 2;
* @return The count of comments.
*/
public int getCommentsCount() {
return comments_.size();
}
/**
* repeated string comments = 2;
* @param index The index of the element to return.
* @return The comments at the given index.
*/
public java.lang.String getComments(int index) {
return comments_.get(index);
}
/**
* repeated string comments = 2;
* @param index The index of the value to return.
* @return The bytes of the comments at the given index.
*/
public com.google.protobuf.ByteString
getCommentsBytes(int index) {
return comments_.getByteString(index);
}
/**
* repeated string comments = 2;
* @param index The index to set the value at.
* @param value The comments to set.
* @return This builder for chaining.
*/
public Builder setComments(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCommentsIsMutable();
comments_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string comments = 2;
* @param value The comments to add.
* @return This builder for chaining.
*/
public Builder addComments(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCommentsIsMutable();
comments_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string comments = 2;
* @param values The comments to add.
* @return This builder for chaining.
*/
public Builder addAllComments(
java.lang.Iterable values) {
ensureCommentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, comments_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string comments = 2;
* @return This builder for chaining.
*/
public Builder clearComments() {
comments_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
* repeated string comments = 2;
* @param value The bytes of the comments to add.
* @return This builder for chaining.
*/
public Builder addCommentsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureCommentsIsMutable();
comments_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private boolean export_ ;
/**
* bool export = 3;
* @return The export.
*/
@java.lang.Override
public boolean getExport() {
return export_;
}
/**
* bool export = 3;
* @param value The export to set.
* @return This builder for chaining.
*/
public Builder setExport(boolean value) {
export_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* bool export = 3;
* @return This builder for chaining.
*/
public Builder clearExport() {
bitField0_ = (bitField0_ & ~0x00000004);
export_ = false;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 4;
* @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 = 4;
* @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 = 4;
* @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_ |= 0x00000008;
onChanged();
return this;
}
/**
* string name = 4;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* string name = 4;
* @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_ |= 0x00000008;
onChanged();
return this;
}
private java.util.List typeParameters_ =
java.util.Collections.emptyList();
private void ensureTypeParametersIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
typeParameters_ = new java.util.ArrayList(typeParameters_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xyz.block.ftl.v1.schema.TypeParameter, xyz.block.ftl.v1.schema.TypeParameter.Builder, xyz.block.ftl.v1.schema.TypeParameterOrBuilder> typeParametersBuilder_;
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public java.util.List getTypeParametersList() {
if (typeParametersBuilder_ == null) {
return java.util.Collections.unmodifiableList(typeParameters_);
} else {
return typeParametersBuilder_.getMessageList();
}
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public int getTypeParametersCount() {
if (typeParametersBuilder_ == null) {
return typeParameters_.size();
} else {
return typeParametersBuilder_.getCount();
}
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public xyz.block.ftl.v1.schema.TypeParameter getTypeParameters(int index) {
if (typeParametersBuilder_ == null) {
return typeParameters_.get(index);
} else {
return typeParametersBuilder_.getMessage(index);
}
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public Builder setTypeParameters(
int index, xyz.block.ftl.v1.schema.TypeParameter value) {
if (typeParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTypeParametersIsMutable();
typeParameters_.set(index, value);
onChanged();
} else {
typeParametersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public Builder setTypeParameters(
int index, xyz.block.ftl.v1.schema.TypeParameter.Builder builderForValue) {
if (typeParametersBuilder_ == null) {
ensureTypeParametersIsMutable();
typeParameters_.set(index, builderForValue.build());
onChanged();
} else {
typeParametersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public Builder addTypeParameters(xyz.block.ftl.v1.schema.TypeParameter value) {
if (typeParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTypeParametersIsMutable();
typeParameters_.add(value);
onChanged();
} else {
typeParametersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public Builder addTypeParameters(
int index, xyz.block.ftl.v1.schema.TypeParameter value) {
if (typeParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTypeParametersIsMutable();
typeParameters_.add(index, value);
onChanged();
} else {
typeParametersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public Builder addTypeParameters(
xyz.block.ftl.v1.schema.TypeParameter.Builder builderForValue) {
if (typeParametersBuilder_ == null) {
ensureTypeParametersIsMutable();
typeParameters_.add(builderForValue.build());
onChanged();
} else {
typeParametersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public Builder addTypeParameters(
int index, xyz.block.ftl.v1.schema.TypeParameter.Builder builderForValue) {
if (typeParametersBuilder_ == null) {
ensureTypeParametersIsMutable();
typeParameters_.add(index, builderForValue.build());
onChanged();
} else {
typeParametersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public Builder addAllTypeParameters(
java.lang.Iterable extends xyz.block.ftl.v1.schema.TypeParameter> values) {
if (typeParametersBuilder_ == null) {
ensureTypeParametersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, typeParameters_);
onChanged();
} else {
typeParametersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public Builder clearTypeParameters() {
if (typeParametersBuilder_ == null) {
typeParameters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
typeParametersBuilder_.clear();
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public Builder removeTypeParameters(int index) {
if (typeParametersBuilder_ == null) {
ensureTypeParametersIsMutable();
typeParameters_.remove(index);
onChanged();
} else {
typeParametersBuilder_.remove(index);
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public xyz.block.ftl.v1.schema.TypeParameter.Builder getTypeParametersBuilder(
int index) {
return getTypeParametersFieldBuilder().getBuilder(index);
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public xyz.block.ftl.v1.schema.TypeParameterOrBuilder getTypeParametersOrBuilder(
int index) {
if (typeParametersBuilder_ == null) {
return typeParameters_.get(index); } else {
return typeParametersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public java.util.List extends xyz.block.ftl.v1.schema.TypeParameterOrBuilder>
getTypeParametersOrBuilderList() {
if (typeParametersBuilder_ != null) {
return typeParametersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(typeParameters_);
}
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public xyz.block.ftl.v1.schema.TypeParameter.Builder addTypeParametersBuilder() {
return getTypeParametersFieldBuilder().addBuilder(
xyz.block.ftl.v1.schema.TypeParameter.getDefaultInstance());
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public xyz.block.ftl.v1.schema.TypeParameter.Builder addTypeParametersBuilder(
int index) {
return getTypeParametersFieldBuilder().addBuilder(
index, xyz.block.ftl.v1.schema.TypeParameter.getDefaultInstance());
}
/**
* repeated .xyz.block.ftl.v1.schema.TypeParameter type_parameters = 5;
*/
public java.util.List
getTypeParametersBuilderList() {
return getTypeParametersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xyz.block.ftl.v1.schema.TypeParameter, xyz.block.ftl.v1.schema.TypeParameter.Builder, xyz.block.ftl.v1.schema.TypeParameterOrBuilder>
getTypeParametersFieldBuilder() {
if (typeParametersBuilder_ == null) {
typeParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
xyz.block.ftl.v1.schema.TypeParameter, xyz.block.ftl.v1.schema.TypeParameter.Builder, xyz.block.ftl.v1.schema.TypeParameterOrBuilder>(
typeParameters_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
typeParameters_ = null;
}
return typeParametersBuilder_;
}
private java.util.List fields_ =
java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
fields_ = new java.util.ArrayList(fields_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xyz.block.ftl.v1.schema.Field, xyz.block.ftl.v1.schema.Field.Builder, xyz.block.ftl.v1.schema.FieldOrBuilder> fieldsBuilder_;
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public java.util.List getFieldsList() {
if (fieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fields_);
} else {
return fieldsBuilder_.getMessageList();
}
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public int getFieldsCount() {
if (fieldsBuilder_ == null) {
return fields_.size();
} else {
return fieldsBuilder_.getCount();
}
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public xyz.block.ftl.v1.schema.Field getFields(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
return fieldsBuilder_.getMessage(index);
}
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public Builder setFields(
int index, xyz.block.ftl.v1.schema.Field value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.set(index, value);
onChanged();
} else {
fieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public Builder setFields(
int index, xyz.block.ftl.v1.schema.Field.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.set(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public Builder addFields(xyz.block.ftl.v1.schema.Field value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(value);
onChanged();
} else {
fieldsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public Builder addFields(
int index, xyz.block.ftl.v1.schema.Field value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(index, value);
onChanged();
} else {
fieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public Builder addFields(
xyz.block.ftl.v1.schema.Field.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public Builder addFields(
int index, xyz.block.ftl.v1.schema.Field.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public Builder addAllFields(
java.lang.Iterable extends xyz.block.ftl.v1.schema.Field> values) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fields_);
onChanged();
} else {
fieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public Builder clearFields() {
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
fieldsBuilder_.clear();
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public Builder removeFields(int index) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.remove(index);
onChanged();
} else {
fieldsBuilder_.remove(index);
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public xyz.block.ftl.v1.schema.Field.Builder getFieldsBuilder(
int index) {
return getFieldsFieldBuilder().getBuilder(index);
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public xyz.block.ftl.v1.schema.FieldOrBuilder getFieldsOrBuilder(
int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index); } else {
return fieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public java.util.List extends xyz.block.ftl.v1.schema.FieldOrBuilder>
getFieldsOrBuilderList() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fields_);
}
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public xyz.block.ftl.v1.schema.Field.Builder addFieldsBuilder() {
return getFieldsFieldBuilder().addBuilder(
xyz.block.ftl.v1.schema.Field.getDefaultInstance());
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public xyz.block.ftl.v1.schema.Field.Builder addFieldsBuilder(
int index) {
return getFieldsFieldBuilder().addBuilder(
index, xyz.block.ftl.v1.schema.Field.getDefaultInstance());
}
/**
* repeated .xyz.block.ftl.v1.schema.Field fields = 6;
*/
public java.util.List
getFieldsBuilderList() {
return getFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xyz.block.ftl.v1.schema.Field, xyz.block.ftl.v1.schema.Field.Builder, xyz.block.ftl.v1.schema.FieldOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
xyz.block.ftl.v1.schema.Field, xyz.block.ftl.v1.schema.Field.Builder, xyz.block.ftl.v1.schema.FieldOrBuilder>(
fields_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
fields_ = null;
}
return fieldsBuilder_;
}
private java.util.List metadata_ =
java.util.Collections.emptyList();
private void ensureMetadataIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
metadata_ = new java.util.ArrayList(metadata_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xyz.block.ftl.v1.schema.Metadata, xyz.block.ftl.v1.schema.Metadata.Builder, xyz.block.ftl.v1.schema.MetadataOrBuilder> metadataBuilder_;
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public java.util.List getMetadataList() {
if (metadataBuilder_ == null) {
return java.util.Collections.unmodifiableList(metadata_);
} else {
return metadataBuilder_.getMessageList();
}
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public int getMetadataCount() {
if (metadataBuilder_ == null) {
return metadata_.size();
} else {
return metadataBuilder_.getCount();
}
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public xyz.block.ftl.v1.schema.Metadata getMetadata(int index) {
if (metadataBuilder_ == null) {
return metadata_.get(index);
} else {
return metadataBuilder_.getMessage(index);
}
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public Builder setMetadata(
int index, xyz.block.ftl.v1.schema.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMetadataIsMutable();
metadata_.set(index, value);
onChanged();
} else {
metadataBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public Builder setMetadata(
int index, xyz.block.ftl.v1.schema.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
ensureMetadataIsMutable();
metadata_.set(index, builderForValue.build());
onChanged();
} else {
metadataBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public Builder addMetadata(xyz.block.ftl.v1.schema.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMetadataIsMutable();
metadata_.add(value);
onChanged();
} else {
metadataBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public Builder addMetadata(
int index, xyz.block.ftl.v1.schema.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMetadataIsMutable();
metadata_.add(index, value);
onChanged();
} else {
metadataBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public Builder addMetadata(
xyz.block.ftl.v1.schema.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
ensureMetadataIsMutable();
metadata_.add(builderForValue.build());
onChanged();
} else {
metadataBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public Builder addMetadata(
int index, xyz.block.ftl.v1.schema.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
ensureMetadataIsMutable();
metadata_.add(index, builderForValue.build());
onChanged();
} else {
metadataBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public Builder addAllMetadata(
java.lang.Iterable extends xyz.block.ftl.v1.schema.Metadata> values) {
if (metadataBuilder_ == null) {
ensureMetadataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, metadata_);
onChanged();
} else {
metadataBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
metadataBuilder_.clear();
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public Builder removeMetadata(int index) {
if (metadataBuilder_ == null) {
ensureMetadataIsMutable();
metadata_.remove(index);
onChanged();
} else {
metadataBuilder_.remove(index);
}
return this;
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public xyz.block.ftl.v1.schema.Metadata.Builder getMetadataBuilder(
int index) {
return getMetadataFieldBuilder().getBuilder(index);
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public xyz.block.ftl.v1.schema.MetadataOrBuilder getMetadataOrBuilder(
int index) {
if (metadataBuilder_ == null) {
return metadata_.get(index); } else {
return metadataBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public java.util.List extends xyz.block.ftl.v1.schema.MetadataOrBuilder>
getMetadataOrBuilderList() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(metadata_);
}
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public xyz.block.ftl.v1.schema.Metadata.Builder addMetadataBuilder() {
return getMetadataFieldBuilder().addBuilder(
xyz.block.ftl.v1.schema.Metadata.getDefaultInstance());
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public xyz.block.ftl.v1.schema.Metadata.Builder addMetadataBuilder(
int index) {
return getMetadataFieldBuilder().addBuilder(
index, xyz.block.ftl.v1.schema.Metadata.getDefaultInstance());
}
/**
* repeated .xyz.block.ftl.v1.schema.Metadata metadata = 7;
*/
public java.util.List
getMetadataBuilderList() {
return getMetadataFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xyz.block.ftl.v1.schema.Metadata, xyz.block.ftl.v1.schema.Metadata.Builder, xyz.block.ftl.v1.schema.MetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
xyz.block.ftl.v1.schema.Metadata, xyz.block.ftl.v1.schema.Metadata.Builder, xyz.block.ftl.v1.schema.MetadataOrBuilder>(
metadata_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
@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.Data)
}
// @@protoc_insertion_point(class_scope:xyz.block.ftl.v1.schema.Data)
private static final xyz.block.ftl.v1.schema.Data DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xyz.block.ftl.v1.schema.Data();
}
public static xyz.block.ftl.v1.schema.Data getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Data 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.Data getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy