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

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

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

package org.polypheny.prism;

/**
 * 
 *
 *The ConnectionRequest message is designed to initiate a connection request from the client to the server.
 *It contains information regarding the API version, client identity, and optional credentials, as well as properties associated with the connection.
 * 
* * Protobuf type {@code org.polypheny.prism.ConnectionRequest} */ public final class ConnectionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:org.polypheny.prism.ConnectionRequest) ConnectionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ConnectionRequest.newBuilder() to construct. private ConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConnectionRequest() { username_ = ""; password_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConnectionRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.polypheny.prism.ConnectionRequests.internal_static_org_polypheny_prism_ConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.polypheny.prism.ConnectionRequests.internal_static_org_polypheny_prism_ConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.polypheny.prism.ConnectionRequest.class, org.polypheny.prism.ConnectionRequest.Builder.class); } private int bitField0_; public static final int MAJOR_API_VERSION_FIELD_NUMBER = 1; private int majorApiVersion_ = 0; /** *
   * Specifies the major version of the API that the client is using.
   * 
* * int32 major_api_version = 1; * @return The majorApiVersion. */ @java.lang.Override public int getMajorApiVersion() { return majorApiVersion_; } public static final int MINOR_API_VERSION_FIELD_NUMBER = 2; private int minorApiVersion_ = 0; /** *
   * Represents the minor version of the API in use.
   * 
* * int32 minor_api_version = 2; * @return The minorApiVersion. */ @java.lang.Override public int getMinorApiVersion() { return minorApiVersion_; } public static final int USERNAME_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** *
   * (Optional) The username for authentication when establishing the connection.
   * 
* * optional string username = 5; * @return Whether the username field is set. */ @java.lang.Override public boolean hasUsername() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * (Optional) The username for authentication when establishing the connection.
   * 
* * optional string username = 5; * @return The username. */ @java.lang.Override public java.lang.String getUsername() { java.lang.Object ref = username_; 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(); username_ = s; return s; } } /** *
   * (Optional) The username for authentication when establishing the connection.
   * 
* * optional string username = 5; * @return The bytes for username. */ @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSWORD_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** *
   * (Optional) The password associated with the specified username for authentication purposes.
   * 
* * optional string password = 6; * @return Whether the password field is set. */ @java.lang.Override public boolean hasPassword() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * (Optional) The password associated with the specified username for authentication purposes.
   * 
* * optional string password = 6; * @return The password. */ @java.lang.Override public java.lang.String getPassword() { java.lang.Object ref = password_; 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(); password_ = s; return s; } } /** *
   * (Optional) The password associated with the specified username for authentication purposes.
   * 
* * optional string password = 6; * @return The bytes for password. */ @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONNECTION_PROPERTIES_FIELD_NUMBER = 4; private org.polypheny.prism.ConnectionProperties connectionProperties_; /** *
   * (Optional) Contains specific properties related to the connection, such as timeout settings or database preferences.
   * 
* * optional .org.polypheny.prism.ConnectionProperties connection_properties = 4; * @return Whether the connectionProperties field is set. */ @java.lang.Override public boolean hasConnectionProperties() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * (Optional) Contains specific properties related to the connection, such as timeout settings or database preferences.
   * 
* * optional .org.polypheny.prism.ConnectionProperties connection_properties = 4; * @return The connectionProperties. */ @java.lang.Override public org.polypheny.prism.ConnectionProperties getConnectionProperties() { return connectionProperties_ == null ? org.polypheny.prism.ConnectionProperties.getDefaultInstance() : connectionProperties_; } /** *
   * (Optional) Contains specific properties related to the connection, such as timeout settings or database preferences.
   * 
* * optional .org.polypheny.prism.ConnectionProperties connection_properties = 4; */ @java.lang.Override public org.polypheny.prism.ConnectionPropertiesOrBuilder getConnectionPropertiesOrBuilder() { return connectionProperties_ == null ? org.polypheny.prism.ConnectionProperties.getDefaultInstance() : connectionProperties_; } 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 (majorApiVersion_ != 0) { output.writeInt32(1, majorApiVersion_); } if (minorApiVersion_ != 0) { output.writeInt32(2, minorApiVersion_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getConnectionProperties()); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, username_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, password_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (majorApiVersion_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, majorApiVersion_); } if (minorApiVersion_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, minorApiVersion_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getConnectionProperties()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, username_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, password_); } 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.ConnectionRequest)) { return super.equals(obj); } org.polypheny.prism.ConnectionRequest other = (org.polypheny.prism.ConnectionRequest) obj; if (getMajorApiVersion() != other.getMajorApiVersion()) return false; if (getMinorApiVersion() != other.getMinorApiVersion()) return false; if (hasUsername() != other.hasUsername()) return false; if (hasUsername()) { if (!getUsername() .equals(other.getUsername())) return false; } if (hasPassword() != other.hasPassword()) return false; if (hasPassword()) { if (!getPassword() .equals(other.getPassword())) return false; } if (hasConnectionProperties() != other.hasConnectionProperties()) return false; if (hasConnectionProperties()) { if (!getConnectionProperties() .equals(other.getConnectionProperties())) 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) + MAJOR_API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getMajorApiVersion(); hash = (37 * hash) + MINOR_API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getMinorApiVersion(); if (hasUsername()) { hash = (37 * hash) + USERNAME_FIELD_NUMBER; hash = (53 * hash) + getUsername().hashCode(); } if (hasPassword()) { hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); } if (hasConnectionProperties()) { hash = (37 * hash) + CONNECTION_PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getConnectionProperties().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.polypheny.prism.ConnectionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ConnectionRequest 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.ConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ConnectionRequest 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.ConnectionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ConnectionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.polypheny.prism.ConnectionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.polypheny.prism.ConnectionRequest 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.ConnectionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.polypheny.prism.ConnectionRequest 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.ConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.polypheny.prism.ConnectionRequest 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.ConnectionRequest 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; } /** *
   *
   *The ConnectionRequest message is designed to initiate a connection request from the client to the server.
   *It contains information regarding the API version, client identity, and optional credentials, as well as properties associated with the connection.
   * 
* * Protobuf type {@code org.polypheny.prism.ConnectionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:org.polypheny.prism.ConnectionRequest) org.polypheny.prism.ConnectionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.polypheny.prism.ConnectionRequests.internal_static_org_polypheny_prism_ConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.polypheny.prism.ConnectionRequests.internal_static_org_polypheny_prism_ConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.polypheny.prism.ConnectionRequest.class, org.polypheny.prism.ConnectionRequest.Builder.class); } // Construct using org.polypheny.prism.ConnectionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getConnectionPropertiesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; majorApiVersion_ = 0; minorApiVersion_ = 0; username_ = ""; password_ = ""; connectionProperties_ = null; if (connectionPropertiesBuilder_ != null) { connectionPropertiesBuilder_.dispose(); connectionPropertiesBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.polypheny.prism.ConnectionRequests.internal_static_org_polypheny_prism_ConnectionRequest_descriptor; } @java.lang.Override public org.polypheny.prism.ConnectionRequest getDefaultInstanceForType() { return org.polypheny.prism.ConnectionRequest.getDefaultInstance(); } @java.lang.Override public org.polypheny.prism.ConnectionRequest build() { org.polypheny.prism.ConnectionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.polypheny.prism.ConnectionRequest buildPartial() { org.polypheny.prism.ConnectionRequest result = new org.polypheny.prism.ConnectionRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.polypheny.prism.ConnectionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.majorApiVersion_ = majorApiVersion_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.minorApiVersion_ = minorApiVersion_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.username_ = username_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.password_ = password_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.connectionProperties_ = connectionPropertiesBuilder_ == null ? connectionProperties_ : connectionPropertiesBuilder_.build(); to_bitField0_ |= 0x00000004; } 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.ConnectionRequest) { return mergeFrom((org.polypheny.prism.ConnectionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.polypheny.prism.ConnectionRequest other) { if (other == org.polypheny.prism.ConnectionRequest.getDefaultInstance()) return this; if (other.getMajorApiVersion() != 0) { setMajorApiVersion(other.getMajorApiVersion()); } if (other.getMinorApiVersion() != 0) { setMinorApiVersion(other.getMinorApiVersion()); } if (other.hasUsername()) { username_ = other.username_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasPassword()) { password_ = other.password_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasConnectionProperties()) { mergeConnectionProperties(other.getConnectionProperties()); } 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: { majorApiVersion_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { minorApiVersion_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 34: { input.readMessage( getConnectionPropertiesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 34 case 42: { username_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 42 case 50: { password_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int majorApiVersion_ ; /** *
     * Specifies the major version of the API that the client is using.
     * 
* * int32 major_api_version = 1; * @return The majorApiVersion. */ @java.lang.Override public int getMajorApiVersion() { return majorApiVersion_; } /** *
     * Specifies the major version of the API that the client is using.
     * 
* * int32 major_api_version = 1; * @param value The majorApiVersion to set. * @return This builder for chaining. */ public Builder setMajorApiVersion(int value) { majorApiVersion_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Specifies the major version of the API that the client is using.
     * 
* * int32 major_api_version = 1; * @return This builder for chaining. */ public Builder clearMajorApiVersion() { bitField0_ = (bitField0_ & ~0x00000001); majorApiVersion_ = 0; onChanged(); return this; } private int minorApiVersion_ ; /** *
     * Represents the minor version of the API in use.
     * 
* * int32 minor_api_version = 2; * @return The minorApiVersion. */ @java.lang.Override public int getMinorApiVersion() { return minorApiVersion_; } /** *
     * Represents the minor version of the API in use.
     * 
* * int32 minor_api_version = 2; * @param value The minorApiVersion to set. * @return This builder for chaining. */ public Builder setMinorApiVersion(int value) { minorApiVersion_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Represents the minor version of the API in use.
     * 
* * int32 minor_api_version = 2; * @return This builder for chaining. */ public Builder clearMinorApiVersion() { bitField0_ = (bitField0_ & ~0x00000002); minorApiVersion_ = 0; onChanged(); return this; } private java.lang.Object username_ = ""; /** *
     * (Optional) The username for authentication when establishing the connection.
     * 
* * optional string username = 5; * @return Whether the username field is set. */ public boolean hasUsername() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * (Optional) The username for authentication when establishing the connection.
     * 
* * optional string username = 5; * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * (Optional) The username for authentication when establishing the connection.
     * 
* * optional string username = 5; * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * (Optional) The username for authentication when establishing the connection.
     * 
* * optional string username = 5; * @param value The username to set. * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * (Optional) The username for authentication when establishing the connection.
     * 
* * optional string username = 5; * @return This builder for chaining. */ public Builder clearUsername() { username_ = getDefaultInstance().getUsername(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * (Optional) The username for authentication when establishing the connection.
     * 
* * optional string username = 5; * @param value The bytes for username to set. * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object password_ = ""; /** *
     * (Optional) The password associated with the specified username for authentication purposes.
     * 
* * optional string password = 6; * @return Whether the password field is set. */ public boolean hasPassword() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * (Optional) The password associated with the specified username for authentication purposes.
     * 
* * optional string password = 6; * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * (Optional) The password associated with the specified username for authentication purposes.
     * 
* * optional string password = 6; * @return The bytes for password. */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * (Optional) The password associated with the specified username for authentication purposes.
     * 
* * optional string password = 6; * @param value The password to set. * @return This builder for chaining. */ public Builder setPassword( java.lang.String value) { if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * (Optional) The password associated with the specified username for authentication purposes.
     * 
* * optional string password = 6; * @return This builder for chaining. */ public Builder clearPassword() { password_ = getDefaultInstance().getPassword(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * (Optional) The password associated with the specified username for authentication purposes.
     * 
* * optional string password = 6; * @param value The bytes for password to set. * @return This builder for chaining. */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private org.polypheny.prism.ConnectionProperties connectionProperties_; private com.google.protobuf.SingleFieldBuilderV3< org.polypheny.prism.ConnectionProperties, org.polypheny.prism.ConnectionProperties.Builder, org.polypheny.prism.ConnectionPropertiesOrBuilder> connectionPropertiesBuilder_; /** *
     * (Optional) Contains specific properties related to the connection, such as timeout settings or database preferences.
     * 
* * optional .org.polypheny.prism.ConnectionProperties connection_properties = 4; * @return Whether the connectionProperties field is set. */ public boolean hasConnectionProperties() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * (Optional) Contains specific properties related to the connection, such as timeout settings or database preferences.
     * 
* * optional .org.polypheny.prism.ConnectionProperties connection_properties = 4; * @return The connectionProperties. */ public org.polypheny.prism.ConnectionProperties getConnectionProperties() { if (connectionPropertiesBuilder_ == null) { return connectionProperties_ == null ? org.polypheny.prism.ConnectionProperties.getDefaultInstance() : connectionProperties_; } else { return connectionPropertiesBuilder_.getMessage(); } } /** *
     * (Optional) Contains specific properties related to the connection, such as timeout settings or database preferences.
     * 
* * optional .org.polypheny.prism.ConnectionProperties connection_properties = 4; */ public Builder setConnectionProperties(org.polypheny.prism.ConnectionProperties value) { if (connectionPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } connectionProperties_ = value; } else { connectionPropertiesBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * (Optional) Contains specific properties related to the connection, such as timeout settings or database preferences.
     * 
* * optional .org.polypheny.prism.ConnectionProperties connection_properties = 4; */ public Builder setConnectionProperties( org.polypheny.prism.ConnectionProperties.Builder builderForValue) { if (connectionPropertiesBuilder_ == null) { connectionProperties_ = builderForValue.build(); } else { connectionPropertiesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * (Optional) Contains specific properties related to the connection, such as timeout settings or database preferences.
     * 
* * optional .org.polypheny.prism.ConnectionProperties connection_properties = 4; */ public Builder mergeConnectionProperties(org.polypheny.prism.ConnectionProperties value) { if (connectionPropertiesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && connectionProperties_ != null && connectionProperties_ != org.polypheny.prism.ConnectionProperties.getDefaultInstance()) { getConnectionPropertiesBuilder().mergeFrom(value); } else { connectionProperties_ = value; } } else { connectionPropertiesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * (Optional) Contains specific properties related to the connection, such as timeout settings or database preferences.
     * 
* * optional .org.polypheny.prism.ConnectionProperties connection_properties = 4; */ public Builder clearConnectionProperties() { bitField0_ = (bitField0_ & ~0x00000010); connectionProperties_ = null; if (connectionPropertiesBuilder_ != null) { connectionPropertiesBuilder_.dispose(); connectionPropertiesBuilder_ = null; } onChanged(); return this; } /** *
     * (Optional) Contains specific properties related to the connection, such as timeout settings or database preferences.
     * 
* * optional .org.polypheny.prism.ConnectionProperties connection_properties = 4; */ public org.polypheny.prism.ConnectionProperties.Builder getConnectionPropertiesBuilder() { bitField0_ |= 0x00000010; onChanged(); return getConnectionPropertiesFieldBuilder().getBuilder(); } /** *
     * (Optional) Contains specific properties related to the connection, such as timeout settings or database preferences.
     * 
* * optional .org.polypheny.prism.ConnectionProperties connection_properties = 4; */ public org.polypheny.prism.ConnectionPropertiesOrBuilder getConnectionPropertiesOrBuilder() { if (connectionPropertiesBuilder_ != null) { return connectionPropertiesBuilder_.getMessageOrBuilder(); } else { return connectionProperties_ == null ? org.polypheny.prism.ConnectionProperties.getDefaultInstance() : connectionProperties_; } } /** *
     * (Optional) Contains specific properties related to the connection, such as timeout settings or database preferences.
     * 
* * optional .org.polypheny.prism.ConnectionProperties connection_properties = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.polypheny.prism.ConnectionProperties, org.polypheny.prism.ConnectionProperties.Builder, org.polypheny.prism.ConnectionPropertiesOrBuilder> getConnectionPropertiesFieldBuilder() { if (connectionPropertiesBuilder_ == null) { connectionPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.polypheny.prism.ConnectionProperties, org.polypheny.prism.ConnectionProperties.Builder, org.polypheny.prism.ConnectionPropertiesOrBuilder>( getConnectionProperties(), getParentForChildren(), isClean()); connectionProperties_ = null; } return connectionPropertiesBuilder_; } @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.ConnectionRequest) } // @@protoc_insertion_point(class_scope:org.polypheny.prism.ConnectionRequest) private static final org.polypheny.prism.ConnectionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.polypheny.prism.ConnectionRequest(); } public static org.polypheny.prism.ConnectionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConnectionRequest 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.ConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy