io.grpc.alts.internal.HandshakerReq Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc/gcp/handshaker.proto
// Protobuf Java Version: 3.25.1
package io.grpc.alts.internal;
/**
* Protobuf type {@code grpc.gcp.HandshakerReq}
*/
public final class HandshakerReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.gcp.HandshakerReq)
HandshakerReqOrBuilder {
private static final long serialVersionUID = 0L;
// Use HandshakerReq.newBuilder() to construct.
private HandshakerReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HandshakerReq() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HandshakerReq();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_HandshakerReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_HandshakerReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.alts.internal.HandshakerReq.class, io.grpc.alts.internal.HandshakerReq.Builder.class);
}
private int reqOneofCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object reqOneof_;
public enum ReqOneofCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CLIENT_START(1),
SERVER_START(2),
NEXT(3),
REQONEOF_NOT_SET(0);
private final int value;
private ReqOneofCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ReqOneofCase valueOf(int value) {
return forNumber(value);
}
public static ReqOneofCase forNumber(int value) {
switch (value) {
case 1: return CLIENT_START;
case 2: return SERVER_START;
case 3: return NEXT;
case 0: return REQONEOF_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ReqOneofCase
getReqOneofCase() {
return ReqOneofCase.forNumber(
reqOneofCase_);
}
public static final int CLIENT_START_FIELD_NUMBER = 1;
/**
*
* The start client handshake request message.
*
*
* .grpc.gcp.StartClientHandshakeReq client_start = 1;
* @return Whether the clientStart field is set.
*/
@java.lang.Override
public boolean hasClientStart() {
return reqOneofCase_ == 1;
}
/**
*
* The start client handshake request message.
*
*
* .grpc.gcp.StartClientHandshakeReq client_start = 1;
* @return The clientStart.
*/
@java.lang.Override
public io.grpc.alts.internal.StartClientHandshakeReq getClientStart() {
if (reqOneofCase_ == 1) {
return (io.grpc.alts.internal.StartClientHandshakeReq) reqOneof_;
}
return io.grpc.alts.internal.StartClientHandshakeReq.getDefaultInstance();
}
/**
*
* The start client handshake request message.
*
*
* .grpc.gcp.StartClientHandshakeReq client_start = 1;
*/
@java.lang.Override
public io.grpc.alts.internal.StartClientHandshakeReqOrBuilder getClientStartOrBuilder() {
if (reqOneofCase_ == 1) {
return (io.grpc.alts.internal.StartClientHandshakeReq) reqOneof_;
}
return io.grpc.alts.internal.StartClientHandshakeReq.getDefaultInstance();
}
public static final int SERVER_START_FIELD_NUMBER = 2;
/**
*
* The start server handshake request message.
*
*
* .grpc.gcp.StartServerHandshakeReq server_start = 2;
* @return Whether the serverStart field is set.
*/
@java.lang.Override
public boolean hasServerStart() {
return reqOneofCase_ == 2;
}
/**
*
* The start server handshake request message.
*
*
* .grpc.gcp.StartServerHandshakeReq server_start = 2;
* @return The serverStart.
*/
@java.lang.Override
public io.grpc.alts.internal.StartServerHandshakeReq getServerStart() {
if (reqOneofCase_ == 2) {
return (io.grpc.alts.internal.StartServerHandshakeReq) reqOneof_;
}
return io.grpc.alts.internal.StartServerHandshakeReq.getDefaultInstance();
}
/**
*
* The start server handshake request message.
*
*
* .grpc.gcp.StartServerHandshakeReq server_start = 2;
*/
@java.lang.Override
public io.grpc.alts.internal.StartServerHandshakeReqOrBuilder getServerStartOrBuilder() {
if (reqOneofCase_ == 2) {
return (io.grpc.alts.internal.StartServerHandshakeReq) reqOneof_;
}
return io.grpc.alts.internal.StartServerHandshakeReq.getDefaultInstance();
}
public static final int NEXT_FIELD_NUMBER = 3;
/**
*
* The next handshake request message.
*
*
* .grpc.gcp.NextHandshakeMessageReq next = 3;
* @return Whether the next field is set.
*/
@java.lang.Override
public boolean hasNext() {
return reqOneofCase_ == 3;
}
/**
*
* The next handshake request message.
*
*
* .grpc.gcp.NextHandshakeMessageReq next = 3;
* @return The next.
*/
@java.lang.Override
public io.grpc.alts.internal.NextHandshakeMessageReq getNext() {
if (reqOneofCase_ == 3) {
return (io.grpc.alts.internal.NextHandshakeMessageReq) reqOneof_;
}
return io.grpc.alts.internal.NextHandshakeMessageReq.getDefaultInstance();
}
/**
*
* The next handshake request message.
*
*
* .grpc.gcp.NextHandshakeMessageReq next = 3;
*/
@java.lang.Override
public io.grpc.alts.internal.NextHandshakeMessageReqOrBuilder getNextOrBuilder() {
if (reqOneofCase_ == 3) {
return (io.grpc.alts.internal.NextHandshakeMessageReq) reqOneof_;
}
return io.grpc.alts.internal.NextHandshakeMessageReq.getDefaultInstance();
}
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 (reqOneofCase_ == 1) {
output.writeMessage(1, (io.grpc.alts.internal.StartClientHandshakeReq) reqOneof_);
}
if (reqOneofCase_ == 2) {
output.writeMessage(2, (io.grpc.alts.internal.StartServerHandshakeReq) reqOneof_);
}
if (reqOneofCase_ == 3) {
output.writeMessage(3, (io.grpc.alts.internal.NextHandshakeMessageReq) reqOneof_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (reqOneofCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.grpc.alts.internal.StartClientHandshakeReq) reqOneof_);
}
if (reqOneofCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.grpc.alts.internal.StartServerHandshakeReq) reqOneof_);
}
if (reqOneofCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.grpc.alts.internal.NextHandshakeMessageReq) reqOneof_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.grpc.alts.internal.HandshakerReq)) {
return super.equals(obj);
}
io.grpc.alts.internal.HandshakerReq other = (io.grpc.alts.internal.HandshakerReq) obj;
if (!getReqOneofCase().equals(other.getReqOneofCase())) return false;
switch (reqOneofCase_) {
case 1:
if (!getClientStart()
.equals(other.getClientStart())) return false;
break;
case 2:
if (!getServerStart()
.equals(other.getServerStart())) return false;
break;
case 3:
if (!getNext()
.equals(other.getNext())) return false;
break;
case 0:
default:
}
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();
switch (reqOneofCase_) {
case 1:
hash = (37 * hash) + CLIENT_START_FIELD_NUMBER;
hash = (53 * hash) + getClientStart().hashCode();
break;
case 2:
hash = (37 * hash) + SERVER_START_FIELD_NUMBER;
hash = (53 * hash) + getServerStart().hashCode();
break;
case 3:
hash = (37 * hash) + NEXT_FIELD_NUMBER;
hash = (53 * hash) + getNext().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.grpc.alts.internal.HandshakerReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.alts.internal.HandshakerReq parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.alts.internal.HandshakerReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.alts.internal.HandshakerReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.alts.internal.HandshakerReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.grpc.alts.internal.HandshakerReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.grpc.alts.internal.HandshakerReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.alts.internal.HandshakerReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.alts.internal.HandshakerReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.alts.internal.HandshakerReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.alts.internal.HandshakerReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.alts.internal.HandshakerReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.grpc.alts.internal.HandshakerReq 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 grpc.gcp.HandshakerReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.gcp.HandshakerReq)
io.grpc.alts.internal.HandshakerReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_HandshakerReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_HandshakerReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.grpc.alts.internal.HandshakerReq.class, io.grpc.alts.internal.HandshakerReq.Builder.class);
}
// Construct using io.grpc.alts.internal.HandshakerReq.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (clientStartBuilder_ != null) {
clientStartBuilder_.clear();
}
if (serverStartBuilder_ != null) {
serverStartBuilder_.clear();
}
if (nextBuilder_ != null) {
nextBuilder_.clear();
}
reqOneofCase_ = 0;
reqOneof_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_HandshakerReq_descriptor;
}
@java.lang.Override
public io.grpc.alts.internal.HandshakerReq getDefaultInstanceForType() {
return io.grpc.alts.internal.HandshakerReq.getDefaultInstance();
}
@java.lang.Override
public io.grpc.alts.internal.HandshakerReq build() {
io.grpc.alts.internal.HandshakerReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.grpc.alts.internal.HandshakerReq buildPartial() {
io.grpc.alts.internal.HandshakerReq result = new io.grpc.alts.internal.HandshakerReq(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.grpc.alts.internal.HandshakerReq result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(io.grpc.alts.internal.HandshakerReq result) {
result.reqOneofCase_ = reqOneofCase_;
result.reqOneof_ = this.reqOneof_;
if (reqOneofCase_ == 1 &&
clientStartBuilder_ != null) {
result.reqOneof_ = clientStartBuilder_.build();
}
if (reqOneofCase_ == 2 &&
serverStartBuilder_ != null) {
result.reqOneof_ = serverStartBuilder_.build();
}
if (reqOneofCase_ == 3 &&
nextBuilder_ != null) {
result.reqOneof_ = nextBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.alts.internal.HandshakerReq) {
return mergeFrom((io.grpc.alts.internal.HandshakerReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.grpc.alts.internal.HandshakerReq other) {
if (other == io.grpc.alts.internal.HandshakerReq.getDefaultInstance()) return this;
switch (other.getReqOneofCase()) {
case CLIENT_START: {
mergeClientStart(other.getClientStart());
break;
}
case SERVER_START: {
mergeServerStart(other.getServerStart());
break;
}
case NEXT: {
mergeNext(other.getNext());
break;
}
case REQONEOF_NOT_SET: {
break;
}
}
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: {
input.readMessage(
getClientStartFieldBuilder().getBuilder(),
extensionRegistry);
reqOneofCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getServerStartFieldBuilder().getBuilder(),
extensionRegistry);
reqOneofCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getNextFieldBuilder().getBuilder(),
extensionRegistry);
reqOneofCase_ = 3;
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 reqOneofCase_ = 0;
private java.lang.Object reqOneof_;
public ReqOneofCase
getReqOneofCase() {
return ReqOneofCase.forNumber(
reqOneofCase_);
}
public Builder clearReqOneof() {
reqOneofCase_ = 0;
reqOneof_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.alts.internal.StartClientHandshakeReq, io.grpc.alts.internal.StartClientHandshakeReq.Builder, io.grpc.alts.internal.StartClientHandshakeReqOrBuilder> clientStartBuilder_;
/**
*
* The start client handshake request message.
*
*
* .grpc.gcp.StartClientHandshakeReq client_start = 1;
* @return Whether the clientStart field is set.
*/
@java.lang.Override
public boolean hasClientStart() {
return reqOneofCase_ == 1;
}
/**
*
* The start client handshake request message.
*
*
* .grpc.gcp.StartClientHandshakeReq client_start = 1;
* @return The clientStart.
*/
@java.lang.Override
public io.grpc.alts.internal.StartClientHandshakeReq getClientStart() {
if (clientStartBuilder_ == null) {
if (reqOneofCase_ == 1) {
return (io.grpc.alts.internal.StartClientHandshakeReq) reqOneof_;
}
return io.grpc.alts.internal.StartClientHandshakeReq.getDefaultInstance();
} else {
if (reqOneofCase_ == 1) {
return clientStartBuilder_.getMessage();
}
return io.grpc.alts.internal.StartClientHandshakeReq.getDefaultInstance();
}
}
/**
*
* The start client handshake request message.
*
*
* .grpc.gcp.StartClientHandshakeReq client_start = 1;
*/
public Builder setClientStart(io.grpc.alts.internal.StartClientHandshakeReq value) {
if (clientStartBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
reqOneof_ = value;
onChanged();
} else {
clientStartBuilder_.setMessage(value);
}
reqOneofCase_ = 1;
return this;
}
/**
*
* The start client handshake request message.
*
*
* .grpc.gcp.StartClientHandshakeReq client_start = 1;
*/
public Builder setClientStart(
io.grpc.alts.internal.StartClientHandshakeReq.Builder builderForValue) {
if (clientStartBuilder_ == null) {
reqOneof_ = builderForValue.build();
onChanged();
} else {
clientStartBuilder_.setMessage(builderForValue.build());
}
reqOneofCase_ = 1;
return this;
}
/**
*
* The start client handshake request message.
*
*
* .grpc.gcp.StartClientHandshakeReq client_start = 1;
*/
public Builder mergeClientStart(io.grpc.alts.internal.StartClientHandshakeReq value) {
if (clientStartBuilder_ == null) {
if (reqOneofCase_ == 1 &&
reqOneof_ != io.grpc.alts.internal.StartClientHandshakeReq.getDefaultInstance()) {
reqOneof_ = io.grpc.alts.internal.StartClientHandshakeReq.newBuilder((io.grpc.alts.internal.StartClientHandshakeReq) reqOneof_)
.mergeFrom(value).buildPartial();
} else {
reqOneof_ = value;
}
onChanged();
} else {
if (reqOneofCase_ == 1) {
clientStartBuilder_.mergeFrom(value);
} else {
clientStartBuilder_.setMessage(value);
}
}
reqOneofCase_ = 1;
return this;
}
/**
*
* The start client handshake request message.
*
*
* .grpc.gcp.StartClientHandshakeReq client_start = 1;
*/
public Builder clearClientStart() {
if (clientStartBuilder_ == null) {
if (reqOneofCase_ == 1) {
reqOneofCase_ = 0;
reqOneof_ = null;
onChanged();
}
} else {
if (reqOneofCase_ == 1) {
reqOneofCase_ = 0;
reqOneof_ = null;
}
clientStartBuilder_.clear();
}
return this;
}
/**
*
* The start client handshake request message.
*
*
* .grpc.gcp.StartClientHandshakeReq client_start = 1;
*/
public io.grpc.alts.internal.StartClientHandshakeReq.Builder getClientStartBuilder() {
return getClientStartFieldBuilder().getBuilder();
}
/**
*
* The start client handshake request message.
*
*
* .grpc.gcp.StartClientHandshakeReq client_start = 1;
*/
@java.lang.Override
public io.grpc.alts.internal.StartClientHandshakeReqOrBuilder getClientStartOrBuilder() {
if ((reqOneofCase_ == 1) && (clientStartBuilder_ != null)) {
return clientStartBuilder_.getMessageOrBuilder();
} else {
if (reqOneofCase_ == 1) {
return (io.grpc.alts.internal.StartClientHandshakeReq) reqOneof_;
}
return io.grpc.alts.internal.StartClientHandshakeReq.getDefaultInstance();
}
}
/**
*
* The start client handshake request message.
*
*
* .grpc.gcp.StartClientHandshakeReq client_start = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.alts.internal.StartClientHandshakeReq, io.grpc.alts.internal.StartClientHandshakeReq.Builder, io.grpc.alts.internal.StartClientHandshakeReqOrBuilder>
getClientStartFieldBuilder() {
if (clientStartBuilder_ == null) {
if (!(reqOneofCase_ == 1)) {
reqOneof_ = io.grpc.alts.internal.StartClientHandshakeReq.getDefaultInstance();
}
clientStartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.alts.internal.StartClientHandshakeReq, io.grpc.alts.internal.StartClientHandshakeReq.Builder, io.grpc.alts.internal.StartClientHandshakeReqOrBuilder>(
(io.grpc.alts.internal.StartClientHandshakeReq) reqOneof_,
getParentForChildren(),
isClean());
reqOneof_ = null;
}
reqOneofCase_ = 1;
onChanged();
return clientStartBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.alts.internal.StartServerHandshakeReq, io.grpc.alts.internal.StartServerHandshakeReq.Builder, io.grpc.alts.internal.StartServerHandshakeReqOrBuilder> serverStartBuilder_;
/**
*
* The start server handshake request message.
*
*
* .grpc.gcp.StartServerHandshakeReq server_start = 2;
* @return Whether the serverStart field is set.
*/
@java.lang.Override
public boolean hasServerStart() {
return reqOneofCase_ == 2;
}
/**
*
* The start server handshake request message.
*
*
* .grpc.gcp.StartServerHandshakeReq server_start = 2;
* @return The serverStart.
*/
@java.lang.Override
public io.grpc.alts.internal.StartServerHandshakeReq getServerStart() {
if (serverStartBuilder_ == null) {
if (reqOneofCase_ == 2) {
return (io.grpc.alts.internal.StartServerHandshakeReq) reqOneof_;
}
return io.grpc.alts.internal.StartServerHandshakeReq.getDefaultInstance();
} else {
if (reqOneofCase_ == 2) {
return serverStartBuilder_.getMessage();
}
return io.grpc.alts.internal.StartServerHandshakeReq.getDefaultInstance();
}
}
/**
*
* The start server handshake request message.
*
*
* .grpc.gcp.StartServerHandshakeReq server_start = 2;
*/
public Builder setServerStart(io.grpc.alts.internal.StartServerHandshakeReq value) {
if (serverStartBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
reqOneof_ = value;
onChanged();
} else {
serverStartBuilder_.setMessage(value);
}
reqOneofCase_ = 2;
return this;
}
/**
*
* The start server handshake request message.
*
*
* .grpc.gcp.StartServerHandshakeReq server_start = 2;
*/
public Builder setServerStart(
io.grpc.alts.internal.StartServerHandshakeReq.Builder builderForValue) {
if (serverStartBuilder_ == null) {
reqOneof_ = builderForValue.build();
onChanged();
} else {
serverStartBuilder_.setMessage(builderForValue.build());
}
reqOneofCase_ = 2;
return this;
}
/**
*
* The start server handshake request message.
*
*
* .grpc.gcp.StartServerHandshakeReq server_start = 2;
*/
public Builder mergeServerStart(io.grpc.alts.internal.StartServerHandshakeReq value) {
if (serverStartBuilder_ == null) {
if (reqOneofCase_ == 2 &&
reqOneof_ != io.grpc.alts.internal.StartServerHandshakeReq.getDefaultInstance()) {
reqOneof_ = io.grpc.alts.internal.StartServerHandshakeReq.newBuilder((io.grpc.alts.internal.StartServerHandshakeReq) reqOneof_)
.mergeFrom(value).buildPartial();
} else {
reqOneof_ = value;
}
onChanged();
} else {
if (reqOneofCase_ == 2) {
serverStartBuilder_.mergeFrom(value);
} else {
serverStartBuilder_.setMessage(value);
}
}
reqOneofCase_ = 2;
return this;
}
/**
*
* The start server handshake request message.
*
*
* .grpc.gcp.StartServerHandshakeReq server_start = 2;
*/
public Builder clearServerStart() {
if (serverStartBuilder_ == null) {
if (reqOneofCase_ == 2) {
reqOneofCase_ = 0;
reqOneof_ = null;
onChanged();
}
} else {
if (reqOneofCase_ == 2) {
reqOneofCase_ = 0;
reqOneof_ = null;
}
serverStartBuilder_.clear();
}
return this;
}
/**
*
* The start server handshake request message.
*
*
* .grpc.gcp.StartServerHandshakeReq server_start = 2;
*/
public io.grpc.alts.internal.StartServerHandshakeReq.Builder getServerStartBuilder() {
return getServerStartFieldBuilder().getBuilder();
}
/**
*
* The start server handshake request message.
*
*
* .grpc.gcp.StartServerHandshakeReq server_start = 2;
*/
@java.lang.Override
public io.grpc.alts.internal.StartServerHandshakeReqOrBuilder getServerStartOrBuilder() {
if ((reqOneofCase_ == 2) && (serverStartBuilder_ != null)) {
return serverStartBuilder_.getMessageOrBuilder();
} else {
if (reqOneofCase_ == 2) {
return (io.grpc.alts.internal.StartServerHandshakeReq) reqOneof_;
}
return io.grpc.alts.internal.StartServerHandshakeReq.getDefaultInstance();
}
}
/**
*
* The start server handshake request message.
*
*
* .grpc.gcp.StartServerHandshakeReq server_start = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.alts.internal.StartServerHandshakeReq, io.grpc.alts.internal.StartServerHandshakeReq.Builder, io.grpc.alts.internal.StartServerHandshakeReqOrBuilder>
getServerStartFieldBuilder() {
if (serverStartBuilder_ == null) {
if (!(reqOneofCase_ == 2)) {
reqOneof_ = io.grpc.alts.internal.StartServerHandshakeReq.getDefaultInstance();
}
serverStartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.alts.internal.StartServerHandshakeReq, io.grpc.alts.internal.StartServerHandshakeReq.Builder, io.grpc.alts.internal.StartServerHandshakeReqOrBuilder>(
(io.grpc.alts.internal.StartServerHandshakeReq) reqOneof_,
getParentForChildren(),
isClean());
reqOneof_ = null;
}
reqOneofCase_ = 2;
onChanged();
return serverStartBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.alts.internal.NextHandshakeMessageReq, io.grpc.alts.internal.NextHandshakeMessageReq.Builder, io.grpc.alts.internal.NextHandshakeMessageReqOrBuilder> nextBuilder_;
/**
*
* The next handshake request message.
*
*
* .grpc.gcp.NextHandshakeMessageReq next = 3;
* @return Whether the next field is set.
*/
@java.lang.Override
public boolean hasNext() {
return reqOneofCase_ == 3;
}
/**
*
* The next handshake request message.
*
*
* .grpc.gcp.NextHandshakeMessageReq next = 3;
* @return The next.
*/
@java.lang.Override
public io.grpc.alts.internal.NextHandshakeMessageReq getNext() {
if (nextBuilder_ == null) {
if (reqOneofCase_ == 3) {
return (io.grpc.alts.internal.NextHandshakeMessageReq) reqOneof_;
}
return io.grpc.alts.internal.NextHandshakeMessageReq.getDefaultInstance();
} else {
if (reqOneofCase_ == 3) {
return nextBuilder_.getMessage();
}
return io.grpc.alts.internal.NextHandshakeMessageReq.getDefaultInstance();
}
}
/**
*
* The next handshake request message.
*
*
* .grpc.gcp.NextHandshakeMessageReq next = 3;
*/
public Builder setNext(io.grpc.alts.internal.NextHandshakeMessageReq value) {
if (nextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
reqOneof_ = value;
onChanged();
} else {
nextBuilder_.setMessage(value);
}
reqOneofCase_ = 3;
return this;
}
/**
*
* The next handshake request message.
*
*
* .grpc.gcp.NextHandshakeMessageReq next = 3;
*/
public Builder setNext(
io.grpc.alts.internal.NextHandshakeMessageReq.Builder builderForValue) {
if (nextBuilder_ == null) {
reqOneof_ = builderForValue.build();
onChanged();
} else {
nextBuilder_.setMessage(builderForValue.build());
}
reqOneofCase_ = 3;
return this;
}
/**
*
* The next handshake request message.
*
*
* .grpc.gcp.NextHandshakeMessageReq next = 3;
*/
public Builder mergeNext(io.grpc.alts.internal.NextHandshakeMessageReq value) {
if (nextBuilder_ == null) {
if (reqOneofCase_ == 3 &&
reqOneof_ != io.grpc.alts.internal.NextHandshakeMessageReq.getDefaultInstance()) {
reqOneof_ = io.grpc.alts.internal.NextHandshakeMessageReq.newBuilder((io.grpc.alts.internal.NextHandshakeMessageReq) reqOneof_)
.mergeFrom(value).buildPartial();
} else {
reqOneof_ = value;
}
onChanged();
} else {
if (reqOneofCase_ == 3) {
nextBuilder_.mergeFrom(value);
} else {
nextBuilder_.setMessage(value);
}
}
reqOneofCase_ = 3;
return this;
}
/**
*
* The next handshake request message.
*
*
* .grpc.gcp.NextHandshakeMessageReq next = 3;
*/
public Builder clearNext() {
if (nextBuilder_ == null) {
if (reqOneofCase_ == 3) {
reqOneofCase_ = 0;
reqOneof_ = null;
onChanged();
}
} else {
if (reqOneofCase_ == 3) {
reqOneofCase_ = 0;
reqOneof_ = null;
}
nextBuilder_.clear();
}
return this;
}
/**
*
* The next handshake request message.
*
*
* .grpc.gcp.NextHandshakeMessageReq next = 3;
*/
public io.grpc.alts.internal.NextHandshakeMessageReq.Builder getNextBuilder() {
return getNextFieldBuilder().getBuilder();
}
/**
*
* The next handshake request message.
*
*
* .grpc.gcp.NextHandshakeMessageReq next = 3;
*/
@java.lang.Override
public io.grpc.alts.internal.NextHandshakeMessageReqOrBuilder getNextOrBuilder() {
if ((reqOneofCase_ == 3) && (nextBuilder_ != null)) {
return nextBuilder_.getMessageOrBuilder();
} else {
if (reqOneofCase_ == 3) {
return (io.grpc.alts.internal.NextHandshakeMessageReq) reqOneof_;
}
return io.grpc.alts.internal.NextHandshakeMessageReq.getDefaultInstance();
}
}
/**
*
* The next handshake request message.
*
*
* .grpc.gcp.NextHandshakeMessageReq next = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.alts.internal.NextHandshakeMessageReq, io.grpc.alts.internal.NextHandshakeMessageReq.Builder, io.grpc.alts.internal.NextHandshakeMessageReqOrBuilder>
getNextFieldBuilder() {
if (nextBuilder_ == null) {
if (!(reqOneofCase_ == 3)) {
reqOneof_ = io.grpc.alts.internal.NextHandshakeMessageReq.getDefaultInstance();
}
nextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.alts.internal.NextHandshakeMessageReq, io.grpc.alts.internal.NextHandshakeMessageReq.Builder, io.grpc.alts.internal.NextHandshakeMessageReqOrBuilder>(
(io.grpc.alts.internal.NextHandshakeMessageReq) reqOneof_,
getParentForChildren(),
isClean());
reqOneof_ = null;
}
reqOneofCase_ = 3;
onChanged();
return nextBuilder_;
}
@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:grpc.gcp.HandshakerReq)
}
// @@protoc_insertion_point(class_scope:grpc.gcp.HandshakerReq)
private static final io.grpc.alts.internal.HandshakerReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.grpc.alts.internal.HandshakerReq();
}
public static io.grpc.alts.internal.HandshakerReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HandshakerReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.grpc.alts.internal.HandshakerReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy