All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.substrait.proto.Capabilities Maven / Gradle / Ivy

Go to download

Create a well-defined, cross-language specification for data compute operations

There is a newer version: 0.46.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: substrait/capabilities.proto

// Protobuf Java Version: 3.25.5
package io.substrait.proto;

/**
 * 
 * Defines a set of Capabilities that a system (producer or consumer) supports.
 * 
* * Protobuf type {@code substrait.Capabilities} */ public final class Capabilities extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Capabilities) CapabilitiesOrBuilder { private static final long serialVersionUID = 0L; // Use Capabilities.newBuilder() to construct. private Capabilities(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Capabilities() { substraitVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); advancedExtensionTypeUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); simpleExtensions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Capabilities(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.CapabilitiesOuterClass.internal_static_substrait_Capabilities_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.CapabilitiesOuterClass.internal_static_substrait_Capabilities_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Capabilities.class, io.substrait.proto.Capabilities.Builder.class); } public interface SimpleExtensionOrBuilder extends // @@protoc_insertion_point(interface_extends:substrait.Capabilities.SimpleExtension) com.google.protobuf.MessageOrBuilder { /** * string uri = 1; * @return The uri. */ java.lang.String getUri(); /** * string uri = 1; * @return The bytes for uri. */ com.google.protobuf.ByteString getUriBytes(); /** * repeated string function_keys = 2; * @return A list containing the functionKeys. */ java.util.List getFunctionKeysList(); /** * repeated string function_keys = 2; * @return The count of functionKeys. */ int getFunctionKeysCount(); /** * repeated string function_keys = 2; * @param index The index of the element to return. * @return The functionKeys at the given index. */ java.lang.String getFunctionKeys(int index); /** * repeated string function_keys = 2; * @param index The index of the value to return. * @return The bytes of the functionKeys at the given index. */ com.google.protobuf.ByteString getFunctionKeysBytes(int index); /** * repeated string type_keys = 3; * @return A list containing the typeKeys. */ java.util.List getTypeKeysList(); /** * repeated string type_keys = 3; * @return The count of typeKeys. */ int getTypeKeysCount(); /** * repeated string type_keys = 3; * @param index The index of the element to return. * @return The typeKeys at the given index. */ java.lang.String getTypeKeys(int index); /** * repeated string type_keys = 3; * @param index The index of the value to return. * @return The bytes of the typeKeys at the given index. */ com.google.protobuf.ByteString getTypeKeysBytes(int index); /** * repeated string type_variation_keys = 4; * @return A list containing the typeVariationKeys. */ java.util.List getTypeVariationKeysList(); /** * repeated string type_variation_keys = 4; * @return The count of typeVariationKeys. */ int getTypeVariationKeysCount(); /** * repeated string type_variation_keys = 4; * @param index The index of the element to return. * @return The typeVariationKeys at the given index. */ java.lang.String getTypeVariationKeys(int index); /** * repeated string type_variation_keys = 4; * @param index The index of the value to return. * @return The bytes of the typeVariationKeys at the given index. */ com.google.protobuf.ByteString getTypeVariationKeysBytes(int index); } /** * Protobuf type {@code substrait.Capabilities.SimpleExtension} */ public static final class SimpleExtension extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:substrait.Capabilities.SimpleExtension) SimpleExtensionOrBuilder { private static final long serialVersionUID = 0L; // Use SimpleExtension.newBuilder() to construct. private SimpleExtension(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SimpleExtension() { uri_ = ""; functionKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); typeKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); typeVariationKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SimpleExtension(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.CapabilitiesOuterClass.internal_static_substrait_Capabilities_SimpleExtension_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.CapabilitiesOuterClass.internal_static_substrait_Capabilities_SimpleExtension_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Capabilities.SimpleExtension.class, io.substrait.proto.Capabilities.SimpleExtension.Builder.class); } public static final int URI_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** * string uri = 1; * @return The uri. */ @java.lang.Override public java.lang.String getUri() { java.lang.Object ref = uri_; 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(); uri_ = s; return s; } } /** * string uri = 1; * @return The bytes for uri. */ @java.lang.Override public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FUNCTION_KEYS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList functionKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string function_keys = 2; * @return A list containing the functionKeys. */ public com.google.protobuf.ProtocolStringList getFunctionKeysList() { return functionKeys_; } /** * repeated string function_keys = 2; * @return The count of functionKeys. */ public int getFunctionKeysCount() { return functionKeys_.size(); } /** * repeated string function_keys = 2; * @param index The index of the element to return. * @return The functionKeys at the given index. */ public java.lang.String getFunctionKeys(int index) { return functionKeys_.get(index); } /** * repeated string function_keys = 2; * @param index The index of the value to return. * @return The bytes of the functionKeys at the given index. */ public com.google.protobuf.ByteString getFunctionKeysBytes(int index) { return functionKeys_.getByteString(index); } public static final int TYPE_KEYS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList typeKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string type_keys = 3; * @return A list containing the typeKeys. */ public com.google.protobuf.ProtocolStringList getTypeKeysList() { return typeKeys_; } /** * repeated string type_keys = 3; * @return The count of typeKeys. */ public int getTypeKeysCount() { return typeKeys_.size(); } /** * repeated string type_keys = 3; * @param index The index of the element to return. * @return The typeKeys at the given index. */ public java.lang.String getTypeKeys(int index) { return typeKeys_.get(index); } /** * repeated string type_keys = 3; * @param index The index of the value to return. * @return The bytes of the typeKeys at the given index. */ public com.google.protobuf.ByteString getTypeKeysBytes(int index) { return typeKeys_.getByteString(index); } public static final int TYPE_VARIATION_KEYS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList typeVariationKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string type_variation_keys = 4; * @return A list containing the typeVariationKeys. */ public com.google.protobuf.ProtocolStringList getTypeVariationKeysList() { return typeVariationKeys_; } /** * repeated string type_variation_keys = 4; * @return The count of typeVariationKeys. */ public int getTypeVariationKeysCount() { return typeVariationKeys_.size(); } /** * repeated string type_variation_keys = 4; * @param index The index of the element to return. * @return The typeVariationKeys at the given index. */ public java.lang.String getTypeVariationKeys(int index) { return typeVariationKeys_.get(index); } /** * repeated string type_variation_keys = 4; * @param index The index of the value to return. * @return The bytes of the typeVariationKeys at the given index. */ public com.google.protobuf.ByteString getTypeVariationKeysBytes(int index) { return typeVariationKeys_.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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } for (int i = 0; i < functionKeys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, functionKeys_.getRaw(i)); } for (int i = 0; i < typeKeys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, typeKeys_.getRaw(i)); } for (int i = 0; i < typeVariationKeys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, typeVariationKeys_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } { int dataSize = 0; for (int i = 0; i < functionKeys_.size(); i++) { dataSize += computeStringSizeNoTag(functionKeys_.getRaw(i)); } size += dataSize; size += 1 * getFunctionKeysList().size(); } { int dataSize = 0; for (int i = 0; i < typeKeys_.size(); i++) { dataSize += computeStringSizeNoTag(typeKeys_.getRaw(i)); } size += dataSize; size += 1 * getTypeKeysList().size(); } { int dataSize = 0; for (int i = 0; i < typeVariationKeys_.size(); i++) { dataSize += computeStringSizeNoTag(typeVariationKeys_.getRaw(i)); } size += dataSize; size += 1 * getTypeVariationKeysList().size(); } 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 io.substrait.proto.Capabilities.SimpleExtension)) { return super.equals(obj); } io.substrait.proto.Capabilities.SimpleExtension other = (io.substrait.proto.Capabilities.SimpleExtension) obj; if (!getUri() .equals(other.getUri())) return false; if (!getFunctionKeysList() .equals(other.getFunctionKeysList())) return false; if (!getTypeKeysList() .equals(other.getTypeKeysList())) return false; if (!getTypeVariationKeysList() .equals(other.getTypeVariationKeysList())) 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) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); if (getFunctionKeysCount() > 0) { hash = (37 * hash) + FUNCTION_KEYS_FIELD_NUMBER; hash = (53 * hash) + getFunctionKeysList().hashCode(); } if (getTypeKeysCount() > 0) { hash = (37 * hash) + TYPE_KEYS_FIELD_NUMBER; hash = (53 * hash) + getTypeKeysList().hashCode(); } if (getTypeVariationKeysCount() > 0) { hash = (37 * hash) + TYPE_VARIATION_KEYS_FIELD_NUMBER; hash = (53 * hash) + getTypeVariationKeysList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Capabilities.SimpleExtension parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Capabilities.SimpleExtension parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Capabilities.SimpleExtension parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Capabilities.SimpleExtension parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Capabilities.SimpleExtension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Capabilities.SimpleExtension parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Capabilities.SimpleExtension parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Capabilities.SimpleExtension 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 io.substrait.proto.Capabilities.SimpleExtension parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Capabilities.SimpleExtension 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 io.substrait.proto.Capabilities.SimpleExtension parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Capabilities.SimpleExtension 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(io.substrait.proto.Capabilities.SimpleExtension prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code substrait.Capabilities.SimpleExtension} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Capabilities.SimpleExtension) io.substrait.proto.Capabilities.SimpleExtensionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.CapabilitiesOuterClass.internal_static_substrait_Capabilities_SimpleExtension_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.CapabilitiesOuterClass.internal_static_substrait_Capabilities_SimpleExtension_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Capabilities.SimpleExtension.class, io.substrait.proto.Capabilities.SimpleExtension.Builder.class); } // Construct using io.substrait.proto.Capabilities.SimpleExtension.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; uri_ = ""; functionKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); typeKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); typeVariationKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.CapabilitiesOuterClass.internal_static_substrait_Capabilities_SimpleExtension_descriptor; } @java.lang.Override public io.substrait.proto.Capabilities.SimpleExtension getDefaultInstanceForType() { return io.substrait.proto.Capabilities.SimpleExtension.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Capabilities.SimpleExtension build() { io.substrait.proto.Capabilities.SimpleExtension result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Capabilities.SimpleExtension buildPartial() { io.substrait.proto.Capabilities.SimpleExtension result = new io.substrait.proto.Capabilities.SimpleExtension(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.substrait.proto.Capabilities.SimpleExtension result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.uri_ = uri_; } if (((from_bitField0_ & 0x00000002) != 0)) { functionKeys_.makeImmutable(); result.functionKeys_ = functionKeys_; } if (((from_bitField0_ & 0x00000004) != 0)) { typeKeys_.makeImmutable(); result.typeKeys_ = typeKeys_; } if (((from_bitField0_ & 0x00000008) != 0)) { typeVariationKeys_.makeImmutable(); result.typeVariationKeys_ = typeVariationKeys_; } } @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 io.substrait.proto.Capabilities.SimpleExtension) { return mergeFrom((io.substrait.proto.Capabilities.SimpleExtension)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Capabilities.SimpleExtension other) { if (other == io.substrait.proto.Capabilities.SimpleExtension.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000001; onChanged(); } if (!other.functionKeys_.isEmpty()) { if (functionKeys_.isEmpty()) { functionKeys_ = other.functionKeys_; bitField0_ |= 0x00000002; } else { ensureFunctionKeysIsMutable(); functionKeys_.addAll(other.functionKeys_); } onChanged(); } if (!other.typeKeys_.isEmpty()) { if (typeKeys_.isEmpty()) { typeKeys_ = other.typeKeys_; bitField0_ |= 0x00000004; } else { ensureTypeKeysIsMutable(); typeKeys_.addAll(other.typeKeys_); } onChanged(); } if (!other.typeVariationKeys_.isEmpty()) { if (typeVariationKeys_.isEmpty()) { typeVariationKeys_ = other.typeVariationKeys_; bitField0_ |= 0x00000008; } else { ensureTypeVariationKeysIsMutable(); typeVariationKeys_.addAll(other.typeVariationKeys_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { uri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureFunctionKeysIsMutable(); functionKeys_.add(s); break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureTypeKeysIsMutable(); typeKeys_.add(s); break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureTypeVariationKeysIsMutable(); typeVariationKeys_.add(s); break; } // case 34 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 java.lang.Object uri_ = ""; /** * string uri = 1; * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } else { return (java.lang.String) ref; } } /** * string uri = 1; * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string uri = 1; * @param value The uri to set. * @return This builder for chaining. */ public Builder setUri( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string uri = 1; * @return This builder for chaining. */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string uri = 1; * @param value The bytes for uri to set. * @return This builder for chaining. */ public Builder setUriBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList functionKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureFunctionKeysIsMutable() { if (!functionKeys_.isModifiable()) { functionKeys_ = new com.google.protobuf.LazyStringArrayList(functionKeys_); } bitField0_ |= 0x00000002; } /** * repeated string function_keys = 2; * @return A list containing the functionKeys. */ public com.google.protobuf.ProtocolStringList getFunctionKeysList() { functionKeys_.makeImmutable(); return functionKeys_; } /** * repeated string function_keys = 2; * @return The count of functionKeys. */ public int getFunctionKeysCount() { return functionKeys_.size(); } /** * repeated string function_keys = 2; * @param index The index of the element to return. * @return The functionKeys at the given index. */ public java.lang.String getFunctionKeys(int index) { return functionKeys_.get(index); } /** * repeated string function_keys = 2; * @param index The index of the value to return. * @return The bytes of the functionKeys at the given index. */ public com.google.protobuf.ByteString getFunctionKeysBytes(int index) { return functionKeys_.getByteString(index); } /** * repeated string function_keys = 2; * @param index The index to set the value at. * @param value The functionKeys to set. * @return This builder for chaining. */ public Builder setFunctionKeys( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFunctionKeysIsMutable(); functionKeys_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string function_keys = 2; * @param value The functionKeys to add. * @return This builder for chaining. */ public Builder addFunctionKeys( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFunctionKeysIsMutable(); functionKeys_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string function_keys = 2; * @param values The functionKeys to add. * @return This builder for chaining. */ public Builder addAllFunctionKeys( java.lang.Iterable values) { ensureFunctionKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, functionKeys_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string function_keys = 2; * @return This builder for chaining. */ public Builder clearFunctionKeys() { functionKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** * repeated string function_keys = 2; * @param value The bytes of the functionKeys to add. * @return This builder for chaining. */ public Builder addFunctionKeysBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFunctionKeysIsMutable(); functionKeys_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList typeKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTypeKeysIsMutable() { if (!typeKeys_.isModifiable()) { typeKeys_ = new com.google.protobuf.LazyStringArrayList(typeKeys_); } bitField0_ |= 0x00000004; } /** * repeated string type_keys = 3; * @return A list containing the typeKeys. */ public com.google.protobuf.ProtocolStringList getTypeKeysList() { typeKeys_.makeImmutable(); return typeKeys_; } /** * repeated string type_keys = 3; * @return The count of typeKeys. */ public int getTypeKeysCount() { return typeKeys_.size(); } /** * repeated string type_keys = 3; * @param index The index of the element to return. * @return The typeKeys at the given index. */ public java.lang.String getTypeKeys(int index) { return typeKeys_.get(index); } /** * repeated string type_keys = 3; * @param index The index of the value to return. * @return The bytes of the typeKeys at the given index. */ public com.google.protobuf.ByteString getTypeKeysBytes(int index) { return typeKeys_.getByteString(index); } /** * repeated string type_keys = 3; * @param index The index to set the value at. * @param value The typeKeys to set. * @return This builder for chaining. */ public Builder setTypeKeys( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTypeKeysIsMutable(); typeKeys_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated string type_keys = 3; * @param value The typeKeys to add. * @return This builder for chaining. */ public Builder addTypeKeys( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTypeKeysIsMutable(); typeKeys_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated string type_keys = 3; * @param values The typeKeys to add. * @return This builder for chaining. */ public Builder addAllTypeKeys( java.lang.Iterable values) { ensureTypeKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, typeKeys_); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated string type_keys = 3; * @return This builder for chaining. */ public Builder clearTypeKeys() { typeKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** * repeated string type_keys = 3; * @param value The bytes of the typeKeys to add. * @return This builder for chaining. */ public Builder addTypeKeysBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTypeKeysIsMutable(); typeKeys_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList typeVariationKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTypeVariationKeysIsMutable() { if (!typeVariationKeys_.isModifiable()) { typeVariationKeys_ = new com.google.protobuf.LazyStringArrayList(typeVariationKeys_); } bitField0_ |= 0x00000008; } /** * repeated string type_variation_keys = 4; * @return A list containing the typeVariationKeys. */ public com.google.protobuf.ProtocolStringList getTypeVariationKeysList() { typeVariationKeys_.makeImmutable(); return typeVariationKeys_; } /** * repeated string type_variation_keys = 4; * @return The count of typeVariationKeys. */ public int getTypeVariationKeysCount() { return typeVariationKeys_.size(); } /** * repeated string type_variation_keys = 4; * @param index The index of the element to return. * @return The typeVariationKeys at the given index. */ public java.lang.String getTypeVariationKeys(int index) { return typeVariationKeys_.get(index); } /** * repeated string type_variation_keys = 4; * @param index The index of the value to return. * @return The bytes of the typeVariationKeys at the given index. */ public com.google.protobuf.ByteString getTypeVariationKeysBytes(int index) { return typeVariationKeys_.getByteString(index); } /** * repeated string type_variation_keys = 4; * @param index The index to set the value at. * @param value The typeVariationKeys to set. * @return This builder for chaining. */ public Builder setTypeVariationKeys( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTypeVariationKeysIsMutable(); typeVariationKeys_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string type_variation_keys = 4; * @param value The typeVariationKeys to add. * @return This builder for chaining. */ public Builder addTypeVariationKeys( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTypeVariationKeysIsMutable(); typeVariationKeys_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string type_variation_keys = 4; * @param values The typeVariationKeys to add. * @return This builder for chaining. */ public Builder addAllTypeVariationKeys( java.lang.Iterable values) { ensureTypeVariationKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, typeVariationKeys_); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string type_variation_keys = 4; * @return This builder for chaining. */ public Builder clearTypeVariationKeys() { typeVariationKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** * repeated string type_variation_keys = 4; * @param value The bytes of the typeVariationKeys to add. * @return This builder for chaining. */ public Builder addTypeVariationKeysBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTypeVariationKeysIsMutable(); typeVariationKeys_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } @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:substrait.Capabilities.SimpleExtension) } // @@protoc_insertion_point(class_scope:substrait.Capabilities.SimpleExtension) private static final io.substrait.proto.Capabilities.SimpleExtension DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Capabilities.SimpleExtension(); } public static io.substrait.proto.Capabilities.SimpleExtension getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SimpleExtension 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 io.substrait.proto.Capabilities.SimpleExtension getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int SUBSTRAIT_VERSIONS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList substraitVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * List of Substrait versions this system supports
   * 
* * repeated string substrait_versions = 1; * @return A list containing the substraitVersions. */ public com.google.protobuf.ProtocolStringList getSubstraitVersionsList() { return substraitVersions_; } /** *
   * List of Substrait versions this system supports
   * 
* * repeated string substrait_versions = 1; * @return The count of substraitVersions. */ public int getSubstraitVersionsCount() { return substraitVersions_.size(); } /** *
   * List of Substrait versions this system supports
   * 
* * repeated string substrait_versions = 1; * @param index The index of the element to return. * @return The substraitVersions at the given index. */ public java.lang.String getSubstraitVersions(int index) { return substraitVersions_.get(index); } /** *
   * List of Substrait versions this system supports
   * 
* * repeated string substrait_versions = 1; * @param index The index of the value to return. * @return The bytes of the substraitVersions at the given index. */ public com.google.protobuf.ByteString getSubstraitVersionsBytes(int index) { return substraitVersions_.getByteString(index); } public static final int ADVANCED_EXTENSION_TYPE_URLS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList advancedExtensionTypeUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * list of com.google.Any message types this system supports for advanced
   * extensions.
   * 
* * repeated string advanced_extension_type_urls = 2; * @return A list containing the advancedExtensionTypeUrls. */ public com.google.protobuf.ProtocolStringList getAdvancedExtensionTypeUrlsList() { return advancedExtensionTypeUrls_; } /** *
   * list of com.google.Any message types this system supports for advanced
   * extensions.
   * 
* * repeated string advanced_extension_type_urls = 2; * @return The count of advancedExtensionTypeUrls. */ public int getAdvancedExtensionTypeUrlsCount() { return advancedExtensionTypeUrls_.size(); } /** *
   * list of com.google.Any message types this system supports for advanced
   * extensions.
   * 
* * repeated string advanced_extension_type_urls = 2; * @param index The index of the element to return. * @return The advancedExtensionTypeUrls at the given index. */ public java.lang.String getAdvancedExtensionTypeUrls(int index) { return advancedExtensionTypeUrls_.get(index); } /** *
   * list of com.google.Any message types this system supports for advanced
   * extensions.
   * 
* * repeated string advanced_extension_type_urls = 2; * @param index The index of the value to return. * @return The bytes of the advancedExtensionTypeUrls at the given index. */ public com.google.protobuf.ByteString getAdvancedExtensionTypeUrlsBytes(int index) { return advancedExtensionTypeUrls_.getByteString(index); } public static final int SIMPLE_EXTENSIONS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List simpleExtensions_; /** *
   * list of simple extensions this system supports.
   * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ @java.lang.Override public java.util.List getSimpleExtensionsList() { return simpleExtensions_; } /** *
   * list of simple extensions this system supports.
   * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ @java.lang.Override public java.util.List getSimpleExtensionsOrBuilderList() { return simpleExtensions_; } /** *
   * list of simple extensions this system supports.
   * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ @java.lang.Override public int getSimpleExtensionsCount() { return simpleExtensions_.size(); } /** *
   * list of simple extensions this system supports.
   * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ @java.lang.Override public io.substrait.proto.Capabilities.SimpleExtension getSimpleExtensions(int index) { return simpleExtensions_.get(index); } /** *
   * list of simple extensions this system supports.
   * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ @java.lang.Override public io.substrait.proto.Capabilities.SimpleExtensionOrBuilder getSimpleExtensionsOrBuilder( int index) { return simpleExtensions_.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 { for (int i = 0; i < substraitVersions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, substraitVersions_.getRaw(i)); } for (int i = 0; i < advancedExtensionTypeUrls_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, advancedExtensionTypeUrls_.getRaw(i)); } for (int i = 0; i < simpleExtensions_.size(); i++) { output.writeMessage(3, simpleExtensions_.get(i)); } getUnknownFields().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 < substraitVersions_.size(); i++) { dataSize += computeStringSizeNoTag(substraitVersions_.getRaw(i)); } size += dataSize; size += 1 * getSubstraitVersionsList().size(); } { int dataSize = 0; for (int i = 0; i < advancedExtensionTypeUrls_.size(); i++) { dataSize += computeStringSizeNoTag(advancedExtensionTypeUrls_.getRaw(i)); } size += dataSize; size += 1 * getAdvancedExtensionTypeUrlsList().size(); } for (int i = 0; i < simpleExtensions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, simpleExtensions_.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 io.substrait.proto.Capabilities)) { return super.equals(obj); } io.substrait.proto.Capabilities other = (io.substrait.proto.Capabilities) obj; if (!getSubstraitVersionsList() .equals(other.getSubstraitVersionsList())) return false; if (!getAdvancedExtensionTypeUrlsList() .equals(other.getAdvancedExtensionTypeUrlsList())) return false; if (!getSimpleExtensionsList() .equals(other.getSimpleExtensionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getSubstraitVersionsCount() > 0) { hash = (37 * hash) + SUBSTRAIT_VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getSubstraitVersionsList().hashCode(); } if (getAdvancedExtensionTypeUrlsCount() > 0) { hash = (37 * hash) + ADVANCED_EXTENSION_TYPE_URLS_FIELD_NUMBER; hash = (53 * hash) + getAdvancedExtensionTypeUrlsList().hashCode(); } if (getSimpleExtensionsCount() > 0) { hash = (37 * hash) + SIMPLE_EXTENSIONS_FIELD_NUMBER; hash = (53 * hash) + getSimpleExtensionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.substrait.proto.Capabilities parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Capabilities parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Capabilities parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Capabilities parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Capabilities parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.substrait.proto.Capabilities parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.substrait.proto.Capabilities parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Capabilities 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 io.substrait.proto.Capabilities parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.substrait.proto.Capabilities 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 io.substrait.proto.Capabilities parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.substrait.proto.Capabilities 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(io.substrait.proto.Capabilities 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; } /** *
   * Defines a set of Capabilities that a system (producer or consumer) supports.
   * 
* * Protobuf type {@code substrait.Capabilities} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:substrait.Capabilities) io.substrait.proto.CapabilitiesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.substrait.proto.CapabilitiesOuterClass.internal_static_substrait_Capabilities_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.substrait.proto.CapabilitiesOuterClass.internal_static_substrait_Capabilities_fieldAccessorTable .ensureFieldAccessorsInitialized( io.substrait.proto.Capabilities.class, io.substrait.proto.Capabilities.Builder.class); } // Construct using io.substrait.proto.Capabilities.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; substraitVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); advancedExtensionTypeUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (simpleExtensionsBuilder_ == null) { simpleExtensions_ = java.util.Collections.emptyList(); } else { simpleExtensions_ = null; simpleExtensionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.substrait.proto.CapabilitiesOuterClass.internal_static_substrait_Capabilities_descriptor; } @java.lang.Override public io.substrait.proto.Capabilities getDefaultInstanceForType() { return io.substrait.proto.Capabilities.getDefaultInstance(); } @java.lang.Override public io.substrait.proto.Capabilities build() { io.substrait.proto.Capabilities result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.substrait.proto.Capabilities buildPartial() { io.substrait.proto.Capabilities result = new io.substrait.proto.Capabilities(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.substrait.proto.Capabilities result) { if (simpleExtensionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { simpleExtensions_ = java.util.Collections.unmodifiableList(simpleExtensions_); bitField0_ = (bitField0_ & ~0x00000004); } result.simpleExtensions_ = simpleExtensions_; } else { result.simpleExtensions_ = simpleExtensionsBuilder_.build(); } } private void buildPartial0(io.substrait.proto.Capabilities result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { substraitVersions_.makeImmutable(); result.substraitVersions_ = substraitVersions_; } if (((from_bitField0_ & 0x00000002) != 0)) { advancedExtensionTypeUrls_.makeImmutable(); result.advancedExtensionTypeUrls_ = advancedExtensionTypeUrls_; } } @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 io.substrait.proto.Capabilities) { return mergeFrom((io.substrait.proto.Capabilities)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.substrait.proto.Capabilities other) { if (other == io.substrait.proto.Capabilities.getDefaultInstance()) return this; if (!other.substraitVersions_.isEmpty()) { if (substraitVersions_.isEmpty()) { substraitVersions_ = other.substraitVersions_; bitField0_ |= 0x00000001; } else { ensureSubstraitVersionsIsMutable(); substraitVersions_.addAll(other.substraitVersions_); } onChanged(); } if (!other.advancedExtensionTypeUrls_.isEmpty()) { if (advancedExtensionTypeUrls_.isEmpty()) { advancedExtensionTypeUrls_ = other.advancedExtensionTypeUrls_; bitField0_ |= 0x00000002; } else { ensureAdvancedExtensionTypeUrlsIsMutable(); advancedExtensionTypeUrls_.addAll(other.advancedExtensionTypeUrls_); } onChanged(); } if (simpleExtensionsBuilder_ == null) { if (!other.simpleExtensions_.isEmpty()) { if (simpleExtensions_.isEmpty()) { simpleExtensions_ = other.simpleExtensions_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSimpleExtensionsIsMutable(); simpleExtensions_.addAll(other.simpleExtensions_); } onChanged(); } } else { if (!other.simpleExtensions_.isEmpty()) { if (simpleExtensionsBuilder_.isEmpty()) { simpleExtensionsBuilder_.dispose(); simpleExtensionsBuilder_ = null; simpleExtensions_ = other.simpleExtensions_; bitField0_ = (bitField0_ & ~0x00000004); simpleExtensionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSimpleExtensionsFieldBuilder() : null; } else { simpleExtensionsBuilder_.addAllMessages(other.simpleExtensions_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); ensureSubstraitVersionsIsMutable(); substraitVersions_.add(s); break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureAdvancedExtensionTypeUrlsIsMutable(); advancedExtensionTypeUrls_.add(s); break; } // case 18 case 26: { io.substrait.proto.Capabilities.SimpleExtension m = input.readMessage( io.substrait.proto.Capabilities.SimpleExtension.parser(), extensionRegistry); if (simpleExtensionsBuilder_ == null) { ensureSimpleExtensionsIsMutable(); simpleExtensions_.add(m); } else { simpleExtensionsBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringArrayList substraitVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSubstraitVersionsIsMutable() { if (!substraitVersions_.isModifiable()) { substraitVersions_ = new com.google.protobuf.LazyStringArrayList(substraitVersions_); } bitField0_ |= 0x00000001; } /** *
     * List of Substrait versions this system supports
     * 
* * repeated string substrait_versions = 1; * @return A list containing the substraitVersions. */ public com.google.protobuf.ProtocolStringList getSubstraitVersionsList() { substraitVersions_.makeImmutable(); return substraitVersions_; } /** *
     * List of Substrait versions this system supports
     * 
* * repeated string substrait_versions = 1; * @return The count of substraitVersions. */ public int getSubstraitVersionsCount() { return substraitVersions_.size(); } /** *
     * List of Substrait versions this system supports
     * 
* * repeated string substrait_versions = 1; * @param index The index of the element to return. * @return The substraitVersions at the given index. */ public java.lang.String getSubstraitVersions(int index) { return substraitVersions_.get(index); } /** *
     * List of Substrait versions this system supports
     * 
* * repeated string substrait_versions = 1; * @param index The index of the value to return. * @return The bytes of the substraitVersions at the given index. */ public com.google.protobuf.ByteString getSubstraitVersionsBytes(int index) { return substraitVersions_.getByteString(index); } /** *
     * List of Substrait versions this system supports
     * 
* * repeated string substrait_versions = 1; * @param index The index to set the value at. * @param value The substraitVersions to set. * @return This builder for chaining. */ public Builder setSubstraitVersions( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubstraitVersionsIsMutable(); substraitVersions_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * List of Substrait versions this system supports
     * 
* * repeated string substrait_versions = 1; * @param value The substraitVersions to add. * @return This builder for chaining. */ public Builder addSubstraitVersions( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubstraitVersionsIsMutable(); substraitVersions_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * List of Substrait versions this system supports
     * 
* * repeated string substrait_versions = 1; * @param values The substraitVersions to add. * @return This builder for chaining. */ public Builder addAllSubstraitVersions( java.lang.Iterable values) { ensureSubstraitVersionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, substraitVersions_); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * List of Substrait versions this system supports
     * 
* * repeated string substrait_versions = 1; * @return This builder for chaining. */ public Builder clearSubstraitVersions() { substraitVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** *
     * List of Substrait versions this system supports
     * 
* * repeated string substrait_versions = 1; * @param value The bytes of the substraitVersions to add. * @return This builder for chaining. */ public Builder addSubstraitVersionsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSubstraitVersionsIsMutable(); substraitVersions_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList advancedExtensionTypeUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureAdvancedExtensionTypeUrlsIsMutable() { if (!advancedExtensionTypeUrls_.isModifiable()) { advancedExtensionTypeUrls_ = new com.google.protobuf.LazyStringArrayList(advancedExtensionTypeUrls_); } bitField0_ |= 0x00000002; } /** *
     * list of com.google.Any message types this system supports for advanced
     * extensions.
     * 
* * repeated string advanced_extension_type_urls = 2; * @return A list containing the advancedExtensionTypeUrls. */ public com.google.protobuf.ProtocolStringList getAdvancedExtensionTypeUrlsList() { advancedExtensionTypeUrls_.makeImmutable(); return advancedExtensionTypeUrls_; } /** *
     * list of com.google.Any message types this system supports for advanced
     * extensions.
     * 
* * repeated string advanced_extension_type_urls = 2; * @return The count of advancedExtensionTypeUrls. */ public int getAdvancedExtensionTypeUrlsCount() { return advancedExtensionTypeUrls_.size(); } /** *
     * list of com.google.Any message types this system supports for advanced
     * extensions.
     * 
* * repeated string advanced_extension_type_urls = 2; * @param index The index of the element to return. * @return The advancedExtensionTypeUrls at the given index. */ public java.lang.String getAdvancedExtensionTypeUrls(int index) { return advancedExtensionTypeUrls_.get(index); } /** *
     * list of com.google.Any message types this system supports for advanced
     * extensions.
     * 
* * repeated string advanced_extension_type_urls = 2; * @param index The index of the value to return. * @return The bytes of the advancedExtensionTypeUrls at the given index. */ public com.google.protobuf.ByteString getAdvancedExtensionTypeUrlsBytes(int index) { return advancedExtensionTypeUrls_.getByteString(index); } /** *
     * list of com.google.Any message types this system supports for advanced
     * extensions.
     * 
* * repeated string advanced_extension_type_urls = 2; * @param index The index to set the value at. * @param value The advancedExtensionTypeUrls to set. * @return This builder for chaining. */ public Builder setAdvancedExtensionTypeUrls( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAdvancedExtensionTypeUrlsIsMutable(); advancedExtensionTypeUrls_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * list of com.google.Any message types this system supports for advanced
     * extensions.
     * 
* * repeated string advanced_extension_type_urls = 2; * @param value The advancedExtensionTypeUrls to add. * @return This builder for chaining. */ public Builder addAdvancedExtensionTypeUrls( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAdvancedExtensionTypeUrlsIsMutable(); advancedExtensionTypeUrls_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * list of com.google.Any message types this system supports for advanced
     * extensions.
     * 
* * repeated string advanced_extension_type_urls = 2; * @param values The advancedExtensionTypeUrls to add. * @return This builder for chaining. */ public Builder addAllAdvancedExtensionTypeUrls( java.lang.Iterable values) { ensureAdvancedExtensionTypeUrlsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, advancedExtensionTypeUrls_); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * list of com.google.Any message types this system supports for advanced
     * extensions.
     * 
* * repeated string advanced_extension_type_urls = 2; * @return This builder for chaining. */ public Builder clearAdvancedExtensionTypeUrls() { advancedExtensionTypeUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** *
     * list of com.google.Any message types this system supports for advanced
     * extensions.
     * 
* * repeated string advanced_extension_type_urls = 2; * @param value The bytes of the advancedExtensionTypeUrls to add. * @return This builder for chaining. */ public Builder addAdvancedExtensionTypeUrlsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAdvancedExtensionTypeUrlsIsMutable(); advancedExtensionTypeUrls_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List simpleExtensions_ = java.util.Collections.emptyList(); private void ensureSimpleExtensionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { simpleExtensions_ = new java.util.ArrayList(simpleExtensions_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Capabilities.SimpleExtension, io.substrait.proto.Capabilities.SimpleExtension.Builder, io.substrait.proto.Capabilities.SimpleExtensionOrBuilder> simpleExtensionsBuilder_; /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public java.util.List getSimpleExtensionsList() { if (simpleExtensionsBuilder_ == null) { return java.util.Collections.unmodifiableList(simpleExtensions_); } else { return simpleExtensionsBuilder_.getMessageList(); } } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public int getSimpleExtensionsCount() { if (simpleExtensionsBuilder_ == null) { return simpleExtensions_.size(); } else { return simpleExtensionsBuilder_.getCount(); } } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public io.substrait.proto.Capabilities.SimpleExtension getSimpleExtensions(int index) { if (simpleExtensionsBuilder_ == null) { return simpleExtensions_.get(index); } else { return simpleExtensionsBuilder_.getMessage(index); } } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public Builder setSimpleExtensions( int index, io.substrait.proto.Capabilities.SimpleExtension value) { if (simpleExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSimpleExtensionsIsMutable(); simpleExtensions_.set(index, value); onChanged(); } else { simpleExtensionsBuilder_.setMessage(index, value); } return this; } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public Builder setSimpleExtensions( int index, io.substrait.proto.Capabilities.SimpleExtension.Builder builderForValue) { if (simpleExtensionsBuilder_ == null) { ensureSimpleExtensionsIsMutable(); simpleExtensions_.set(index, builderForValue.build()); onChanged(); } else { simpleExtensionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public Builder addSimpleExtensions(io.substrait.proto.Capabilities.SimpleExtension value) { if (simpleExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSimpleExtensionsIsMutable(); simpleExtensions_.add(value); onChanged(); } else { simpleExtensionsBuilder_.addMessage(value); } return this; } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public Builder addSimpleExtensions( int index, io.substrait.proto.Capabilities.SimpleExtension value) { if (simpleExtensionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSimpleExtensionsIsMutable(); simpleExtensions_.add(index, value); onChanged(); } else { simpleExtensionsBuilder_.addMessage(index, value); } return this; } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public Builder addSimpleExtensions( io.substrait.proto.Capabilities.SimpleExtension.Builder builderForValue) { if (simpleExtensionsBuilder_ == null) { ensureSimpleExtensionsIsMutable(); simpleExtensions_.add(builderForValue.build()); onChanged(); } else { simpleExtensionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public Builder addSimpleExtensions( int index, io.substrait.proto.Capabilities.SimpleExtension.Builder builderForValue) { if (simpleExtensionsBuilder_ == null) { ensureSimpleExtensionsIsMutable(); simpleExtensions_.add(index, builderForValue.build()); onChanged(); } else { simpleExtensionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public Builder addAllSimpleExtensions( java.lang.Iterable values) { if (simpleExtensionsBuilder_ == null) { ensureSimpleExtensionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, simpleExtensions_); onChanged(); } else { simpleExtensionsBuilder_.addAllMessages(values); } return this; } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public Builder clearSimpleExtensions() { if (simpleExtensionsBuilder_ == null) { simpleExtensions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { simpleExtensionsBuilder_.clear(); } return this; } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public Builder removeSimpleExtensions(int index) { if (simpleExtensionsBuilder_ == null) { ensureSimpleExtensionsIsMutable(); simpleExtensions_.remove(index); onChanged(); } else { simpleExtensionsBuilder_.remove(index); } return this; } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public io.substrait.proto.Capabilities.SimpleExtension.Builder getSimpleExtensionsBuilder( int index) { return getSimpleExtensionsFieldBuilder().getBuilder(index); } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public io.substrait.proto.Capabilities.SimpleExtensionOrBuilder getSimpleExtensionsOrBuilder( int index) { if (simpleExtensionsBuilder_ == null) { return simpleExtensions_.get(index); } else { return simpleExtensionsBuilder_.getMessageOrBuilder(index); } } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public java.util.List getSimpleExtensionsOrBuilderList() { if (simpleExtensionsBuilder_ != null) { return simpleExtensionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(simpleExtensions_); } } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public io.substrait.proto.Capabilities.SimpleExtension.Builder addSimpleExtensionsBuilder() { return getSimpleExtensionsFieldBuilder().addBuilder( io.substrait.proto.Capabilities.SimpleExtension.getDefaultInstance()); } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public io.substrait.proto.Capabilities.SimpleExtension.Builder addSimpleExtensionsBuilder( int index) { return getSimpleExtensionsFieldBuilder().addBuilder( index, io.substrait.proto.Capabilities.SimpleExtension.getDefaultInstance()); } /** *
     * list of simple extensions this system supports.
     * 
* * repeated .substrait.Capabilities.SimpleExtension simple_extensions = 3; */ public java.util.List getSimpleExtensionsBuilderList() { return getSimpleExtensionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Capabilities.SimpleExtension, io.substrait.proto.Capabilities.SimpleExtension.Builder, io.substrait.proto.Capabilities.SimpleExtensionOrBuilder> getSimpleExtensionsFieldBuilder() { if (simpleExtensionsBuilder_ == null) { simpleExtensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.substrait.proto.Capabilities.SimpleExtension, io.substrait.proto.Capabilities.SimpleExtension.Builder, io.substrait.proto.Capabilities.SimpleExtensionOrBuilder>( simpleExtensions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); simpleExtensions_ = null; } return simpleExtensionsBuilder_; } @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:substrait.Capabilities) } // @@protoc_insertion_point(class_scope:substrait.Capabilities) private static final io.substrait.proto.Capabilities DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.substrait.proto.Capabilities(); } public static io.substrait.proto.Capabilities getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Capabilities 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 io.substrait.proto.Capabilities getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy