com.google.protobuf.JavaFeaturesProto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-kotlin Show documentation
Show all versions of protobuf-kotlin Show documentation
Kotlin core Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an
efficient yet extensible format.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/protobuf/java_features.proto
// Protobuf Java Version: 4.29.1
package com.google.protobuf;
public final class JavaFeaturesProto {
private JavaFeaturesProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
registry.add(com.google.protobuf.JavaFeaturesProto.java_);
}
public interface JavaFeaturesOrBuilder extends
// @@protoc_insertion_point(interface_extends:pb.JavaFeatures)
com.google.protobuf.MessageLiteOrBuilder {
/**
* optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @return Whether the legacyClosedEnum field is set.
*/
boolean hasLegacyClosedEnum();
/**
* optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @return The legacyClosedEnum.
*/
boolean getLegacyClosedEnum();
/**
* optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @return Whether the utf8Validation field is set.
*/
boolean hasUtf8Validation();
/**
* optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @return The utf8Validation.
*/
com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation getUtf8Validation();
}
/**
* Protobuf type {@code pb.JavaFeatures}
*/
public static final class JavaFeatures extends
com.google.protobuf.GeneratedMessageLite<
JavaFeatures, JavaFeatures.Builder> implements
// @@protoc_insertion_point(message_implements:pb.JavaFeatures)
JavaFeaturesOrBuilder {
private JavaFeatures() {
}
/**
* Protobuf enum {@code pb.JavaFeatures.Utf8Validation}
*/
public enum Utf8Validation
implements com.google.protobuf.Internal.EnumLite {
/**
* UTF8_VALIDATION_UNKNOWN = 0;
*/
UTF8_VALIDATION_UNKNOWN(0),
/**
* DEFAULT = 1;
*/
DEFAULT(1),
/**
* VERIFY = 2;
*/
VERIFY(2),
;
/**
* UTF8_VALIDATION_UNKNOWN = 0;
*/
public static final int UTF8_VALIDATION_UNKNOWN_VALUE = 0;
/**
* DEFAULT = 1;
*/
public static final int DEFAULT_VALUE = 1;
/**
* VERIFY = 2;
*/
public static final int VERIFY_VALUE = 2;
@java.lang.Override
public final int getNumber() {
return value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Utf8Validation valueOf(int value) {
return forNumber(value);
}
public static Utf8Validation forNumber(int value) {
switch (value) {
case 0: return UTF8_VALIDATION_UNKNOWN;
case 1: return DEFAULT;
case 2: return VERIFY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Utf8Validation> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public Utf8Validation findValueByNumber(int number) {
return Utf8Validation.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return Utf8ValidationVerifier.INSTANCE;
}
private static final class Utf8ValidationVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new Utf8ValidationVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return Utf8Validation.forNumber(number) != null;
}
};
private final int value;
private Utf8Validation(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:pb.JavaFeatures.Utf8Validation)
}
private int bitField0_;
public static final int LEGACY_CLOSED_ENUM_FIELD_NUMBER = 1;
private boolean legacyClosedEnum_;
/**
* optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @return Whether the legacyClosedEnum field is set.
*/
@java.lang.Override
public boolean hasLegacyClosedEnum() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @return The legacyClosedEnum.
*/
@java.lang.Override
public boolean getLegacyClosedEnum() {
return legacyClosedEnum_;
}
/**
* optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @param value The legacyClosedEnum to set.
*/
private void setLegacyClosedEnum(boolean value) {
bitField0_ |= 0x00000001;
legacyClosedEnum_ = value;
}
/**
* optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
*/
private void clearLegacyClosedEnum() {
bitField0_ = (bitField0_ & ~0x00000001);
legacyClosedEnum_ = false;
}
public static final int UTF8_VALIDATION_FIELD_NUMBER = 2;
private int utf8Validation_;
/**
* optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @return Whether the utf8Validation field is set.
*/
@java.lang.Override
public boolean hasUtf8Validation() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @return The utf8Validation.
*/
@java.lang.Override
public com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation getUtf8Validation() {
com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation result = com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation.forNumber(utf8Validation_);
return result == null ? com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation.UTF8_VALIDATION_UNKNOWN : result;
}
/**
* optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @param value The utf8Validation to set.
*/
private void setUtf8Validation(com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation value) {
utf8Validation_ = value.getNumber();
bitField0_ |= 0x00000002;
}
/**
* optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
*/
private void clearUtf8Validation() {
bitField0_ = (bitField0_ & ~0x00000002);
utf8Validation_ = 0;
}
public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.google.protobuf.JavaFeaturesProto.JavaFeatures prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code pb.JavaFeatures}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protobuf.JavaFeaturesProto.JavaFeatures, Builder> implements
// @@protoc_insertion_point(builder_implements:pb.JavaFeatures)
com.google.protobuf.JavaFeaturesProto.JavaFeaturesOrBuilder {
// Construct using com.google.protobuf.JavaFeaturesProto.JavaFeatures.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @return Whether the legacyClosedEnum field is set.
*/
@java.lang.Override
public boolean hasLegacyClosedEnum() {
return instance.hasLegacyClosedEnum();
}
/**
* optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @return The legacyClosedEnum.
*/
@java.lang.Override
public boolean getLegacyClosedEnum() {
return instance.getLegacyClosedEnum();
}
/**
* optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @param value The legacyClosedEnum to set.
* @return This builder for chaining.
*/
public Builder setLegacyClosedEnum(boolean value) {
copyOnWrite();
instance.setLegacyClosedEnum(value);
return this;
}
/**
* optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @return This builder for chaining.
*/
public Builder clearLegacyClosedEnum() {
copyOnWrite();
instance.clearLegacyClosedEnum();
return this;
}
/**
* optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @return Whether the utf8Validation field is set.
*/
@java.lang.Override
public boolean hasUtf8Validation() {
return instance.hasUtf8Validation();
}
/**
* optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @return The utf8Validation.
*/
@java.lang.Override
public com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation getUtf8Validation() {
return instance.getUtf8Validation();
}
/**
* optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @param value The enum numeric value on the wire for utf8Validation to set.
* @return This builder for chaining.
*/
public Builder setUtf8Validation(com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation value) {
copyOnWrite();
instance.setUtf8Validation(value);
return this;
}
/**
* optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
* @return This builder for chaining.
*/
public Builder clearUtf8Validation() {
copyOnWrite();
instance.clearUtf8Validation();
return this;
}
// @@protoc_insertion_point(builder_scope:pb.JavaFeatures)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.google.protobuf.JavaFeaturesProto.JavaFeatures();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"legacyClosedEnum_",
"utf8Validation_",
com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation.internalGetVerifier(),
};
java.lang.String info =
"\u0001\u0002\u0000\u0001\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u1007\u0000\u0002" +
"\u180c\u0001";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.google.protobuf.JavaFeaturesProto.JavaFeatures.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:pb.JavaFeatures)
private static final com.google.protobuf.JavaFeaturesProto.JavaFeatures DEFAULT_INSTANCE;
static {
JavaFeatures defaultInstance = new JavaFeatures();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
JavaFeatures.class, defaultInstance);
}
public static com.google.protobuf.JavaFeaturesProto.JavaFeatures getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
public static final int JAVA_FIELD_NUMBER = 1001;
/**
* extend .google.protobuf.FeatureSet { ... }
*/
public static final
com.google.protobuf.GeneratedMessageLite.GeneratedExtension<
com.google.protobuf.DescriptorProtos.FeatureSet,
com.google.protobuf.JavaFeaturesProto.JavaFeatures> java_ = com.google.protobuf.GeneratedMessageLite
.newSingularGeneratedExtension(
com.google.protobuf.DescriptorProtos.FeatureSet.getDefaultInstance(),
com.google.protobuf.JavaFeaturesProto.JavaFeatures.getDefaultInstance(),
com.google.protobuf.JavaFeaturesProto.JavaFeatures.getDefaultInstance(),
null,
1001,
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.google.protobuf.JavaFeaturesProto.JavaFeatures.class);
static {
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy