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

io.grpc.alts.internal.StartServerHandshakeReq Maven / Gradle / Ivy

There is a newer version: 1.68.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: grpc/gcp/handshaker.proto

// Protobuf Java Version: 3.25.3
package io.grpc.alts.internal;

/**
 * Protobuf type {@code grpc.gcp.StartServerHandshakeReq}
 */
public final class StartServerHandshakeReq extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:grpc.gcp.StartServerHandshakeReq)
    StartServerHandshakeReqOrBuilder {
private static final long serialVersionUID = 0L;
  // Use StartServerHandshakeReq.newBuilder() to construct.
  private StartServerHandshakeReq(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private StartServerHandshakeReq() {
    applicationProtocols_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    inBytes_ = com.google.protobuf.ByteString.EMPTY;
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new StartServerHandshakeReq();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_StartServerHandshakeReq_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
      int number) {
    switch (number) {
      case 2:
        return internalGetHandshakeParameters();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_StartServerHandshakeReq_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grpc.alts.internal.StartServerHandshakeReq.class, io.grpc.alts.internal.StartServerHandshakeReq.Builder.class);
  }

  private int bitField0_;
  public static final int APPLICATION_PROTOCOLS_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringArrayList applicationProtocols_ =
      com.google.protobuf.LazyStringArrayList.emptyList();
  /**
   * 
   * The application protocols supported by the server, e.g., "h2" (for http2),
   * "grpc".
   * 
* * repeated string application_protocols = 1; * @return A list containing the applicationProtocols. */ public com.google.protobuf.ProtocolStringList getApplicationProtocolsList() { return applicationProtocols_; } /** *
   * The application protocols supported by the server, e.g., "h2" (for http2),
   * "grpc".
   * 
* * repeated string application_protocols = 1; * @return The count of applicationProtocols. */ public int getApplicationProtocolsCount() { return applicationProtocols_.size(); } /** *
   * The application protocols supported by the server, e.g., "h2" (for http2),
   * "grpc".
   * 
* * repeated string application_protocols = 1; * @param index The index of the element to return. * @return The applicationProtocols at the given index. */ public java.lang.String getApplicationProtocols(int index) { return applicationProtocols_.get(index); } /** *
   * The application protocols supported by the server, e.g., "h2" (for http2),
   * "grpc".
   * 
* * repeated string application_protocols = 1; * @param index The index of the value to return. * @return The bytes of the applicationProtocols at the given index. */ public com.google.protobuf.ByteString getApplicationProtocolsBytes(int index) { return applicationProtocols_.getByteString(index); } public static final int HANDSHAKE_PARAMETERS_FIELD_NUMBER = 2; private static final class HandshakeParametersDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.Integer, io.grpc.alts.internal.ServerHandshakeParameters> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_StartServerHandshakeReq_HandshakeParametersEntry_descriptor, com.google.protobuf.WireFormat.FieldType.INT32, 0, com.google.protobuf.WireFormat.FieldType.MESSAGE, io.grpc.alts.internal.ServerHandshakeParameters.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.Integer, io.grpc.alts.internal.ServerHandshakeParameters> handshakeParameters_; private com.google.protobuf.MapField internalGetHandshakeParameters() { if (handshakeParameters_ == null) { return com.google.protobuf.MapField.emptyMapField( HandshakeParametersDefaultEntryHolder.defaultEntry); } return handshakeParameters_; } public int getHandshakeParametersCount() { return internalGetHandshakeParameters().getMap().size(); } /** *
   * Handshake parameters (record protocols and local identities supported by
   * the server) mapped by the handshake protocol. Each handshake security
   * protocol (e.g., TLS or ALTS) has its own set of record protocols and local
   * identities. Since protobuf does not support enum as key to the map, the key
   * to handshake_parameters is the integer value of HandshakeProtocol enum.
   * 
* * map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2; */ @java.lang.Override public boolean containsHandshakeParameters( int key) { return internalGetHandshakeParameters().getMap().containsKey(key); } /** * Use {@link #getHandshakeParametersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHandshakeParameters() { return getHandshakeParametersMap(); } /** *
   * Handshake parameters (record protocols and local identities supported by
   * the server) mapped by the handshake protocol. Each handshake security
   * protocol (e.g., TLS or ALTS) has its own set of record protocols and local
   * identities. Since protobuf does not support enum as key to the map, the key
   * to handshake_parameters is the integer value of HandshakeProtocol enum.
   * 
* * map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2; */ @java.lang.Override public java.util.Map getHandshakeParametersMap() { return internalGetHandshakeParameters().getMap(); } /** *
   * Handshake parameters (record protocols and local identities supported by
   * the server) mapped by the handshake protocol. Each handshake security
   * protocol (e.g., TLS or ALTS) has its own set of record protocols and local
   * identities. Since protobuf does not support enum as key to the map, the key
   * to handshake_parameters is the integer value of HandshakeProtocol enum.
   * 
* * map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2; */ @java.lang.Override public /* nullable */ io.grpc.alts.internal.ServerHandshakeParameters getHandshakeParametersOrDefault( int key, /* nullable */ io.grpc.alts.internal.ServerHandshakeParameters defaultValue) { java.util.Map map = internalGetHandshakeParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * Handshake parameters (record protocols and local identities supported by
   * the server) mapped by the handshake protocol. Each handshake security
   * protocol (e.g., TLS or ALTS) has its own set of record protocols and local
   * identities. Since protobuf does not support enum as key to the map, the key
   * to handshake_parameters is the integer value of HandshakeProtocol enum.
   * 
* * map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2; */ @java.lang.Override public io.grpc.alts.internal.ServerHandshakeParameters getHandshakeParametersOrThrow( int key) { java.util.Map map = internalGetHandshakeParameters().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int IN_BYTES_FIELD_NUMBER = 3; private com.google.protobuf.ByteString inBytes_ = com.google.protobuf.ByteString.EMPTY; /** *
   * Bytes in out_frames returned from the peer's HandshakerResp. It is possible
   * that the peer's out_frames are split into multiple HandshakReq messages.
   * 
* * bytes in_bytes = 3; * @return The inBytes. */ @java.lang.Override public com.google.protobuf.ByteString getInBytes() { return inBytes_; } public static final int LOCAL_ENDPOINT_FIELD_NUMBER = 4; private io.grpc.alts.internal.Endpoint localEndpoint_; /** *
   * (Optional) Local endpoint information of the connection to the client,
   * such as local IP address, port number, and network protocol.
   * 
* * .grpc.gcp.Endpoint local_endpoint = 4; * @return Whether the localEndpoint field is set. */ @java.lang.Override public boolean hasLocalEndpoint() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * (Optional) Local endpoint information of the connection to the client,
   * such as local IP address, port number, and network protocol.
   * 
* * .grpc.gcp.Endpoint local_endpoint = 4; * @return The localEndpoint. */ @java.lang.Override public io.grpc.alts.internal.Endpoint getLocalEndpoint() { return localEndpoint_ == null ? io.grpc.alts.internal.Endpoint.getDefaultInstance() : localEndpoint_; } /** *
   * (Optional) Local endpoint information of the connection to the client,
   * such as local IP address, port number, and network protocol.
   * 
* * .grpc.gcp.Endpoint local_endpoint = 4; */ @java.lang.Override public io.grpc.alts.internal.EndpointOrBuilder getLocalEndpointOrBuilder() { return localEndpoint_ == null ? io.grpc.alts.internal.Endpoint.getDefaultInstance() : localEndpoint_; } public static final int REMOTE_ENDPOINT_FIELD_NUMBER = 5; private io.grpc.alts.internal.Endpoint remoteEndpoint_; /** *
   * (Optional) Endpoint information of the remote client, such as IP address,
   * port number, and network protocol.
   * 
* * .grpc.gcp.Endpoint remote_endpoint = 5; * @return Whether the remoteEndpoint field is set. */ @java.lang.Override public boolean hasRemoteEndpoint() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * (Optional) Endpoint information of the remote client, such as IP address,
   * port number, and network protocol.
   * 
* * .grpc.gcp.Endpoint remote_endpoint = 5; * @return The remoteEndpoint. */ @java.lang.Override public io.grpc.alts.internal.Endpoint getRemoteEndpoint() { return remoteEndpoint_ == null ? io.grpc.alts.internal.Endpoint.getDefaultInstance() : remoteEndpoint_; } /** *
   * (Optional) Endpoint information of the remote client, such as IP address,
   * port number, and network protocol.
   * 
* * .grpc.gcp.Endpoint remote_endpoint = 5; */ @java.lang.Override public io.grpc.alts.internal.EndpointOrBuilder getRemoteEndpointOrBuilder() { return remoteEndpoint_ == null ? io.grpc.alts.internal.Endpoint.getDefaultInstance() : remoteEndpoint_; } public static final int RPC_VERSIONS_FIELD_NUMBER = 6; private io.grpc.alts.internal.RpcProtocolVersions rpcVersions_; /** *
   * (Optional) RPC protocol versions supported by the server.
   * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 6; * @return Whether the rpcVersions field is set. */ @java.lang.Override public boolean hasRpcVersions() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * (Optional) RPC protocol versions supported by the server.
   * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 6; * @return The rpcVersions. */ @java.lang.Override public io.grpc.alts.internal.RpcProtocolVersions getRpcVersions() { return rpcVersions_ == null ? io.grpc.alts.internal.RpcProtocolVersions.getDefaultInstance() : rpcVersions_; } /** *
   * (Optional) RPC protocol versions supported by the server.
   * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 6; */ @java.lang.Override public io.grpc.alts.internal.RpcProtocolVersionsOrBuilder getRpcVersionsOrBuilder() { return rpcVersions_ == null ? io.grpc.alts.internal.RpcProtocolVersions.getDefaultInstance() : rpcVersions_; } public static final int MAX_FRAME_SIZE_FIELD_NUMBER = 7; private int maxFrameSize_ = 0; /** *
   * (Optional) Maximum frame size supported by the server.
   * 
* * uint32 max_frame_size = 7; * @return The maxFrameSize. */ @java.lang.Override public int getMaxFrameSize() { return maxFrameSize_; } 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 { for (int i = 0; i < applicationProtocols_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, applicationProtocols_.getRaw(i)); } com.google.protobuf.GeneratedMessageV3 .serializeIntegerMapTo( output, internalGetHandshakeParameters(), HandshakeParametersDefaultEntryHolder.defaultEntry, 2); if (!inBytes_.isEmpty()) { output.writeBytes(3, inBytes_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getLocalEndpoint()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getRemoteEndpoint()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getRpcVersions()); } if (maxFrameSize_ != 0) { output.writeUInt32(7, maxFrameSize_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < applicationProtocols_.size(); i++) { dataSize += computeStringSizeNoTag(applicationProtocols_.getRaw(i)); } size += dataSize; size += 1 * getApplicationProtocolsList().size(); } for (java.util.Map.Entry entry : internalGetHandshakeParameters().getMap().entrySet()) { com.google.protobuf.MapEntry handshakeParameters__ = HandshakeParametersDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, handshakeParameters__); } if (!inBytes_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, inBytes_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLocalEndpoint()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getRemoteEndpoint()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getRpcVersions()); } if (maxFrameSize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, maxFrameSize_); } 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.StartServerHandshakeReq)) { return super.equals(obj); } io.grpc.alts.internal.StartServerHandshakeReq other = (io.grpc.alts.internal.StartServerHandshakeReq) obj; if (!getApplicationProtocolsList() .equals(other.getApplicationProtocolsList())) return false; if (!internalGetHandshakeParameters().equals( other.internalGetHandshakeParameters())) return false; if (!getInBytes() .equals(other.getInBytes())) return false; if (hasLocalEndpoint() != other.hasLocalEndpoint()) return false; if (hasLocalEndpoint()) { if (!getLocalEndpoint() .equals(other.getLocalEndpoint())) return false; } if (hasRemoteEndpoint() != other.hasRemoteEndpoint()) return false; if (hasRemoteEndpoint()) { if (!getRemoteEndpoint() .equals(other.getRemoteEndpoint())) return false; } if (hasRpcVersions() != other.hasRpcVersions()) return false; if (hasRpcVersions()) { if (!getRpcVersions() .equals(other.getRpcVersions())) return false; } if (getMaxFrameSize() != other.getMaxFrameSize()) 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(); if (getApplicationProtocolsCount() > 0) { hash = (37 * hash) + APPLICATION_PROTOCOLS_FIELD_NUMBER; hash = (53 * hash) + getApplicationProtocolsList().hashCode(); } if (!internalGetHandshakeParameters().getMap().isEmpty()) { hash = (37 * hash) + HANDSHAKE_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + internalGetHandshakeParameters().hashCode(); } hash = (37 * hash) + IN_BYTES_FIELD_NUMBER; hash = (53 * hash) + getInBytes().hashCode(); if (hasLocalEndpoint()) { hash = (37 * hash) + LOCAL_ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getLocalEndpoint().hashCode(); } if (hasRemoteEndpoint()) { hash = (37 * hash) + REMOTE_ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getRemoteEndpoint().hashCode(); } if (hasRpcVersions()) { hash = (37 * hash) + RPC_VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getRpcVersions().hashCode(); } hash = (37 * hash) + MAX_FRAME_SIZE_FIELD_NUMBER; hash = (53 * hash) + getMaxFrameSize(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.alts.internal.StartServerHandshakeReq parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.alts.internal.StartServerHandshakeReq 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.StartServerHandshakeReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.alts.internal.StartServerHandshakeReq 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.StartServerHandshakeReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.alts.internal.StartServerHandshakeReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.alts.internal.StartServerHandshakeReq parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.alts.internal.StartServerHandshakeReq 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.StartServerHandshakeReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.alts.internal.StartServerHandshakeReq 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.StartServerHandshakeReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.alts.internal.StartServerHandshakeReq 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.StartServerHandshakeReq 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.StartServerHandshakeReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gcp.StartServerHandshakeReq) io.grpc.alts.internal.StartServerHandshakeReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_StartServerHandshakeReq_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 2: return internalGetHandshakeParameters(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 2: return internalGetMutableHandshakeParameters(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_StartServerHandshakeReq_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.alts.internal.StartServerHandshakeReq.class, io.grpc.alts.internal.StartServerHandshakeReq.Builder.class); } // Construct using io.grpc.alts.internal.StartServerHandshakeReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLocalEndpointFieldBuilder(); getRemoteEndpointFieldBuilder(); getRpcVersionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; applicationProtocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableHandshakeParameters().clear(); inBytes_ = com.google.protobuf.ByteString.EMPTY; localEndpoint_ = null; if (localEndpointBuilder_ != null) { localEndpointBuilder_.dispose(); localEndpointBuilder_ = null; } remoteEndpoint_ = null; if (remoteEndpointBuilder_ != null) { remoteEndpointBuilder_.dispose(); remoteEndpointBuilder_ = null; } rpcVersions_ = null; if (rpcVersionsBuilder_ != null) { rpcVersionsBuilder_.dispose(); rpcVersionsBuilder_ = null; } maxFrameSize_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_StartServerHandshakeReq_descriptor; } @java.lang.Override public io.grpc.alts.internal.StartServerHandshakeReq getDefaultInstanceForType() { return io.grpc.alts.internal.StartServerHandshakeReq.getDefaultInstance(); } @java.lang.Override public io.grpc.alts.internal.StartServerHandshakeReq build() { io.grpc.alts.internal.StartServerHandshakeReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.alts.internal.StartServerHandshakeReq buildPartial() { io.grpc.alts.internal.StartServerHandshakeReq result = new io.grpc.alts.internal.StartServerHandshakeReq(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grpc.alts.internal.StartServerHandshakeReq result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { applicationProtocols_.makeImmutable(); result.applicationProtocols_ = applicationProtocols_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.handshakeParameters_ = internalGetHandshakeParameters().build(HandshakeParametersDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000004) != 0)) { result.inBytes_ = inBytes_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.localEndpoint_ = localEndpointBuilder_ == null ? localEndpoint_ : localEndpointBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.remoteEndpoint_ = remoteEndpointBuilder_ == null ? remoteEndpoint_ : remoteEndpointBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.rpcVersions_ = rpcVersionsBuilder_ == null ? rpcVersions_ : rpcVersionsBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { result.maxFrameSize_ = maxFrameSize_; } 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 io.grpc.alts.internal.StartServerHandshakeReq) { return mergeFrom((io.grpc.alts.internal.StartServerHandshakeReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.alts.internal.StartServerHandshakeReq other) { if (other == io.grpc.alts.internal.StartServerHandshakeReq.getDefaultInstance()) return this; if (!other.applicationProtocols_.isEmpty()) { if (applicationProtocols_.isEmpty()) { applicationProtocols_ = other.applicationProtocols_; bitField0_ |= 0x00000001; } else { ensureApplicationProtocolsIsMutable(); applicationProtocols_.addAll(other.applicationProtocols_); } onChanged(); } internalGetMutableHandshakeParameters().mergeFrom( other.internalGetHandshakeParameters()); bitField0_ |= 0x00000002; if (other.getInBytes() != com.google.protobuf.ByteString.EMPTY) { setInBytes(other.getInBytes()); } if (other.hasLocalEndpoint()) { mergeLocalEndpoint(other.getLocalEndpoint()); } if (other.hasRemoteEndpoint()) { mergeRemoteEndpoint(other.getRemoteEndpoint()); } if (other.hasRpcVersions()) { mergeRpcVersions(other.getRpcVersions()); } if (other.getMaxFrameSize() != 0) { setMaxFrameSize(other.getMaxFrameSize()); } 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: { java.lang.String s = input.readStringRequireUtf8(); ensureApplicationProtocolsIsMutable(); applicationProtocols_.add(s); break; } // case 10 case 18: { com.google.protobuf.MapEntry handshakeParameters__ = input.readMessage( HandshakeParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableHandshakeParameters().ensureBuilderMap().put( handshakeParameters__.getKey(), handshakeParameters__.getValue()); bitField0_ |= 0x00000002; break; } // case 18 case 26: { inBytes_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getLocalEndpointFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getRemoteEndpointFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getRpcVersionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 56: { maxFrameSize_ = input.readUInt32(); bitField0_ |= 0x00000040; break; } // case 56 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.LazyStringArrayList applicationProtocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureApplicationProtocolsIsMutable() { if (!applicationProtocols_.isModifiable()) { applicationProtocols_ = new com.google.protobuf.LazyStringArrayList(applicationProtocols_); } bitField0_ |= 0x00000001; } /** *
     * The application protocols supported by the server, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 1; * @return A list containing the applicationProtocols. */ public com.google.protobuf.ProtocolStringList getApplicationProtocolsList() { applicationProtocols_.makeImmutable(); return applicationProtocols_; } /** *
     * The application protocols supported by the server, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 1; * @return The count of applicationProtocols. */ public int getApplicationProtocolsCount() { return applicationProtocols_.size(); } /** *
     * The application protocols supported by the server, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 1; * @param index The index of the element to return. * @return The applicationProtocols at the given index. */ public java.lang.String getApplicationProtocols(int index) { return applicationProtocols_.get(index); } /** *
     * The application protocols supported by the server, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 1; * @param index The index of the value to return. * @return The bytes of the applicationProtocols at the given index. */ public com.google.protobuf.ByteString getApplicationProtocolsBytes(int index) { return applicationProtocols_.getByteString(index); } /** *
     * The application protocols supported by the server, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 1; * @param index The index to set the value at. * @param value The applicationProtocols to set. * @return This builder for chaining. */ public Builder setApplicationProtocols( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureApplicationProtocolsIsMutable(); applicationProtocols_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The application protocols supported by the server, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 1; * @param value The applicationProtocols to add. * @return This builder for chaining. */ public Builder addApplicationProtocols( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureApplicationProtocolsIsMutable(); applicationProtocols_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The application protocols supported by the server, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 1; * @param values The applicationProtocols to add. * @return This builder for chaining. */ public Builder addAllApplicationProtocols( java.lang.Iterable values) { ensureApplicationProtocolsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, applicationProtocols_); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The application protocols supported by the server, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 1; * @return This builder for chaining. */ public Builder clearApplicationProtocols() { applicationProtocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** *
     * The application protocols supported by the server, e.g., "h2" (for http2),
     * "grpc".
     * 
* * repeated string application_protocols = 1; * @param value The bytes of the applicationProtocols to add. * @return This builder for chaining. */ public Builder addApplicationProtocolsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureApplicationProtocolsIsMutable(); applicationProtocols_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } private static final class HandshakeParametersConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public io.grpc.alts.internal.ServerHandshakeParameters build(io.grpc.alts.internal.ServerHandshakeParametersOrBuilder val) { if (val instanceof io.grpc.alts.internal.ServerHandshakeParameters) { return (io.grpc.alts.internal.ServerHandshakeParameters) val; } return ((io.grpc.alts.internal.ServerHandshakeParameters.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return HandshakeParametersDefaultEntryHolder.defaultEntry; } }; private static final HandshakeParametersConverter handshakeParametersConverter = new HandshakeParametersConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.Integer, io.grpc.alts.internal.ServerHandshakeParametersOrBuilder, io.grpc.alts.internal.ServerHandshakeParameters, io.grpc.alts.internal.ServerHandshakeParameters.Builder> handshakeParameters_; private com.google.protobuf.MapFieldBuilder internalGetHandshakeParameters() { if (handshakeParameters_ == null) { return new com.google.protobuf.MapFieldBuilder<>(handshakeParametersConverter); } return handshakeParameters_; } private com.google.protobuf.MapFieldBuilder internalGetMutableHandshakeParameters() { if (handshakeParameters_ == null) { handshakeParameters_ = new com.google.protobuf.MapFieldBuilder<>(handshakeParametersConverter); } bitField0_ |= 0x00000002; onChanged(); return handshakeParameters_; } public int getHandshakeParametersCount() { return internalGetHandshakeParameters().ensureBuilderMap().size(); } /** *
     * Handshake parameters (record protocols and local identities supported by
     * the server) mapped by the handshake protocol. Each handshake security
     * protocol (e.g., TLS or ALTS) has its own set of record protocols and local
     * identities. Since protobuf does not support enum as key to the map, the key
     * to handshake_parameters is the integer value of HandshakeProtocol enum.
     * 
* * map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2; */ @java.lang.Override public boolean containsHandshakeParameters( int key) { return internalGetHandshakeParameters().ensureBuilderMap().containsKey(key); } /** * Use {@link #getHandshakeParametersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHandshakeParameters() { return getHandshakeParametersMap(); } /** *
     * Handshake parameters (record protocols and local identities supported by
     * the server) mapped by the handshake protocol. Each handshake security
     * protocol (e.g., TLS or ALTS) has its own set of record protocols and local
     * identities. Since protobuf does not support enum as key to the map, the key
     * to handshake_parameters is the integer value of HandshakeProtocol enum.
     * 
* * map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2; */ @java.lang.Override public java.util.Map getHandshakeParametersMap() { return internalGetHandshakeParameters().getImmutableMap(); } /** *
     * Handshake parameters (record protocols and local identities supported by
     * the server) mapped by the handshake protocol. Each handshake security
     * protocol (e.g., TLS or ALTS) has its own set of record protocols and local
     * identities. Since protobuf does not support enum as key to the map, the key
     * to handshake_parameters is the integer value of HandshakeProtocol enum.
     * 
* * map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2; */ @java.lang.Override public /* nullable */ io.grpc.alts.internal.ServerHandshakeParameters getHandshakeParametersOrDefault( int key, /* nullable */ io.grpc.alts.internal.ServerHandshakeParameters defaultValue) { java.util.Map map = internalGetMutableHandshakeParameters().ensureBuilderMap(); return map.containsKey(key) ? handshakeParametersConverter.build(map.get(key)) : defaultValue; } /** *
     * Handshake parameters (record protocols and local identities supported by
     * the server) mapped by the handshake protocol. Each handshake security
     * protocol (e.g., TLS or ALTS) has its own set of record protocols and local
     * identities. Since protobuf does not support enum as key to the map, the key
     * to handshake_parameters is the integer value of HandshakeProtocol enum.
     * 
* * map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2; */ @java.lang.Override public io.grpc.alts.internal.ServerHandshakeParameters getHandshakeParametersOrThrow( int key) { java.util.Map map = internalGetMutableHandshakeParameters().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return handshakeParametersConverter.build(map.get(key)); } public Builder clearHandshakeParameters() { bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableHandshakeParameters().clear(); return this; } /** *
     * Handshake parameters (record protocols and local identities supported by
     * the server) mapped by the handshake protocol. Each handshake security
     * protocol (e.g., TLS or ALTS) has its own set of record protocols and local
     * identities. Since protobuf does not support enum as key to the map, the key
     * to handshake_parameters is the integer value of HandshakeProtocol enum.
     * 
* * map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2; */ public Builder removeHandshakeParameters( int key) { internalGetMutableHandshakeParameters().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableHandshakeParameters() { bitField0_ |= 0x00000002; return internalGetMutableHandshakeParameters().ensureMessageMap(); } /** *
     * Handshake parameters (record protocols and local identities supported by
     * the server) mapped by the handshake protocol. Each handshake security
     * protocol (e.g., TLS or ALTS) has its own set of record protocols and local
     * identities. Since protobuf does not support enum as key to the map, the key
     * to handshake_parameters is the integer value of HandshakeProtocol enum.
     * 
* * map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2; */ public Builder putHandshakeParameters( int key, io.grpc.alts.internal.ServerHandshakeParameters value) { if (value == null) { throw new NullPointerException("map value"); } internalGetMutableHandshakeParameters().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000002; return this; } /** *
     * Handshake parameters (record protocols and local identities supported by
     * the server) mapped by the handshake protocol. Each handshake security
     * protocol (e.g., TLS or ALTS) has its own set of record protocols and local
     * identities. Since protobuf does not support enum as key to the map, the key
     * to handshake_parameters is the integer value of HandshakeProtocol enum.
     * 
* * map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2; */ public Builder putAllHandshakeParameters( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableHandshakeParameters().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000002; return this; } /** *
     * Handshake parameters (record protocols and local identities supported by
     * the server) mapped by the handshake protocol. Each handshake security
     * protocol (e.g., TLS or ALTS) has its own set of record protocols and local
     * identities. Since protobuf does not support enum as key to the map, the key
     * to handshake_parameters is the integer value of HandshakeProtocol enum.
     * 
* * map<int32, .grpc.gcp.ServerHandshakeParameters> handshake_parameters = 2; */ public io.grpc.alts.internal.ServerHandshakeParameters.Builder putHandshakeParametersBuilderIfAbsent( int key) { java.util.Map builderMap = internalGetMutableHandshakeParameters().ensureBuilderMap(); io.grpc.alts.internal.ServerHandshakeParametersOrBuilder entry = builderMap.get(key); if (entry == null) { entry = io.grpc.alts.internal.ServerHandshakeParameters.newBuilder(); builderMap.put(key, entry); } if (entry instanceof io.grpc.alts.internal.ServerHandshakeParameters) { entry = ((io.grpc.alts.internal.ServerHandshakeParameters) entry).toBuilder(); builderMap.put(key, entry); } return (io.grpc.alts.internal.ServerHandshakeParameters.Builder) entry; } private com.google.protobuf.ByteString inBytes_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Bytes in out_frames returned from the peer's HandshakerResp. It is possible
     * that the peer's out_frames are split into multiple HandshakReq messages.
     * 
* * bytes in_bytes = 3; * @return The inBytes. */ @java.lang.Override public com.google.protobuf.ByteString getInBytes() { return inBytes_; } /** *
     * Bytes in out_frames returned from the peer's HandshakerResp. It is possible
     * that the peer's out_frames are split into multiple HandshakReq messages.
     * 
* * bytes in_bytes = 3; * @param value The inBytes to set. * @return This builder for chaining. */ public Builder setInBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } inBytes_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Bytes in out_frames returned from the peer's HandshakerResp. It is possible
     * that the peer's out_frames are split into multiple HandshakReq messages.
     * 
* * bytes in_bytes = 3; * @return This builder for chaining. */ public Builder clearInBytes() { bitField0_ = (bitField0_ & ~0x00000004); inBytes_ = getDefaultInstance().getInBytes(); onChanged(); return this; } private io.grpc.alts.internal.Endpoint localEndpoint_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.Endpoint, io.grpc.alts.internal.Endpoint.Builder, io.grpc.alts.internal.EndpointOrBuilder> localEndpointBuilder_; /** *
     * (Optional) Local endpoint information of the connection to the client,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 4; * @return Whether the localEndpoint field is set. */ public boolean hasLocalEndpoint() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * (Optional) Local endpoint information of the connection to the client,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 4; * @return The localEndpoint. */ public io.grpc.alts.internal.Endpoint getLocalEndpoint() { if (localEndpointBuilder_ == null) { return localEndpoint_ == null ? io.grpc.alts.internal.Endpoint.getDefaultInstance() : localEndpoint_; } else { return localEndpointBuilder_.getMessage(); } } /** *
     * (Optional) Local endpoint information of the connection to the client,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 4; */ public Builder setLocalEndpoint(io.grpc.alts.internal.Endpoint value) { if (localEndpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localEndpoint_ = value; } else { localEndpointBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * (Optional) Local endpoint information of the connection to the client,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 4; */ public Builder setLocalEndpoint( io.grpc.alts.internal.Endpoint.Builder builderForValue) { if (localEndpointBuilder_ == null) { localEndpoint_ = builderForValue.build(); } else { localEndpointBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * (Optional) Local endpoint information of the connection to the client,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 4; */ public Builder mergeLocalEndpoint(io.grpc.alts.internal.Endpoint value) { if (localEndpointBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && localEndpoint_ != null && localEndpoint_ != io.grpc.alts.internal.Endpoint.getDefaultInstance()) { getLocalEndpointBuilder().mergeFrom(value); } else { localEndpoint_ = value; } } else { localEndpointBuilder_.mergeFrom(value); } if (localEndpoint_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * (Optional) Local endpoint information of the connection to the client,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 4; */ public Builder clearLocalEndpoint() { bitField0_ = (bitField0_ & ~0x00000008); localEndpoint_ = null; if (localEndpointBuilder_ != null) { localEndpointBuilder_.dispose(); localEndpointBuilder_ = null; } onChanged(); return this; } /** *
     * (Optional) Local endpoint information of the connection to the client,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 4; */ public io.grpc.alts.internal.Endpoint.Builder getLocalEndpointBuilder() { bitField0_ |= 0x00000008; onChanged(); return getLocalEndpointFieldBuilder().getBuilder(); } /** *
     * (Optional) Local endpoint information of the connection to the client,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 4; */ public io.grpc.alts.internal.EndpointOrBuilder getLocalEndpointOrBuilder() { if (localEndpointBuilder_ != null) { return localEndpointBuilder_.getMessageOrBuilder(); } else { return localEndpoint_ == null ? io.grpc.alts.internal.Endpoint.getDefaultInstance() : localEndpoint_; } } /** *
     * (Optional) Local endpoint information of the connection to the client,
     * such as local IP address, port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint local_endpoint = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.Endpoint, io.grpc.alts.internal.Endpoint.Builder, io.grpc.alts.internal.EndpointOrBuilder> getLocalEndpointFieldBuilder() { if (localEndpointBuilder_ == null) { localEndpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.Endpoint, io.grpc.alts.internal.Endpoint.Builder, io.grpc.alts.internal.EndpointOrBuilder>( getLocalEndpoint(), getParentForChildren(), isClean()); localEndpoint_ = null; } return localEndpointBuilder_; } private io.grpc.alts.internal.Endpoint remoteEndpoint_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.Endpoint, io.grpc.alts.internal.Endpoint.Builder, io.grpc.alts.internal.EndpointOrBuilder> remoteEndpointBuilder_; /** *
     * (Optional) Endpoint information of the remote client, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 5; * @return Whether the remoteEndpoint field is set. */ public boolean hasRemoteEndpoint() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * (Optional) Endpoint information of the remote client, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 5; * @return The remoteEndpoint. */ public io.grpc.alts.internal.Endpoint getRemoteEndpoint() { if (remoteEndpointBuilder_ == null) { return remoteEndpoint_ == null ? io.grpc.alts.internal.Endpoint.getDefaultInstance() : remoteEndpoint_; } else { return remoteEndpointBuilder_.getMessage(); } } /** *
     * (Optional) Endpoint information of the remote client, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 5; */ public Builder setRemoteEndpoint(io.grpc.alts.internal.Endpoint value) { if (remoteEndpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } remoteEndpoint_ = value; } else { remoteEndpointBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * (Optional) Endpoint information of the remote client, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 5; */ public Builder setRemoteEndpoint( io.grpc.alts.internal.Endpoint.Builder builderForValue) { if (remoteEndpointBuilder_ == null) { remoteEndpoint_ = builderForValue.build(); } else { remoteEndpointBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * (Optional) Endpoint information of the remote client, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 5; */ public Builder mergeRemoteEndpoint(io.grpc.alts.internal.Endpoint value) { if (remoteEndpointBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && remoteEndpoint_ != null && remoteEndpoint_ != io.grpc.alts.internal.Endpoint.getDefaultInstance()) { getRemoteEndpointBuilder().mergeFrom(value); } else { remoteEndpoint_ = value; } } else { remoteEndpointBuilder_.mergeFrom(value); } if (remoteEndpoint_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
     * (Optional) Endpoint information of the remote client, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 5; */ public Builder clearRemoteEndpoint() { bitField0_ = (bitField0_ & ~0x00000010); remoteEndpoint_ = null; if (remoteEndpointBuilder_ != null) { remoteEndpointBuilder_.dispose(); remoteEndpointBuilder_ = null; } onChanged(); return this; } /** *
     * (Optional) Endpoint information of the remote client, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 5; */ public io.grpc.alts.internal.Endpoint.Builder getRemoteEndpointBuilder() { bitField0_ |= 0x00000010; onChanged(); return getRemoteEndpointFieldBuilder().getBuilder(); } /** *
     * (Optional) Endpoint information of the remote client, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 5; */ public io.grpc.alts.internal.EndpointOrBuilder getRemoteEndpointOrBuilder() { if (remoteEndpointBuilder_ != null) { return remoteEndpointBuilder_.getMessageOrBuilder(); } else { return remoteEndpoint_ == null ? io.grpc.alts.internal.Endpoint.getDefaultInstance() : remoteEndpoint_; } } /** *
     * (Optional) Endpoint information of the remote client, such as IP address,
     * port number, and network protocol.
     * 
* * .grpc.gcp.Endpoint remote_endpoint = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.Endpoint, io.grpc.alts.internal.Endpoint.Builder, io.grpc.alts.internal.EndpointOrBuilder> getRemoteEndpointFieldBuilder() { if (remoteEndpointBuilder_ == null) { remoteEndpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.Endpoint, io.grpc.alts.internal.Endpoint.Builder, io.grpc.alts.internal.EndpointOrBuilder>( getRemoteEndpoint(), getParentForChildren(), isClean()); remoteEndpoint_ = null; } return remoteEndpointBuilder_; } private io.grpc.alts.internal.RpcProtocolVersions rpcVersions_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.RpcProtocolVersions, io.grpc.alts.internal.RpcProtocolVersions.Builder, io.grpc.alts.internal.RpcProtocolVersionsOrBuilder> rpcVersionsBuilder_; /** *
     * (Optional) RPC protocol versions supported by the server.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 6; * @return Whether the rpcVersions field is set. */ public boolean hasRpcVersions() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * (Optional) RPC protocol versions supported by the server.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 6; * @return The rpcVersions. */ public io.grpc.alts.internal.RpcProtocolVersions getRpcVersions() { if (rpcVersionsBuilder_ == null) { return rpcVersions_ == null ? io.grpc.alts.internal.RpcProtocolVersions.getDefaultInstance() : rpcVersions_; } else { return rpcVersionsBuilder_.getMessage(); } } /** *
     * (Optional) RPC protocol versions supported by the server.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 6; */ public Builder setRpcVersions(io.grpc.alts.internal.RpcProtocolVersions value) { if (rpcVersionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rpcVersions_ = value; } else { rpcVersionsBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * (Optional) RPC protocol versions supported by the server.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 6; */ public Builder setRpcVersions( io.grpc.alts.internal.RpcProtocolVersions.Builder builderForValue) { if (rpcVersionsBuilder_ == null) { rpcVersions_ = builderForValue.build(); } else { rpcVersionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * (Optional) RPC protocol versions supported by the server.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 6; */ public Builder mergeRpcVersions(io.grpc.alts.internal.RpcProtocolVersions value) { if (rpcVersionsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && rpcVersions_ != null && rpcVersions_ != io.grpc.alts.internal.RpcProtocolVersions.getDefaultInstance()) { getRpcVersionsBuilder().mergeFrom(value); } else { rpcVersions_ = value; } } else { rpcVersionsBuilder_.mergeFrom(value); } if (rpcVersions_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
     * (Optional) RPC protocol versions supported by the server.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 6; */ public Builder clearRpcVersions() { bitField0_ = (bitField0_ & ~0x00000020); rpcVersions_ = null; if (rpcVersionsBuilder_ != null) { rpcVersionsBuilder_.dispose(); rpcVersionsBuilder_ = null; } onChanged(); return this; } /** *
     * (Optional) RPC protocol versions supported by the server.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 6; */ public io.grpc.alts.internal.RpcProtocolVersions.Builder getRpcVersionsBuilder() { bitField0_ |= 0x00000020; onChanged(); return getRpcVersionsFieldBuilder().getBuilder(); } /** *
     * (Optional) RPC protocol versions supported by the server.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 6; */ public io.grpc.alts.internal.RpcProtocolVersionsOrBuilder getRpcVersionsOrBuilder() { if (rpcVersionsBuilder_ != null) { return rpcVersionsBuilder_.getMessageOrBuilder(); } else { return rpcVersions_ == null ? io.grpc.alts.internal.RpcProtocolVersions.getDefaultInstance() : rpcVersions_; } } /** *
     * (Optional) RPC protocol versions supported by the server.
     * 
* * .grpc.gcp.RpcProtocolVersions rpc_versions = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.RpcProtocolVersions, io.grpc.alts.internal.RpcProtocolVersions.Builder, io.grpc.alts.internal.RpcProtocolVersionsOrBuilder> getRpcVersionsFieldBuilder() { if (rpcVersionsBuilder_ == null) { rpcVersionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.alts.internal.RpcProtocolVersions, io.grpc.alts.internal.RpcProtocolVersions.Builder, io.grpc.alts.internal.RpcProtocolVersionsOrBuilder>( getRpcVersions(), getParentForChildren(), isClean()); rpcVersions_ = null; } return rpcVersionsBuilder_; } private int maxFrameSize_ ; /** *
     * (Optional) Maximum frame size supported by the server.
     * 
* * uint32 max_frame_size = 7; * @return The maxFrameSize. */ @java.lang.Override public int getMaxFrameSize() { return maxFrameSize_; } /** *
     * (Optional) Maximum frame size supported by the server.
     * 
* * uint32 max_frame_size = 7; * @param value The maxFrameSize to set. * @return This builder for chaining. */ public Builder setMaxFrameSize(int value) { maxFrameSize_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * (Optional) Maximum frame size supported by the server.
     * 
* * uint32 max_frame_size = 7; * @return This builder for chaining. */ public Builder clearMaxFrameSize() { bitField0_ = (bitField0_ & ~0x00000040); maxFrameSize_ = 0; 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:grpc.gcp.StartServerHandshakeReq) } // @@protoc_insertion_point(class_scope:grpc.gcp.StartServerHandshakeReq) private static final io.grpc.alts.internal.StartServerHandshakeReq DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.alts.internal.StartServerHandshakeReq(); } public static io.grpc.alts.internal.StartServerHandshakeReq getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StartServerHandshakeReq 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.StartServerHandshakeReq getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy