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

shade.polaris.io.grpc.channelz.v1.Security Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: grpc/channelz/v1/channelz.proto

package io.grpc.channelz.v1;

/**
 * 
 * Security represents details about how secure the socket is.
 * 
* * Protobuf type {@code grpc.channelz.v1.Security} */ public final class Security extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.channelz.v1.Security) SecurityOrBuilder { private static final long serialVersionUID = 0L; // Use Security.newBuilder() to construct. private Security(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Security() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Security(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Security_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Security_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.channelz.v1.Security.class, io.grpc.channelz.v1.Security.Builder.class); } public interface TlsOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.channelz.v1.Security.Tls) com.google.protobuf.MessageOrBuilder { /** *
     * The cipher suite name in the RFC 4346 format:
     * https://tools.ietf.org/html/rfc4346#appendix-C
     * 
* * string standard_name = 1; * @return Whether the standardName field is set. */ boolean hasStandardName(); /** *
     * The cipher suite name in the RFC 4346 format:
     * https://tools.ietf.org/html/rfc4346#appendix-C
     * 
* * string standard_name = 1; * @return The standardName. */ java.lang.String getStandardName(); /** *
     * The cipher suite name in the RFC 4346 format:
     * https://tools.ietf.org/html/rfc4346#appendix-C
     * 
* * string standard_name = 1; * @return The bytes for standardName. */ com.google.protobuf.ByteString getStandardNameBytes(); /** *
     * Some other way to describe the cipher suite if
     * the RFC 4346 name is not available.
     * 
* * string other_name = 2; * @return Whether the otherName field is set. */ boolean hasOtherName(); /** *
     * Some other way to describe the cipher suite if
     * the RFC 4346 name is not available.
     * 
* * string other_name = 2; * @return The otherName. */ java.lang.String getOtherName(); /** *
     * Some other way to describe the cipher suite if
     * the RFC 4346 name is not available.
     * 
* * string other_name = 2; * @return The bytes for otherName. */ com.google.protobuf.ByteString getOtherNameBytes(); /** *
     * the certificate used by this endpoint.
     * 
* * bytes local_certificate = 3; * @return The localCertificate. */ com.google.protobuf.ByteString getLocalCertificate(); /** *
     * the certificate used by the remote endpoint.
     * 
* * bytes remote_certificate = 4; * @return The remoteCertificate. */ com.google.protobuf.ByteString getRemoteCertificate(); io.grpc.channelz.v1.Security.Tls.CipherSuiteCase getCipherSuiteCase(); } /** * Protobuf type {@code grpc.channelz.v1.Security.Tls} */ public static final class Tls extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.channelz.v1.Security.Tls) TlsOrBuilder { private static final long serialVersionUID = 0L; // Use Tls.newBuilder() to construct. private Tls(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Tls() { localCertificate_ = com.google.protobuf.ByteString.EMPTY; remoteCertificate_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Tls(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Security_Tls_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Security_Tls_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.channelz.v1.Security.Tls.class, io.grpc.channelz.v1.Security.Tls.Builder.class); } private int cipherSuiteCase_ = 0; @SuppressWarnings("serial") private java.lang.Object cipherSuite_; public enum CipherSuiteCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STANDARD_NAME(1), OTHER_NAME(2), CIPHERSUITE_NOT_SET(0); private final int value; private CipherSuiteCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CipherSuiteCase valueOf(int value) { return forNumber(value); } public static CipherSuiteCase forNumber(int value) { switch (value) { case 1: return STANDARD_NAME; case 2: return OTHER_NAME; case 0: return CIPHERSUITE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public CipherSuiteCase getCipherSuiteCase() { return CipherSuiteCase.forNumber( cipherSuiteCase_); } public static final int STANDARD_NAME_FIELD_NUMBER = 1; /** *
     * The cipher suite name in the RFC 4346 format:
     * https://tools.ietf.org/html/rfc4346#appendix-C
     * 
* * string standard_name = 1; * @return Whether the standardName field is set. */ public boolean hasStandardName() { return cipherSuiteCase_ == 1; } /** *
     * The cipher suite name in the RFC 4346 format:
     * https://tools.ietf.org/html/rfc4346#appendix-C
     * 
* * string standard_name = 1; * @return The standardName. */ public java.lang.String getStandardName() { java.lang.Object ref = ""; if (cipherSuiteCase_ == 1) { ref = cipherSuite_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (cipherSuiteCase_ == 1) { cipherSuite_ = s; } return s; } } /** *
     * The cipher suite name in the RFC 4346 format:
     * https://tools.ietf.org/html/rfc4346#appendix-C
     * 
* * string standard_name = 1; * @return The bytes for standardName. */ public com.google.protobuf.ByteString getStandardNameBytes() { java.lang.Object ref = ""; if (cipherSuiteCase_ == 1) { ref = cipherSuite_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (cipherSuiteCase_ == 1) { cipherSuite_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OTHER_NAME_FIELD_NUMBER = 2; /** *
     * Some other way to describe the cipher suite if
     * the RFC 4346 name is not available.
     * 
* * string other_name = 2; * @return Whether the otherName field is set. */ public boolean hasOtherName() { return cipherSuiteCase_ == 2; } /** *
     * Some other way to describe the cipher suite if
     * the RFC 4346 name is not available.
     * 
* * string other_name = 2; * @return The otherName. */ public java.lang.String getOtherName() { java.lang.Object ref = ""; if (cipherSuiteCase_ == 2) { ref = cipherSuite_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (cipherSuiteCase_ == 2) { cipherSuite_ = s; } return s; } } /** *
     * Some other way to describe the cipher suite if
     * the RFC 4346 name is not available.
     * 
* * string other_name = 2; * @return The bytes for otherName. */ public com.google.protobuf.ByteString getOtherNameBytes() { java.lang.Object ref = ""; if (cipherSuiteCase_ == 2) { ref = cipherSuite_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (cipherSuiteCase_ == 2) { cipherSuite_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCAL_CERTIFICATE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString localCertificate_ = com.google.protobuf.ByteString.EMPTY; /** *
     * the certificate used by this endpoint.
     * 
* * bytes local_certificate = 3; * @return The localCertificate. */ @java.lang.Override public com.google.protobuf.ByteString getLocalCertificate() { return localCertificate_; } public static final int REMOTE_CERTIFICATE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString remoteCertificate_ = com.google.protobuf.ByteString.EMPTY; /** *
     * the certificate used by the remote endpoint.
     * 
* * bytes remote_certificate = 4; * @return The remoteCertificate. */ @java.lang.Override public com.google.protobuf.ByteString getRemoteCertificate() { return remoteCertificate_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (cipherSuiteCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cipherSuite_); } if (cipherSuiteCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cipherSuite_); } if (!localCertificate_.isEmpty()) { output.writeBytes(3, localCertificate_); } if (!remoteCertificate_.isEmpty()) { output.writeBytes(4, remoteCertificate_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (cipherSuiteCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cipherSuite_); } if (cipherSuiteCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cipherSuite_); } if (!localCertificate_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, localCertificate_); } if (!remoteCertificate_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, remoteCertificate_); } 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.channelz.v1.Security.Tls)) { return super.equals(obj); } io.grpc.channelz.v1.Security.Tls other = (io.grpc.channelz.v1.Security.Tls) obj; if (!getLocalCertificate() .equals(other.getLocalCertificate())) return false; if (!getRemoteCertificate() .equals(other.getRemoteCertificate())) return false; if (!getCipherSuiteCase().equals(other.getCipherSuiteCase())) return false; switch (cipherSuiteCase_) { case 1: if (!getStandardName() .equals(other.getStandardName())) return false; break; case 2: if (!getOtherName() .equals(other.getOtherName())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOCAL_CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + getLocalCertificate().hashCode(); hash = (37 * hash) + REMOTE_CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + getRemoteCertificate().hashCode(); switch (cipherSuiteCase_) { case 1: hash = (37 * hash) + STANDARD_NAME_FIELD_NUMBER; hash = (53 * hash) + getStandardName().hashCode(); break; case 2: hash = (37 * hash) + OTHER_NAME_FIELD_NUMBER; hash = (53 * hash) + getOtherName().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.channelz.v1.Security.Tls parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.Security.Tls parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.channelz.v1.Security.Tls parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.Security.Tls 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.channelz.v1.Security.Tls parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.Security.Tls parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.channelz.v1.Security.Tls parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.channelz.v1.Security.Tls 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.channelz.v1.Security.Tls parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.channelz.v1.Security.Tls 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.channelz.v1.Security.Tls parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.channelz.v1.Security.Tls 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.channelz.v1.Security.Tls 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.channelz.v1.Security.Tls} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.channelz.v1.Security.Tls) io.grpc.channelz.v1.Security.TlsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Security_Tls_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Security_Tls_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.channelz.v1.Security.Tls.class, io.grpc.channelz.v1.Security.Tls.Builder.class); } // Construct using io.grpc.channelz.v1.Security.Tls.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; localCertificate_ = com.google.protobuf.ByteString.EMPTY; remoteCertificate_ = com.google.protobuf.ByteString.EMPTY; cipherSuiteCase_ = 0; cipherSuite_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Security_Tls_descriptor; } @java.lang.Override public io.grpc.channelz.v1.Security.Tls getDefaultInstanceForType() { return io.grpc.channelz.v1.Security.Tls.getDefaultInstance(); } @java.lang.Override public io.grpc.channelz.v1.Security.Tls build() { io.grpc.channelz.v1.Security.Tls result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.channelz.v1.Security.Tls buildPartial() { io.grpc.channelz.v1.Security.Tls result = new io.grpc.channelz.v1.Security.Tls(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.grpc.channelz.v1.Security.Tls result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { result.localCertificate_ = localCertificate_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.remoteCertificate_ = remoteCertificate_; } } private void buildPartialOneofs(io.grpc.channelz.v1.Security.Tls result) { result.cipherSuiteCase_ = cipherSuiteCase_; result.cipherSuite_ = this.cipherSuite_; } @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.channelz.v1.Security.Tls) { return mergeFrom((io.grpc.channelz.v1.Security.Tls)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.channelz.v1.Security.Tls other) { if (other == io.grpc.channelz.v1.Security.Tls.getDefaultInstance()) return this; if (other.getLocalCertificate() != com.google.protobuf.ByteString.EMPTY) { setLocalCertificate(other.getLocalCertificate()); } if (other.getRemoteCertificate() != com.google.protobuf.ByteString.EMPTY) { setRemoteCertificate(other.getRemoteCertificate()); } switch (other.getCipherSuiteCase()) { case STANDARD_NAME: { cipherSuiteCase_ = 1; cipherSuite_ = other.cipherSuite_; onChanged(); break; } case OTHER_NAME: { cipherSuiteCase_ = 2; cipherSuite_ = other.cipherSuite_; onChanged(); break; } case CIPHERSUITE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); cipherSuiteCase_ = 1; cipherSuite_ = s; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); cipherSuiteCase_ = 2; cipherSuite_ = s; break; } // case 18 case 26: { localCertificate_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { remoteCertificate_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 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 cipherSuiteCase_ = 0; private java.lang.Object cipherSuite_; public CipherSuiteCase getCipherSuiteCase() { return CipherSuiteCase.forNumber( cipherSuiteCase_); } public Builder clearCipherSuite() { cipherSuiteCase_ = 0; cipherSuite_ = null; onChanged(); return this; } private int bitField0_; /** *
       * The cipher suite name in the RFC 4346 format:
       * https://tools.ietf.org/html/rfc4346#appendix-C
       * 
* * string standard_name = 1; * @return Whether the standardName field is set. */ @java.lang.Override public boolean hasStandardName() { return cipherSuiteCase_ == 1; } /** *
       * The cipher suite name in the RFC 4346 format:
       * https://tools.ietf.org/html/rfc4346#appendix-C
       * 
* * string standard_name = 1; * @return The standardName. */ @java.lang.Override public java.lang.String getStandardName() { java.lang.Object ref = ""; if (cipherSuiteCase_ == 1) { ref = cipherSuite_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (cipherSuiteCase_ == 1) { cipherSuite_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * The cipher suite name in the RFC 4346 format:
       * https://tools.ietf.org/html/rfc4346#appendix-C
       * 
* * string standard_name = 1; * @return The bytes for standardName. */ @java.lang.Override public com.google.protobuf.ByteString getStandardNameBytes() { java.lang.Object ref = ""; if (cipherSuiteCase_ == 1) { ref = cipherSuite_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (cipherSuiteCase_ == 1) { cipherSuite_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The cipher suite name in the RFC 4346 format:
       * https://tools.ietf.org/html/rfc4346#appendix-C
       * 
* * string standard_name = 1; * @param value The standardName to set. * @return This builder for chaining. */ public Builder setStandardName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cipherSuiteCase_ = 1; cipherSuite_ = value; onChanged(); return this; } /** *
       * The cipher suite name in the RFC 4346 format:
       * https://tools.ietf.org/html/rfc4346#appendix-C
       * 
* * string standard_name = 1; * @return This builder for chaining. */ public Builder clearStandardName() { if (cipherSuiteCase_ == 1) { cipherSuiteCase_ = 0; cipherSuite_ = null; onChanged(); } return this; } /** *
       * The cipher suite name in the RFC 4346 format:
       * https://tools.ietf.org/html/rfc4346#appendix-C
       * 
* * string standard_name = 1; * @param value The bytes for standardName to set. * @return This builder for chaining. */ public Builder setStandardNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cipherSuiteCase_ = 1; cipherSuite_ = value; onChanged(); return this; } /** *
       * Some other way to describe the cipher suite if
       * the RFC 4346 name is not available.
       * 
* * string other_name = 2; * @return Whether the otherName field is set. */ @java.lang.Override public boolean hasOtherName() { return cipherSuiteCase_ == 2; } /** *
       * Some other way to describe the cipher suite if
       * the RFC 4346 name is not available.
       * 
* * string other_name = 2; * @return The otherName. */ @java.lang.Override public java.lang.String getOtherName() { java.lang.Object ref = ""; if (cipherSuiteCase_ == 2) { ref = cipherSuite_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (cipherSuiteCase_ == 2) { cipherSuite_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Some other way to describe the cipher suite if
       * the RFC 4346 name is not available.
       * 
* * string other_name = 2; * @return The bytes for otherName. */ @java.lang.Override public com.google.protobuf.ByteString getOtherNameBytes() { java.lang.Object ref = ""; if (cipherSuiteCase_ == 2) { ref = cipherSuite_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (cipherSuiteCase_ == 2) { cipherSuite_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Some other way to describe the cipher suite if
       * the RFC 4346 name is not available.
       * 
* * string other_name = 2; * @param value The otherName to set. * @return This builder for chaining. */ public Builder setOtherName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cipherSuiteCase_ = 2; cipherSuite_ = value; onChanged(); return this; } /** *
       * Some other way to describe the cipher suite if
       * the RFC 4346 name is not available.
       * 
* * string other_name = 2; * @return This builder for chaining. */ public Builder clearOtherName() { if (cipherSuiteCase_ == 2) { cipherSuiteCase_ = 0; cipherSuite_ = null; onChanged(); } return this; } /** *
       * Some other way to describe the cipher suite if
       * the RFC 4346 name is not available.
       * 
* * string other_name = 2; * @param value The bytes for otherName to set. * @return This builder for chaining. */ public Builder setOtherNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cipherSuiteCase_ = 2; cipherSuite_ = value; onChanged(); return this; } private com.google.protobuf.ByteString localCertificate_ = com.google.protobuf.ByteString.EMPTY; /** *
       * the certificate used by this endpoint.
       * 
* * bytes local_certificate = 3; * @return The localCertificate. */ @java.lang.Override public com.google.protobuf.ByteString getLocalCertificate() { return localCertificate_; } /** *
       * the certificate used by this endpoint.
       * 
* * bytes local_certificate = 3; * @param value The localCertificate to set. * @return This builder for chaining. */ public Builder setLocalCertificate(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } localCertificate_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * the certificate used by this endpoint.
       * 
* * bytes local_certificate = 3; * @return This builder for chaining. */ public Builder clearLocalCertificate() { bitField0_ = (bitField0_ & ~0x00000004); localCertificate_ = getDefaultInstance().getLocalCertificate(); onChanged(); return this; } private com.google.protobuf.ByteString remoteCertificate_ = com.google.protobuf.ByteString.EMPTY; /** *
       * the certificate used by the remote endpoint.
       * 
* * bytes remote_certificate = 4; * @return The remoteCertificate. */ @java.lang.Override public com.google.protobuf.ByteString getRemoteCertificate() { return remoteCertificate_; } /** *
       * the certificate used by the remote endpoint.
       * 
* * bytes remote_certificate = 4; * @param value The remoteCertificate to set. * @return This builder for chaining. */ public Builder setRemoteCertificate(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } remoteCertificate_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * the certificate used by the remote endpoint.
       * 
* * bytes remote_certificate = 4; * @return This builder for chaining. */ public Builder clearRemoteCertificate() { bitField0_ = (bitField0_ & ~0x00000008); remoteCertificate_ = getDefaultInstance().getRemoteCertificate(); 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.channelz.v1.Security.Tls) } // @@protoc_insertion_point(class_scope:grpc.channelz.v1.Security.Tls) private static final io.grpc.channelz.v1.Security.Tls DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.channelz.v1.Security.Tls(); } public static io.grpc.channelz.v1.Security.Tls getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Tls 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.channelz.v1.Security.Tls getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OtherSecurityOrBuilder extends // @@protoc_insertion_point(interface_extends:grpc.channelz.v1.Security.OtherSecurity) com.google.protobuf.MessageOrBuilder { /** *
     * The human readable version of the value.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * The human readable version of the value.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * The actual security details message.
     * 
* * .google.protobuf.Any value = 2; * @return Whether the value field is set. */ boolean hasValue(); /** *
     * The actual security details message.
     * 
* * .google.protobuf.Any value = 2; * @return The value. */ com.google.protobuf.Any getValue(); /** *
     * The actual security details message.
     * 
* * .google.protobuf.Any value = 2; */ com.google.protobuf.AnyOrBuilder getValueOrBuilder(); } /** * Protobuf type {@code grpc.channelz.v1.Security.OtherSecurity} */ public static final class OtherSecurity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.channelz.v1.Security.OtherSecurity) OtherSecurityOrBuilder { private static final long serialVersionUID = 0L; // Use OtherSecurity.newBuilder() to construct. private OtherSecurity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OtherSecurity() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OtherSecurity(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Security_OtherSecurity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Security_OtherSecurity_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.channelz.v1.Security.OtherSecurity.class, io.grpc.channelz.v1.Security.OtherSecurity.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
     * The human readable version of the value.
     * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * The human readable version of the value.
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.Any value_; /** *
     * The actual security details message.
     * 
* * .google.protobuf.Any value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The actual security details message.
     * 
* * .google.protobuf.Any value = 2; * @return The value. */ @java.lang.Override public com.google.protobuf.Any getValue() { return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_; } /** *
     * The actual security details message.
     * 
* * .google.protobuf.Any value = 2; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getValueOrBuilder() { return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getValue()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } 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.channelz.v1.Security.OtherSecurity)) { return super.equals(obj); } io.grpc.channelz.v1.Security.OtherSecurity other = (io.grpc.channelz.v1.Security.OtherSecurity) obj; if (!getName() .equals(other.getName())) return false; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.channelz.v1.Security.OtherSecurity parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.Security.OtherSecurity parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.channelz.v1.Security.OtherSecurity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.Security.OtherSecurity 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.channelz.v1.Security.OtherSecurity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.Security.OtherSecurity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.channelz.v1.Security.OtherSecurity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.channelz.v1.Security.OtherSecurity 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.channelz.v1.Security.OtherSecurity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.channelz.v1.Security.OtherSecurity 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.channelz.v1.Security.OtherSecurity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.channelz.v1.Security.OtherSecurity 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.channelz.v1.Security.OtherSecurity 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.channelz.v1.Security.OtherSecurity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.channelz.v1.Security.OtherSecurity) io.grpc.channelz.v1.Security.OtherSecurityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Security_OtherSecurity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Security_OtherSecurity_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.channelz.v1.Security.OtherSecurity.class, io.grpc.channelz.v1.Security.OtherSecurity.Builder.class); } // Construct using io.grpc.channelz.v1.Security.OtherSecurity.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Security_OtherSecurity_descriptor; } @java.lang.Override public io.grpc.channelz.v1.Security.OtherSecurity getDefaultInstanceForType() { return io.grpc.channelz.v1.Security.OtherSecurity.getDefaultInstance(); } @java.lang.Override public io.grpc.channelz.v1.Security.OtherSecurity build() { io.grpc.channelz.v1.Security.OtherSecurity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.channelz.v1.Security.OtherSecurity buildPartial() { io.grpc.channelz.v1.Security.OtherSecurity result = new io.grpc.channelz.v1.Security.OtherSecurity(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grpc.channelz.v1.Security.OtherSecurity result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.grpc.channelz.v1.Security.OtherSecurity) { return mergeFrom((io.grpc.channelz.v1.Security.OtherSecurity)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.channelz.v1.Security.OtherSecurity other) { if (other == io.grpc.channelz.v1.Security.OtherSecurity.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasValue()) { mergeValue(other.getValue()); } 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: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; 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 java.lang.Object name_ = ""; /** *
       * The human readable version of the value.
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The human readable version of the value.
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The human readable version of the value.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The human readable version of the value.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * The human readable version of the value.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.Any value_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valueBuilder_; /** *
       * The actual security details message.
       * 
* * .google.protobuf.Any value = 2; * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * The actual security details message.
       * 
* * .google.protobuf.Any value = 2; * @return The value. */ public com.google.protobuf.Any getValue() { if (valueBuilder_ == null) { return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** *
       * The actual security details message.
       * 
* * .google.protobuf.Any value = 2; */ public Builder setValue(com.google.protobuf.Any value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The actual security details message.
       * 
* * .google.protobuf.Any value = 2; */ public Builder setValue( com.google.protobuf.Any.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The actual security details message.
       * 
* * .google.protobuf.Any value = 2; */ public Builder mergeValue(com.google.protobuf.Any value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && value_ != null && value_ != com.google.protobuf.Any.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } if (value_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       * The actual security details message.
       * 
* * .google.protobuf.Any value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** *
       * The actual security details message.
       * 
* * .google.protobuf.Any value = 2; */ public com.google.protobuf.Any.Builder getValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } /** *
       * The actual security details message.
       * 
* * .google.protobuf.Any value = 2; */ public com.google.protobuf.AnyOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_; } } /** *
       * The actual security details message.
       * 
* * .google.protobuf.Any value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @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.channelz.v1.Security.OtherSecurity) } // @@protoc_insertion_point(class_scope:grpc.channelz.v1.Security.OtherSecurity) private static final io.grpc.channelz.v1.Security.OtherSecurity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.channelz.v1.Security.OtherSecurity(); } public static io.grpc.channelz.v1.Security.OtherSecurity getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OtherSecurity 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.channelz.v1.Security.OtherSecurity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int modelCase_ = 0; @SuppressWarnings("serial") private java.lang.Object model_; public enum ModelCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TLS(1), OTHER(2), MODEL_NOT_SET(0); private final int value; private ModelCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ModelCase valueOf(int value) { return forNumber(value); } public static ModelCase forNumber(int value) { switch (value) { case 1: return TLS; case 2: return OTHER; case 0: return MODEL_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ModelCase getModelCase() { return ModelCase.forNumber( modelCase_); } public static final int TLS_FIELD_NUMBER = 1; /** * .grpc.channelz.v1.Security.Tls tls = 1; * @return Whether the tls field is set. */ @java.lang.Override public boolean hasTls() { return modelCase_ == 1; } /** * .grpc.channelz.v1.Security.Tls tls = 1; * @return The tls. */ @java.lang.Override public io.grpc.channelz.v1.Security.Tls getTls() { if (modelCase_ == 1) { return (io.grpc.channelz.v1.Security.Tls) model_; } return io.grpc.channelz.v1.Security.Tls.getDefaultInstance(); } /** * .grpc.channelz.v1.Security.Tls tls = 1; */ @java.lang.Override public io.grpc.channelz.v1.Security.TlsOrBuilder getTlsOrBuilder() { if (modelCase_ == 1) { return (io.grpc.channelz.v1.Security.Tls) model_; } return io.grpc.channelz.v1.Security.Tls.getDefaultInstance(); } public static final int OTHER_FIELD_NUMBER = 2; /** * .grpc.channelz.v1.Security.OtherSecurity other = 2; * @return Whether the other field is set. */ @java.lang.Override public boolean hasOther() { return modelCase_ == 2; } /** * .grpc.channelz.v1.Security.OtherSecurity other = 2; * @return The other. */ @java.lang.Override public io.grpc.channelz.v1.Security.OtherSecurity getOther() { if (modelCase_ == 2) { return (io.grpc.channelz.v1.Security.OtherSecurity) model_; } return io.grpc.channelz.v1.Security.OtherSecurity.getDefaultInstance(); } /** * .grpc.channelz.v1.Security.OtherSecurity other = 2; */ @java.lang.Override public io.grpc.channelz.v1.Security.OtherSecurityOrBuilder getOtherOrBuilder() { if (modelCase_ == 2) { return (io.grpc.channelz.v1.Security.OtherSecurity) model_; } return io.grpc.channelz.v1.Security.OtherSecurity.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (modelCase_ == 1) { output.writeMessage(1, (io.grpc.channelz.v1.Security.Tls) model_); } if (modelCase_ == 2) { output.writeMessage(2, (io.grpc.channelz.v1.Security.OtherSecurity) model_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (modelCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.grpc.channelz.v1.Security.Tls) model_); } if (modelCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.grpc.channelz.v1.Security.OtherSecurity) model_); } 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.channelz.v1.Security)) { return super.equals(obj); } io.grpc.channelz.v1.Security other = (io.grpc.channelz.v1.Security) obj; if (!getModelCase().equals(other.getModelCase())) return false; switch (modelCase_) { case 1: if (!getTls() .equals(other.getTls())) return false; break; case 2: if (!getOther() .equals(other.getOther())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (modelCase_) { case 1: hash = (37 * hash) + TLS_FIELD_NUMBER; hash = (53 * hash) + getTls().hashCode(); break; case 2: hash = (37 * hash) + OTHER_FIELD_NUMBER; hash = (53 * hash) + getOther().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.channelz.v1.Security parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.Security parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.channelz.v1.Security parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.Security 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.channelz.v1.Security parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.channelz.v1.Security parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.channelz.v1.Security parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.channelz.v1.Security 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.channelz.v1.Security parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.channelz.v1.Security 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.channelz.v1.Security parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.channelz.v1.Security 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.channelz.v1.Security 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; } /** *
   * Security represents details about how secure the socket is.
   * 
* * Protobuf type {@code grpc.channelz.v1.Security} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.channelz.v1.Security) io.grpc.channelz.v1.SecurityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Security_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Security_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.channelz.v1.Security.class, io.grpc.channelz.v1.Security.Builder.class); } // Construct using io.grpc.channelz.v1.Security.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (tlsBuilder_ != null) { tlsBuilder_.clear(); } if (otherBuilder_ != null) { otherBuilder_.clear(); } modelCase_ = 0; model_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.channelz.v1.ChannelzProto.internal_static_grpc_channelz_v1_Security_descriptor; } @java.lang.Override public io.grpc.channelz.v1.Security getDefaultInstanceForType() { return io.grpc.channelz.v1.Security.getDefaultInstance(); } @java.lang.Override public io.grpc.channelz.v1.Security build() { io.grpc.channelz.v1.Security result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.channelz.v1.Security buildPartial() { io.grpc.channelz.v1.Security result = new io.grpc.channelz.v1.Security(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.grpc.channelz.v1.Security result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(io.grpc.channelz.v1.Security result) { result.modelCase_ = modelCase_; result.model_ = this.model_; if (modelCase_ == 1 && tlsBuilder_ != null) { result.model_ = tlsBuilder_.build(); } if (modelCase_ == 2 && otherBuilder_ != null) { result.model_ = otherBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.grpc.channelz.v1.Security) { return mergeFrom((io.grpc.channelz.v1.Security)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.channelz.v1.Security other) { if (other == io.grpc.channelz.v1.Security.getDefaultInstance()) return this; switch (other.getModelCase()) { case TLS: { mergeTls(other.getTls()); break; } case OTHER: { mergeOther(other.getOther()); break; } case MODEL_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTlsFieldBuilder().getBuilder(), extensionRegistry); modelCase_ = 1; break; } // case 10 case 18: { input.readMessage( getOtherFieldBuilder().getBuilder(), extensionRegistry); modelCase_ = 2; 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 modelCase_ = 0; private java.lang.Object model_; public ModelCase getModelCase() { return ModelCase.forNumber( modelCase_); } public Builder clearModel() { modelCase_ = 0; model_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Security.Tls, io.grpc.channelz.v1.Security.Tls.Builder, io.grpc.channelz.v1.Security.TlsOrBuilder> tlsBuilder_; /** * .grpc.channelz.v1.Security.Tls tls = 1; * @return Whether the tls field is set. */ @java.lang.Override public boolean hasTls() { return modelCase_ == 1; } /** * .grpc.channelz.v1.Security.Tls tls = 1; * @return The tls. */ @java.lang.Override public io.grpc.channelz.v1.Security.Tls getTls() { if (tlsBuilder_ == null) { if (modelCase_ == 1) { return (io.grpc.channelz.v1.Security.Tls) model_; } return io.grpc.channelz.v1.Security.Tls.getDefaultInstance(); } else { if (modelCase_ == 1) { return tlsBuilder_.getMessage(); } return io.grpc.channelz.v1.Security.Tls.getDefaultInstance(); } } /** * .grpc.channelz.v1.Security.Tls tls = 1; */ public Builder setTls(io.grpc.channelz.v1.Security.Tls value) { if (tlsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } model_ = value; onChanged(); } else { tlsBuilder_.setMessage(value); } modelCase_ = 1; return this; } /** * .grpc.channelz.v1.Security.Tls tls = 1; */ public Builder setTls( io.grpc.channelz.v1.Security.Tls.Builder builderForValue) { if (tlsBuilder_ == null) { model_ = builderForValue.build(); onChanged(); } else { tlsBuilder_.setMessage(builderForValue.build()); } modelCase_ = 1; return this; } /** * .grpc.channelz.v1.Security.Tls tls = 1; */ public Builder mergeTls(io.grpc.channelz.v1.Security.Tls value) { if (tlsBuilder_ == null) { if (modelCase_ == 1 && model_ != io.grpc.channelz.v1.Security.Tls.getDefaultInstance()) { model_ = io.grpc.channelz.v1.Security.Tls.newBuilder((io.grpc.channelz.v1.Security.Tls) model_) .mergeFrom(value).buildPartial(); } else { model_ = value; } onChanged(); } else { if (modelCase_ == 1) { tlsBuilder_.mergeFrom(value); } else { tlsBuilder_.setMessage(value); } } modelCase_ = 1; return this; } /** * .grpc.channelz.v1.Security.Tls tls = 1; */ public Builder clearTls() { if (tlsBuilder_ == null) { if (modelCase_ == 1) { modelCase_ = 0; model_ = null; onChanged(); } } else { if (modelCase_ == 1) { modelCase_ = 0; model_ = null; } tlsBuilder_.clear(); } return this; } /** * .grpc.channelz.v1.Security.Tls tls = 1; */ public io.grpc.channelz.v1.Security.Tls.Builder getTlsBuilder() { return getTlsFieldBuilder().getBuilder(); } /** * .grpc.channelz.v1.Security.Tls tls = 1; */ @java.lang.Override public io.grpc.channelz.v1.Security.TlsOrBuilder getTlsOrBuilder() { if ((modelCase_ == 1) && (tlsBuilder_ != null)) { return tlsBuilder_.getMessageOrBuilder(); } else { if (modelCase_ == 1) { return (io.grpc.channelz.v1.Security.Tls) model_; } return io.grpc.channelz.v1.Security.Tls.getDefaultInstance(); } } /** * .grpc.channelz.v1.Security.Tls tls = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Security.Tls, io.grpc.channelz.v1.Security.Tls.Builder, io.grpc.channelz.v1.Security.TlsOrBuilder> getTlsFieldBuilder() { if (tlsBuilder_ == null) { if (!(modelCase_ == 1)) { model_ = io.grpc.channelz.v1.Security.Tls.getDefaultInstance(); } tlsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Security.Tls, io.grpc.channelz.v1.Security.Tls.Builder, io.grpc.channelz.v1.Security.TlsOrBuilder>( (io.grpc.channelz.v1.Security.Tls) model_, getParentForChildren(), isClean()); model_ = null; } modelCase_ = 1; onChanged(); return tlsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Security.OtherSecurity, io.grpc.channelz.v1.Security.OtherSecurity.Builder, io.grpc.channelz.v1.Security.OtherSecurityOrBuilder> otherBuilder_; /** * .grpc.channelz.v1.Security.OtherSecurity other = 2; * @return Whether the other field is set. */ @java.lang.Override public boolean hasOther() { return modelCase_ == 2; } /** * .grpc.channelz.v1.Security.OtherSecurity other = 2; * @return The other. */ @java.lang.Override public io.grpc.channelz.v1.Security.OtherSecurity getOther() { if (otherBuilder_ == null) { if (modelCase_ == 2) { return (io.grpc.channelz.v1.Security.OtherSecurity) model_; } return io.grpc.channelz.v1.Security.OtherSecurity.getDefaultInstance(); } else { if (modelCase_ == 2) { return otherBuilder_.getMessage(); } return io.grpc.channelz.v1.Security.OtherSecurity.getDefaultInstance(); } } /** * .grpc.channelz.v1.Security.OtherSecurity other = 2; */ public Builder setOther(io.grpc.channelz.v1.Security.OtherSecurity value) { if (otherBuilder_ == null) { if (value == null) { throw new NullPointerException(); } model_ = value; onChanged(); } else { otherBuilder_.setMessage(value); } modelCase_ = 2; return this; } /** * .grpc.channelz.v1.Security.OtherSecurity other = 2; */ public Builder setOther( io.grpc.channelz.v1.Security.OtherSecurity.Builder builderForValue) { if (otherBuilder_ == null) { model_ = builderForValue.build(); onChanged(); } else { otherBuilder_.setMessage(builderForValue.build()); } modelCase_ = 2; return this; } /** * .grpc.channelz.v1.Security.OtherSecurity other = 2; */ public Builder mergeOther(io.grpc.channelz.v1.Security.OtherSecurity value) { if (otherBuilder_ == null) { if (modelCase_ == 2 && model_ != io.grpc.channelz.v1.Security.OtherSecurity.getDefaultInstance()) { model_ = io.grpc.channelz.v1.Security.OtherSecurity.newBuilder((io.grpc.channelz.v1.Security.OtherSecurity) model_) .mergeFrom(value).buildPartial(); } else { model_ = value; } onChanged(); } else { if (modelCase_ == 2) { otherBuilder_.mergeFrom(value); } else { otherBuilder_.setMessage(value); } } modelCase_ = 2; return this; } /** * .grpc.channelz.v1.Security.OtherSecurity other = 2; */ public Builder clearOther() { if (otherBuilder_ == null) { if (modelCase_ == 2) { modelCase_ = 0; model_ = null; onChanged(); } } else { if (modelCase_ == 2) { modelCase_ = 0; model_ = null; } otherBuilder_.clear(); } return this; } /** * .grpc.channelz.v1.Security.OtherSecurity other = 2; */ public io.grpc.channelz.v1.Security.OtherSecurity.Builder getOtherBuilder() { return getOtherFieldBuilder().getBuilder(); } /** * .grpc.channelz.v1.Security.OtherSecurity other = 2; */ @java.lang.Override public io.grpc.channelz.v1.Security.OtherSecurityOrBuilder getOtherOrBuilder() { if ((modelCase_ == 2) && (otherBuilder_ != null)) { return otherBuilder_.getMessageOrBuilder(); } else { if (modelCase_ == 2) { return (io.grpc.channelz.v1.Security.OtherSecurity) model_; } return io.grpc.channelz.v1.Security.OtherSecurity.getDefaultInstance(); } } /** * .grpc.channelz.v1.Security.OtherSecurity other = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Security.OtherSecurity, io.grpc.channelz.v1.Security.OtherSecurity.Builder, io.grpc.channelz.v1.Security.OtherSecurityOrBuilder> getOtherFieldBuilder() { if (otherBuilder_ == null) { if (!(modelCase_ == 2)) { model_ = io.grpc.channelz.v1.Security.OtherSecurity.getDefaultInstance(); } otherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.grpc.channelz.v1.Security.OtherSecurity, io.grpc.channelz.v1.Security.OtherSecurity.Builder, io.grpc.channelz.v1.Security.OtherSecurityOrBuilder>( (io.grpc.channelz.v1.Security.OtherSecurity) model_, getParentForChildren(), isClean()); model_ = null; } modelCase_ = 2; onChanged(); return otherBuilder_; } @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.channelz.v1.Security) } // @@protoc_insertion_point(class_scope:grpc.channelz.v1.Security) private static final io.grpc.channelz.v1.Security DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.channelz.v1.Security(); } public static io.grpc.channelz.v1.Security getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Security 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.channelz.v1.Security getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy