Class FetchCaCertsResponse.CertChain.Builder (2.85.0)

public static final class FetchCaCertsResponse.CertChain.Builder extends GeneratedMessage.Builder<FetchCaCertsResponse.CertChain.Builder> implements FetchCaCertsResponse.CertChainOrBuilder

Protobuf type google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain

Static Methods

getDescriptor()

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

Methods

addAllCertificates(Iterable<String> values)

public FetchCaCertsResponse.CertChain.Builder addAllCertificates(Iterable<String> values)

The certificates that form the CA chain, from leaf to root order.

repeated string certificates = 1;

Parameter
Name Description
values Iterable<String>

The certificates to add.

Returns
Type Description
FetchCaCertsResponse.CertChain.Builder

This builder for chaining.

addCertificates(String value)

public FetchCaCertsResponse.CertChain.Builder addCertificates(String value)

The certificates that form the CA chain, from leaf to root order.

repeated string certificates = 1;

Parameter
Name Description
value String

The certificates to add.

Returns
Type Description
FetchCaCertsResponse.CertChain.Builder

This builder for chaining.

addCertificatesBytes(ByteString value)

public FetchCaCertsResponse.CertChain.Builder addCertificatesBytes(ByteString value)

The certificates that form the CA chain, from leaf to root order.

repeated string certificates = 1;

Parameter
Name Description
value ByteString

The bytes of the certificates to add.

Returns
Type Description
FetchCaCertsResponse.CertChain.Builder

This builder for chaining.

build()

public FetchCaCertsResponse.CertChain build()
Returns
Type Description
FetchCaCertsResponse.CertChain

buildPartial()

public FetchCaCertsResponse.CertChain buildPartial()
Returns
Type Description
FetchCaCertsResponse.CertChain

clear()

public FetchCaCertsResponse.CertChain.Builder clear()
Returns
Type Description
FetchCaCertsResponse.CertChain.Builder
Overrides

clearCertificates()

public FetchCaCertsResponse.CertChain.Builder clearCertificates()

The certificates that form the CA chain, from leaf to root order.

repeated string certificates = 1;

Returns
Type Description
FetchCaCertsResponse.CertChain.Builder

This builder for chaining.

getCertificates(int index)

public String getCertificates(int index)

The certificates that form the CA chain, from leaf to root order.

repeated string certificates = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The certificates at the given index.

getCertificatesBytes(int index)

public ByteString getCertificatesBytes(int index)

The certificates that form the CA chain, from leaf to root order.

repeated string certificates = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the certificates at the given index.

getCertificatesCount()

public int getCertificatesCount()

The certificates that form the CA chain, from leaf to root order.

repeated string certificates = 1;

Returns
Type Description
int

The count of certificates.

getCertificatesList()

public ProtocolStringList getCertificatesList()

The certificates that form the CA chain, from leaf to root order.

repeated string certificates = 1;

Returns
Type Description
ProtocolStringList

A list containing the certificates.

getDefaultInstanceForType()

public FetchCaCertsResponse.CertChain getDefaultInstanceForType()
Returns
Type Description
FetchCaCertsResponse.CertChain

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchCaCertsResponse.CertChain other)

public FetchCaCertsResponse.CertChain.Builder mergeFrom(FetchCaCertsResponse.CertChain other)
Parameter
Name Description
other FetchCaCertsResponse.CertChain
Returns
Type Description
FetchCaCertsResponse.CertChain.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public FetchCaCertsResponse.CertChain.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FetchCaCertsResponse.CertChain.Builder
Overrides

setCertificates(int index, String value)

public FetchCaCertsResponse.CertChain.Builder setCertificates(int index, String value)

The certificates that form the CA chain, from leaf to root order.

repeated string certificates = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The certificates to set.

Returns
Type Description
FetchCaCertsResponse.CertChain.Builder

This builder for chaining.