Class CaPool.PublishingOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CaPool.PublishingOptions.Builder>
com.google.cloud.security.privateca.v1.CaPool.PublishingOptions.Builder
- All Implemented Interfaces:
CaPool.PublishingOptionsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CaPool.PublishingOptions
public static final class CaPool.PublishingOptions.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CaPool.PublishingOptions.Builder>
implements CaPool.PublishingOptionsOrBuilder
Options relating to the publication of each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and CRLs and their inclusion as extensions in issued [Certificates][google.cloud.security.privateca.v1.Certificate]. The options set here apply to certificates issued by any [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in the [CaPool][google.cloud.security.privateca.v1.CaPool].Protobuf type
google.cloud.security.privateca.v1.CaPool.PublishingOptions-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.intOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setEncodingFormatValue(int value) Optional.setPublishCaCert(boolean value) Optional.setPublishCrl(boolean value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CaPool.PublishingOptions.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CaPool.PublishingOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CaPool.PublishingOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CaPool.PublishingOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CaPool.PublishingOptions.Builder>
-
mergeFrom
public CaPool.PublishingOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CaPool.PublishingOptions.Builder>- Throws:
IOException
-
getPublishCaCert
public boolean getPublishCaCert()Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and includes its URL in the "Authority Information Access" X.509 extension in all issued [Certificates][google.cloud.security.privateca.v1.Certificate]. If this is false, the CA certificate will not be published and the corresponding X.509 extension will not be written in issued certificates.
bool publish_ca_cert = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPublishCaCertin interfaceCaPool.PublishingOptionsOrBuilder- Returns:
- The publishCaCert.
-
setPublishCaCert
Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and includes its URL in the "Authority Information Access" X.509 extension in all issued [Certificates][google.cloud.security.privateca.v1.Certificate]. If this is false, the CA certificate will not be published and the corresponding X.509 extension will not be written in issued certificates.
bool publish_ca_cert = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The publishCaCert to set.- Returns:
- This builder for chaining.
-
clearPublishCaCert
Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CA certificate and includes its URL in the "Authority Information Access" X.509 extension in all issued [Certificates][google.cloud.security.privateca.v1.Certificate]. If this is false, the CA certificate will not be published and the corresponding X.509 extension will not be written in issued certificates.
bool publish_ca_cert = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getPublishCrl
public boolean getPublishCrl()Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRL and includes its URL in the "CRL Distribution Points" X.509 extension in all issued [Certificates][google.cloud.security.privateca.v1.Certificate]. If this is false, CRLs will not be published and the corresponding X.509 extension will not be written in issued certificates. CRLs will expire 7 days from their creation. However, we will rebuild daily. CRLs are also rebuilt shortly after a certificate is revoked.
bool publish_crl = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPublishCrlin interfaceCaPool.PublishingOptionsOrBuilder- Returns:
- The publishCrl.
-
setPublishCrl
Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRL and includes its URL in the "CRL Distribution Points" X.509 extension in all issued [Certificates][google.cloud.security.privateca.v1.Certificate]. If this is false, CRLs will not be published and the corresponding X.509 extension will not be written in issued certificates. CRLs will expire 7 days from their creation. However, we will rebuild daily. CRLs are also rebuilt shortly after a certificate is revoked.
bool publish_crl = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The publishCrl to set.- Returns:
- This builder for chaining.
-
clearPublishCrl
Optional. When true, publishes each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s CRL and includes its URL in the "CRL Distribution Points" X.509 extension in all issued [Certificates][google.cloud.security.privateca.v1.Certificate]. If this is false, CRLs will not be published and the corresponding X.509 extension will not be written in issued certificates. CRLs will expire 7 days from their creation. However, we will rebuild daily. CRLs are also rebuilt shortly after a certificate is revoked.
bool publish_crl = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getEncodingFormatValue
public int getEncodingFormatValue()Optional. Specifies the encoding format of each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource's CA certificate and CRLs. If this is omitted, CA certificates and CRLs will be published in PEM.
.google.cloud.security.privateca.v1.CaPool.PublishingOptions.EncodingFormat encoding_format = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEncodingFormatValuein interfaceCaPool.PublishingOptionsOrBuilder- Returns:
- The enum numeric value on the wire for encodingFormat.
-
setEncodingFormatValue
Optional. Specifies the encoding format of each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource's CA certificate and CRLs. If this is omitted, CA certificates and CRLs will be published in PEM.
.google.cloud.security.privateca.v1.CaPool.PublishingOptions.EncodingFormat encoding_format = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for encodingFormat to set.- Returns:
- This builder for chaining.
-
getEncodingFormat
Optional. Specifies the encoding format of each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource's CA certificate and CRLs. If this is omitted, CA certificates and CRLs will be published in PEM.
.google.cloud.security.privateca.v1.CaPool.PublishingOptions.EncodingFormat encoding_format = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEncodingFormatin interfaceCaPool.PublishingOptionsOrBuilder- Returns:
- The encodingFormat.
-
setEncodingFormat
public CaPool.PublishingOptions.Builder setEncodingFormat(CaPool.PublishingOptions.EncodingFormat value) Optional. Specifies the encoding format of each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource's CA certificate and CRLs. If this is omitted, CA certificates and CRLs will be published in PEM.
.google.cloud.security.privateca.v1.CaPool.PublishingOptions.EncodingFormat encoding_format = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The encodingFormat to set.- Returns:
- This builder for chaining.
-
clearEncodingFormat
Optional. Specifies the encoding format of each [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource's CA certificate and CRLs. If this is omitted, CA certificates and CRLs will be published in PEM.
.google.cloud.security.privateca.v1.CaPool.PublishingOptions.EncodingFormat encoding_format = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-