
cel.dev.expr.conformance.LibrarySubset Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cel/expr/conformance/env_config.proto
// Protobuf Java Version: 3.25.1
package cel.dev.expr.conformance;
/**
*
* LibrarySubset indicates a subset of the macros and functions supported by a
* subsettable library.
*
*
* Protobuf type {@code cel.expr.conformance.LibrarySubset}
*/
public final class LibrarySubset extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cel.expr.conformance.LibrarySubset)
LibrarySubsetOrBuilder {
private static final long serialVersionUID = 0L;
// Use LibrarySubset.newBuilder() to construct.
private LibrarySubset(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LibrarySubset() {
includeMacros_ =
com.google.protobuf.LazyStringArrayList.emptyList();
excludeMacros_ =
com.google.protobuf.LazyStringArrayList.emptyList();
includeFunctions_ = java.util.Collections.emptyList();
excludeFunctions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LibrarySubset();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cel.dev.expr.conformance.EnvironmentProto.internal_static_cel_expr_conformance_LibrarySubset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cel.dev.expr.conformance.EnvironmentProto.internal_static_cel_expr_conformance_LibrarySubset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cel.dev.expr.conformance.LibrarySubset.class, cel.dev.expr.conformance.LibrarySubset.Builder.class);
}
public static final int DISABLED_FIELD_NUMBER = 1;
private boolean disabled_ = false;
/**
*
* Indicates whether the library has been disabled, typically only
* used for default-enabled libraries like stdlib.
*
*
* bool disabled = 1;
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
public static final int DISABLE_MACROS_FIELD_NUMBER = 2;
private boolean disableMacros_ = false;
/**
*
* Disables macros for the given library.
*
*
* bool disable_macros = 2;
* @return The disableMacros.
*/
@java.lang.Override
public boolean getDisableMacros() {
return disableMacros_;
}
public static final int INCLUDE_MACROS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList includeMacros_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Specifies a set of macro function names to include in the subset.
*
*
* repeated string include_macros = 3;
* @return A list containing the includeMacros.
*/
public com.google.protobuf.ProtocolStringList
getIncludeMacrosList() {
return includeMacros_;
}
/**
*
* Specifies a set of macro function names to include in the subset.
*
*
* repeated string include_macros = 3;
* @return The count of includeMacros.
*/
public int getIncludeMacrosCount() {
return includeMacros_.size();
}
/**
*
* Specifies a set of macro function names to include in the subset.
*
*
* repeated string include_macros = 3;
* @param index The index of the element to return.
* @return The includeMacros at the given index.
*/
public java.lang.String getIncludeMacros(int index) {
return includeMacros_.get(index);
}
/**
*
* Specifies a set of macro function names to include in the subset.
*
*
* repeated string include_macros = 3;
* @param index The index of the value to return.
* @return The bytes of the includeMacros at the given index.
*/
public com.google.protobuf.ByteString
getIncludeMacrosBytes(int index) {
return includeMacros_.getByteString(index);
}
public static final int EXCLUDE_MACROS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList excludeMacros_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Specifies a set of macro function names to exclude from the subset.
* Note: if IncludeMacros is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated string exclude_macros = 4;
* @return A list containing the excludeMacros.
*/
public com.google.protobuf.ProtocolStringList
getExcludeMacrosList() {
return excludeMacros_;
}
/**
*
* Specifies a set of macro function names to exclude from the subset.
* Note: if IncludeMacros is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated string exclude_macros = 4;
* @return The count of excludeMacros.
*/
public int getExcludeMacrosCount() {
return excludeMacros_.size();
}
/**
*
* Specifies a set of macro function names to exclude from the subset.
* Note: if IncludeMacros is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated string exclude_macros = 4;
* @param index The index of the element to return.
* @return The excludeMacros at the given index.
*/
public java.lang.String getExcludeMacros(int index) {
return excludeMacros_.get(index);
}
/**
*
* Specifies a set of macro function names to exclude from the subset.
* Note: if IncludeMacros is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated string exclude_macros = 4;
* @param index The index of the value to return.
* @return The bytes of the excludeMacros at the given index.
*/
public com.google.protobuf.ByteString
getExcludeMacrosBytes(int index) {
return excludeMacros_.getByteString(index);
}
public static final int INCLUDE_FUNCTIONS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List includeFunctions_;
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
@java.lang.Override
public java.util.List getIncludeFunctionsList() {
return includeFunctions_;
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
@java.lang.Override
public java.util.List extends dev.cel.expr.DeclOrBuilder>
getIncludeFunctionsOrBuilderList() {
return includeFunctions_;
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
@java.lang.Override
public int getIncludeFunctionsCount() {
return includeFunctions_.size();
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
@java.lang.Override
public dev.cel.expr.Decl getIncludeFunctions(int index) {
return includeFunctions_.get(index);
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
@java.lang.Override
public dev.cel.expr.DeclOrBuilder getIncludeFunctionsOrBuilder(
int index) {
return includeFunctions_.get(index);
}
public static final int EXCLUDE_FUNCTIONS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List excludeFunctions_;
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
@java.lang.Override
public java.util.List getExcludeFunctionsList() {
return excludeFunctions_;
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
@java.lang.Override
public java.util.List extends dev.cel.expr.DeclOrBuilder>
getExcludeFunctionsOrBuilderList() {
return excludeFunctions_;
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
@java.lang.Override
public int getExcludeFunctionsCount() {
return excludeFunctions_.size();
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
@java.lang.Override
public dev.cel.expr.Decl getExcludeFunctions(int index) {
return excludeFunctions_.get(index);
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
@java.lang.Override
public dev.cel.expr.DeclOrBuilder getExcludeFunctionsOrBuilder(
int index) {
return excludeFunctions_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (disabled_ != false) {
output.writeBool(1, disabled_);
}
if (disableMacros_ != false) {
output.writeBool(2, disableMacros_);
}
for (int i = 0; i < includeMacros_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, includeMacros_.getRaw(i));
}
for (int i = 0; i < excludeMacros_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, excludeMacros_.getRaw(i));
}
for (int i = 0; i < includeFunctions_.size(); i++) {
output.writeMessage(5, includeFunctions_.get(i));
}
for (int i = 0; i < excludeFunctions_.size(); i++) {
output.writeMessage(6, excludeFunctions_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (disabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, disabled_);
}
if (disableMacros_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, disableMacros_);
}
{
int dataSize = 0;
for (int i = 0; i < includeMacros_.size(); i++) {
dataSize += computeStringSizeNoTag(includeMacros_.getRaw(i));
}
size += dataSize;
size += 1 * getIncludeMacrosList().size();
}
{
int dataSize = 0;
for (int i = 0; i < excludeMacros_.size(); i++) {
dataSize += computeStringSizeNoTag(excludeMacros_.getRaw(i));
}
size += dataSize;
size += 1 * getExcludeMacrosList().size();
}
for (int i = 0; i < includeFunctions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, includeFunctions_.get(i));
}
for (int i = 0; i < excludeFunctions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, excludeFunctions_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cel.dev.expr.conformance.LibrarySubset)) {
return super.equals(obj);
}
cel.dev.expr.conformance.LibrarySubset other = (cel.dev.expr.conformance.LibrarySubset) obj;
if (getDisabled()
!= other.getDisabled()) return false;
if (getDisableMacros()
!= other.getDisableMacros()) return false;
if (!getIncludeMacrosList()
.equals(other.getIncludeMacrosList())) return false;
if (!getExcludeMacrosList()
.equals(other.getExcludeMacrosList())) return false;
if (!getIncludeFunctionsList()
.equals(other.getIncludeFunctionsList())) return false;
if (!getExcludeFunctionsList()
.equals(other.getExcludeFunctionsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + DISABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDisabled());
hash = (37 * hash) + DISABLE_MACROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDisableMacros());
if (getIncludeMacrosCount() > 0) {
hash = (37 * hash) + INCLUDE_MACROS_FIELD_NUMBER;
hash = (53 * hash) + getIncludeMacrosList().hashCode();
}
if (getExcludeMacrosCount() > 0) {
hash = (37 * hash) + EXCLUDE_MACROS_FIELD_NUMBER;
hash = (53 * hash) + getExcludeMacrosList().hashCode();
}
if (getIncludeFunctionsCount() > 0) {
hash = (37 * hash) + INCLUDE_FUNCTIONS_FIELD_NUMBER;
hash = (53 * hash) + getIncludeFunctionsList().hashCode();
}
if (getExcludeFunctionsCount() > 0) {
hash = (37 * hash) + EXCLUDE_FUNCTIONS_FIELD_NUMBER;
hash = (53 * hash) + getExcludeFunctionsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cel.dev.expr.conformance.LibrarySubset parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cel.dev.expr.conformance.LibrarySubset parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cel.dev.expr.conformance.LibrarySubset parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cel.dev.expr.conformance.LibrarySubset parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cel.dev.expr.conformance.LibrarySubset parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cel.dev.expr.conformance.LibrarySubset parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cel.dev.expr.conformance.LibrarySubset parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cel.dev.expr.conformance.LibrarySubset 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 cel.dev.expr.conformance.LibrarySubset parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cel.dev.expr.conformance.LibrarySubset 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 cel.dev.expr.conformance.LibrarySubset parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cel.dev.expr.conformance.LibrarySubset 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(cel.dev.expr.conformance.LibrarySubset 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;
}
/**
*
* LibrarySubset indicates a subset of the macros and functions supported by a
* subsettable library.
*
*
* Protobuf type {@code cel.expr.conformance.LibrarySubset}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cel.expr.conformance.LibrarySubset)
cel.dev.expr.conformance.LibrarySubsetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cel.dev.expr.conformance.EnvironmentProto.internal_static_cel_expr_conformance_LibrarySubset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cel.dev.expr.conformance.EnvironmentProto.internal_static_cel_expr_conformance_LibrarySubset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cel.dev.expr.conformance.LibrarySubset.class, cel.dev.expr.conformance.LibrarySubset.Builder.class);
}
// Construct using cel.dev.expr.conformance.LibrarySubset.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
disabled_ = false;
disableMacros_ = false;
includeMacros_ =
com.google.protobuf.LazyStringArrayList.emptyList();
excludeMacros_ =
com.google.protobuf.LazyStringArrayList.emptyList();
if (includeFunctionsBuilder_ == null) {
includeFunctions_ = java.util.Collections.emptyList();
} else {
includeFunctions_ = null;
includeFunctionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (excludeFunctionsBuilder_ == null) {
excludeFunctions_ = java.util.Collections.emptyList();
} else {
excludeFunctions_ = null;
excludeFunctionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cel.dev.expr.conformance.EnvironmentProto.internal_static_cel_expr_conformance_LibrarySubset_descriptor;
}
@java.lang.Override
public cel.dev.expr.conformance.LibrarySubset getDefaultInstanceForType() {
return cel.dev.expr.conformance.LibrarySubset.getDefaultInstance();
}
@java.lang.Override
public cel.dev.expr.conformance.LibrarySubset build() {
cel.dev.expr.conformance.LibrarySubset result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cel.dev.expr.conformance.LibrarySubset buildPartial() {
cel.dev.expr.conformance.LibrarySubset result = new cel.dev.expr.conformance.LibrarySubset(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(cel.dev.expr.conformance.LibrarySubset result) {
if (includeFunctionsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
includeFunctions_ = java.util.Collections.unmodifiableList(includeFunctions_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.includeFunctions_ = includeFunctions_;
} else {
result.includeFunctions_ = includeFunctionsBuilder_.build();
}
if (excludeFunctionsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
excludeFunctions_ = java.util.Collections.unmodifiableList(excludeFunctions_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.excludeFunctions_ = excludeFunctions_;
} else {
result.excludeFunctions_ = excludeFunctionsBuilder_.build();
}
}
private void buildPartial0(cel.dev.expr.conformance.LibrarySubset result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.disabled_ = disabled_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.disableMacros_ = disableMacros_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
includeMacros_.makeImmutable();
result.includeMacros_ = includeMacros_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
excludeMacros_.makeImmutable();
result.excludeMacros_ = excludeMacros_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cel.dev.expr.conformance.LibrarySubset) {
return mergeFrom((cel.dev.expr.conformance.LibrarySubset)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cel.dev.expr.conformance.LibrarySubset other) {
if (other == cel.dev.expr.conformance.LibrarySubset.getDefaultInstance()) return this;
if (other.getDisabled() != false) {
setDisabled(other.getDisabled());
}
if (other.getDisableMacros() != false) {
setDisableMacros(other.getDisableMacros());
}
if (!other.includeMacros_.isEmpty()) {
if (includeMacros_.isEmpty()) {
includeMacros_ = other.includeMacros_;
bitField0_ |= 0x00000004;
} else {
ensureIncludeMacrosIsMutable();
includeMacros_.addAll(other.includeMacros_);
}
onChanged();
}
if (!other.excludeMacros_.isEmpty()) {
if (excludeMacros_.isEmpty()) {
excludeMacros_ = other.excludeMacros_;
bitField0_ |= 0x00000008;
} else {
ensureExcludeMacrosIsMutable();
excludeMacros_.addAll(other.excludeMacros_);
}
onChanged();
}
if (includeFunctionsBuilder_ == null) {
if (!other.includeFunctions_.isEmpty()) {
if (includeFunctions_.isEmpty()) {
includeFunctions_ = other.includeFunctions_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureIncludeFunctionsIsMutable();
includeFunctions_.addAll(other.includeFunctions_);
}
onChanged();
}
} else {
if (!other.includeFunctions_.isEmpty()) {
if (includeFunctionsBuilder_.isEmpty()) {
includeFunctionsBuilder_.dispose();
includeFunctionsBuilder_ = null;
includeFunctions_ = other.includeFunctions_;
bitField0_ = (bitField0_ & ~0x00000010);
includeFunctionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIncludeFunctionsFieldBuilder() : null;
} else {
includeFunctionsBuilder_.addAllMessages(other.includeFunctions_);
}
}
}
if (excludeFunctionsBuilder_ == null) {
if (!other.excludeFunctions_.isEmpty()) {
if (excludeFunctions_.isEmpty()) {
excludeFunctions_ = other.excludeFunctions_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureExcludeFunctionsIsMutable();
excludeFunctions_.addAll(other.excludeFunctions_);
}
onChanged();
}
} else {
if (!other.excludeFunctions_.isEmpty()) {
if (excludeFunctionsBuilder_.isEmpty()) {
excludeFunctionsBuilder_.dispose();
excludeFunctionsBuilder_ = null;
excludeFunctions_ = other.excludeFunctions_;
bitField0_ = (bitField0_ & ~0x00000020);
excludeFunctionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getExcludeFunctionsFieldBuilder() : null;
} else {
excludeFunctionsBuilder_.addAllMessages(other.excludeFunctions_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
disabled_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
disableMacros_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureIncludeMacrosIsMutable();
includeMacros_.add(s);
break;
} // case 26
case 34: {
java.lang.String s = input.readStringRequireUtf8();
ensureExcludeMacrosIsMutable();
excludeMacros_.add(s);
break;
} // case 34
case 42: {
dev.cel.expr.Decl m =
input.readMessage(
dev.cel.expr.Decl.parser(),
extensionRegistry);
if (includeFunctionsBuilder_ == null) {
ensureIncludeFunctionsIsMutable();
includeFunctions_.add(m);
} else {
includeFunctionsBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
dev.cel.expr.Decl m =
input.readMessage(
dev.cel.expr.Decl.parser(),
extensionRegistry);
if (excludeFunctionsBuilder_ == null) {
ensureExcludeFunctionsIsMutable();
excludeFunctions_.add(m);
} else {
excludeFunctionsBuilder_.addMessage(m);
}
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private boolean disabled_ ;
/**
*
* Indicates whether the library has been disabled, typically only
* used for default-enabled libraries like stdlib.
*
*
* bool disabled = 1;
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
/**
*
* Indicates whether the library has been disabled, typically only
* used for default-enabled libraries like stdlib.
*
*
* bool disabled = 1;
* @param value The disabled to set.
* @return This builder for chaining.
*/
public Builder setDisabled(boolean value) {
disabled_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Indicates whether the library has been disabled, typically only
* used for default-enabled libraries like stdlib.
*
*
* bool disabled = 1;
* @return This builder for chaining.
*/
public Builder clearDisabled() {
bitField0_ = (bitField0_ & ~0x00000001);
disabled_ = false;
onChanged();
return this;
}
private boolean disableMacros_ ;
/**
*
* Disables macros for the given library.
*
*
* bool disable_macros = 2;
* @return The disableMacros.
*/
@java.lang.Override
public boolean getDisableMacros() {
return disableMacros_;
}
/**
*
* Disables macros for the given library.
*
*
* bool disable_macros = 2;
* @param value The disableMacros to set.
* @return This builder for chaining.
*/
public Builder setDisableMacros(boolean value) {
disableMacros_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Disables macros for the given library.
*
*
* bool disable_macros = 2;
* @return This builder for chaining.
*/
public Builder clearDisableMacros() {
bitField0_ = (bitField0_ & ~0x00000002);
disableMacros_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList includeMacros_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureIncludeMacrosIsMutable() {
if (!includeMacros_.isModifiable()) {
includeMacros_ = new com.google.protobuf.LazyStringArrayList(includeMacros_);
}
bitField0_ |= 0x00000004;
}
/**
*
* Specifies a set of macro function names to include in the subset.
*
*
* repeated string include_macros = 3;
* @return A list containing the includeMacros.
*/
public com.google.protobuf.ProtocolStringList
getIncludeMacrosList() {
includeMacros_.makeImmutable();
return includeMacros_;
}
/**
*
* Specifies a set of macro function names to include in the subset.
*
*
* repeated string include_macros = 3;
* @return The count of includeMacros.
*/
public int getIncludeMacrosCount() {
return includeMacros_.size();
}
/**
*
* Specifies a set of macro function names to include in the subset.
*
*
* repeated string include_macros = 3;
* @param index The index of the element to return.
* @return The includeMacros at the given index.
*/
public java.lang.String getIncludeMacros(int index) {
return includeMacros_.get(index);
}
/**
*
* Specifies a set of macro function names to include in the subset.
*
*
* repeated string include_macros = 3;
* @param index The index of the value to return.
* @return The bytes of the includeMacros at the given index.
*/
public com.google.protobuf.ByteString
getIncludeMacrosBytes(int index) {
return includeMacros_.getByteString(index);
}
/**
*
* Specifies a set of macro function names to include in the subset.
*
*
* repeated string include_macros = 3;
* @param index The index to set the value at.
* @param value The includeMacros to set.
* @return This builder for chaining.
*/
public Builder setIncludeMacros(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureIncludeMacrosIsMutable();
includeMacros_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Specifies a set of macro function names to include in the subset.
*
*
* repeated string include_macros = 3;
* @param value The includeMacros to add.
* @return This builder for chaining.
*/
public Builder addIncludeMacros(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureIncludeMacrosIsMutable();
includeMacros_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Specifies a set of macro function names to include in the subset.
*
*
* repeated string include_macros = 3;
* @param values The includeMacros to add.
* @return This builder for chaining.
*/
public Builder addAllIncludeMacros(
java.lang.Iterable values) {
ensureIncludeMacrosIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, includeMacros_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Specifies a set of macro function names to include in the subset.
*
*
* repeated string include_macros = 3;
* @return This builder for chaining.
*/
public Builder clearIncludeMacros() {
includeMacros_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);;
onChanged();
return this;
}
/**
*
* Specifies a set of macro function names to include in the subset.
*
*
* repeated string include_macros = 3;
* @param value The bytes of the includeMacros to add.
* @return This builder for chaining.
*/
public Builder addIncludeMacrosBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureIncludeMacrosIsMutable();
includeMacros_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList excludeMacros_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureExcludeMacrosIsMutable() {
if (!excludeMacros_.isModifiable()) {
excludeMacros_ = new com.google.protobuf.LazyStringArrayList(excludeMacros_);
}
bitField0_ |= 0x00000008;
}
/**
*
* Specifies a set of macro function names to exclude from the subset.
* Note: if IncludeMacros is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated string exclude_macros = 4;
* @return A list containing the excludeMacros.
*/
public com.google.protobuf.ProtocolStringList
getExcludeMacrosList() {
excludeMacros_.makeImmutable();
return excludeMacros_;
}
/**
*
* Specifies a set of macro function names to exclude from the subset.
* Note: if IncludeMacros is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated string exclude_macros = 4;
* @return The count of excludeMacros.
*/
public int getExcludeMacrosCount() {
return excludeMacros_.size();
}
/**
*
* Specifies a set of macro function names to exclude from the subset.
* Note: if IncludeMacros is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated string exclude_macros = 4;
* @param index The index of the element to return.
* @return The excludeMacros at the given index.
*/
public java.lang.String getExcludeMacros(int index) {
return excludeMacros_.get(index);
}
/**
*
* Specifies a set of macro function names to exclude from the subset.
* Note: if IncludeMacros is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated string exclude_macros = 4;
* @param index The index of the value to return.
* @return The bytes of the excludeMacros at the given index.
*/
public com.google.protobuf.ByteString
getExcludeMacrosBytes(int index) {
return excludeMacros_.getByteString(index);
}
/**
*
* Specifies a set of macro function names to exclude from the subset.
* Note: if IncludeMacros is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated string exclude_macros = 4;
* @param index The index to set the value at.
* @param value The excludeMacros to set.
* @return This builder for chaining.
*/
public Builder setExcludeMacros(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExcludeMacrosIsMutable();
excludeMacros_.set(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Specifies a set of macro function names to exclude from the subset.
* Note: if IncludeMacros is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated string exclude_macros = 4;
* @param value The excludeMacros to add.
* @return This builder for chaining.
*/
public Builder addExcludeMacros(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExcludeMacrosIsMutable();
excludeMacros_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Specifies a set of macro function names to exclude from the subset.
* Note: if IncludeMacros is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated string exclude_macros = 4;
* @param values The excludeMacros to add.
* @return This builder for chaining.
*/
public Builder addAllExcludeMacros(
java.lang.Iterable values) {
ensureExcludeMacrosIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, excludeMacros_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Specifies a set of macro function names to exclude from the subset.
* Note: if IncludeMacros is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated string exclude_macros = 4;
* @return This builder for chaining.
*/
public Builder clearExcludeMacros() {
excludeMacros_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);;
onChanged();
return this;
}
/**
*
* Specifies a set of macro function names to exclude from the subset.
* Note: if IncludeMacros is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated string exclude_macros = 4;
* @param value The bytes of the excludeMacros to add.
* @return This builder for chaining.
*/
public Builder addExcludeMacrosBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureExcludeMacrosIsMutable();
excludeMacros_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.util.List includeFunctions_ =
java.util.Collections.emptyList();
private void ensureIncludeFunctionsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
includeFunctions_ = new java.util.ArrayList(includeFunctions_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
dev.cel.expr.Decl, dev.cel.expr.Decl.Builder, dev.cel.expr.DeclOrBuilder> includeFunctionsBuilder_;
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public java.util.List getIncludeFunctionsList() {
if (includeFunctionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(includeFunctions_);
} else {
return includeFunctionsBuilder_.getMessageList();
}
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public int getIncludeFunctionsCount() {
if (includeFunctionsBuilder_ == null) {
return includeFunctions_.size();
} else {
return includeFunctionsBuilder_.getCount();
}
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public dev.cel.expr.Decl getIncludeFunctions(int index) {
if (includeFunctionsBuilder_ == null) {
return includeFunctions_.get(index);
} else {
return includeFunctionsBuilder_.getMessage(index);
}
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public Builder setIncludeFunctions(
int index, dev.cel.expr.Decl value) {
if (includeFunctionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIncludeFunctionsIsMutable();
includeFunctions_.set(index, value);
onChanged();
} else {
includeFunctionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public Builder setIncludeFunctions(
int index, dev.cel.expr.Decl.Builder builderForValue) {
if (includeFunctionsBuilder_ == null) {
ensureIncludeFunctionsIsMutable();
includeFunctions_.set(index, builderForValue.build());
onChanged();
} else {
includeFunctionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public Builder addIncludeFunctions(dev.cel.expr.Decl value) {
if (includeFunctionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIncludeFunctionsIsMutable();
includeFunctions_.add(value);
onChanged();
} else {
includeFunctionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public Builder addIncludeFunctions(
int index, dev.cel.expr.Decl value) {
if (includeFunctionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIncludeFunctionsIsMutable();
includeFunctions_.add(index, value);
onChanged();
} else {
includeFunctionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public Builder addIncludeFunctions(
dev.cel.expr.Decl.Builder builderForValue) {
if (includeFunctionsBuilder_ == null) {
ensureIncludeFunctionsIsMutable();
includeFunctions_.add(builderForValue.build());
onChanged();
} else {
includeFunctionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public Builder addIncludeFunctions(
int index, dev.cel.expr.Decl.Builder builderForValue) {
if (includeFunctionsBuilder_ == null) {
ensureIncludeFunctionsIsMutable();
includeFunctions_.add(index, builderForValue.build());
onChanged();
} else {
includeFunctionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public Builder addAllIncludeFunctions(
java.lang.Iterable extends dev.cel.expr.Decl> values) {
if (includeFunctionsBuilder_ == null) {
ensureIncludeFunctionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, includeFunctions_);
onChanged();
} else {
includeFunctionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public Builder clearIncludeFunctions() {
if (includeFunctionsBuilder_ == null) {
includeFunctions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
includeFunctionsBuilder_.clear();
}
return this;
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public Builder removeIncludeFunctions(int index) {
if (includeFunctionsBuilder_ == null) {
ensureIncludeFunctionsIsMutable();
includeFunctions_.remove(index);
onChanged();
} else {
includeFunctionsBuilder_.remove(index);
}
return this;
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public dev.cel.expr.Decl.Builder getIncludeFunctionsBuilder(
int index) {
return getIncludeFunctionsFieldBuilder().getBuilder(index);
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public dev.cel.expr.DeclOrBuilder getIncludeFunctionsOrBuilder(
int index) {
if (includeFunctionsBuilder_ == null) {
return includeFunctions_.get(index); } else {
return includeFunctionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public java.util.List extends dev.cel.expr.DeclOrBuilder>
getIncludeFunctionsOrBuilderList() {
if (includeFunctionsBuilder_ != null) {
return includeFunctionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(includeFunctions_);
}
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public dev.cel.expr.Decl.Builder addIncludeFunctionsBuilder() {
return getIncludeFunctionsFieldBuilder().addBuilder(
dev.cel.expr.Decl.getDefaultInstance());
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public dev.cel.expr.Decl.Builder addIncludeFunctionsBuilder(
int index) {
return getIncludeFunctionsFieldBuilder().addBuilder(
index, dev.cel.expr.Decl.getDefaultInstance());
}
/**
*
* Specifies a set of functions to include in the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
* Note: if IncludeFunctions is non-empty, then ExcludeFunctions is ignored.
*
*
* repeated .cel.expr.Decl include_functions = 5;
*/
public java.util.List
getIncludeFunctionsBuilderList() {
return getIncludeFunctionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
dev.cel.expr.Decl, dev.cel.expr.Decl.Builder, dev.cel.expr.DeclOrBuilder>
getIncludeFunctionsFieldBuilder() {
if (includeFunctionsBuilder_ == null) {
includeFunctionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
dev.cel.expr.Decl, dev.cel.expr.Decl.Builder, dev.cel.expr.DeclOrBuilder>(
includeFunctions_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
includeFunctions_ = null;
}
return includeFunctionsBuilder_;
}
private java.util.List excludeFunctions_ =
java.util.Collections.emptyList();
private void ensureExcludeFunctionsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
excludeFunctions_ = new java.util.ArrayList(excludeFunctions_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
dev.cel.expr.Decl, dev.cel.expr.Decl.Builder, dev.cel.expr.DeclOrBuilder> excludeFunctionsBuilder_;
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public java.util.List getExcludeFunctionsList() {
if (excludeFunctionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(excludeFunctions_);
} else {
return excludeFunctionsBuilder_.getMessageList();
}
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public int getExcludeFunctionsCount() {
if (excludeFunctionsBuilder_ == null) {
return excludeFunctions_.size();
} else {
return excludeFunctionsBuilder_.getCount();
}
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public dev.cel.expr.Decl getExcludeFunctions(int index) {
if (excludeFunctionsBuilder_ == null) {
return excludeFunctions_.get(index);
} else {
return excludeFunctionsBuilder_.getMessage(index);
}
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public Builder setExcludeFunctions(
int index, dev.cel.expr.Decl value) {
if (excludeFunctionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExcludeFunctionsIsMutable();
excludeFunctions_.set(index, value);
onChanged();
} else {
excludeFunctionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public Builder setExcludeFunctions(
int index, dev.cel.expr.Decl.Builder builderForValue) {
if (excludeFunctionsBuilder_ == null) {
ensureExcludeFunctionsIsMutable();
excludeFunctions_.set(index, builderForValue.build());
onChanged();
} else {
excludeFunctionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public Builder addExcludeFunctions(dev.cel.expr.Decl value) {
if (excludeFunctionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExcludeFunctionsIsMutable();
excludeFunctions_.add(value);
onChanged();
} else {
excludeFunctionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public Builder addExcludeFunctions(
int index, dev.cel.expr.Decl value) {
if (excludeFunctionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExcludeFunctionsIsMutable();
excludeFunctions_.add(index, value);
onChanged();
} else {
excludeFunctionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public Builder addExcludeFunctions(
dev.cel.expr.Decl.Builder builderForValue) {
if (excludeFunctionsBuilder_ == null) {
ensureExcludeFunctionsIsMutable();
excludeFunctions_.add(builderForValue.build());
onChanged();
} else {
excludeFunctionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public Builder addExcludeFunctions(
int index, dev.cel.expr.Decl.Builder builderForValue) {
if (excludeFunctionsBuilder_ == null) {
ensureExcludeFunctionsIsMutable();
excludeFunctions_.add(index, builderForValue.build());
onChanged();
} else {
excludeFunctionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public Builder addAllExcludeFunctions(
java.lang.Iterable extends dev.cel.expr.Decl> values) {
if (excludeFunctionsBuilder_ == null) {
ensureExcludeFunctionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, excludeFunctions_);
onChanged();
} else {
excludeFunctionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public Builder clearExcludeFunctions() {
if (excludeFunctionsBuilder_ == null) {
excludeFunctions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
excludeFunctionsBuilder_.clear();
}
return this;
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public Builder removeExcludeFunctions(int index) {
if (excludeFunctionsBuilder_ == null) {
ensureExcludeFunctionsIsMutable();
excludeFunctions_.remove(index);
onChanged();
} else {
excludeFunctionsBuilder_.remove(index);
}
return this;
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public dev.cel.expr.Decl.Builder getExcludeFunctionsBuilder(
int index) {
return getExcludeFunctionsFieldBuilder().getBuilder(index);
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public dev.cel.expr.DeclOrBuilder getExcludeFunctionsOrBuilder(
int index) {
if (excludeFunctionsBuilder_ == null) {
return excludeFunctions_.get(index); } else {
return excludeFunctionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public java.util.List extends dev.cel.expr.DeclOrBuilder>
getExcludeFunctionsOrBuilderList() {
if (excludeFunctionsBuilder_ != null) {
return excludeFunctionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(excludeFunctions_);
}
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public dev.cel.expr.Decl.Builder addExcludeFunctionsBuilder() {
return getExcludeFunctionsFieldBuilder().addBuilder(
dev.cel.expr.Decl.getDefaultInstance());
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public dev.cel.expr.Decl.Builder addExcludeFunctionsBuilder(
int index) {
return getExcludeFunctionsFieldBuilder().addBuilder(
index, dev.cel.expr.Decl.getDefaultInstance());
}
/**
*
* Specifies the set of functions to exclude from the subset.
*
* Note: the overloads specified in the subset need only specify their ID.
*
*
* repeated .cel.expr.Decl exclude_functions = 6;
*/
public java.util.List
getExcludeFunctionsBuilderList() {
return getExcludeFunctionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
dev.cel.expr.Decl, dev.cel.expr.Decl.Builder, dev.cel.expr.DeclOrBuilder>
getExcludeFunctionsFieldBuilder() {
if (excludeFunctionsBuilder_ == null) {
excludeFunctionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
dev.cel.expr.Decl, dev.cel.expr.Decl.Builder, dev.cel.expr.DeclOrBuilder>(
excludeFunctions_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
excludeFunctions_ = null;
}
return excludeFunctionsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cel.expr.conformance.LibrarySubset)
}
// @@protoc_insertion_point(class_scope:cel.expr.conformance.LibrarySubset)
private static final cel.dev.expr.conformance.LibrarySubset DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cel.dev.expr.conformance.LibrarySubset();
}
public static cel.dev.expr.conformance.LibrarySubset getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LibrarySubset parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cel.dev.expr.conformance.LibrarySubset getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy