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

io.grpc.alts.internal.ServerHandshakeParameters 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.1
package io.grpc.alts.internal;

/**
 * Protobuf type {@code grpc.gcp.ServerHandshakeParameters}
 */
public final class ServerHandshakeParameters extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:grpc.gcp.ServerHandshakeParameters)
    ServerHandshakeParametersOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ServerHandshakeParameters.newBuilder() to construct.
  private ServerHandshakeParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ServerHandshakeParameters() {
    recordProtocols_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    localIdentities_ = java.util.Collections.emptyList();
  }

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

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

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_ServerHandshakeParameters_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grpc.alts.internal.ServerHandshakeParameters.class, io.grpc.alts.internal.ServerHandshakeParameters.Builder.class);
  }

  public static final int RECORD_PROTOCOLS_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringArrayList recordProtocols_ =
      com.google.protobuf.LazyStringArrayList.emptyList();
  /**
   * 
   * The record protocols supported by the server, e.g.,
   * "ALTSRP_GCM_AES128".
   * 
* * repeated string record_protocols = 1; * @return A list containing the recordProtocols. */ public com.google.protobuf.ProtocolStringList getRecordProtocolsList() { return recordProtocols_; } /** *
   * The record protocols supported by the server, e.g.,
   * "ALTSRP_GCM_AES128".
   * 
* * repeated string record_protocols = 1; * @return The count of recordProtocols. */ public int getRecordProtocolsCount() { return recordProtocols_.size(); } /** *
   * The record protocols supported by the server, e.g.,
   * "ALTSRP_GCM_AES128".
   * 
* * repeated string record_protocols = 1; * @param index The index of the element to return. * @return The recordProtocols at the given index. */ public java.lang.String getRecordProtocols(int index) { return recordProtocols_.get(index); } /** *
   * The record protocols supported by the server, e.g.,
   * "ALTSRP_GCM_AES128".
   * 
* * repeated string record_protocols = 1; * @param index The index of the value to return. * @return The bytes of the recordProtocols at the given index. */ public com.google.protobuf.ByteString getRecordProtocolsBytes(int index) { return recordProtocols_.getByteString(index); } public static final int LOCAL_IDENTITIES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List localIdentities_; /** *
   * (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; */ @java.lang.Override public java.util.List getLocalIdentitiesList() { return localIdentities_; } /** *
   * (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; */ @java.lang.Override public java.util.List getLocalIdentitiesOrBuilderList() { return localIdentities_; } /** *
   * (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; */ @java.lang.Override public int getLocalIdentitiesCount() { return localIdentities_.size(); } /** *
   * (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; */ @java.lang.Override public io.grpc.alts.internal.Identity getLocalIdentities(int index) { return localIdentities_.get(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; */ @java.lang.Override public io.grpc.alts.internal.IdentityOrBuilder getLocalIdentitiesOrBuilder( int index) { return localIdentities_.get(index); } 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 < recordProtocols_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recordProtocols_.getRaw(i)); } for (int i = 0; i < localIdentities_.size(); i++) { output.writeMessage(2, localIdentities_.get(i)); } 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 < recordProtocols_.size(); i++) { dataSize += computeStringSizeNoTag(recordProtocols_.getRaw(i)); } size += dataSize; size += 1 * getRecordProtocolsList().size(); } for (int i = 0; i < localIdentities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, localIdentities_.get(i)); } 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.ServerHandshakeParameters)) { return super.equals(obj); } io.grpc.alts.internal.ServerHandshakeParameters other = (io.grpc.alts.internal.ServerHandshakeParameters) obj; if (!getRecordProtocolsList() .equals(other.getRecordProtocolsList())) return false; if (!getLocalIdentitiesList() .equals(other.getLocalIdentitiesList())) 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 (getRecordProtocolsCount() > 0) { hash = (37 * hash) + RECORD_PROTOCOLS_FIELD_NUMBER; hash = (53 * hash) + getRecordProtocolsList().hashCode(); } if (getLocalIdentitiesCount() > 0) { hash = (37 * hash) + LOCAL_IDENTITIES_FIELD_NUMBER; hash = (53 * hash) + getLocalIdentitiesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.alts.internal.ServerHandshakeParameters parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.alts.internal.ServerHandshakeParameters 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.ServerHandshakeParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.alts.internal.ServerHandshakeParameters 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.ServerHandshakeParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.alts.internal.ServerHandshakeParameters parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.alts.internal.ServerHandshakeParameters parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.alts.internal.ServerHandshakeParameters 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.ServerHandshakeParameters parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.alts.internal.ServerHandshakeParameters 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.ServerHandshakeParameters parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.alts.internal.ServerHandshakeParameters 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.ServerHandshakeParameters 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.ServerHandshakeParameters} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.gcp.ServerHandshakeParameters) io.grpc.alts.internal.ServerHandshakeParametersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_ServerHandshakeParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_ServerHandshakeParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.alts.internal.ServerHandshakeParameters.class, io.grpc.alts.internal.ServerHandshakeParameters.Builder.class); } // Construct using io.grpc.alts.internal.ServerHandshakeParameters.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; recordProtocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (localIdentitiesBuilder_ == null) { localIdentities_ = java.util.Collections.emptyList(); } else { localIdentities_ = null; localIdentitiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.alts.internal.HandshakerProto.internal_static_grpc_gcp_ServerHandshakeParameters_descriptor; } @java.lang.Override public io.grpc.alts.internal.ServerHandshakeParameters getDefaultInstanceForType() { return io.grpc.alts.internal.ServerHandshakeParameters.getDefaultInstance(); } @java.lang.Override public io.grpc.alts.internal.ServerHandshakeParameters build() { io.grpc.alts.internal.ServerHandshakeParameters result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.alts.internal.ServerHandshakeParameters buildPartial() { io.grpc.alts.internal.ServerHandshakeParameters result = new io.grpc.alts.internal.ServerHandshakeParameters(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.grpc.alts.internal.ServerHandshakeParameters result) { if (localIdentitiesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { localIdentities_ = java.util.Collections.unmodifiableList(localIdentities_); bitField0_ = (bitField0_ & ~0x00000002); } result.localIdentities_ = localIdentities_; } else { result.localIdentities_ = localIdentitiesBuilder_.build(); } } private void buildPartial0(io.grpc.alts.internal.ServerHandshakeParameters result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { recordProtocols_.makeImmutable(); result.recordProtocols_ = recordProtocols_; } } @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.ServerHandshakeParameters) { return mergeFrom((io.grpc.alts.internal.ServerHandshakeParameters)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.alts.internal.ServerHandshakeParameters other) { if (other == io.grpc.alts.internal.ServerHandshakeParameters.getDefaultInstance()) return this; if (!other.recordProtocols_.isEmpty()) { if (recordProtocols_.isEmpty()) { recordProtocols_ = other.recordProtocols_; bitField0_ |= 0x00000001; } else { ensureRecordProtocolsIsMutable(); recordProtocols_.addAll(other.recordProtocols_); } onChanged(); } if (localIdentitiesBuilder_ == null) { if (!other.localIdentities_.isEmpty()) { if (localIdentities_.isEmpty()) { localIdentities_ = other.localIdentities_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureLocalIdentitiesIsMutable(); localIdentities_.addAll(other.localIdentities_); } onChanged(); } } else { if (!other.localIdentities_.isEmpty()) { if (localIdentitiesBuilder_.isEmpty()) { localIdentitiesBuilder_.dispose(); localIdentitiesBuilder_ = null; localIdentities_ = other.localIdentities_; bitField0_ = (bitField0_ & ~0x00000002); localIdentitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLocalIdentitiesFieldBuilder() : null; } else { localIdentitiesBuilder_.addAllMessages(other.localIdentities_); } } } 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(); ensureRecordProtocolsIsMutable(); recordProtocols_.add(s); break; } // case 10 case 18: { io.grpc.alts.internal.Identity m = input.readMessage( io.grpc.alts.internal.Identity.parser(), extensionRegistry); if (localIdentitiesBuilder_ == null) { ensureLocalIdentitiesIsMutable(); localIdentities_.add(m); } else { localIdentitiesBuilder_.addMessage(m); } break; } // case 18 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 recordProtocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureRecordProtocolsIsMutable() { if (!recordProtocols_.isModifiable()) { recordProtocols_ = new com.google.protobuf.LazyStringArrayList(recordProtocols_); } bitField0_ |= 0x00000001; } /** *
     * The record protocols supported by the server, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 1; * @return A list containing the recordProtocols. */ public com.google.protobuf.ProtocolStringList getRecordProtocolsList() { recordProtocols_.makeImmutable(); return recordProtocols_; } /** *
     * The record protocols supported by the server, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 1; * @return The count of recordProtocols. */ public int getRecordProtocolsCount() { return recordProtocols_.size(); } /** *
     * The record protocols supported by the server, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 1; * @param index The index of the element to return. * @return The recordProtocols at the given index. */ public java.lang.String getRecordProtocols(int index) { return recordProtocols_.get(index); } /** *
     * The record protocols supported by the server, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 1; * @param index The index of the value to return. * @return The bytes of the recordProtocols at the given index. */ public com.google.protobuf.ByteString getRecordProtocolsBytes(int index) { return recordProtocols_.getByteString(index); } /** *
     * The record protocols supported by the server, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 1; * @param index The index to set the value at. * @param value The recordProtocols to set. * @return This builder for chaining. */ public Builder setRecordProtocols( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRecordProtocolsIsMutable(); recordProtocols_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The record protocols supported by the server, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 1; * @param value The recordProtocols to add. * @return This builder for chaining. */ public Builder addRecordProtocols( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRecordProtocolsIsMutable(); recordProtocols_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The record protocols supported by the server, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 1; * @param values The recordProtocols to add. * @return This builder for chaining. */ public Builder addAllRecordProtocols( java.lang.Iterable values) { ensureRecordProtocolsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recordProtocols_); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The record protocols supported by the server, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 1; * @return This builder for chaining. */ public Builder clearRecordProtocols() { recordProtocols_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** *
     * The record protocols supported by the server, e.g.,
     * "ALTSRP_GCM_AES128".
     * 
* * repeated string record_protocols = 1; * @param value The bytes of the recordProtocols to add. * @return This builder for chaining. */ public Builder addRecordProtocolsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRecordProtocolsIsMutable(); recordProtocols_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List localIdentities_ = java.util.Collections.emptyList(); private void ensureLocalIdentitiesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { localIdentities_ = new java.util.ArrayList(localIdentities_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.alts.internal.Identity, io.grpc.alts.internal.Identity.Builder, io.grpc.alts.internal.IdentityOrBuilder> localIdentitiesBuilder_; /** *
     * (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; */ public java.util.List getLocalIdentitiesList() { if (localIdentitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(localIdentities_); } else { return localIdentitiesBuilder_.getMessageList(); } } /** *
     * (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; */ public int getLocalIdentitiesCount() { if (localIdentitiesBuilder_ == null) { return localIdentities_.size(); } else { return localIdentitiesBuilder_.getCount(); } } /** *
     * (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; */ public io.grpc.alts.internal.Identity getLocalIdentities(int index) { if (localIdentitiesBuilder_ == null) { return localIdentities_.get(index); } else { return localIdentitiesBuilder_.getMessage(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; */ public Builder setLocalIdentities( int index, io.grpc.alts.internal.Identity value) { if (localIdentitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocalIdentitiesIsMutable(); localIdentities_.set(index, value); onChanged(); } else { localIdentitiesBuilder_.setMessage(index, value); } return this; } /** *
     * (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; */ public Builder setLocalIdentities( int index, io.grpc.alts.internal.Identity.Builder builderForValue) { if (localIdentitiesBuilder_ == null) { ensureLocalIdentitiesIsMutable(); localIdentities_.set(index, builderForValue.build()); onChanged(); } else { localIdentitiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * (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; */ public Builder addLocalIdentities(io.grpc.alts.internal.Identity value) { if (localIdentitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocalIdentitiesIsMutable(); localIdentities_.add(value); onChanged(); } else { localIdentitiesBuilder_.addMessage(value); } return this; } /** *
     * (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; */ public Builder addLocalIdentities( int index, io.grpc.alts.internal.Identity value) { if (localIdentitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocalIdentitiesIsMutable(); localIdentities_.add(index, value); onChanged(); } else { localIdentitiesBuilder_.addMessage(index, value); } return this; } /** *
     * (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; */ public Builder addLocalIdentities( io.grpc.alts.internal.Identity.Builder builderForValue) { if (localIdentitiesBuilder_ == null) { ensureLocalIdentitiesIsMutable(); localIdentities_.add(builderForValue.build()); onChanged(); } else { localIdentitiesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * (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; */ public Builder addLocalIdentities( int index, io.grpc.alts.internal.Identity.Builder builderForValue) { if (localIdentitiesBuilder_ == null) { ensureLocalIdentitiesIsMutable(); localIdentities_.add(index, builderForValue.build()); onChanged(); } else { localIdentitiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * (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; */ public Builder addAllLocalIdentities( java.lang.Iterable values) { if (localIdentitiesBuilder_ == null) { ensureLocalIdentitiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, localIdentities_); onChanged(); } else { localIdentitiesBuilder_.addAllMessages(values); } return this; } /** *
     * (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; */ public Builder clearLocalIdentities() { if (localIdentitiesBuilder_ == null) { localIdentities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { localIdentitiesBuilder_.clear(); } return this; } /** *
     * (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; */ public Builder removeLocalIdentities(int index) { if (localIdentitiesBuilder_ == null) { ensureLocalIdentitiesIsMutable(); localIdentities_.remove(index); onChanged(); } else { localIdentitiesBuilder_.remove(index); } return this; } /** *
     * (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; */ public io.grpc.alts.internal.Identity.Builder getLocalIdentitiesBuilder( int index) { return getLocalIdentitiesFieldBuilder().getBuilder(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; */ public io.grpc.alts.internal.IdentityOrBuilder getLocalIdentitiesOrBuilder( int index) { if (localIdentitiesBuilder_ == null) { return localIdentities_.get(index); } else { return localIdentitiesBuilder_.getMessageOrBuilder(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; */ public java.util.List getLocalIdentitiesOrBuilderList() { if (localIdentitiesBuilder_ != null) { return localIdentitiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(localIdentities_); } } /** *
     * (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; */ public io.grpc.alts.internal.Identity.Builder addLocalIdentitiesBuilder() { return getLocalIdentitiesFieldBuilder().addBuilder( io.grpc.alts.internal.Identity.getDefaultInstance()); } /** *
     * (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; */ public io.grpc.alts.internal.Identity.Builder addLocalIdentitiesBuilder( int index) { return getLocalIdentitiesFieldBuilder().addBuilder( index, io.grpc.alts.internal.Identity.getDefaultInstance()); } /** *
     * (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; */ public java.util.List getLocalIdentitiesBuilderList() { return getLocalIdentitiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.alts.internal.Identity, io.grpc.alts.internal.Identity.Builder, io.grpc.alts.internal.IdentityOrBuilder> getLocalIdentitiesFieldBuilder() { if (localIdentitiesBuilder_ == null) { localIdentitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.alts.internal.Identity, io.grpc.alts.internal.Identity.Builder, io.grpc.alts.internal.IdentityOrBuilder>( localIdentities_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); localIdentities_ = null; } return localIdentitiesBuilder_; } @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.ServerHandshakeParameters) } // @@protoc_insertion_point(class_scope:grpc.gcp.ServerHandshakeParameters) private static final io.grpc.alts.internal.ServerHandshakeParameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.alts.internal.ServerHandshakeParameters(); } public static io.grpc.alts.internal.ServerHandshakeParameters getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ServerHandshakeParameters 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.ServerHandshakeParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy