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

org.polypheny.prism.ExecuteUnparameterizedStatementRequest Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: org/polypheny/prism/statement_requests.proto

package org.polypheny.prism;

/**
 * 
 *
 *Represents a request to execute a statement without any parameters.
 *This message includes details about the language in which the statement is written, the statement itself, and optional attributes such as fetch size and namespace name to control how the statement is executed.
 * 
* * Protobuf type {@code org.polypheny.prism.ExecuteUnparameterizedStatementRequest} */ public final class ExecuteUnparameterizedStatementRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:org.polypheny.prism.ExecuteUnparameterizedStatementRequest) ExecuteUnparameterizedStatementRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ExecuteUnparameterizedStatementRequest.newBuilder() to construct. private ExecuteUnparameterizedStatementRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExecuteUnparameterizedStatementRequest() { languageName_ = ""; statement_ = ""; namespaceName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExecuteUnparameterizedStatementRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.polypheny.prism.StatementRequests.internal_static_org_polypheny_prism_ExecuteUnparameterizedStatementRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.polypheny.prism.StatementRequests.internal_static_org_polypheny_prism_ExecuteUnparameterizedStatementRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.polypheny.prism.ExecuteUnparameterizedStatementRequest.class, org.polypheny.prism.ExecuteUnparameterizedStatementRequest.Builder.class); } private int bitField0_; public static final int LANGUAGE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object languageName_ = ""; /** *
   * Specifies the query language of the statement being executed.
   * 
* * string language_name = 1; * @return The languageName. */ @java.lang.Override public java.lang.String getLanguageName() { java.lang.Object ref = languageName_; 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(); languageName_ = s; return s; } } /** *
   * Specifies the query language of the statement being executed.
   * 
* * string language_name = 1; * @return The bytes for languageName. */ @java.lang.Override public com.google.protobuf.ByteString getLanguageNameBytes() { java.lang.Object ref = languageName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); languageName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATEMENT_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object statement_ = ""; /** *
   * The statement to be executed.
   * 
* * string statement = 2; * @return The statement. */ @java.lang.Override public java.lang.String getStatement() { java.lang.Object ref = statement_; 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(); statement_ = s; return s; } } /** *
   * The statement to be executed.
   * 
* * string statement = 2; * @return The bytes for statement. */ @java.lang.Override public com.google.protobuf.ByteString getStatementBytes() { java.lang.Object ref = statement_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); statement_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FETCH_SIZE_FIELD_NUMBER = 3; private int fetchSize_ = 0; /** *
   *
   *(Optional) Number of rows to include into the response message of this call.
   *More rows can be fetched afterwards. If not specified, a default value is used.
   * 
* * optional int32 fetch_size = 3; * @return Whether the fetchSize field is set. */ @java.lang.Override public boolean hasFetchSize() { return ((bitField0_ & 0x00000001) != 0); } /** *
   *
   *(Optional) Number of rows to include into the response message of this call.
   *More rows can be fetched afterwards. If not specified, a default value is used.
   * 
* * optional int32 fetch_size = 3; * @return The fetchSize. */ @java.lang.Override public int getFetchSize() { return fetchSize_; } public static final int NAMESPACE_NAME_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object namespaceName_ = ""; /** *
   *
   *(Optional) The namespace under which the statement should be executed.
   *If not specified, the namespace specified for the connection is used.
   * 
* * optional string namespace_name = 4; * @return Whether the namespaceName field is set. */ @java.lang.Override public boolean hasNamespaceName() { return ((bitField0_ & 0x00000002) != 0); } /** *
   *
   *(Optional) The namespace under which the statement should be executed.
   *If not specified, the namespace specified for the connection is used.
   * 
* * optional string namespace_name = 4; * @return The namespaceName. */ @java.lang.Override public java.lang.String getNamespaceName() { java.lang.Object ref = namespaceName_; 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(); namespaceName_ = s; return s; } } /** *
   *
   *(Optional) The namespace under which the statement should be executed.
   *If not specified, the namespace specified for the connection is used.
   * 
* * optional string namespace_name = 4; * @return The bytes for namespaceName. */ @java.lang.Override public com.google.protobuf.ByteString getNamespaceNameBytes() { java.lang.Object ref = namespaceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespaceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statement_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, statement_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(3, fetchSize_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, namespaceName_); } 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(languageName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statement_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, statement_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, fetchSize_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, namespaceName_); } 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 org.polypheny.prism.ExecuteUnparameterizedStatementRequest)) { return super.equals(obj); } org.polypheny.prism.ExecuteUnparameterizedStatementRequest other = (org.polypheny.prism.ExecuteUnparameterizedStatementRequest) obj; if (!getLanguageName() .equals(other.getLanguageName())) return false; if (!getStatement() .equals(other.getStatement())) return false; if (hasFetchSize() != other.hasFetchSize()) return false; if (hasFetchSize()) { if (getFetchSize() != other.getFetchSize()) return false; } if (hasNamespaceName() != other.hasNamespaceName()) return false; if (hasNamespaceName()) { if (!getNamespaceName() .equals(other.getNamespaceName())) 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) + LANGUAGE_NAME_FIELD_NUMBER; hash = (53 * hash) + getLanguageName().hashCode(); hash = (37 * hash) + STATEMENT_FIELD_NUMBER; hash = (53 * hash) + getStatement().hashCode(); if (hasFetchSize()) { hash = (37 * hash) + FETCH_SIZE_FIELD_NUMBER; hash = (53 * hash) + getFetchSize(); } if (hasNamespaceName()) { hash = (37 * hash) + NAMESPACE_NAME_FIELD_NUMBER; hash = (53 * hash) + getNamespaceName().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.polypheny.prism.ExecuteUnparameterizedStatementRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ExecuteUnparameterizedStatementRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.polypheny.prism.ExecuteUnparameterizedStatementRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ExecuteUnparameterizedStatementRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.polypheny.prism.ExecuteUnparameterizedStatementRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ExecuteUnparameterizedStatementRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.polypheny.prism.ExecuteUnparameterizedStatementRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.polypheny.prism.ExecuteUnparameterizedStatementRequest 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 org.polypheny.prism.ExecuteUnparameterizedStatementRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.polypheny.prism.ExecuteUnparameterizedStatementRequest 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 org.polypheny.prism.ExecuteUnparameterizedStatementRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.polypheny.prism.ExecuteUnparameterizedStatementRequest 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(org.polypheny.prism.ExecuteUnparameterizedStatementRequest 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; } /** *
   *
   *Represents a request to execute a statement without any parameters.
   *This message includes details about the language in which the statement is written, the statement itself, and optional attributes such as fetch size and namespace name to control how the statement is executed.
   * 
* * Protobuf type {@code org.polypheny.prism.ExecuteUnparameterizedStatementRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:org.polypheny.prism.ExecuteUnparameterizedStatementRequest) org.polypheny.prism.ExecuteUnparameterizedStatementRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.polypheny.prism.StatementRequests.internal_static_org_polypheny_prism_ExecuteUnparameterizedStatementRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.polypheny.prism.StatementRequests.internal_static_org_polypheny_prism_ExecuteUnparameterizedStatementRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.polypheny.prism.ExecuteUnparameterizedStatementRequest.class, org.polypheny.prism.ExecuteUnparameterizedStatementRequest.Builder.class); } // Construct using org.polypheny.prism.ExecuteUnparameterizedStatementRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; languageName_ = ""; statement_ = ""; fetchSize_ = 0; namespaceName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.polypheny.prism.StatementRequests.internal_static_org_polypheny_prism_ExecuteUnparameterizedStatementRequest_descriptor; } @java.lang.Override public org.polypheny.prism.ExecuteUnparameterizedStatementRequest getDefaultInstanceForType() { return org.polypheny.prism.ExecuteUnparameterizedStatementRequest.getDefaultInstance(); } @java.lang.Override public org.polypheny.prism.ExecuteUnparameterizedStatementRequest build() { org.polypheny.prism.ExecuteUnparameterizedStatementRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.polypheny.prism.ExecuteUnparameterizedStatementRequest buildPartial() { org.polypheny.prism.ExecuteUnparameterizedStatementRequest result = new org.polypheny.prism.ExecuteUnparameterizedStatementRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.polypheny.prism.ExecuteUnparameterizedStatementRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.languageName_ = languageName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.statement_ = statement_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.fetchSize_ = fetchSize_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.namespaceName_ = namespaceName_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.polypheny.prism.ExecuteUnparameterizedStatementRequest) { return mergeFrom((org.polypheny.prism.ExecuteUnparameterizedStatementRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.polypheny.prism.ExecuteUnparameterizedStatementRequest other) { if (other == org.polypheny.prism.ExecuteUnparameterizedStatementRequest.getDefaultInstance()) return this; if (!other.getLanguageName().isEmpty()) { languageName_ = other.languageName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getStatement().isEmpty()) { statement_ = other.statement_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasFetchSize()) { setFetchSize(other.getFetchSize()); } if (other.hasNamespaceName()) { namespaceName_ = other.namespaceName_; bitField0_ |= 0x00000008; 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: { languageName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { statement_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { fetchSize_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { namespaceName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; 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 languageName_ = ""; /** *
     * Specifies the query language of the statement being executed.
     * 
* * string language_name = 1; * @return The languageName. */ public java.lang.String getLanguageName() { java.lang.Object ref = languageName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Specifies the query language of the statement being executed.
     * 
* * string language_name = 1; * @return The bytes for languageName. */ public com.google.protobuf.ByteString getLanguageNameBytes() { java.lang.Object ref = languageName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); languageName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Specifies the query language of the statement being executed.
     * 
* * string language_name = 1; * @param value The languageName to set. * @return This builder for chaining. */ public Builder setLanguageName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } languageName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Specifies the query language of the statement being executed.
     * 
* * string language_name = 1; * @return This builder for chaining. */ public Builder clearLanguageName() { languageName_ = getDefaultInstance().getLanguageName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Specifies the query language of the statement being executed.
     * 
* * string language_name = 1; * @param value The bytes for languageName to set. * @return This builder for chaining. */ public Builder setLanguageNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object statement_ = ""; /** *
     * The statement to be executed.
     * 
* * string statement = 2; * @return The statement. */ public java.lang.String getStatement() { java.lang.Object ref = statement_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statement_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The statement to be executed.
     * 
* * string statement = 2; * @return The bytes for statement. */ public com.google.protobuf.ByteString getStatementBytes() { java.lang.Object ref = statement_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); statement_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The statement to be executed.
     * 
* * string statement = 2; * @param value The statement to set. * @return This builder for chaining. */ public Builder setStatement( java.lang.String value) { if (value == null) { throw new NullPointerException(); } statement_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The statement to be executed.
     * 
* * string statement = 2; * @return This builder for chaining. */ public Builder clearStatement() { statement_ = getDefaultInstance().getStatement(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * The statement to be executed.
     * 
* * string statement = 2; * @param value The bytes for statement to set. * @return This builder for chaining. */ public Builder setStatementBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statement_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int fetchSize_ ; /** *
     *
     *(Optional) Number of rows to include into the response message of this call.
     *More rows can be fetched afterwards. If not specified, a default value is used.
     * 
* * optional int32 fetch_size = 3; * @return Whether the fetchSize field is set. */ @java.lang.Override public boolean hasFetchSize() { return ((bitField0_ & 0x00000004) != 0); } /** *
     *
     *(Optional) Number of rows to include into the response message of this call.
     *More rows can be fetched afterwards. If not specified, a default value is used.
     * 
* * optional int32 fetch_size = 3; * @return The fetchSize. */ @java.lang.Override public int getFetchSize() { return fetchSize_; } /** *
     *
     *(Optional) Number of rows to include into the response message of this call.
     *More rows can be fetched afterwards. If not specified, a default value is used.
     * 
* * optional int32 fetch_size = 3; * @param value The fetchSize to set. * @return This builder for chaining. */ public Builder setFetchSize(int value) { fetchSize_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     *
     *(Optional) Number of rows to include into the response message of this call.
     *More rows can be fetched afterwards. If not specified, a default value is used.
     * 
* * optional int32 fetch_size = 3; * @return This builder for chaining. */ public Builder clearFetchSize() { bitField0_ = (bitField0_ & ~0x00000004); fetchSize_ = 0; onChanged(); return this; } private java.lang.Object namespaceName_ = ""; /** *
     *
     *(Optional) The namespace under which the statement should be executed.
     *If not specified, the namespace specified for the connection is used.
     * 
* * optional string namespace_name = 4; * @return Whether the namespaceName field is set. */ public boolean hasNamespaceName() { return ((bitField0_ & 0x00000008) != 0); } /** *
     *
     *(Optional) The namespace under which the statement should be executed.
     *If not specified, the namespace specified for the connection is used.
     * 
* * optional string namespace_name = 4; * @return The namespaceName. */ public java.lang.String getNamespaceName() { java.lang.Object ref = namespaceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespaceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *
     *(Optional) The namespace under which the statement should be executed.
     *If not specified, the namespace specified for the connection is used.
     * 
* * optional string namespace_name = 4; * @return The bytes for namespaceName. */ public com.google.protobuf.ByteString getNamespaceNameBytes() { java.lang.Object ref = namespaceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespaceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *
     *(Optional) The namespace under which the statement should be executed.
     *If not specified, the namespace specified for the connection is used.
     * 
* * optional string namespace_name = 4; * @param value The namespaceName to set. * @return This builder for chaining. */ public Builder setNamespaceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespaceName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     *
     *(Optional) The namespace under which the statement should be executed.
     *If not specified, the namespace specified for the connection is used.
     * 
* * optional string namespace_name = 4; * @return This builder for chaining. */ public Builder clearNamespaceName() { namespaceName_ = getDefaultInstance().getNamespaceName(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     *
     *(Optional) The namespace under which the statement should be executed.
     *If not specified, the namespace specified for the connection is used.
     * 
* * optional string namespace_name = 4; * @param value The bytes for namespaceName to set. * @return This builder for chaining. */ public Builder setNamespaceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); namespaceName_ = 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:org.polypheny.prism.ExecuteUnparameterizedStatementRequest) } // @@protoc_insertion_point(class_scope:org.polypheny.prism.ExecuteUnparameterizedStatementRequest) private static final org.polypheny.prism.ExecuteUnparameterizedStatementRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.polypheny.prism.ExecuteUnparameterizedStatementRequest(); } public static org.polypheny.prism.ExecuteUnparameterizedStatementRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExecuteUnparameterizedStatementRequest 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 org.polypheny.prism.ExecuteUnparameterizedStatementRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy