com.vesoft.nebula.proto.graph.AuthRequest Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: graph.proto
// Protobuf Java Version: 3.25.1
package com.vesoft.nebula.proto.graph;
/**
* Protobuf type {@code nebula.proto.graph.AuthRequest}
*/
public final class AuthRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:nebula.proto.graph.AuthRequest)
AuthRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AuthRequest.newBuilder() to construct.
private AuthRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AuthRequest() {
username_ = com.google.protobuf.ByteString.EMPTY;
authInfo_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AuthRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_AuthRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_AuthRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vesoft.nebula.proto.graph.AuthRequest.class, com.vesoft.nebula.proto.graph.AuthRequest.Builder.class);
}
private int bitField0_;
public static final int USERNAME_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString username_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes username = 1;
* @return The username.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUsername() {
return username_;
}
public static final int AUTH_INFO_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString authInfo_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes auth_info = 2;
* @return The authInfo.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAuthInfo() {
return authInfo_;
}
public static final int CLIENT_INFO_FIELD_NUMBER = 3;
private com.vesoft.nebula.proto.common.ClientInfo clientInfo_;
/**
* .nebula.proto.common.ClientInfo client_info = 3;
* @return Whether the clientInfo field is set.
*/
@java.lang.Override
public boolean hasClientInfo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .nebula.proto.common.ClientInfo client_info = 3;
* @return The clientInfo.
*/
@java.lang.Override
public com.vesoft.nebula.proto.common.ClientInfo getClientInfo() {
return clientInfo_ == null ? com.vesoft.nebula.proto.common.ClientInfo.getDefaultInstance() : clientInfo_;
}
/**
* .nebula.proto.common.ClientInfo client_info = 3;
*/
@java.lang.Override
public com.vesoft.nebula.proto.common.ClientInfoOrBuilder getClientInfoOrBuilder() {
return clientInfo_ == null ? com.vesoft.nebula.proto.common.ClientInfo.getDefaultInstance() : clientInfo_;
}
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 (!username_.isEmpty()) {
output.writeBytes(1, username_);
}
if (!authInfo_.isEmpty()) {
output.writeBytes(2, authInfo_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getClientInfo());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!username_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, username_);
}
if (!authInfo_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, authInfo_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getClientInfo());
}
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 com.vesoft.nebula.proto.graph.AuthRequest)) {
return super.equals(obj);
}
com.vesoft.nebula.proto.graph.AuthRequest other = (com.vesoft.nebula.proto.graph.AuthRequest) obj;
if (!getUsername()
.equals(other.getUsername())) return false;
if (!getAuthInfo()
.equals(other.getAuthInfo())) return false;
if (hasClientInfo() != other.hasClientInfo()) return false;
if (hasClientInfo()) {
if (!getClientInfo()
.equals(other.getClientInfo())) 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) + USERNAME_FIELD_NUMBER;
hash = (53 * hash) + getUsername().hashCode();
hash = (37 * hash) + AUTH_INFO_FIELD_NUMBER;
hash = (53 * hash) + getAuthInfo().hashCode();
if (hasClientInfo()) {
hash = (37 * hash) + CLIENT_INFO_FIELD_NUMBER;
hash = (53 * hash) + getClientInfo().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.vesoft.nebula.proto.graph.AuthRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vesoft.nebula.proto.graph.AuthRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vesoft.nebula.proto.graph.AuthRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vesoft.nebula.proto.graph.AuthRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vesoft.nebula.proto.graph.AuthRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.vesoft.nebula.proto.graph.AuthRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.vesoft.nebula.proto.graph.AuthRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vesoft.nebula.proto.graph.AuthRequest 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 com.vesoft.nebula.proto.graph.AuthRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.vesoft.nebula.proto.graph.AuthRequest 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 com.vesoft.nebula.proto.graph.AuthRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.vesoft.nebula.proto.graph.AuthRequest 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(com.vesoft.nebula.proto.graph.AuthRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code nebula.proto.graph.AuthRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:nebula.proto.graph.AuthRequest)
com.vesoft.nebula.proto.graph.AuthRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_AuthRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_AuthRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.vesoft.nebula.proto.graph.AuthRequest.class, com.vesoft.nebula.proto.graph.AuthRequest.Builder.class);
}
// Construct using com.vesoft.nebula.proto.graph.AuthRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getClientInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
username_ = com.google.protobuf.ByteString.EMPTY;
authInfo_ = com.google.protobuf.ByteString.EMPTY;
clientInfo_ = null;
if (clientInfoBuilder_ != null) {
clientInfoBuilder_.dispose();
clientInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.vesoft.nebula.proto.graph.Graph.internal_static_nebula_proto_graph_AuthRequest_descriptor;
}
@java.lang.Override
public com.vesoft.nebula.proto.graph.AuthRequest getDefaultInstanceForType() {
return com.vesoft.nebula.proto.graph.AuthRequest.getDefaultInstance();
}
@java.lang.Override
public com.vesoft.nebula.proto.graph.AuthRequest build() {
com.vesoft.nebula.proto.graph.AuthRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.vesoft.nebula.proto.graph.AuthRequest buildPartial() {
com.vesoft.nebula.proto.graph.AuthRequest result = new com.vesoft.nebula.proto.graph.AuthRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.vesoft.nebula.proto.graph.AuthRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.username_ = username_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.authInfo_ = authInfo_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.clientInfo_ = clientInfoBuilder_ == null
? clientInfo_
: clientInfoBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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 com.vesoft.nebula.proto.graph.AuthRequest) {
return mergeFrom((com.vesoft.nebula.proto.graph.AuthRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.vesoft.nebula.proto.graph.AuthRequest other) {
if (other == com.vesoft.nebula.proto.graph.AuthRequest.getDefaultInstance()) return this;
if (other.getUsername() != com.google.protobuf.ByteString.EMPTY) {
setUsername(other.getUsername());
}
if (other.getAuthInfo() != com.google.protobuf.ByteString.EMPTY) {
setAuthInfo(other.getAuthInfo());
}
if (other.hasClientInfo()) {
mergeClientInfo(other.getClientInfo());
}
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: {
username_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
authInfo_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getClientInfoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString username_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes username = 1;
* @return The username.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUsername() {
return username_;
}
/**
* bytes username = 1;
* @param value The username to set.
* @return This builder for chaining.
*/
public Builder setUsername(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
username_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes username = 1;
* @return This builder for chaining.
*/
public Builder clearUsername() {
bitField0_ = (bitField0_ & ~0x00000001);
username_ = getDefaultInstance().getUsername();
onChanged();
return this;
}
private com.google.protobuf.ByteString authInfo_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes auth_info = 2;
* @return The authInfo.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAuthInfo() {
return authInfo_;
}
/**
* bytes auth_info = 2;
* @param value The authInfo to set.
* @return This builder for chaining.
*/
public Builder setAuthInfo(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
authInfo_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bytes auth_info = 2;
* @return This builder for chaining.
*/
public Builder clearAuthInfo() {
bitField0_ = (bitField0_ & ~0x00000002);
authInfo_ = getDefaultInstance().getAuthInfo();
onChanged();
return this;
}
private com.vesoft.nebula.proto.common.ClientInfo clientInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.vesoft.nebula.proto.common.ClientInfo, com.vesoft.nebula.proto.common.ClientInfo.Builder, com.vesoft.nebula.proto.common.ClientInfoOrBuilder> clientInfoBuilder_;
/**
* .nebula.proto.common.ClientInfo client_info = 3;
* @return Whether the clientInfo field is set.
*/
public boolean hasClientInfo() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .nebula.proto.common.ClientInfo client_info = 3;
* @return The clientInfo.
*/
public com.vesoft.nebula.proto.common.ClientInfo getClientInfo() {
if (clientInfoBuilder_ == null) {
return clientInfo_ == null ? com.vesoft.nebula.proto.common.ClientInfo.getDefaultInstance() : clientInfo_;
} else {
return clientInfoBuilder_.getMessage();
}
}
/**
* .nebula.proto.common.ClientInfo client_info = 3;
*/
public Builder setClientInfo(com.vesoft.nebula.proto.common.ClientInfo value) {
if (clientInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
clientInfo_ = value;
} else {
clientInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .nebula.proto.common.ClientInfo client_info = 3;
*/
public Builder setClientInfo(
com.vesoft.nebula.proto.common.ClientInfo.Builder builderForValue) {
if (clientInfoBuilder_ == null) {
clientInfo_ = builderForValue.build();
} else {
clientInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .nebula.proto.common.ClientInfo client_info = 3;
*/
public Builder mergeClientInfo(com.vesoft.nebula.proto.common.ClientInfo value) {
if (clientInfoBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
clientInfo_ != null &&
clientInfo_ != com.vesoft.nebula.proto.common.ClientInfo.getDefaultInstance()) {
getClientInfoBuilder().mergeFrom(value);
} else {
clientInfo_ = value;
}
} else {
clientInfoBuilder_.mergeFrom(value);
}
if (clientInfo_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .nebula.proto.common.ClientInfo client_info = 3;
*/
public Builder clearClientInfo() {
bitField0_ = (bitField0_ & ~0x00000004);
clientInfo_ = null;
if (clientInfoBuilder_ != null) {
clientInfoBuilder_.dispose();
clientInfoBuilder_ = null;
}
onChanged();
return this;
}
/**
* .nebula.proto.common.ClientInfo client_info = 3;
*/
public com.vesoft.nebula.proto.common.ClientInfo.Builder getClientInfoBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getClientInfoFieldBuilder().getBuilder();
}
/**
* .nebula.proto.common.ClientInfo client_info = 3;
*/
public com.vesoft.nebula.proto.common.ClientInfoOrBuilder getClientInfoOrBuilder() {
if (clientInfoBuilder_ != null) {
return clientInfoBuilder_.getMessageOrBuilder();
} else {
return clientInfo_ == null ?
com.vesoft.nebula.proto.common.ClientInfo.getDefaultInstance() : clientInfo_;
}
}
/**
* .nebula.proto.common.ClientInfo client_info = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.vesoft.nebula.proto.common.ClientInfo, com.vesoft.nebula.proto.common.ClientInfo.Builder, com.vesoft.nebula.proto.common.ClientInfoOrBuilder>
getClientInfoFieldBuilder() {
if (clientInfoBuilder_ == null) {
clientInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.vesoft.nebula.proto.common.ClientInfo, com.vesoft.nebula.proto.common.ClientInfo.Builder, com.vesoft.nebula.proto.common.ClientInfoOrBuilder>(
getClientInfo(),
getParentForChildren(),
isClean());
clientInfo_ = null;
}
return clientInfoBuilder_;
}
@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:nebula.proto.graph.AuthRequest)
}
// @@protoc_insertion_point(class_scope:nebula.proto.graph.AuthRequest)
private static final com.vesoft.nebula.proto.graph.AuthRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.vesoft.nebula.proto.graph.AuthRequest();
}
public static com.vesoft.nebula.proto.graph.AuthRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AuthRequest 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 com.vesoft.nebula.proto.graph.AuthRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}