Class ServerHandshakeParameters.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ServerHandshakeParameters.Builder>
com.google.protobuf.GeneratedMessage.Builder<ServerHandshakeParameters.Builder>
io.grpc.alts.internal.ServerHandshakeParameters.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ServerHandshakeParametersOrBuilder, Cloneable
Enclosing class:
ServerHandshakeParameters

public static final class ServerHandshakeParameters.Builder extends com.google.protobuf.GeneratedMessage.Builder<ServerHandshakeParameters.Builder> implements ServerHandshakeParametersOrBuilder
Protobuf type grpc.gcp.ServerHandshakeParameters
  • Field Details

    • bitField0_

      private int bitField0_
    • recordProtocols_

      private com.google.protobuf.LazyStringArrayList recordProtocols_
    • localIdentities_

      private List<Identity> localIdentities_
    • localIdentitiesBuilder_

      private com.google.protobuf.RepeatedFieldBuilder<Identity,Identity.Builder,IdentityOrBuilder> localIdentitiesBuilder_
  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ServerHandshakeParameters.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ServerHandshakeParameters.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ServerHandshakeParameters.Builder>
    • getDefaultInstanceForType

      public ServerHandshakeParameters getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ServerHandshakeParameters build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ServerHandshakeParameters buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • buildPartialRepeatedFields

      private void buildPartialRepeatedFields(ServerHandshakeParameters result)
    • buildPartial0

      private void buildPartial0(ServerHandshakeParameters result)
    • mergeFrom

      public ServerHandshakeParameters.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServerHandshakeParameters.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ServerHandshakeParameters.Builder>
    • mergeFrom

      public ServerHandshakeParameters.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServerHandshakeParameters.Builder>
      Throws:
      IOException
    • ensureRecordProtocolsIsMutable

      private void ensureRecordProtocolsIsMutable()
    • getRecordProtocolsList

      public com.google.protobuf.ProtocolStringList getRecordProtocolsList()
       The record protocols supported by the server, e.g.,
       "ALTSRP_GCM_AES128".
       
      repeated string record_protocols = 1;
      Specified by:
      getRecordProtocolsList in interface ServerHandshakeParametersOrBuilder
      Returns:
      A list containing the recordProtocols.
    • getRecordProtocolsCount

      public int getRecordProtocolsCount()
       The record protocols supported by the server, e.g.,
       "ALTSRP_GCM_AES128".
       
      repeated string record_protocols = 1;
      Specified by:
      getRecordProtocolsCount in interface ServerHandshakeParametersOrBuilder
      Returns:
      The count of recordProtocols.
    • getRecordProtocols

      public String getRecordProtocols(int index)
       The record protocols supported by the server, e.g.,
       "ALTSRP_GCM_AES128".
       
      repeated string record_protocols = 1;
      Specified by:
      getRecordProtocols in interface ServerHandshakeParametersOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The recordProtocols at the given index.
    • getRecordProtocolsBytes

      public com.google.protobuf.ByteString getRecordProtocolsBytes(int index)
       The record protocols supported by the server, e.g.,
       "ALTSRP_GCM_AES128".
       
      repeated string record_protocols = 1;
      Specified by:
      getRecordProtocolsBytes in interface ServerHandshakeParametersOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the recordProtocols at the given index.
    • setRecordProtocols

      public ServerHandshakeParameters.Builder setRecordProtocols(int index, String value)
       The record protocols supported by the server, e.g.,
       "ALTSRP_GCM_AES128".
       
      repeated string record_protocols = 1;
      Parameters:
      index - The index to set the value at.
      value - The recordProtocols to set.
      Returns:
      This builder for chaining.
    • addRecordProtocols

      public ServerHandshakeParameters.Builder addRecordProtocols(String value)
       The record protocols supported by the server, e.g.,
       "ALTSRP_GCM_AES128".
       
      repeated string record_protocols = 1;
      Parameters:
      value - The recordProtocols to add.
      Returns:
      This builder for chaining.
    • addAllRecordProtocols

      public ServerHandshakeParameters.Builder addAllRecordProtocols(Iterable<String> values)
       The record protocols supported by the server, e.g.,
       "ALTSRP_GCM_AES128".
       
      repeated string record_protocols = 1;
      Parameters:
      values - The recordProtocols to add.
      Returns:
      This builder for chaining.
    • clearRecordProtocols

      public ServerHandshakeParameters.Builder clearRecordProtocols()
       The record protocols supported by the server, e.g.,
       "ALTSRP_GCM_AES128".
       
      repeated string record_protocols = 1;
      Returns:
      This builder for chaining.
    • addRecordProtocolsBytes

      public ServerHandshakeParameters.Builder addRecordProtocolsBytes(com.google.protobuf.ByteString value)
       The record protocols supported by the server, e.g.,
       "ALTSRP_GCM_AES128".
       
      repeated string record_protocols = 1;
      Parameters:
      value - The bytes of the recordProtocols to add.
      Returns:
      This builder for chaining.
    • ensureLocalIdentitiesIsMutable

      private void ensureLocalIdentitiesIsMutable()
    • getLocalIdentitiesList

      public List<Identity> getLocalIdentitiesList()
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
      Specified by:
      getLocalIdentitiesList in interface ServerHandshakeParametersOrBuilder
    • getLocalIdentitiesCount

      public int getLocalIdentitiesCount()
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
      Specified by:
      getLocalIdentitiesCount in interface ServerHandshakeParametersOrBuilder
    • getLocalIdentities

      public Identity getLocalIdentities(int index)
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
      Specified by:
      getLocalIdentities in interface ServerHandshakeParametersOrBuilder
    • setLocalIdentities

      public ServerHandshakeParameters.Builder setLocalIdentities(int index, Identity value)
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
    • setLocalIdentities

      public ServerHandshakeParameters.Builder setLocalIdentities(int index, Identity.Builder builderForValue)
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
    • addLocalIdentities

      public ServerHandshakeParameters.Builder addLocalIdentities(Identity value)
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
    • addLocalIdentities

      public ServerHandshakeParameters.Builder addLocalIdentities(int index, Identity value)
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
    • addLocalIdentities

      public ServerHandshakeParameters.Builder addLocalIdentities(Identity.Builder builderForValue)
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
    • addLocalIdentities

      public ServerHandshakeParameters.Builder addLocalIdentities(int index, Identity.Builder builderForValue)
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
    • addAllLocalIdentities

      public ServerHandshakeParameters.Builder addAllLocalIdentities(Iterable<? extends Identity> values)
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
    • clearLocalIdentities

      public ServerHandshakeParameters.Builder clearLocalIdentities()
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
    • removeLocalIdentities

      public ServerHandshakeParameters.Builder removeLocalIdentities(int index)
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
    • getLocalIdentitiesBuilder

      public Identity.Builder getLocalIdentitiesBuilder(int index)
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
    • getLocalIdentitiesOrBuilder

      public IdentityOrBuilder getLocalIdentitiesOrBuilder(int index)
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
      Specified by:
      getLocalIdentitiesOrBuilder in interface ServerHandshakeParametersOrBuilder
    • getLocalIdentitiesOrBuilderList

      public List<? extends IdentityOrBuilder> getLocalIdentitiesOrBuilderList()
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
      Specified by:
      getLocalIdentitiesOrBuilderList in interface ServerHandshakeParametersOrBuilder
    • addLocalIdentitiesBuilder

      public Identity.Builder addLocalIdentitiesBuilder()
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
    • addLocalIdentitiesBuilder

      public Identity.Builder addLocalIdentitiesBuilder(int index)
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
    • getLocalIdentitiesBuilderList

      public List<Identity.Builder> getLocalIdentitiesBuilderList()
       (Optional) A list of local identities supported by the server, if
       specified. Otherwise, the handshaker chooses a default local identity.
       
      repeated .grpc.gcp.Identity local_identities = 2;
    • getLocalIdentitiesFieldBuilder

      private com.google.protobuf.RepeatedFieldBuilder<Identity,Identity.Builder,IdentityOrBuilder> getLocalIdentitiesFieldBuilder()