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

io.envoyproxy.envoy.admin.v3.CertificateDetails Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/admin/v3/certs.proto

package io.envoyproxy.envoy.admin.v3;

/**
 * 
 * [#next-free-field: 8]
 * 
* * Protobuf type {@code envoy.admin.v3.CertificateDetails} */ public final class CertificateDetails extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.admin.v3.CertificateDetails) CertificateDetailsOrBuilder { private static final long serialVersionUID = 0L; // Use CertificateDetails.newBuilder() to construct. private CertificateDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CertificateDetails() { path_ = ""; serialNumber_ = ""; subjectAltNames_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CertificateDetails(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CertificateDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); 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(); path_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); serialNumber_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { subjectAltNames_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } subjectAltNames_.add( input.readMessage(io.envoyproxy.envoy.admin.v3.SubjectAlternateName.parser(), extensionRegistry)); break; } case 32: { daysUntilExpiration_ = input.readUInt64(); break; } case 42: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (validFrom_ != null) { subBuilder = validFrom_.toBuilder(); } validFrom_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(validFrom_); validFrom_ = subBuilder.buildPartial(); } break; } case 50: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (expirationTime_ != null) { subBuilder = expirationTime_.toBuilder(); } expirationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expirationTime_); expirationTime_ = subBuilder.buildPartial(); } break; } case 58: { io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.Builder subBuilder = null; if (ocspDetails_ != null) { subBuilder = ocspDetails_.toBuilder(); } ocspDetails_ = input.readMessage(io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ocspDetails_); ocspDetails_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { subjectAltNames_ = java.util.Collections.unmodifiableList(subjectAltNames_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v3.CertsProto.internal_static_envoy_admin_v3_CertificateDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v3.CertsProto.internal_static_envoy_admin_v3_CertificateDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v3.CertificateDetails.class, io.envoyproxy.envoy.admin.v3.CertificateDetails.Builder.class); } public interface OcspDetailsOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.admin.v3.CertificateDetails.OcspDetails) com.google.protobuf.MessageOrBuilder { /** *
     * Indicates the time from which the OCSP response is valid.
     * 
* * .google.protobuf.Timestamp valid_from = 1; * @return Whether the validFrom field is set. */ boolean hasValidFrom(); /** *
     * Indicates the time from which the OCSP response is valid.
     * 
* * .google.protobuf.Timestamp valid_from = 1; * @return The validFrom. */ com.google.protobuf.Timestamp getValidFrom(); /** *
     * Indicates the time from which the OCSP response is valid.
     * 
* * .google.protobuf.Timestamp valid_from = 1; */ com.google.protobuf.TimestampOrBuilder getValidFromOrBuilder(); /** *
     * Indicates the time at which the OCSP response expires.
     * 
* * .google.protobuf.Timestamp expiration = 2; * @return Whether the expiration field is set. */ boolean hasExpiration(); /** *
     * Indicates the time at which the OCSP response expires.
     * 
* * .google.protobuf.Timestamp expiration = 2; * @return The expiration. */ com.google.protobuf.Timestamp getExpiration(); /** *
     * Indicates the time at which the OCSP response expires.
     * 
* * .google.protobuf.Timestamp expiration = 2; */ com.google.protobuf.TimestampOrBuilder getExpirationOrBuilder(); } /** * Protobuf type {@code envoy.admin.v3.CertificateDetails.OcspDetails} */ public static final class OcspDetails extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.admin.v3.CertificateDetails.OcspDetails) OcspDetailsOrBuilder { private static final long serialVersionUID = 0L; // Use OcspDetails.newBuilder() to construct. private OcspDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OcspDetails() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OcspDetails(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OcspDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (validFrom_ != null) { subBuilder = validFrom_.toBuilder(); } validFrom_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(validFrom_); validFrom_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (expiration_ != null) { subBuilder = expiration_.toBuilder(); } expiration_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(expiration_); expiration_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v3.CertsProto.internal_static_envoy_admin_v3_CertificateDetails_OcspDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v3.CertsProto.internal_static_envoy_admin_v3_CertificateDetails_OcspDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.class, io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.Builder.class); } public static final int VALID_FROM_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp validFrom_; /** *
     * Indicates the time from which the OCSP response is valid.
     * 
* * .google.protobuf.Timestamp valid_from = 1; * @return Whether the validFrom field is set. */ @java.lang.Override public boolean hasValidFrom() { return validFrom_ != null; } /** *
     * Indicates the time from which the OCSP response is valid.
     * 
* * .google.protobuf.Timestamp valid_from = 1; * @return The validFrom. */ @java.lang.Override public com.google.protobuf.Timestamp getValidFrom() { return validFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validFrom_; } /** *
     * Indicates the time from which the OCSP response is valid.
     * 
* * .google.protobuf.Timestamp valid_from = 1; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getValidFromOrBuilder() { return getValidFrom(); } public static final int EXPIRATION_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expiration_; /** *
     * Indicates the time at which the OCSP response expires.
     * 
* * .google.protobuf.Timestamp expiration = 2; * @return Whether the expiration field is set. */ @java.lang.Override public boolean hasExpiration() { return expiration_ != null; } /** *
     * Indicates the time at which the OCSP response expires.
     * 
* * .google.protobuf.Timestamp expiration = 2; * @return The expiration. */ @java.lang.Override public com.google.protobuf.Timestamp getExpiration() { return expiration_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiration_; } /** *
     * Indicates the time at which the OCSP response expires.
     * 
* * .google.protobuf.Timestamp expiration = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpirationOrBuilder() { return getExpiration(); } 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 (validFrom_ != null) { output.writeMessage(1, getValidFrom()); } if (expiration_ != null) { output.writeMessage(2, getExpiration()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (validFrom_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getValidFrom()); } if (expiration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExpiration()); } size += unknownFields.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.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails)) { return super.equals(obj); } io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails other = (io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails) obj; if (hasValidFrom() != other.hasValidFrom()) return false; if (hasValidFrom()) { if (!getValidFrom() .equals(other.getValidFrom())) return false; } if (hasExpiration() != other.hasExpiration()) return false; if (hasExpiration()) { if (!getExpiration() .equals(other.getExpiration())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasValidFrom()) { hash = (37 * hash) + VALID_FROM_FIELD_NUMBER; hash = (53 * hash) + getValidFrom().hashCode(); } if (hasExpiration()) { hash = (37 * hash) + EXPIRATION_FIELD_NUMBER; hash = (53 * hash) + getExpiration().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails 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.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails 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.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails 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.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails 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 envoy.admin.v3.CertificateDetails.OcspDetails} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.admin.v3.CertificateDetails.OcspDetails) io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetailsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v3.CertsProto.internal_static_envoy_admin_v3_CertificateDetails_OcspDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v3.CertsProto.internal_static_envoy_admin_v3_CertificateDetails_OcspDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.class, io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.Builder.class); } // Construct using io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (validFromBuilder_ == null) { validFrom_ = null; } else { validFrom_ = null; validFromBuilder_ = null; } if (expirationBuilder_ == null) { expiration_ = null; } else { expiration_ = null; expirationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.admin.v3.CertsProto.internal_static_envoy_admin_v3_CertificateDetails_OcspDetails_descriptor; } @java.lang.Override public io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails getDefaultInstanceForType() { return io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails build() { io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails buildPartial() { io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails result = new io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails(this); if (validFromBuilder_ == null) { result.validFrom_ = validFrom_; } else { result.validFrom_ = validFromBuilder_.build(); } if (expirationBuilder_ == null) { result.expiration_ = expiration_; } else { result.expiration_ = expirationBuilder_.build(); } onBuilt(); return result; } @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.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails) { return mergeFrom((io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails other) { if (other == io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.getDefaultInstance()) return this; if (other.hasValidFrom()) { mergeValidFrom(other.getValidFrom()); } if (other.hasExpiration()) { mergeExpiration(other.getExpiration()); } this.mergeUnknownFields(other.unknownFields); 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 { io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Timestamp validFrom_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> validFromBuilder_; /** *
       * Indicates the time from which the OCSP response is valid.
       * 
* * .google.protobuf.Timestamp valid_from = 1; * @return Whether the validFrom field is set. */ public boolean hasValidFrom() { return validFromBuilder_ != null || validFrom_ != null; } /** *
       * Indicates the time from which the OCSP response is valid.
       * 
* * .google.protobuf.Timestamp valid_from = 1; * @return The validFrom. */ public com.google.protobuf.Timestamp getValidFrom() { if (validFromBuilder_ == null) { return validFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validFrom_; } else { return validFromBuilder_.getMessage(); } } /** *
       * Indicates the time from which the OCSP response is valid.
       * 
* * .google.protobuf.Timestamp valid_from = 1; */ public Builder setValidFrom(com.google.protobuf.Timestamp value) { if (validFromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } validFrom_ = value; onChanged(); } else { validFromBuilder_.setMessage(value); } return this; } /** *
       * Indicates the time from which the OCSP response is valid.
       * 
* * .google.protobuf.Timestamp valid_from = 1; */ public Builder setValidFrom( com.google.protobuf.Timestamp.Builder builderForValue) { if (validFromBuilder_ == null) { validFrom_ = builderForValue.build(); onChanged(); } else { validFromBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Indicates the time from which the OCSP response is valid.
       * 
* * .google.protobuf.Timestamp valid_from = 1; */ public Builder mergeValidFrom(com.google.protobuf.Timestamp value) { if (validFromBuilder_ == null) { if (validFrom_ != null) { validFrom_ = com.google.protobuf.Timestamp.newBuilder(validFrom_).mergeFrom(value).buildPartial(); } else { validFrom_ = value; } onChanged(); } else { validFromBuilder_.mergeFrom(value); } return this; } /** *
       * Indicates the time from which the OCSP response is valid.
       * 
* * .google.protobuf.Timestamp valid_from = 1; */ public Builder clearValidFrom() { if (validFromBuilder_ == null) { validFrom_ = null; onChanged(); } else { validFrom_ = null; validFromBuilder_ = null; } return this; } /** *
       * Indicates the time from which the OCSP response is valid.
       * 
* * .google.protobuf.Timestamp valid_from = 1; */ public com.google.protobuf.Timestamp.Builder getValidFromBuilder() { onChanged(); return getValidFromFieldBuilder().getBuilder(); } /** *
       * Indicates the time from which the OCSP response is valid.
       * 
* * .google.protobuf.Timestamp valid_from = 1; */ public com.google.protobuf.TimestampOrBuilder getValidFromOrBuilder() { if (validFromBuilder_ != null) { return validFromBuilder_.getMessageOrBuilder(); } else { return validFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validFrom_; } } /** *
       * Indicates the time from which the OCSP response is valid.
       * 
* * .google.protobuf.Timestamp valid_from = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValidFromFieldBuilder() { if (validFromBuilder_ == null) { validFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getValidFrom(), getParentForChildren(), isClean()); validFrom_ = null; } return validFromBuilder_; } private com.google.protobuf.Timestamp expiration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expirationBuilder_; /** *
       * Indicates the time at which the OCSP response expires.
       * 
* * .google.protobuf.Timestamp expiration = 2; * @return Whether the expiration field is set. */ public boolean hasExpiration() { return expirationBuilder_ != null || expiration_ != null; } /** *
       * Indicates the time at which the OCSP response expires.
       * 
* * .google.protobuf.Timestamp expiration = 2; * @return The expiration. */ public com.google.protobuf.Timestamp getExpiration() { if (expirationBuilder_ == null) { return expiration_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiration_; } else { return expirationBuilder_.getMessage(); } } /** *
       * Indicates the time at which the OCSP response expires.
       * 
* * .google.protobuf.Timestamp expiration = 2; */ public Builder setExpiration(com.google.protobuf.Timestamp value) { if (expirationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expiration_ = value; onChanged(); } else { expirationBuilder_.setMessage(value); } return this; } /** *
       * Indicates the time at which the OCSP response expires.
       * 
* * .google.protobuf.Timestamp expiration = 2; */ public Builder setExpiration( com.google.protobuf.Timestamp.Builder builderForValue) { if (expirationBuilder_ == null) { expiration_ = builderForValue.build(); onChanged(); } else { expirationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Indicates the time at which the OCSP response expires.
       * 
* * .google.protobuf.Timestamp expiration = 2; */ public Builder mergeExpiration(com.google.protobuf.Timestamp value) { if (expirationBuilder_ == null) { if (expiration_ != null) { expiration_ = com.google.protobuf.Timestamp.newBuilder(expiration_).mergeFrom(value).buildPartial(); } else { expiration_ = value; } onChanged(); } else { expirationBuilder_.mergeFrom(value); } return this; } /** *
       * Indicates the time at which the OCSP response expires.
       * 
* * .google.protobuf.Timestamp expiration = 2; */ public Builder clearExpiration() { if (expirationBuilder_ == null) { expiration_ = null; onChanged(); } else { expiration_ = null; expirationBuilder_ = null; } return this; } /** *
       * Indicates the time at which the OCSP response expires.
       * 
* * .google.protobuf.Timestamp expiration = 2; */ public com.google.protobuf.Timestamp.Builder getExpirationBuilder() { onChanged(); return getExpirationFieldBuilder().getBuilder(); } /** *
       * Indicates the time at which the OCSP response expires.
       * 
* * .google.protobuf.Timestamp expiration = 2; */ public com.google.protobuf.TimestampOrBuilder getExpirationOrBuilder() { if (expirationBuilder_ != null) { return expirationBuilder_.getMessageOrBuilder(); } else { return expiration_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiration_; } } /** *
       * Indicates the time at which the OCSP response expires.
       * 
* * .google.protobuf.Timestamp expiration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getExpirationFieldBuilder() { if (expirationBuilder_ == null) { expirationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getExpiration(), getParentForChildren(), isClean()); expiration_ = null; } return expirationBuilder_; } @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:envoy.admin.v3.CertificateDetails.OcspDetails) } // @@protoc_insertion_point(class_scope:envoy.admin.v3.CertificateDetails.OcspDetails) private static final io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails(); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OcspDetails parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OcspDetails(input, extensionRegistry); } }; 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.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int PATH_FIELD_NUMBER = 1; private volatile java.lang.Object path_; /** *
   * Path of the certificate.
   * 
* * string path = 1; * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** *
   * Path of the certificate.
   * 
* * string path = 1; * @return The bytes for path. */ @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERIAL_NUMBER_FIELD_NUMBER = 2; private volatile java.lang.Object serialNumber_; /** *
   * Certificate Serial Number.
   * 
* * string serial_number = 2; * @return The serialNumber. */ @java.lang.Override public java.lang.String getSerialNumber() { java.lang.Object ref = serialNumber_; 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(); serialNumber_ = s; return s; } } /** *
   * Certificate Serial Number.
   * 
* * string serial_number = 2; * @return The bytes for serialNumber. */ @java.lang.Override public com.google.protobuf.ByteString getSerialNumberBytes() { java.lang.Object ref = serialNumber_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serialNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBJECT_ALT_NAMES_FIELD_NUMBER = 3; private java.util.List subjectAltNames_; /** *
   * List of Subject Alternate names.
   * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ @java.lang.Override public java.util.List getSubjectAltNamesList() { return subjectAltNames_; } /** *
   * List of Subject Alternate names.
   * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ @java.lang.Override public java.util.List getSubjectAltNamesOrBuilderList() { return subjectAltNames_; } /** *
   * List of Subject Alternate names.
   * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ @java.lang.Override public int getSubjectAltNamesCount() { return subjectAltNames_.size(); } /** *
   * List of Subject Alternate names.
   * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ @java.lang.Override public io.envoyproxy.envoy.admin.v3.SubjectAlternateName getSubjectAltNames(int index) { return subjectAltNames_.get(index); } /** *
   * List of Subject Alternate names.
   * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ @java.lang.Override public io.envoyproxy.envoy.admin.v3.SubjectAlternateNameOrBuilder getSubjectAltNamesOrBuilder( int index) { return subjectAltNames_.get(index); } public static final int DAYS_UNTIL_EXPIRATION_FIELD_NUMBER = 4; private long daysUntilExpiration_; /** *
   * Minimum of days until expiration of certificate and it's chain.
   * 
* * uint64 days_until_expiration = 4; * @return The daysUntilExpiration. */ @java.lang.Override public long getDaysUntilExpiration() { return daysUntilExpiration_; } public static final int VALID_FROM_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp validFrom_; /** *
   * Indicates the time from which the certificate is valid.
   * 
* * .google.protobuf.Timestamp valid_from = 5; * @return Whether the validFrom field is set. */ @java.lang.Override public boolean hasValidFrom() { return validFrom_ != null; } /** *
   * Indicates the time from which the certificate is valid.
   * 
* * .google.protobuf.Timestamp valid_from = 5; * @return The validFrom. */ @java.lang.Override public com.google.protobuf.Timestamp getValidFrom() { return validFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validFrom_; } /** *
   * Indicates the time from which the certificate is valid.
   * 
* * .google.protobuf.Timestamp valid_from = 5; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getValidFromOrBuilder() { return getValidFrom(); } public static final int EXPIRATION_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp expirationTime_; /** *
   * Indicates the time at which the certificate expires.
   * 
* * .google.protobuf.Timestamp expiration_time = 6; * @return Whether the expirationTime field is set. */ @java.lang.Override public boolean hasExpirationTime() { return expirationTime_ != null; } /** *
   * Indicates the time at which the certificate expires.
   * 
* * .google.protobuf.Timestamp expiration_time = 6; * @return The expirationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpirationTime() { return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; } /** *
   * Indicates the time at which the certificate expires.
   * 
* * .google.protobuf.Timestamp expiration_time = 6; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() { return getExpirationTime(); } public static final int OCSP_DETAILS_FIELD_NUMBER = 7; private io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails ocspDetails_; /** *
   * Details related to the OCSP response associated with this certificate, if any.
   * 
* * .envoy.admin.v3.CertificateDetails.OcspDetails ocsp_details = 7; * @return Whether the ocspDetails field is set. */ @java.lang.Override public boolean hasOcspDetails() { return ocspDetails_ != null; } /** *
   * Details related to the OCSP response associated with this certificate, if any.
   * 
* * .envoy.admin.v3.CertificateDetails.OcspDetails ocsp_details = 7; * @return The ocspDetails. */ @java.lang.Override public io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails getOcspDetails() { return ocspDetails_ == null ? io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.getDefaultInstance() : ocspDetails_; } /** *
   * Details related to the OCSP response associated with this certificate, if any.
   * 
* * .envoy.admin.v3.CertificateDetails.OcspDetails ocsp_details = 7; */ @java.lang.Override public io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetailsOrBuilder getOcspDetailsOrBuilder() { return getOcspDetails(); } 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(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serialNumber_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serialNumber_); } for (int i = 0; i < subjectAltNames_.size(); i++) { output.writeMessage(3, subjectAltNames_.get(i)); } if (daysUntilExpiration_ != 0L) { output.writeUInt64(4, daysUntilExpiration_); } if (validFrom_ != null) { output.writeMessage(5, getValidFrom()); } if (expirationTime_ != null) { output.writeMessage(6, getExpirationTime()); } if (ocspDetails_ != null) { output.writeMessage(7, getOcspDetails()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serialNumber_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serialNumber_); } for (int i = 0; i < subjectAltNames_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, subjectAltNames_.get(i)); } if (daysUntilExpiration_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, daysUntilExpiration_); } if (validFrom_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getValidFrom()); } if (expirationTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getExpirationTime()); } if (ocspDetails_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getOcspDetails()); } size += unknownFields.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.envoyproxy.envoy.admin.v3.CertificateDetails)) { return super.equals(obj); } io.envoyproxy.envoy.admin.v3.CertificateDetails other = (io.envoyproxy.envoy.admin.v3.CertificateDetails) obj; if (!getPath() .equals(other.getPath())) return false; if (!getSerialNumber() .equals(other.getSerialNumber())) return false; if (!getSubjectAltNamesList() .equals(other.getSubjectAltNamesList())) return false; if (getDaysUntilExpiration() != other.getDaysUntilExpiration()) return false; if (hasValidFrom() != other.hasValidFrom()) return false; if (hasValidFrom()) { if (!getValidFrom() .equals(other.getValidFrom())) return false; } if (hasExpirationTime() != other.hasExpirationTime()) return false; if (hasExpirationTime()) { if (!getExpirationTime() .equals(other.getExpirationTime())) return false; } if (hasOcspDetails() != other.hasOcspDetails()) return false; if (hasOcspDetails()) { if (!getOcspDetails() .equals(other.getOcspDetails())) return false; } if (!unknownFields.equals(other.unknownFields)) 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) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + SERIAL_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getSerialNumber().hashCode(); if (getSubjectAltNamesCount() > 0) { hash = (37 * hash) + SUBJECT_ALT_NAMES_FIELD_NUMBER; hash = (53 * hash) + getSubjectAltNamesList().hashCode(); } hash = (37 * hash) + DAYS_UNTIL_EXPIRATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDaysUntilExpiration()); if (hasValidFrom()) { hash = (37 * hash) + VALID_FROM_FIELD_NUMBER; hash = (53 * hash) + getValidFrom().hashCode(); } if (hasExpirationTime()) { hash = (37 * hash) + EXPIRATION_TIME_FIELD_NUMBER; hash = (53 * hash) + getExpirationTime().hashCode(); } if (hasOcspDetails()) { hash = (37 * hash) + OCSP_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getOcspDetails().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.admin.v3.CertificateDetails parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails 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.envoyproxy.envoy.admin.v3.CertificateDetails parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails 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.envoyproxy.envoy.admin.v3.CertificateDetails parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails 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.envoyproxy.envoy.admin.v3.CertificateDetails 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; } /** *
   * [#next-free-field: 8]
   * 
* * Protobuf type {@code envoy.admin.v3.CertificateDetails} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.admin.v3.CertificateDetails) io.envoyproxy.envoy.admin.v3.CertificateDetailsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v3.CertsProto.internal_static_envoy_admin_v3_CertificateDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v3.CertsProto.internal_static_envoy_admin_v3_CertificateDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v3.CertificateDetails.class, io.envoyproxy.envoy.admin.v3.CertificateDetails.Builder.class); } // Construct using io.envoyproxy.envoy.admin.v3.CertificateDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSubjectAltNamesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); path_ = ""; serialNumber_ = ""; if (subjectAltNamesBuilder_ == null) { subjectAltNames_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { subjectAltNamesBuilder_.clear(); } daysUntilExpiration_ = 0L; if (validFromBuilder_ == null) { validFrom_ = null; } else { validFrom_ = null; validFromBuilder_ = null; } if (expirationTimeBuilder_ == null) { expirationTime_ = null; } else { expirationTime_ = null; expirationTimeBuilder_ = null; } if (ocspDetailsBuilder_ == null) { ocspDetails_ = null; } else { ocspDetails_ = null; ocspDetailsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.admin.v3.CertsProto.internal_static_envoy_admin_v3_CertificateDetails_descriptor; } @java.lang.Override public io.envoyproxy.envoy.admin.v3.CertificateDetails getDefaultInstanceForType() { return io.envoyproxy.envoy.admin.v3.CertificateDetails.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.admin.v3.CertificateDetails build() { io.envoyproxy.envoy.admin.v3.CertificateDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.admin.v3.CertificateDetails buildPartial() { io.envoyproxy.envoy.admin.v3.CertificateDetails result = new io.envoyproxy.envoy.admin.v3.CertificateDetails(this); int from_bitField0_ = bitField0_; result.path_ = path_; result.serialNumber_ = serialNumber_; if (subjectAltNamesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { subjectAltNames_ = java.util.Collections.unmodifiableList(subjectAltNames_); bitField0_ = (bitField0_ & ~0x00000001); } result.subjectAltNames_ = subjectAltNames_; } else { result.subjectAltNames_ = subjectAltNamesBuilder_.build(); } result.daysUntilExpiration_ = daysUntilExpiration_; if (validFromBuilder_ == null) { result.validFrom_ = validFrom_; } else { result.validFrom_ = validFromBuilder_.build(); } if (expirationTimeBuilder_ == null) { result.expirationTime_ = expirationTime_; } else { result.expirationTime_ = expirationTimeBuilder_.build(); } if (ocspDetailsBuilder_ == null) { result.ocspDetails_ = ocspDetails_; } else { result.ocspDetails_ = ocspDetailsBuilder_.build(); } onBuilt(); return result; } @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.envoyproxy.envoy.admin.v3.CertificateDetails) { return mergeFrom((io.envoyproxy.envoy.admin.v3.CertificateDetails)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.admin.v3.CertificateDetails other) { if (other == io.envoyproxy.envoy.admin.v3.CertificateDetails.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; onChanged(); } if (!other.getSerialNumber().isEmpty()) { serialNumber_ = other.serialNumber_; onChanged(); } if (subjectAltNamesBuilder_ == null) { if (!other.subjectAltNames_.isEmpty()) { if (subjectAltNames_.isEmpty()) { subjectAltNames_ = other.subjectAltNames_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSubjectAltNamesIsMutable(); subjectAltNames_.addAll(other.subjectAltNames_); } onChanged(); } } else { if (!other.subjectAltNames_.isEmpty()) { if (subjectAltNamesBuilder_.isEmpty()) { subjectAltNamesBuilder_.dispose(); subjectAltNamesBuilder_ = null; subjectAltNames_ = other.subjectAltNames_; bitField0_ = (bitField0_ & ~0x00000001); subjectAltNamesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSubjectAltNamesFieldBuilder() : null; } else { subjectAltNamesBuilder_.addAllMessages(other.subjectAltNames_); } } } if (other.getDaysUntilExpiration() != 0L) { setDaysUntilExpiration(other.getDaysUntilExpiration()); } if (other.hasValidFrom()) { mergeValidFrom(other.getValidFrom()); } if (other.hasExpirationTime()) { mergeExpirationTime(other.getExpirationTime()); } if (other.hasOcspDetails()) { mergeOcspDetails(other.getOcspDetails()); } this.mergeUnknownFields(other.unknownFields); 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 { io.envoyproxy.envoy.admin.v3.CertificateDetails parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.admin.v3.CertificateDetails) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object path_ = ""; /** *
     * Path of the certificate.
     * 
* * string path = 1; * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Path of the certificate.
     * 
* * string path = 1; * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Path of the certificate.
     * 
* * string path = 1; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; onChanged(); return this; } /** *
     * Path of the certificate.
     * 
* * string path = 1; * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** *
     * Path of the certificate.
     * 
* * string path = 1; * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; onChanged(); return this; } private java.lang.Object serialNumber_ = ""; /** *
     * Certificate Serial Number.
     * 
* * string serial_number = 2; * @return The serialNumber. */ public java.lang.String getSerialNumber() { java.lang.Object ref = serialNumber_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serialNumber_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Certificate Serial Number.
     * 
* * string serial_number = 2; * @return The bytes for serialNumber. */ public com.google.protobuf.ByteString getSerialNumberBytes() { java.lang.Object ref = serialNumber_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serialNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Certificate Serial Number.
     * 
* * string serial_number = 2; * @param value The serialNumber to set. * @return This builder for chaining. */ public Builder setSerialNumber( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serialNumber_ = value; onChanged(); return this; } /** *
     * Certificate Serial Number.
     * 
* * string serial_number = 2; * @return This builder for chaining. */ public Builder clearSerialNumber() { serialNumber_ = getDefaultInstance().getSerialNumber(); onChanged(); return this; } /** *
     * Certificate Serial Number.
     * 
* * string serial_number = 2; * @param value The bytes for serialNumber to set. * @return This builder for chaining. */ public Builder setSerialNumberBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serialNumber_ = value; onChanged(); return this; } private java.util.List subjectAltNames_ = java.util.Collections.emptyList(); private void ensureSubjectAltNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { subjectAltNames_ = new java.util.ArrayList(subjectAltNames_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v3.SubjectAlternateName, io.envoyproxy.envoy.admin.v3.SubjectAlternateName.Builder, io.envoyproxy.envoy.admin.v3.SubjectAlternateNameOrBuilder> subjectAltNamesBuilder_; /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public java.util.List getSubjectAltNamesList() { if (subjectAltNamesBuilder_ == null) { return java.util.Collections.unmodifiableList(subjectAltNames_); } else { return subjectAltNamesBuilder_.getMessageList(); } } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public int getSubjectAltNamesCount() { if (subjectAltNamesBuilder_ == null) { return subjectAltNames_.size(); } else { return subjectAltNamesBuilder_.getCount(); } } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public io.envoyproxy.envoy.admin.v3.SubjectAlternateName getSubjectAltNames(int index) { if (subjectAltNamesBuilder_ == null) { return subjectAltNames_.get(index); } else { return subjectAltNamesBuilder_.getMessage(index); } } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public Builder setSubjectAltNames( int index, io.envoyproxy.envoy.admin.v3.SubjectAlternateName value) { if (subjectAltNamesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubjectAltNamesIsMutable(); subjectAltNames_.set(index, value); onChanged(); } else { subjectAltNamesBuilder_.setMessage(index, value); } return this; } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public Builder setSubjectAltNames( int index, io.envoyproxy.envoy.admin.v3.SubjectAlternateName.Builder builderForValue) { if (subjectAltNamesBuilder_ == null) { ensureSubjectAltNamesIsMutable(); subjectAltNames_.set(index, builderForValue.build()); onChanged(); } else { subjectAltNamesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public Builder addSubjectAltNames(io.envoyproxy.envoy.admin.v3.SubjectAlternateName value) { if (subjectAltNamesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubjectAltNamesIsMutable(); subjectAltNames_.add(value); onChanged(); } else { subjectAltNamesBuilder_.addMessage(value); } return this; } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public Builder addSubjectAltNames( int index, io.envoyproxy.envoy.admin.v3.SubjectAlternateName value) { if (subjectAltNamesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubjectAltNamesIsMutable(); subjectAltNames_.add(index, value); onChanged(); } else { subjectAltNamesBuilder_.addMessage(index, value); } return this; } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public Builder addSubjectAltNames( io.envoyproxy.envoy.admin.v3.SubjectAlternateName.Builder builderForValue) { if (subjectAltNamesBuilder_ == null) { ensureSubjectAltNamesIsMutable(); subjectAltNames_.add(builderForValue.build()); onChanged(); } else { subjectAltNamesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public Builder addSubjectAltNames( int index, io.envoyproxy.envoy.admin.v3.SubjectAlternateName.Builder builderForValue) { if (subjectAltNamesBuilder_ == null) { ensureSubjectAltNamesIsMutable(); subjectAltNames_.add(index, builderForValue.build()); onChanged(); } else { subjectAltNamesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public Builder addAllSubjectAltNames( java.lang.Iterable values) { if (subjectAltNamesBuilder_ == null) { ensureSubjectAltNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, subjectAltNames_); onChanged(); } else { subjectAltNamesBuilder_.addAllMessages(values); } return this; } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public Builder clearSubjectAltNames() { if (subjectAltNamesBuilder_ == null) { subjectAltNames_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { subjectAltNamesBuilder_.clear(); } return this; } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public Builder removeSubjectAltNames(int index) { if (subjectAltNamesBuilder_ == null) { ensureSubjectAltNamesIsMutable(); subjectAltNames_.remove(index); onChanged(); } else { subjectAltNamesBuilder_.remove(index); } return this; } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public io.envoyproxy.envoy.admin.v3.SubjectAlternateName.Builder getSubjectAltNamesBuilder( int index) { return getSubjectAltNamesFieldBuilder().getBuilder(index); } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public io.envoyproxy.envoy.admin.v3.SubjectAlternateNameOrBuilder getSubjectAltNamesOrBuilder( int index) { if (subjectAltNamesBuilder_ == null) { return subjectAltNames_.get(index); } else { return subjectAltNamesBuilder_.getMessageOrBuilder(index); } } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public java.util.List getSubjectAltNamesOrBuilderList() { if (subjectAltNamesBuilder_ != null) { return subjectAltNamesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(subjectAltNames_); } } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public io.envoyproxy.envoy.admin.v3.SubjectAlternateName.Builder addSubjectAltNamesBuilder() { return getSubjectAltNamesFieldBuilder().addBuilder( io.envoyproxy.envoy.admin.v3.SubjectAlternateName.getDefaultInstance()); } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public io.envoyproxy.envoy.admin.v3.SubjectAlternateName.Builder addSubjectAltNamesBuilder( int index) { return getSubjectAltNamesFieldBuilder().addBuilder( index, io.envoyproxy.envoy.admin.v3.SubjectAlternateName.getDefaultInstance()); } /** *
     * List of Subject Alternate names.
     * 
* * repeated .envoy.admin.v3.SubjectAlternateName subject_alt_names = 3; */ public java.util.List getSubjectAltNamesBuilderList() { return getSubjectAltNamesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v3.SubjectAlternateName, io.envoyproxy.envoy.admin.v3.SubjectAlternateName.Builder, io.envoyproxy.envoy.admin.v3.SubjectAlternateNameOrBuilder> getSubjectAltNamesFieldBuilder() { if (subjectAltNamesBuilder_ == null) { subjectAltNamesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v3.SubjectAlternateName, io.envoyproxy.envoy.admin.v3.SubjectAlternateName.Builder, io.envoyproxy.envoy.admin.v3.SubjectAlternateNameOrBuilder>( subjectAltNames_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); subjectAltNames_ = null; } return subjectAltNamesBuilder_; } private long daysUntilExpiration_ ; /** *
     * Minimum of days until expiration of certificate and it's chain.
     * 
* * uint64 days_until_expiration = 4; * @return The daysUntilExpiration. */ @java.lang.Override public long getDaysUntilExpiration() { return daysUntilExpiration_; } /** *
     * Minimum of days until expiration of certificate and it's chain.
     * 
* * uint64 days_until_expiration = 4; * @param value The daysUntilExpiration to set. * @return This builder for chaining. */ public Builder setDaysUntilExpiration(long value) { daysUntilExpiration_ = value; onChanged(); return this; } /** *
     * Minimum of days until expiration of certificate and it's chain.
     * 
* * uint64 days_until_expiration = 4; * @return This builder for chaining. */ public Builder clearDaysUntilExpiration() { daysUntilExpiration_ = 0L; onChanged(); return this; } private com.google.protobuf.Timestamp validFrom_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> validFromBuilder_; /** *
     * Indicates the time from which the certificate is valid.
     * 
* * .google.protobuf.Timestamp valid_from = 5; * @return Whether the validFrom field is set. */ public boolean hasValidFrom() { return validFromBuilder_ != null || validFrom_ != null; } /** *
     * Indicates the time from which the certificate is valid.
     * 
* * .google.protobuf.Timestamp valid_from = 5; * @return The validFrom. */ public com.google.protobuf.Timestamp getValidFrom() { if (validFromBuilder_ == null) { return validFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validFrom_; } else { return validFromBuilder_.getMessage(); } } /** *
     * Indicates the time from which the certificate is valid.
     * 
* * .google.protobuf.Timestamp valid_from = 5; */ public Builder setValidFrom(com.google.protobuf.Timestamp value) { if (validFromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } validFrom_ = value; onChanged(); } else { validFromBuilder_.setMessage(value); } return this; } /** *
     * Indicates the time from which the certificate is valid.
     * 
* * .google.protobuf.Timestamp valid_from = 5; */ public Builder setValidFrom( com.google.protobuf.Timestamp.Builder builderForValue) { if (validFromBuilder_ == null) { validFrom_ = builderForValue.build(); onChanged(); } else { validFromBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Indicates the time from which the certificate is valid.
     * 
* * .google.protobuf.Timestamp valid_from = 5; */ public Builder mergeValidFrom(com.google.protobuf.Timestamp value) { if (validFromBuilder_ == null) { if (validFrom_ != null) { validFrom_ = com.google.protobuf.Timestamp.newBuilder(validFrom_).mergeFrom(value).buildPartial(); } else { validFrom_ = value; } onChanged(); } else { validFromBuilder_.mergeFrom(value); } return this; } /** *
     * Indicates the time from which the certificate is valid.
     * 
* * .google.protobuf.Timestamp valid_from = 5; */ public Builder clearValidFrom() { if (validFromBuilder_ == null) { validFrom_ = null; onChanged(); } else { validFrom_ = null; validFromBuilder_ = null; } return this; } /** *
     * Indicates the time from which the certificate is valid.
     * 
* * .google.protobuf.Timestamp valid_from = 5; */ public com.google.protobuf.Timestamp.Builder getValidFromBuilder() { onChanged(); return getValidFromFieldBuilder().getBuilder(); } /** *
     * Indicates the time from which the certificate is valid.
     * 
* * .google.protobuf.Timestamp valid_from = 5; */ public com.google.protobuf.TimestampOrBuilder getValidFromOrBuilder() { if (validFromBuilder_ != null) { return validFromBuilder_.getMessageOrBuilder(); } else { return validFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validFrom_; } } /** *
     * Indicates the time from which the certificate is valid.
     * 
* * .google.protobuf.Timestamp valid_from = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getValidFromFieldBuilder() { if (validFromBuilder_ == null) { validFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getValidFrom(), getParentForChildren(), isClean()); validFrom_ = null; } return validFromBuilder_; } private com.google.protobuf.Timestamp expirationTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expirationTimeBuilder_; /** *
     * Indicates the time at which the certificate expires.
     * 
* * .google.protobuf.Timestamp expiration_time = 6; * @return Whether the expirationTime field is set. */ public boolean hasExpirationTime() { return expirationTimeBuilder_ != null || expirationTime_ != null; } /** *
     * Indicates the time at which the certificate expires.
     * 
* * .google.protobuf.Timestamp expiration_time = 6; * @return The expirationTime. */ public com.google.protobuf.Timestamp getExpirationTime() { if (expirationTimeBuilder_ == null) { return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; } else { return expirationTimeBuilder_.getMessage(); } } /** *
     * Indicates the time at which the certificate expires.
     * 
* * .google.protobuf.Timestamp expiration_time = 6; */ public Builder setExpirationTime(com.google.protobuf.Timestamp value) { if (expirationTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expirationTime_ = value; onChanged(); } else { expirationTimeBuilder_.setMessage(value); } return this; } /** *
     * Indicates the time at which the certificate expires.
     * 
* * .google.protobuf.Timestamp expiration_time = 6; */ public Builder setExpirationTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (expirationTimeBuilder_ == null) { expirationTime_ = builderForValue.build(); onChanged(); } else { expirationTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Indicates the time at which the certificate expires.
     * 
* * .google.protobuf.Timestamp expiration_time = 6; */ public Builder mergeExpirationTime(com.google.protobuf.Timestamp value) { if (expirationTimeBuilder_ == null) { if (expirationTime_ != null) { expirationTime_ = com.google.protobuf.Timestamp.newBuilder(expirationTime_).mergeFrom(value).buildPartial(); } else { expirationTime_ = value; } onChanged(); } else { expirationTimeBuilder_.mergeFrom(value); } return this; } /** *
     * Indicates the time at which the certificate expires.
     * 
* * .google.protobuf.Timestamp expiration_time = 6; */ public Builder clearExpirationTime() { if (expirationTimeBuilder_ == null) { expirationTime_ = null; onChanged(); } else { expirationTime_ = null; expirationTimeBuilder_ = null; } return this; } /** *
     * Indicates the time at which the certificate expires.
     * 
* * .google.protobuf.Timestamp expiration_time = 6; */ public com.google.protobuf.Timestamp.Builder getExpirationTimeBuilder() { onChanged(); return getExpirationTimeFieldBuilder().getBuilder(); } /** *
     * Indicates the time at which the certificate expires.
     * 
* * .google.protobuf.Timestamp expiration_time = 6; */ public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder() { if (expirationTimeBuilder_ != null) { return expirationTimeBuilder_.getMessageOrBuilder(); } else { return expirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expirationTime_; } } /** *
     * Indicates the time at which the certificate expires.
     * 
* * .google.protobuf.Timestamp expiration_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getExpirationTimeFieldBuilder() { if (expirationTimeBuilder_ == null) { expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getExpirationTime(), getParentForChildren(), isClean()); expirationTime_ = null; } return expirationTimeBuilder_; } private io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails ocspDetails_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails, io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.Builder, io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetailsOrBuilder> ocspDetailsBuilder_; /** *
     * Details related to the OCSP response associated with this certificate, if any.
     * 
* * .envoy.admin.v3.CertificateDetails.OcspDetails ocsp_details = 7; * @return Whether the ocspDetails field is set. */ public boolean hasOcspDetails() { return ocspDetailsBuilder_ != null || ocspDetails_ != null; } /** *
     * Details related to the OCSP response associated with this certificate, if any.
     * 
* * .envoy.admin.v3.CertificateDetails.OcspDetails ocsp_details = 7; * @return The ocspDetails. */ public io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails getOcspDetails() { if (ocspDetailsBuilder_ == null) { return ocspDetails_ == null ? io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.getDefaultInstance() : ocspDetails_; } else { return ocspDetailsBuilder_.getMessage(); } } /** *
     * Details related to the OCSP response associated with this certificate, if any.
     * 
* * .envoy.admin.v3.CertificateDetails.OcspDetails ocsp_details = 7; */ public Builder setOcspDetails(io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails value) { if (ocspDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ocspDetails_ = value; onChanged(); } else { ocspDetailsBuilder_.setMessage(value); } return this; } /** *
     * Details related to the OCSP response associated with this certificate, if any.
     * 
* * .envoy.admin.v3.CertificateDetails.OcspDetails ocsp_details = 7; */ public Builder setOcspDetails( io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.Builder builderForValue) { if (ocspDetailsBuilder_ == null) { ocspDetails_ = builderForValue.build(); onChanged(); } else { ocspDetailsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Details related to the OCSP response associated with this certificate, if any.
     * 
* * .envoy.admin.v3.CertificateDetails.OcspDetails ocsp_details = 7; */ public Builder mergeOcspDetails(io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails value) { if (ocspDetailsBuilder_ == null) { if (ocspDetails_ != null) { ocspDetails_ = io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.newBuilder(ocspDetails_).mergeFrom(value).buildPartial(); } else { ocspDetails_ = value; } onChanged(); } else { ocspDetailsBuilder_.mergeFrom(value); } return this; } /** *
     * Details related to the OCSP response associated with this certificate, if any.
     * 
* * .envoy.admin.v3.CertificateDetails.OcspDetails ocsp_details = 7; */ public Builder clearOcspDetails() { if (ocspDetailsBuilder_ == null) { ocspDetails_ = null; onChanged(); } else { ocspDetails_ = null; ocspDetailsBuilder_ = null; } return this; } /** *
     * Details related to the OCSP response associated with this certificate, if any.
     * 
* * .envoy.admin.v3.CertificateDetails.OcspDetails ocsp_details = 7; */ public io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.Builder getOcspDetailsBuilder() { onChanged(); return getOcspDetailsFieldBuilder().getBuilder(); } /** *
     * Details related to the OCSP response associated with this certificate, if any.
     * 
* * .envoy.admin.v3.CertificateDetails.OcspDetails ocsp_details = 7; */ public io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetailsOrBuilder getOcspDetailsOrBuilder() { if (ocspDetailsBuilder_ != null) { return ocspDetailsBuilder_.getMessageOrBuilder(); } else { return ocspDetails_ == null ? io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.getDefaultInstance() : ocspDetails_; } } /** *
     * Details related to the OCSP response associated with this certificate, if any.
     * 
* * .envoy.admin.v3.CertificateDetails.OcspDetails ocsp_details = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails, io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.Builder, io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetailsOrBuilder> getOcspDetailsFieldBuilder() { if (ocspDetailsBuilder_ == null) { ocspDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails, io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetails.Builder, io.envoyproxy.envoy.admin.v3.CertificateDetails.OcspDetailsOrBuilder>( getOcspDetails(), getParentForChildren(), isClean()); ocspDetails_ = null; } return ocspDetailsBuilder_; } @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:envoy.admin.v3.CertificateDetails) } // @@protoc_insertion_point(class_scope:envoy.admin.v3.CertificateDetails) private static final io.envoyproxy.envoy.admin.v3.CertificateDetails DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v3.CertificateDetails(); } public static io.envoyproxy.envoy.admin.v3.CertificateDetails getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CertificateDetails parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CertificateDetails(input, extensionRegistry); } }; 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.envoyproxy.envoy.admin.v3.CertificateDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy