
core.Datamodel Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: core/Datamodel.proto
package core;
public final class Datamodel {
private Datamodel() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
registry.add(core.Datamodel.db);
registry.add(core.Datamodel.table);
registry.add(core.Datamodel.map);
registry.add(core.Datamodel.field);
registry.add(core.Datamodel.column);
registry.add(core.Datamodel.collection);
registry.add(core.Datamodel.label);
registry.add(core.Datamodel.color);
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* Specifies how a sub-object in a particular message should be persisted.
*
*
* Protobuf enum {@code core.CollectionMode}
*/
public enum CollectionMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* `NESTED` mode stores the specified collection within the parent document.
*
*
* NESTED = 0;
*/
NESTED(0),
/**
*
* `COLLECTION` mode stores the specified collection as a subcollection under the parent document.
*
*
* COLLECTION = 1;
*/
COLLECTION(1),
/**
*
* `GROUP` mode stores the specified collection at the root of the data system.
*
*
* GROUP = 2;
*/
GROUP(2),
UNRECOGNIZED(-1),
;
/**
*
* `NESTED` mode stores the specified collection within the parent document.
*
*
* NESTED = 0;
*/
public static final int NESTED_VALUE = 0;
/**
*
* `COLLECTION` mode stores the specified collection as a subcollection under the parent document.
*
*
* COLLECTION = 1;
*/
public static final int COLLECTION_VALUE = 1;
/**
*
* `GROUP` mode stores the specified collection at the root of the data system.
*
*
* GROUP = 2;
*/
public static final int GROUP_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CollectionMode valueOf(int value) {
return forNumber(value);
}
public static CollectionMode forNumber(int value) {
switch (value) {
case 0: return NESTED;
case 1: return COLLECTION;
case 2: return GROUP;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CollectionMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CollectionMode findValueByNumber(int number) {
return CollectionMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return core.Datamodel.getDescriptor().getEnumTypes().get(0);
}
private static final CollectionMode[] VALUES = values();
public static CollectionMode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private CollectionMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:core.CollectionMode)
}
/**
*
* Enumerates field handling special-cases. Fields may be annotated with these special types to change the way they are
* handled by the model mapping layer.
*
*
* Protobuf enum {@code core.FieldType}
*/
public enum FieldType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* This is a standard field (default value).
*
*
* STANDARD = 0;
*/
STANDARD(0),
/**
*
* This is a key field (a primary key submessage) for a GROUP or COLLECTION-moded message.
*
*
* KEY = 1;
*/
KEY(1),
/**
*
* This is an ID field that should be used as the final name of this document.
*
*
* ID = 2;
*/
ID(2),
/**
*
* This is a tags-style field.
*
*
* TAGS = 3;
*/
TAGS(3),
/**
*
* Store this object as a special flags-style mapping.
*
*
* FLAGS = 4;
*/
FLAGS(4),
UNRECOGNIZED(-1),
;
/**
*
* This is a standard field (default value).
*
*
* STANDARD = 0;
*/
public static final int STANDARD_VALUE = 0;
/**
*
* This is a key field (a primary key submessage) for a GROUP or COLLECTION-moded message.
*
*
* KEY = 1;
*/
public static final int KEY_VALUE = 1;
/**
*
* This is an ID field that should be used as the final name of this document.
*
*
* ID = 2;
*/
public static final int ID_VALUE = 2;
/**
*
* This is a tags-style field.
*
*
* TAGS = 3;
*/
public static final int TAGS_VALUE = 3;
/**
*
* Store this object as a special flags-style mapping.
*
*
* FLAGS = 4;
*/
public static final int FLAGS_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FieldType valueOf(int value) {
return forNumber(value);
}
public static FieldType forNumber(int value) {
switch (value) {
case 0: return STANDARD;
case 1: return KEY;
case 2: return ID;
case 3: return TAGS;
case 4: return FLAGS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
FieldType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public FieldType findValueByNumber(int number) {
return FieldType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return core.Datamodel.getDescriptor().getEnumTypes().get(1);
}
private static final FieldType[] VALUES = values();
public static FieldType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private FieldType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:core.FieldType)
}
public interface PersistenceOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:core.PersistenceOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* Specifies the storage mode for this entity.
*
*
* .core.CollectionMode mode = 1;
*/
int getModeValue();
/**
*
* Specifies the storage mode for this entity.
*
*
* .core.CollectionMode mode = 1;
*/
core.Datamodel.CollectionMode getMode();
/**
*
* Data path for a given message, with items in the URL corresponding to parameters in the item's key path.
*
*
* string path = 2;
*/
java.lang.String getPath();
/**
*
* Data path for a given message, with items in the URL corresponding to parameters in the item's key path.
*
*
* string path = 2;
*/
com.google.protobuf.ByteString
getPathBytes();
}
/**
*
* Specifies options related to persistence of underlying model data associated with this particular message type. This
* includes settings related to Firestore and other data engines.
*
*
* Protobuf type {@code core.PersistenceOptions}
*/
public static final class PersistenceOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:core.PersistenceOptions)
PersistenceOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use PersistenceOptions.newBuilder() to construct.
private PersistenceOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PersistenceOptions() {
mode_ = 0;
path_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PersistenceOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
mode_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return core.Datamodel.internal_static_core_PersistenceOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return core.Datamodel.internal_static_core_PersistenceOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
core.Datamodel.PersistenceOptions.class, core.Datamodel.PersistenceOptions.Builder.class);
}
public static final int MODE_FIELD_NUMBER = 1;
private int mode_;
/**
*
* Specifies the storage mode for this entity.
*
*
* .core.CollectionMode mode = 1;
*/
public int getModeValue() {
return mode_;
}
/**
*
* Specifies the storage mode for this entity.
*
*
* .core.CollectionMode mode = 1;
*/
public core.Datamodel.CollectionMode getMode() {
@SuppressWarnings("deprecation")
core.Datamodel.CollectionMode result = core.Datamodel.CollectionMode.valueOf(mode_);
return result == null ? core.Datamodel.CollectionMode.UNRECOGNIZED : result;
}
public static final int PATH_FIELD_NUMBER = 2;
private volatile java.lang.Object path_;
/**
*
* Data path for a given message, with items in the URL corresponding to parameters in the item's key path.
*
*
* string path = 2;
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
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();
path_ = s;
return s;
}
}
/**
*
* Data path for a given message, with items in the URL corresponding to parameters in the item's key path.
*
*
* string path = 2;
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (mode_ != core.Datamodel.CollectionMode.NESTED.getNumber()) {
output.writeEnum(1, mode_);
}
if (!getPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (mode_ != core.Datamodel.CollectionMode.NESTED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, mode_);
}
if (!getPathBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof core.Datamodel.PersistenceOptions)) {
return super.equals(obj);
}
core.Datamodel.PersistenceOptions other = (core.Datamodel.PersistenceOptions) obj;
boolean result = true;
result = result && mode_ == other.mode_;
result = result && getPath()
.equals(other.getPath());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + mode_;
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static core.Datamodel.PersistenceOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.PersistenceOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.PersistenceOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.PersistenceOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.PersistenceOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.PersistenceOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.PersistenceOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static core.Datamodel.PersistenceOptions 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 core.Datamodel.PersistenceOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static core.Datamodel.PersistenceOptions 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 core.Datamodel.PersistenceOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static core.Datamodel.PersistenceOptions 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(core.Datamodel.PersistenceOptions 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;
}
/**
*
* Specifies options related to persistence of underlying model data associated with this particular message type. This
* includes settings related to Firestore and other data engines.
*
*
* Protobuf type {@code core.PersistenceOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:core.PersistenceOptions)
core.Datamodel.PersistenceOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return core.Datamodel.internal_static_core_PersistenceOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return core.Datamodel.internal_static_core_PersistenceOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
core.Datamodel.PersistenceOptions.class, core.Datamodel.PersistenceOptions.Builder.class);
}
// Construct using core.Datamodel.PersistenceOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
mode_ = 0;
path_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return core.Datamodel.internal_static_core_PersistenceOptions_descriptor;
}
@java.lang.Override
public core.Datamodel.PersistenceOptions getDefaultInstanceForType() {
return core.Datamodel.PersistenceOptions.getDefaultInstance();
}
@java.lang.Override
public core.Datamodel.PersistenceOptions build() {
core.Datamodel.PersistenceOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public core.Datamodel.PersistenceOptions buildPartial() {
core.Datamodel.PersistenceOptions result = new core.Datamodel.PersistenceOptions(this);
result.mode_ = mode_;
result.path_ = path_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof core.Datamodel.PersistenceOptions) {
return mergeFrom((core.Datamodel.PersistenceOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(core.Datamodel.PersistenceOptions other) {
if (other == core.Datamodel.PersistenceOptions.getDefaultInstance()) return this;
if (other.mode_ != 0) {
setModeValue(other.getModeValue());
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
core.Datamodel.PersistenceOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (core.Datamodel.PersistenceOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int mode_ = 0;
/**
*
* Specifies the storage mode for this entity.
*
*
* .core.CollectionMode mode = 1;
*/
public int getModeValue() {
return mode_;
}
/**
*
* Specifies the storage mode for this entity.
*
*
* .core.CollectionMode mode = 1;
*/
public Builder setModeValue(int value) {
mode_ = value;
onChanged();
return this;
}
/**
*
* Specifies the storage mode for this entity.
*
*
* .core.CollectionMode mode = 1;
*/
public core.Datamodel.CollectionMode getMode() {
@SuppressWarnings("deprecation")
core.Datamodel.CollectionMode result = core.Datamodel.CollectionMode.valueOf(mode_);
return result == null ? core.Datamodel.CollectionMode.UNRECOGNIZED : result;
}
/**
*
* Specifies the storage mode for this entity.
*
*
* .core.CollectionMode mode = 1;
*/
public Builder setMode(core.Datamodel.CollectionMode value) {
if (value == null) {
throw new NullPointerException();
}
mode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Specifies the storage mode for this entity.
*
*
* .core.CollectionMode mode = 1;
*/
public Builder clearMode() {
mode_ = 0;
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
*
* Data path for a given message, with items in the URL corresponding to parameters in the item's key path.
*
*
* string path = 2;
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Data path for a given message, with items in the URL corresponding to parameters in the item's key path.
*
*
* string path = 2;
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Data path for a given message, with items in the URL corresponding to parameters in the item's key path.
*
*
* string path = 2;
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
*
* Data path for a given message, with items in the URL corresponding to parameters in the item's key path.
*
*
* string path = 2;
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
*
* Data path for a given message, with items in the URL corresponding to parameters in the item's key path.
*
*
* string path = 2;
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:core.PersistenceOptions)
}
// @@protoc_insertion_point(class_scope:core.PersistenceOptions)
private static final core.Datamodel.PersistenceOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new core.Datamodel.PersistenceOptions();
}
public static core.Datamodel.PersistenceOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PersistenceOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PersistenceOptions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public core.Datamodel.PersistenceOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TableOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:core.TableOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the table bound to this model.
*
*
* string name = 1;
*/
java.lang.String getName();
/**
*
* Name of the table bound to this model.
*
*
* string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description for the table bound to this model.
*
*
* string description = 2;
*/
java.lang.String getDescription();
/**
*
* Description for the table bound to this model.
*
*
* string description = 2;
*/
com.google.protobuf.ByteString
getDescriptionBytes();
}
/**
*
* Options specific to model integration with table-style engines, where there can be a table name and/or description
* that should be mapped to a particular message structure.
*
*
* Protobuf type {@code core.TableOptions}
*/
public static final class TableOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:core.TableOptions)
TableOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use TableOptions.newBuilder() to construct.
private TableOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TableOptions() {
name_ = "";
description_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TableOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return core.Datamodel.internal_static_core_TableOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return core.Datamodel.internal_static_core_TableOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
core.Datamodel.TableOptions.class, core.Datamodel.TableOptions.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of the table bound to this model.
*
*
* string name = 1;
*/
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;
}
}
/**
*
* Name of the table bound to this model.
*
*
* string name = 1;
*/
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 DESCRIPTION_FIELD_NUMBER = 2;
private volatile java.lang.Object description_;
/**
*
* Description for the table bound to this model.
*
*
* string description = 2;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* Description for the table bound to this model.
*
*
* string description = 2;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof core.Datamodel.TableOptions)) {
return super.equals(obj);
}
core.Datamodel.TableOptions other = (core.Datamodel.TableOptions) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && getDescription()
.equals(other.getDescription());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@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) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static core.Datamodel.TableOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.TableOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.TableOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.TableOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.TableOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.TableOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.TableOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static core.Datamodel.TableOptions 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 core.Datamodel.TableOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static core.Datamodel.TableOptions 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 core.Datamodel.TableOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static core.Datamodel.TableOptions 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(core.Datamodel.TableOptions 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;
}
/**
*
* Options specific to model integration with table-style engines, where there can be a table name and/or description
* that should be mapped to a particular message structure.
*
*
* Protobuf type {@code core.TableOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:core.TableOptions)
core.Datamodel.TableOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return core.Datamodel.internal_static_core_TableOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return core.Datamodel.internal_static_core_TableOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
core.Datamodel.TableOptions.class, core.Datamodel.TableOptions.Builder.class);
}
// Construct using core.Datamodel.TableOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
description_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return core.Datamodel.internal_static_core_TableOptions_descriptor;
}
@java.lang.Override
public core.Datamodel.TableOptions getDefaultInstanceForType() {
return core.Datamodel.TableOptions.getDefaultInstance();
}
@java.lang.Override
public core.Datamodel.TableOptions build() {
core.Datamodel.TableOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public core.Datamodel.TableOptions buildPartial() {
core.Datamodel.TableOptions result = new core.Datamodel.TableOptions(this);
result.name_ = name_;
result.description_ = description_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof core.Datamodel.TableOptions) {
return mergeFrom((core.Datamodel.TableOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(core.Datamodel.TableOptions other) {
if (other == core.Datamodel.TableOptions.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
core.Datamodel.TableOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (core.Datamodel.TableOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the table bound to this model.
*
*
* string name = 1;
*/
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;
}
}
/**
*
* Name of the table bound to this model.
*
*
* string name = 1;
*/
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;
}
}
/**
*
* Name of the table bound to this model.
*
*
* string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the table bound to this model.
*
*
* string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the table bound to this model.
*
*
* string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description for the table bound to this model.
*
*
* string description = 2;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description for the table bound to this model.
*
*
* string description = 2;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description for the table bound to this model.
*
*
* string description = 2;
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description for the table bound to this model.
*
*
* string description = 2;
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description for the table bound to this model.
*
*
* string description = 2;
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:core.TableOptions)
}
// @@protoc_insertion_point(class_scope:core.TableOptions)
private static final core.Datamodel.TableOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new core.Datamodel.TableOptions();
}
public static core.Datamodel.TableOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TableOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TableOptions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public core.Datamodel.TableOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubmessageOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:core.SubmessageOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* Collection storage mode for the given sub-message field.
*
*
* .core.CollectionMode mode = 1;
*/
int getModeValue();
/**
*
* Collection storage mode for the given sub-message field.
*
*
* .core.CollectionMode mode = 1;
*/
core.Datamodel.CollectionMode getMode();
/**
*
* Data path for the given sub-message field.
*
*
* string path = 3;
*/
java.lang.String getPath();
/**
*
* Data path for the given sub-message field.
*
*
* string path = 3;
*/
com.google.protobuf.ByteString
getPathBytes();
}
/**
*
* Specifies options related to storing a sub-message.
*
*
* Protobuf type {@code core.SubmessageOptions}
*/
public static final class SubmessageOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:core.SubmessageOptions)
SubmessageOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubmessageOptions.newBuilder() to construct.
private SubmessageOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubmessageOptions() {
mode_ = 0;
path_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubmessageOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
mode_ = rawValue;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return core.Datamodel.internal_static_core_SubmessageOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return core.Datamodel.internal_static_core_SubmessageOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
core.Datamodel.SubmessageOptions.class, core.Datamodel.SubmessageOptions.Builder.class);
}
public static final int MODE_FIELD_NUMBER = 1;
private int mode_;
/**
*
* Collection storage mode for the given sub-message field.
*
*
* .core.CollectionMode mode = 1;
*/
public int getModeValue() {
return mode_;
}
/**
*
* Collection storage mode for the given sub-message field.
*
*
* .core.CollectionMode mode = 1;
*/
public core.Datamodel.CollectionMode getMode() {
@SuppressWarnings("deprecation")
core.Datamodel.CollectionMode result = core.Datamodel.CollectionMode.valueOf(mode_);
return result == null ? core.Datamodel.CollectionMode.UNRECOGNIZED : result;
}
public static final int PATH_FIELD_NUMBER = 3;
private volatile java.lang.Object path_;
/**
*
* Data path for the given sub-message field.
*
*
* string path = 3;
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
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();
path_ = s;
return s;
}
}
/**
*
* Data path for the given sub-message field.
*
*
* string path = 3;
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (mode_ != core.Datamodel.CollectionMode.NESTED.getNumber()) {
output.writeEnum(1, mode_);
}
if (!getPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, path_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (mode_ != core.Datamodel.CollectionMode.NESTED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, mode_);
}
if (!getPathBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, path_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof core.Datamodel.SubmessageOptions)) {
return super.equals(obj);
}
core.Datamodel.SubmessageOptions other = (core.Datamodel.SubmessageOptions) obj;
boolean result = true;
result = result && mode_ == other.mode_;
result = result && getPath()
.equals(other.getPath());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + mode_;
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static core.Datamodel.SubmessageOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.SubmessageOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.SubmessageOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.SubmessageOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.SubmessageOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.SubmessageOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.SubmessageOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static core.Datamodel.SubmessageOptions 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 core.Datamodel.SubmessageOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static core.Datamodel.SubmessageOptions 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 core.Datamodel.SubmessageOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static core.Datamodel.SubmessageOptions 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(core.Datamodel.SubmessageOptions 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;
}
/**
*
* Specifies options related to storing a sub-message.
*
*
* Protobuf type {@code core.SubmessageOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:core.SubmessageOptions)
core.Datamodel.SubmessageOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return core.Datamodel.internal_static_core_SubmessageOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return core.Datamodel.internal_static_core_SubmessageOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
core.Datamodel.SubmessageOptions.class, core.Datamodel.SubmessageOptions.Builder.class);
}
// Construct using core.Datamodel.SubmessageOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
mode_ = 0;
path_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return core.Datamodel.internal_static_core_SubmessageOptions_descriptor;
}
@java.lang.Override
public core.Datamodel.SubmessageOptions getDefaultInstanceForType() {
return core.Datamodel.SubmessageOptions.getDefaultInstance();
}
@java.lang.Override
public core.Datamodel.SubmessageOptions build() {
core.Datamodel.SubmessageOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public core.Datamodel.SubmessageOptions buildPartial() {
core.Datamodel.SubmessageOptions result = new core.Datamodel.SubmessageOptions(this);
result.mode_ = mode_;
result.path_ = path_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof core.Datamodel.SubmessageOptions) {
return mergeFrom((core.Datamodel.SubmessageOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(core.Datamodel.SubmessageOptions other) {
if (other == core.Datamodel.SubmessageOptions.getDefaultInstance()) return this;
if (other.mode_ != 0) {
setModeValue(other.getModeValue());
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
core.Datamodel.SubmessageOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (core.Datamodel.SubmessageOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int mode_ = 0;
/**
*
* Collection storage mode for the given sub-message field.
*
*
* .core.CollectionMode mode = 1;
*/
public int getModeValue() {
return mode_;
}
/**
*
* Collection storage mode for the given sub-message field.
*
*
* .core.CollectionMode mode = 1;
*/
public Builder setModeValue(int value) {
mode_ = value;
onChanged();
return this;
}
/**
*
* Collection storage mode for the given sub-message field.
*
*
* .core.CollectionMode mode = 1;
*/
public core.Datamodel.CollectionMode getMode() {
@SuppressWarnings("deprecation")
core.Datamodel.CollectionMode result = core.Datamodel.CollectionMode.valueOf(mode_);
return result == null ? core.Datamodel.CollectionMode.UNRECOGNIZED : result;
}
/**
*
* Collection storage mode for the given sub-message field.
*
*
* .core.CollectionMode mode = 1;
*/
public Builder setMode(core.Datamodel.CollectionMode value) {
if (value == null) {
throw new NullPointerException();
}
mode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Collection storage mode for the given sub-message field.
*
*
* .core.CollectionMode mode = 1;
*/
public Builder clearMode() {
mode_ = 0;
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
*
* Data path for the given sub-message field.
*
*
* string path = 3;
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Data path for the given sub-message field.
*
*
* string path = 3;
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Data path for the given sub-message field.
*
*
* string path = 3;
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
*
* Data path for the given sub-message field.
*
*
* string path = 3;
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
*
* Data path for the given sub-message field.
*
*
* string path = 3;
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:core.SubmessageOptions)
}
// @@protoc_insertion_point(class_scope:core.SubmessageOptions)
private static final core.Datamodel.SubmessageOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new core.Datamodel.SubmessageOptions();
}
public static core.Datamodel.SubmessageOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubmessageOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubmessageOptions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public core.Datamodel.SubmessageOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FieldPersistenceOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:core.FieldPersistenceOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* Field type, for special-case fields.
*
*
* .core.FieldType type = 1;
*/
int getTypeValue();
/**
*
* Field type, for special-case fields.
*
*
* .core.FieldType type = 1;
*/
core.Datamodel.FieldType getType();
/**
*
* String description of this field included in schemas.
*
*
* string description = 2;
*/
java.lang.String getDescription();
/**
*
* String description of this field included in schemas.
*
*
* string description = 2;
*/
com.google.protobuf.ByteString
getDescriptionBytes();
}
/**
*
* Persistence/data engine options specific to an individual message field.
*
*
* Protobuf type {@code core.FieldPersistenceOptions}
*/
public static final class FieldPersistenceOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:core.FieldPersistenceOptions)
FieldPersistenceOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use FieldPersistenceOptions.newBuilder() to construct.
private FieldPersistenceOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FieldPersistenceOptions() {
type_ = 0;
description_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FieldPersistenceOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return core.Datamodel.internal_static_core_FieldPersistenceOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return core.Datamodel.internal_static_core_FieldPersistenceOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
core.Datamodel.FieldPersistenceOptions.class, core.Datamodel.FieldPersistenceOptions.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
*
* Field type, for special-case fields.
*
*
* .core.FieldType type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
*
* Field type, for special-case fields.
*
*
* .core.FieldType type = 1;
*/
public core.Datamodel.FieldType getType() {
@SuppressWarnings("deprecation")
core.Datamodel.FieldType result = core.Datamodel.FieldType.valueOf(type_);
return result == null ? core.Datamodel.FieldType.UNRECOGNIZED : result;
}
public static final int DESCRIPTION_FIELD_NUMBER = 2;
private volatile java.lang.Object description_;
/**
*
* String description of this field included in schemas.
*
*
* string description = 2;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
description_ = s;
return s;
}
}
/**
*
* String description of this field included in schemas.
*
*
* string description = 2;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (type_ != core.Datamodel.FieldType.STANDARD.getNumber()) {
output.writeEnum(1, type_);
}
if (!getDescriptionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != core.Datamodel.FieldType.STANDARD.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (!getDescriptionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof core.Datamodel.FieldPersistenceOptions)) {
return super.equals(obj);
}
core.Datamodel.FieldPersistenceOptions other = (core.Datamodel.FieldPersistenceOptions) obj;
boolean result = true;
result = result && type_ == other.type_;
result = result && getDescription()
.equals(other.getDescription());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static core.Datamodel.FieldPersistenceOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.FieldPersistenceOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.FieldPersistenceOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.FieldPersistenceOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.FieldPersistenceOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.FieldPersistenceOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.FieldPersistenceOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static core.Datamodel.FieldPersistenceOptions 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 core.Datamodel.FieldPersistenceOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static core.Datamodel.FieldPersistenceOptions 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 core.Datamodel.FieldPersistenceOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static core.Datamodel.FieldPersistenceOptions 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(core.Datamodel.FieldPersistenceOptions 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;
}
/**
*
* Persistence/data engine options specific to an individual message field.
*
*
* Protobuf type {@code core.FieldPersistenceOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:core.FieldPersistenceOptions)
core.Datamodel.FieldPersistenceOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return core.Datamodel.internal_static_core_FieldPersistenceOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return core.Datamodel.internal_static_core_FieldPersistenceOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
core.Datamodel.FieldPersistenceOptions.class, core.Datamodel.FieldPersistenceOptions.Builder.class);
}
// Construct using core.Datamodel.FieldPersistenceOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = 0;
description_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return core.Datamodel.internal_static_core_FieldPersistenceOptions_descriptor;
}
@java.lang.Override
public core.Datamodel.FieldPersistenceOptions getDefaultInstanceForType() {
return core.Datamodel.FieldPersistenceOptions.getDefaultInstance();
}
@java.lang.Override
public core.Datamodel.FieldPersistenceOptions build() {
core.Datamodel.FieldPersistenceOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public core.Datamodel.FieldPersistenceOptions buildPartial() {
core.Datamodel.FieldPersistenceOptions result = new core.Datamodel.FieldPersistenceOptions(this);
result.type_ = type_;
result.description_ = description_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof core.Datamodel.FieldPersistenceOptions) {
return mergeFrom((core.Datamodel.FieldPersistenceOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(core.Datamodel.FieldPersistenceOptions other) {
if (other == core.Datamodel.FieldPersistenceOptions.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
core.Datamodel.FieldPersistenceOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (core.Datamodel.FieldPersistenceOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int type_ = 0;
/**
*
* Field type, for special-case fields.
*
*
* .core.FieldType type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
*
* Field type, for special-case fields.
*
*
* .core.FieldType type = 1;
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
*
* Field type, for special-case fields.
*
*
* .core.FieldType type = 1;
*/
public core.Datamodel.FieldType getType() {
@SuppressWarnings("deprecation")
core.Datamodel.FieldType result = core.Datamodel.FieldType.valueOf(type_);
return result == null ? core.Datamodel.FieldType.UNRECOGNIZED : result;
}
/**
*
* Field type, for special-case fields.
*
*
* .core.FieldType type = 1;
*/
public Builder setType(core.Datamodel.FieldType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Field type, for special-case fields.
*
*
* .core.FieldType type = 1;
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* String description of this field included in schemas.
*
*
* string description = 2;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* String description of this field included in schemas.
*
*
* string description = 2;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* String description of this field included in schemas.
*
*
* string description = 2;
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* String description of this field included in schemas.
*
*
* string description = 2;
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* String description of this field included in schemas.
*
*
* string description = 2;
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:core.FieldPersistenceOptions)
}
// @@protoc_insertion_point(class_scope:core.FieldPersistenceOptions)
private static final core.Datamodel.FieldPersistenceOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new core.Datamodel.FieldPersistenceOptions();
}
public static core.Datamodel.FieldPersistenceOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FieldPersistenceOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FieldPersistenceOptions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public core.Datamodel.FieldPersistenceOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TableFieldOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:core.TableFieldOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* Marks this field as `REQUIRED` in tabular schemas.
*
*
* bool require = 1;
*/
boolean getRequire();
/**
*
* Marks this field as ignored for serialization in tabular circumstances.
*
*
* bool ignore = 2;
*/
boolean getIgnore();
/**
*
* Overrides the BigQuery type associated with the exported form of this message.
*
*
* string bqtype = 3;
*/
java.lang.String getBqtype();
/**
*
* Overrides the BigQuery type associated with the exported form of this message.
*
*
* string bqtype = 3;
*/
com.google.protobuf.ByteString
getBqtypeBytes();
}
/**
*
* Specifies options specific to storing this field in a tabular-style data engine.
*
*
* Protobuf type {@code core.TableFieldOptions}
*/
public static final class TableFieldOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:core.TableFieldOptions)
TableFieldOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use TableFieldOptions.newBuilder() to construct.
private TableFieldOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TableFieldOptions() {
require_ = false;
ignore_ = false;
bqtype_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TableFieldOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
require_ = input.readBool();
break;
}
case 16: {
ignore_ = input.readBool();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
bqtype_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return core.Datamodel.internal_static_core_TableFieldOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return core.Datamodel.internal_static_core_TableFieldOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
core.Datamodel.TableFieldOptions.class, core.Datamodel.TableFieldOptions.Builder.class);
}
public static final int REQUIRE_FIELD_NUMBER = 1;
private boolean require_;
/**
*
* Marks this field as `REQUIRED` in tabular schemas.
*
*
* bool require = 1;
*/
public boolean getRequire() {
return require_;
}
public static final int IGNORE_FIELD_NUMBER = 2;
private boolean ignore_;
/**
*
* Marks this field as ignored for serialization in tabular circumstances.
*
*
* bool ignore = 2;
*/
public boolean getIgnore() {
return ignore_;
}
public static final int BQTYPE_FIELD_NUMBER = 3;
private volatile java.lang.Object bqtype_;
/**
*
* Overrides the BigQuery type associated with the exported form of this message.
*
*
* string bqtype = 3;
*/
public java.lang.String getBqtype() {
java.lang.Object ref = bqtype_;
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();
bqtype_ = s;
return s;
}
}
/**
*
* Overrides the BigQuery type associated with the exported form of this message.
*
*
* string bqtype = 3;
*/
public com.google.protobuf.ByteString
getBqtypeBytes() {
java.lang.Object ref = bqtype_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bqtype_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (require_ != false) {
output.writeBool(1, require_);
}
if (ignore_ != false) {
output.writeBool(2, ignore_);
}
if (!getBqtypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bqtype_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (require_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, require_);
}
if (ignore_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, ignore_);
}
if (!getBqtypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bqtype_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof core.Datamodel.TableFieldOptions)) {
return super.equals(obj);
}
core.Datamodel.TableFieldOptions other = (core.Datamodel.TableFieldOptions) obj;
boolean result = true;
result = result && (getRequire()
== other.getRequire());
result = result && (getIgnore()
== other.getIgnore());
result = result && getBqtype()
.equals(other.getBqtype());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REQUIRE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRequire());
hash = (37 * hash) + IGNORE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnore());
hash = (37 * hash) + BQTYPE_FIELD_NUMBER;
hash = (53 * hash) + getBqtype().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static core.Datamodel.TableFieldOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.TableFieldOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.TableFieldOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.TableFieldOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.TableFieldOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.TableFieldOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.TableFieldOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static core.Datamodel.TableFieldOptions 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 core.Datamodel.TableFieldOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static core.Datamodel.TableFieldOptions 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 core.Datamodel.TableFieldOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static core.Datamodel.TableFieldOptions 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(core.Datamodel.TableFieldOptions 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;
}
/**
*
* Specifies options specific to storing this field in a tabular-style data engine.
*
*
* Protobuf type {@code core.TableFieldOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:core.TableFieldOptions)
core.Datamodel.TableFieldOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return core.Datamodel.internal_static_core_TableFieldOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return core.Datamodel.internal_static_core_TableFieldOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
core.Datamodel.TableFieldOptions.class, core.Datamodel.TableFieldOptions.Builder.class);
}
// Construct using core.Datamodel.TableFieldOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
require_ = false;
ignore_ = false;
bqtype_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return core.Datamodel.internal_static_core_TableFieldOptions_descriptor;
}
@java.lang.Override
public core.Datamodel.TableFieldOptions getDefaultInstanceForType() {
return core.Datamodel.TableFieldOptions.getDefaultInstance();
}
@java.lang.Override
public core.Datamodel.TableFieldOptions build() {
core.Datamodel.TableFieldOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public core.Datamodel.TableFieldOptions buildPartial() {
core.Datamodel.TableFieldOptions result = new core.Datamodel.TableFieldOptions(this);
result.require_ = require_;
result.ignore_ = ignore_;
result.bqtype_ = bqtype_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof core.Datamodel.TableFieldOptions) {
return mergeFrom((core.Datamodel.TableFieldOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(core.Datamodel.TableFieldOptions other) {
if (other == core.Datamodel.TableFieldOptions.getDefaultInstance()) return this;
if (other.getRequire() != false) {
setRequire(other.getRequire());
}
if (other.getIgnore() != false) {
setIgnore(other.getIgnore());
}
if (!other.getBqtype().isEmpty()) {
bqtype_ = other.bqtype_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
core.Datamodel.TableFieldOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (core.Datamodel.TableFieldOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean require_ ;
/**
*
* Marks this field as `REQUIRED` in tabular schemas.
*
*
* bool require = 1;
*/
public boolean getRequire() {
return require_;
}
/**
*
* Marks this field as `REQUIRED` in tabular schemas.
*
*
* bool require = 1;
*/
public Builder setRequire(boolean value) {
require_ = value;
onChanged();
return this;
}
/**
*
* Marks this field as `REQUIRED` in tabular schemas.
*
*
* bool require = 1;
*/
public Builder clearRequire() {
require_ = false;
onChanged();
return this;
}
private boolean ignore_ ;
/**
*
* Marks this field as ignored for serialization in tabular circumstances.
*
*
* bool ignore = 2;
*/
public boolean getIgnore() {
return ignore_;
}
/**
*
* Marks this field as ignored for serialization in tabular circumstances.
*
*
* bool ignore = 2;
*/
public Builder setIgnore(boolean value) {
ignore_ = value;
onChanged();
return this;
}
/**
*
* Marks this field as ignored for serialization in tabular circumstances.
*
*
* bool ignore = 2;
*/
public Builder clearIgnore() {
ignore_ = false;
onChanged();
return this;
}
private java.lang.Object bqtype_ = "";
/**
*
* Overrides the BigQuery type associated with the exported form of this message.
*
*
* string bqtype = 3;
*/
public java.lang.String getBqtype() {
java.lang.Object ref = bqtype_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
bqtype_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Overrides the BigQuery type associated with the exported form of this message.
*
*
* string bqtype = 3;
*/
public com.google.protobuf.ByteString
getBqtypeBytes() {
java.lang.Object ref = bqtype_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bqtype_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Overrides the BigQuery type associated with the exported form of this message.
*
*
* string bqtype = 3;
*/
public Builder setBqtype(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bqtype_ = value;
onChanged();
return this;
}
/**
*
* Overrides the BigQuery type associated with the exported form of this message.
*
*
* string bqtype = 3;
*/
public Builder clearBqtype() {
bqtype_ = getDefaultInstance().getBqtype();
onChanged();
return this;
}
/**
*
* Overrides the BigQuery type associated with the exported form of this message.
*
*
* string bqtype = 3;
*/
public Builder setBqtypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bqtype_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:core.TableFieldOptions)
}
// @@protoc_insertion_point(class_scope:core.TableFieldOptions)
private static final core.Datamodel.TableFieldOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new core.Datamodel.TableFieldOptions();
}
public static core.Datamodel.TableFieldOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TableFieldOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TableFieldOptions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public core.Datamodel.TableFieldOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ObjectMappingOrBuilder extends
// @@protoc_insertion_point(interface_extends:core.ObjectMapping)
com.google.protobuf.MessageOrBuilder {
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
java.util.List
getInstanceList();
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
int getInstanceCount();
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
java.lang.String getInstance(int index);
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
com.google.protobuf.ByteString
getInstanceBytes(int index);
}
/**
*
* Specifies mappings for an arbitrary protobuf message object.
*
*
* Protobuf type {@code core.ObjectMapping}
*/
public static final class ObjectMapping extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:core.ObjectMapping)
ObjectMappingOrBuilder {
private static final long serialVersionUID = 0L;
// Use ObjectMapping.newBuilder() to construct.
private ObjectMapping(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ObjectMapping() {
instance_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ObjectMapping(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
instance_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
instance_.add(s);
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
instance_ = instance_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return core.Datamodel.internal_static_core_ObjectMapping_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return core.Datamodel.internal_static_core_ObjectMapping_fieldAccessorTable
.ensureFieldAccessorsInitialized(
core.Datamodel.ObjectMapping.class, core.Datamodel.ObjectMapping.Builder.class);
}
public static final int INSTANCE_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList instance_;
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
public com.google.protobuf.ProtocolStringList
getInstanceList() {
return instance_;
}
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
public int getInstanceCount() {
return instance_.size();
}
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
public java.lang.String getInstance(int index) {
return instance_.get(index);
}
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
public com.google.protobuf.ByteString
getInstanceBytes(int index) {
return instance_.getByteString(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 {
for (int i = 0; i < instance_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instance_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < instance_.size(); i++) {
dataSize += computeStringSizeNoTag(instance_.getRaw(i));
}
size += dataSize;
size += 1 * getInstanceList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof core.Datamodel.ObjectMapping)) {
return super.equals(obj);
}
core.Datamodel.ObjectMapping other = (core.Datamodel.ObjectMapping) obj;
boolean result = true;
result = result && getInstanceList()
.equals(other.getInstanceList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getInstanceCount() > 0) {
hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
hash = (53 * hash) + getInstanceList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static core.Datamodel.ObjectMapping parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.ObjectMapping parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.ObjectMapping parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.ObjectMapping parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.ObjectMapping parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static core.Datamodel.ObjectMapping parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static core.Datamodel.ObjectMapping parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static core.Datamodel.ObjectMapping 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 core.Datamodel.ObjectMapping parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static core.Datamodel.ObjectMapping 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 core.Datamodel.ObjectMapping parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static core.Datamodel.ObjectMapping 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(core.Datamodel.ObjectMapping 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;
}
/**
*
* Specifies mappings for an arbitrary protobuf message object.
*
*
* Protobuf type {@code core.ObjectMapping}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:core.ObjectMapping)
core.Datamodel.ObjectMappingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return core.Datamodel.internal_static_core_ObjectMapping_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return core.Datamodel.internal_static_core_ObjectMapping_fieldAccessorTable
.ensureFieldAccessorsInitialized(
core.Datamodel.ObjectMapping.class, core.Datamodel.ObjectMapping.Builder.class);
}
// Construct using core.Datamodel.ObjectMapping.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
instance_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return core.Datamodel.internal_static_core_ObjectMapping_descriptor;
}
@java.lang.Override
public core.Datamodel.ObjectMapping getDefaultInstanceForType() {
return core.Datamodel.ObjectMapping.getDefaultInstance();
}
@java.lang.Override
public core.Datamodel.ObjectMapping build() {
core.Datamodel.ObjectMapping result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public core.Datamodel.ObjectMapping buildPartial() {
core.Datamodel.ObjectMapping result = new core.Datamodel.ObjectMapping(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
instance_ = instance_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.instance_ = instance_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof core.Datamodel.ObjectMapping) {
return mergeFrom((core.Datamodel.ObjectMapping)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(core.Datamodel.ObjectMapping other) {
if (other == core.Datamodel.ObjectMapping.getDefaultInstance()) return this;
if (!other.instance_.isEmpty()) {
if (instance_.isEmpty()) {
instance_ = other.instance_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInstanceIsMutable();
instance_.addAll(other.instance_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
core.Datamodel.ObjectMapping parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (core.Datamodel.ObjectMapping) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList instance_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureInstanceIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
instance_ = new com.google.protobuf.LazyStringArrayList(instance_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
public com.google.protobuf.ProtocolStringList
getInstanceList() {
return instance_.getUnmodifiableView();
}
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
public int getInstanceCount() {
return instance_.size();
}
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
public java.lang.String getInstance(int index) {
return instance_.get(index);
}
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
public com.google.protobuf.ByteString
getInstanceBytes(int index) {
return instance_.getByteString(index);
}
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
public Builder setInstance(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInstanceIsMutable();
instance_.set(index, value);
onChanged();
return this;
}
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
public Builder addInstance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInstanceIsMutable();
instance_.add(value);
onChanged();
return this;
}
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
public Builder addAllInstance(
java.lang.Iterable values) {
ensureInstanceIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, instance_);
onChanged();
return this;
}
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
public Builder clearInstance() {
instance_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Maps an enumeration instance to this object. Enumeration membership is contextual.
*
*
* repeated string instance = 1;
*/
public Builder addInstanceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureInstanceIsMutable();
instance_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:core.ObjectMapping)
}
// @@protoc_insertion_point(class_scope:core.ObjectMapping)
private static final core.Datamodel.ObjectMapping DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new core.Datamodel.ObjectMapping();
}
public static core.Datamodel.ObjectMapping getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ObjectMapping parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ObjectMapping(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public core.Datamodel.ObjectMapping getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int DB_FIELD_NUMBER = 6000;
/**
*
* Settings specific to how a particular message entity is stored in the underlying persistence engine. For Bloombox,
* this generally means Cloud Firestore.
*
*
* extend .google.protobuf.MessageOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.MessageOptions,
core.Datamodel.PersistenceOptions> db = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
core.Datamodel.PersistenceOptions.class,
core.Datamodel.PersistenceOptions.getDefaultInstance());
public static final int TABLE_FIELD_NUMBER = 6001;
/**
*
* Table-specific configuration for this message. Kicks in when engines are in play that observe or couch data in a
* table/row-style pattern. Usually used for integration with BigQuery.
*
*
* extend .google.protobuf.MessageOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.MessageOptions,
core.Datamodel.TableOptions> table = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
core.Datamodel.TableOptions.class,
core.Datamodel.TableOptions.getDefaultInstance());
public static final int MAP_FIELD_NUMBER = 6002;
/**
*
* Settings that determine meta-mappings between this message object and enumerated states, declared in a foreign
* structure. Foreign structure mappings are contextually defined by the invoking application.
*
*
* extend .google.protobuf.MessageOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.MessageOptions,
core.Datamodel.ObjectMapping> map = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
core.Datamodel.ObjectMapping.class,
core.Datamodel.ObjectMapping.getDefaultInstance());
public static final int FIELD_FIELD_NUMBER = 7000;
/**
*
* Database engine persistence options specific to an individual document field.
*
*
* extend .google.protobuf.FieldOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.FieldOptions,
core.Datamodel.FieldPersistenceOptions> field = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
core.Datamodel.FieldPersistenceOptions.class,
core.Datamodel.FieldPersistenceOptions.getDefaultInstance());
public static final int COLUMN_FIELD_NUMBER = 7001;
/**
*
* Specifies options related to storage of this field in a tabular-style data engine.
*
*
* extend .google.protobuf.FieldOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.FieldOptions,
core.Datamodel.TableFieldOptions> column = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
core.Datamodel.TableFieldOptions.class,
core.Datamodel.TableFieldOptions.getDefaultInstance());
public static final int COLLECTION_FIELD_NUMBER = 7002;
/**
*
* Specifies options related to storage of a submessage-typed field.
*
*
* extend .google.protobuf.FieldOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.FieldOptions,
core.Datamodel.SubmessageOptions> collection = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
core.Datamodel.SubmessageOptions.class,
core.Datamodel.SubmessageOptions.getDefaultInstance());
public static final int LABEL_FIELD_NUMBER = 8003;
/**
*
* Human-readable label for a given enumeration value state. Optional, can be used by invoking code to generate labels
* for states in forms or other UI.
*
*
* extend .google.protobuf.EnumValueOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.EnumValueOptions,
java.lang.String> label = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
java.lang.String.class,
null);
public static final int COLOR_FIELD_NUMBER = 8004;
/**
*
* Color code value for a given enumerated value state. Optional, can be used by invoking code to generate UI schemes.
*
*
* extend .google.protobuf.EnumValueOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.EnumValueOptions,
io.opencannabis.schema.content.Colors.Color> color = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
io.opencannabis.schema.content.Colors.Color.class,
io.opencannabis.schema.content.Colors.Color.getDefaultInstance());
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_core_PersistenceOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_core_PersistenceOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_core_TableOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_core_TableOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_core_SubmessageOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_core_SubmessageOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_core_FieldPersistenceOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_core_FieldPersistenceOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_core_TableFieldOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_core_TableFieldOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_core_ObjectMapping_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_core_ObjectMapping_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\024core/Datamodel.proto\022\004core\032 google/pro" +
"tobuf/descriptor.proto\032\024content/Colors.p" +
"roto\"F\n\022PersistenceOptions\022\"\n\004mode\030\001 \001(\016" +
"2\024.core.CollectionMode\022\014\n\004path\030\002 \001(\t\"1\n\014" +
"TableOptions\022\014\n\004name\030\001 \001(\t\022\023\n\013descriptio" +
"n\030\002 \001(\t\"E\n\021SubmessageOptions\022\"\n\004mode\030\001 \001" +
"(\0162\024.core.CollectionMode\022\014\n\004path\030\003 \001(\t\"M" +
"\n\027FieldPersistenceOptions\022\035\n\004type\030\001 \001(\0162" +
"\017.core.FieldType\022\023\n\013description\030\002 \001(\t\"D\n" +
"\021TableFieldOptions\022\017\n\007require\030\001 \001(\010\022\016\n\006i" +
"gnore\030\002 \001(\010\022\016\n\006bqtype\030\003 \001(\t\"!\n\rObjectMap" +
"ping\022\020\n\010instance\030\001 \003(\t*7\n\016CollectionMode" +
"\022\n\n\006NESTED\020\000\022\016\n\nCOLLECTION\020\001\022\t\n\005GROUP\020\002*" +
"?\n\tFieldType\022\014\n\010STANDARD\020\000\022\007\n\003KEY\020\001\022\006\n\002I" +
"D\020\002\022\010\n\004TAGS\020\003\022\t\n\005FLAGS\020\004:F\n\002db\022\037.google." +
"protobuf.MessageOptions\030\360. \001(\0132\030.core.Pe" +
"rsistenceOptions:C\n\005table\022\037.google.proto" +
"buf.MessageOptions\030\361. \001(\0132\022.core.TableOp" +
"tions:B\n\003map\022\037.google.protobuf.MessageOp" +
"tions\030\362. \001(\0132\023.core.ObjectMapping:L\n\005fie" +
"ld\022\035.google.protobuf.FieldOptions\030\3306 \001(\013" +
"2\035.core.FieldPersistenceOptions:G\n\006colum" +
"n\022\035.google.protobuf.FieldOptions\030\3316 \001(\0132" +
"\027.core.TableFieldOptions:K\n\ncollection\022\035" +
".google.protobuf.FieldOptions\030\3326 \001(\0132\027.c" +
"ore.SubmessageOptions:1\n\005label\022!.google." +
"protobuf.EnumValueOptions\030\303> \001(\t:N\n\005colo" +
"r\022!.google.protobuf.EnumValueOptions\030\304> " +
"\001(\0132\033.opencannabis.content.Colorb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.DescriptorProtos.getDescriptor(),
io.opencannabis.schema.content.Colors.getDescriptor(),
}, assigner);
internal_static_core_PersistenceOptions_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_core_PersistenceOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_core_PersistenceOptions_descriptor,
new java.lang.String[] { "Mode", "Path", });
internal_static_core_TableOptions_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_core_TableOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_core_TableOptions_descriptor,
new java.lang.String[] { "Name", "Description", });
internal_static_core_SubmessageOptions_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_core_SubmessageOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_core_SubmessageOptions_descriptor,
new java.lang.String[] { "Mode", "Path", });
internal_static_core_FieldPersistenceOptions_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_core_FieldPersistenceOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_core_FieldPersistenceOptions_descriptor,
new java.lang.String[] { "Type", "Description", });
internal_static_core_TableFieldOptions_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_core_TableFieldOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_core_TableFieldOptions_descriptor,
new java.lang.String[] { "Require", "Ignore", "Bqtype", });
internal_static_core_ObjectMapping_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_core_ObjectMapping_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_core_ObjectMapping_descriptor,
new java.lang.String[] { "Instance", });
db.internalInit(descriptor.getExtensions().get(0));
table.internalInit(descriptor.getExtensions().get(1));
map.internalInit(descriptor.getExtensions().get(2));
field.internalInit(descriptor.getExtensions().get(3));
column.internalInit(descriptor.getExtensions().get(4));
collection.internalInit(descriptor.getExtensions().get(5));
label.internalInit(descriptor.getExtensions().get(6));
color.internalInit(descriptor.getExtensions().get(7));
com.google.protobuf.DescriptorProtos.getDescriptor();
io.opencannabis.schema.content.Colors.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy