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

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

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

package org.polypheny.prism;

/**
 * 
 *
 *Provides metadata about a single parameter of a prepared statement.
 *This includes details about the parameter's precision, scale, data type, and names.
 * 
* * Protobuf type {@code org.polypheny.prism.ParameterMeta} */ public final class ParameterMeta extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:org.polypheny.prism.ParameterMeta) ParameterMetaOrBuilder { private static final long serialVersionUID = 0L; // Use ParameterMeta.newBuilder() to construct. private ParameterMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ParameterMeta() { typeName_ = ""; parameterName_ = ""; name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ParameterMeta(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.polypheny.prism.StatementResponses.internal_static_org_polypheny_prism_ParameterMeta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.polypheny.prism.StatementResponses.internal_static_org_polypheny_prism_ParameterMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( org.polypheny.prism.ParameterMeta.class, org.polypheny.prism.ParameterMeta.Builder.class); } private int bitField0_; public static final int PRECISION_FIELD_NUMBER = 1; private int precision_ = 0; /** *
   * Precision of the parameter, typically used for numeric types.
   * 
* * int32 precision = 1; * @return The precision. */ @java.lang.Override public int getPrecision() { return precision_; } public static final int SCALE_FIELD_NUMBER = 2; private int scale_ = 0; /** *
   * Scale of the parameter, typically used for decimal types.
   * 
* * int32 scale = 2; * @return The scale. */ @java.lang.Override public int getScale() { return scale_; } public static final int TYPE_NAME_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object typeName_ = ""; /** *
   * The data type of the parameter.
   * 
* * string type_name = 3; * @return The typeName. */ @java.lang.Override public java.lang.String getTypeName() { java.lang.Object ref = typeName_; 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(); typeName_ = s; return s; } } /** *
   * The data type of the parameter.
   * 
* * string type_name = 3; * @return The bytes for typeName. */ @java.lang.Override public com.google.protobuf.ByteString getTypeNameBytes() { java.lang.Object ref = typeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARAMETER_NAME_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object parameterName_ = ""; /** *
   * (Optional) The name of the placeholder specified for this value.
   * 
* * optional string parameter_name = 4; * @return Whether the parameterName field is set. */ @java.lang.Override public boolean hasParameterName() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * (Optional) The name of the placeholder specified for this value.
   * 
* * optional string parameter_name = 4; * @return The parameterName. */ @java.lang.Override public java.lang.String getParameterName() { java.lang.Object ref = parameterName_; 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(); parameterName_ = s; return s; } } /** *
   * (Optional) The name of the placeholder specified for this value.
   * 
* * optional string parameter_name = 4; * @return The bytes for parameterName. */ @java.lang.Override public com.google.protobuf.ByteString getParameterNameBytes() { java.lang.Object ref = parameterName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); parameterName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
   * The name of the parameter, if specified.
   * 
* * string name = 5; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
   * The name of the parameter, if specified.
   * 
* * string name = 5; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (precision_ != 0) { output.writeInt32(1, precision_); } if (scale_ != 0) { output.writeInt32(2, scale_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, typeName_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parameterName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (precision_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, precision_); } if (scale_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, scale_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, typeName_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parameterName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); } 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.ParameterMeta)) { return super.equals(obj); } org.polypheny.prism.ParameterMeta other = (org.polypheny.prism.ParameterMeta) obj; if (getPrecision() != other.getPrecision()) return false; if (getScale() != other.getScale()) return false; if (!getTypeName() .equals(other.getTypeName())) return false; if (hasParameterName() != other.hasParameterName()) return false; if (hasParameterName()) { if (!getParameterName() .equals(other.getParameterName())) return false; } if (!getName() .equals(other.getName())) 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) + PRECISION_FIELD_NUMBER; hash = (53 * hash) + getPrecision(); hash = (37 * hash) + SCALE_FIELD_NUMBER; hash = (53 * hash) + getScale(); hash = (37 * hash) + TYPE_NAME_FIELD_NUMBER; hash = (53 * hash) + getTypeName().hashCode(); if (hasParameterName()) { hash = (37 * hash) + PARAMETER_NAME_FIELD_NUMBER; hash = (53 * hash) + getParameterName().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.polypheny.prism.ParameterMeta parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ParameterMeta 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.ParameterMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ParameterMeta 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.ParameterMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ParameterMeta parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.polypheny.prism.ParameterMeta parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.polypheny.prism.ParameterMeta 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.ParameterMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.polypheny.prism.ParameterMeta 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.ParameterMeta parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.polypheny.prism.ParameterMeta 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.ParameterMeta 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; } /** *
   *
   *Provides metadata about a single parameter of a prepared statement.
   *This includes details about the parameter's precision, scale, data type, and names.
   * 
* * Protobuf type {@code org.polypheny.prism.ParameterMeta} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:org.polypheny.prism.ParameterMeta) org.polypheny.prism.ParameterMetaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.polypheny.prism.StatementResponses.internal_static_org_polypheny_prism_ParameterMeta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.polypheny.prism.StatementResponses.internal_static_org_polypheny_prism_ParameterMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( org.polypheny.prism.ParameterMeta.class, org.polypheny.prism.ParameterMeta.Builder.class); } // Construct using org.polypheny.prism.ParameterMeta.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; precision_ = 0; scale_ = 0; typeName_ = ""; parameterName_ = ""; name_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.polypheny.prism.StatementResponses.internal_static_org_polypheny_prism_ParameterMeta_descriptor; } @java.lang.Override public org.polypheny.prism.ParameterMeta getDefaultInstanceForType() { return org.polypheny.prism.ParameterMeta.getDefaultInstance(); } @java.lang.Override public org.polypheny.prism.ParameterMeta build() { org.polypheny.prism.ParameterMeta result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.polypheny.prism.ParameterMeta buildPartial() { org.polypheny.prism.ParameterMeta result = new org.polypheny.prism.ParameterMeta(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.polypheny.prism.ParameterMeta result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.precision_ = precision_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.scale_ = scale_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.typeName_ = typeName_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.parameterName_ = parameterName_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.name_ = name_; } 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.ParameterMeta) { return mergeFrom((org.polypheny.prism.ParameterMeta)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.polypheny.prism.ParameterMeta other) { if (other == org.polypheny.prism.ParameterMeta.getDefaultInstance()) return this; if (other.getPrecision() != 0) { setPrecision(other.getPrecision()); } if (other.getScale() != 0) { setScale(other.getScale()); } if (!other.getTypeName().isEmpty()) { typeName_ = other.typeName_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasParameterName()) { parameterName_ = other.parameterName_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000010; 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 8: { precision_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { scale_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { typeName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { parameterName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 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 int precision_ ; /** *
     * Precision of the parameter, typically used for numeric types.
     * 
* * int32 precision = 1; * @return The precision. */ @java.lang.Override public int getPrecision() { return precision_; } /** *
     * Precision of the parameter, typically used for numeric types.
     * 
* * int32 precision = 1; * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(int value) { precision_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Precision of the parameter, typically used for numeric types.
     * 
* * int32 precision = 1; * @return This builder for chaining. */ public Builder clearPrecision() { bitField0_ = (bitField0_ & ~0x00000001); precision_ = 0; onChanged(); return this; } private int scale_ ; /** *
     * Scale of the parameter, typically used for decimal types.
     * 
* * int32 scale = 2; * @return The scale. */ @java.lang.Override public int getScale() { return scale_; } /** *
     * Scale of the parameter, typically used for decimal types.
     * 
* * int32 scale = 2; * @param value The scale to set. * @return This builder for chaining. */ public Builder setScale(int value) { scale_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Scale of the parameter, typically used for decimal types.
     * 
* * int32 scale = 2; * @return This builder for chaining. */ public Builder clearScale() { bitField0_ = (bitField0_ & ~0x00000002); scale_ = 0; onChanged(); return this; } private java.lang.Object typeName_ = ""; /** *
     * The data type of the parameter.
     * 
* * string type_name = 3; * @return The typeName. */ public java.lang.String getTypeName() { java.lang.Object ref = typeName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); typeName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The data type of the parameter.
     * 
* * string type_name = 3; * @return The bytes for typeName. */ public com.google.protobuf.ByteString getTypeNameBytes() { java.lang.Object ref = typeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The data type of the parameter.
     * 
* * string type_name = 3; * @param value The typeName to set. * @return This builder for chaining. */ public Builder setTypeName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The data type of the parameter.
     * 
* * string type_name = 3; * @return This builder for chaining. */ public Builder clearTypeName() { typeName_ = getDefaultInstance().getTypeName(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * The data type of the parameter.
     * 
* * string type_name = 3; * @param value The bytes for typeName to set. * @return This builder for chaining. */ public Builder setTypeNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); typeName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object parameterName_ = ""; /** *
     * (Optional) The name of the placeholder specified for this value.
     * 
* * optional string parameter_name = 4; * @return Whether the parameterName field is set. */ public boolean hasParameterName() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * (Optional) The name of the placeholder specified for this value.
     * 
* * optional string parameter_name = 4; * @return The parameterName. */ public java.lang.String getParameterName() { java.lang.Object ref = parameterName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parameterName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * (Optional) The name of the placeholder specified for this value.
     * 
* * optional string parameter_name = 4; * @return The bytes for parameterName. */ public com.google.protobuf.ByteString getParameterNameBytes() { java.lang.Object ref = parameterName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); parameterName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * (Optional) The name of the placeholder specified for this value.
     * 
* * optional string parameter_name = 4; * @param value The parameterName to set. * @return This builder for chaining. */ public Builder setParameterName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } parameterName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * (Optional) The name of the placeholder specified for this value.
     * 
* * optional string parameter_name = 4; * @return This builder for chaining. */ public Builder clearParameterName() { parameterName_ = getDefaultInstance().getParameterName(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * (Optional) The name of the placeholder specified for this value.
     * 
* * optional string parameter_name = 4; * @param value The bytes for parameterName to set. * @return This builder for chaining. */ public Builder setParameterNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parameterName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * The name of the parameter, if specified.
     * 
* * string name = 5; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The name of the parameter, if specified.
     * 
* * string name = 5; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The name of the parameter, if specified.
     * 
* * string name = 5; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The name of the parameter, if specified.
     * 
* * string name = 5; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * The name of the parameter, if specified.
     * 
* * string name = 5; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000010; 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.ParameterMeta) } // @@protoc_insertion_point(class_scope:org.polypheny.prism.ParameterMeta) private static final org.polypheny.prism.ParameterMeta DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.polypheny.prism.ParameterMeta(); } public static org.polypheny.prism.ParameterMeta getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ParameterMeta 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.ParameterMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy