Class SubordinateConfig.SubordinateConfigChain.Builder (2.85.0)

public static final class SubordinateConfig.SubordinateConfigChain.Builder extends GeneratedMessage.Builder<SubordinateConfig.SubordinateConfigChain.Builder> implements SubordinateConfig.SubordinateConfigChainOrBuilder

This message describes a subordinate CA's issuer certificate chain. This wrapper exists for compatibility reasons.

Protobuf type google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllPemCertificates(Iterable<String> values)

public SubordinateConfig.SubordinateConfigChain.Builder addAllPemCertificates(Iterable<String> values)

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The pemCertificates to add.

Returns
Type Description
SubordinateConfig.SubordinateConfigChain.Builder

This builder for chaining.

addPemCertificates(String value)

public SubordinateConfig.SubordinateConfigChain.Builder addPemCertificates(String value)

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The pemCertificates to add.

Returns
Type Description
SubordinateConfig.SubordinateConfigChain.Builder

This builder for chaining.

addPemCertificatesBytes(ByteString value)

public SubordinateConfig.SubordinateConfigChain.Builder addPemCertificatesBytes(ByteString value)

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the pemCertificates to add.

Returns
Type Description
SubordinateConfig.SubordinateConfigChain.Builder

This builder for chaining.

build()

public SubordinateConfig.SubordinateConfigChain build()
Returns
Type Description
SubordinateConfig.SubordinateConfigChain

buildPartial()

public SubordinateConfig.SubordinateConfigChain buildPartial()
Returns
Type Description
SubordinateConfig.SubordinateConfigChain

clear()

public SubordinateConfig.SubordinateConfigChain.Builder clear()
Returns
Type Description
SubordinateConfig.SubordinateConfigChain.Builder
Overrides

clearPemCertificates()

public SubordinateConfig.SubordinateConfigChain.Builder clearPemCertificates()

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SubordinateConfig.SubordinateConfigChain.Builder

This builder for chaining.

getDefaultInstanceForType()

public SubordinateConfig.SubordinateConfigChain getDefaultInstanceForType()
Returns
Type Description
SubordinateConfig.SubordinateConfigChain

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPemCertificates(int index)

public String getPemCertificates(int index)

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The pemCertificates at the given index.

getPemCertificatesBytes(int index)

public ByteString getPemCertificatesBytes(int index)

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the pemCertificates at the given index.

getPemCertificatesCount()

public int getPemCertificatesCount()

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of pemCertificates.

getPemCertificatesList()

public ProtocolStringList getPemCertificatesList()

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the pemCertificates.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SubordinateConfig.SubordinateConfigChain other)

public SubordinateConfig.SubordinateConfigChain.Builder mergeFrom(SubordinateConfig.SubordinateConfigChain other)
Parameter
Name Description
other SubordinateConfig.SubordinateConfigChain
Returns
Type Description
SubordinateConfig.SubordinateConfigChain.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SubordinateConfig.SubordinateConfigChain.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubordinateConfig.SubordinateConfigChain.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SubordinateConfig.SubordinateConfigChain.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SubordinateConfig.SubordinateConfigChain.Builder
Overrides

setPemCertificates(int index, String value)

public SubordinateConfig.SubordinateConfigChain.Builder setPemCertificates(int index, String value)

Required. Expected to be in leaf-to-root order according to RFC 5246.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The pemCertificates to set.

Returns
Type Description
SubordinateConfig.SubordinateConfigChain.Builder

This builder for chaining.