Class FetchCaCertsResponse.CertChain.Builder (2.10.0)

public static final class FetchCaCertsResponse.CertChain.Builder extends GeneratedMessageV3.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
TypeDescription
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
NameDescription
valuesIterable<String>

The certificates to add.

Returns
TypeDescription
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
NameDescription
valueString

The certificates to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the certificates to add.

Returns
TypeDescription
FetchCaCertsResponse.CertChain.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FetchCaCertsResponse.CertChain.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FetchCaCertsResponse.CertChain.Builder
Overrides

build()

public FetchCaCertsResponse.CertChain build()
Returns
TypeDescription
FetchCaCertsResponse.CertChain

buildPartial()

public FetchCaCertsResponse.CertChain buildPartial()
Returns
TypeDescription
FetchCaCertsResponse.CertChain

clear()

public FetchCaCertsResponse.CertChain.Builder clear()
Returns
TypeDescription
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
TypeDescription
FetchCaCertsResponse.CertChain.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public FetchCaCertsResponse.CertChain.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FetchCaCertsResponse.CertChain.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public FetchCaCertsResponse.CertChain.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FetchCaCertsResponse.CertChain.Builder
Overrides

clone()

public FetchCaCertsResponse.CertChain.Builder clone()
Returns
TypeDescription
FetchCaCertsResponse.CertChain.Builder
Overrides

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the certificates.

getDefaultInstanceForType()

public FetchCaCertsResponse.CertChain getDefaultInstanceForType()
Returns
TypeDescription
FetchCaCertsResponse.CertChain

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FetchCaCertsResponse.CertChain other)

public FetchCaCertsResponse.CertChain.Builder mergeFrom(FetchCaCertsResponse.CertChain other)
Parameter
NameDescription
otherFetchCaCertsResponse.CertChain
Returns
TypeDescription
FetchCaCertsResponse.CertChain.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FetchCaCertsResponse.CertChain.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FetchCaCertsResponse.CertChain.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FetchCaCertsResponse.CertChain.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FetchCaCertsResponse.CertChain.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FetchCaCertsResponse.CertChain.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The certificates to set.

Returns
TypeDescription
FetchCaCertsResponse.CertChain.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public FetchCaCertsResponse.CertChain.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FetchCaCertsResponse.CertChain.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FetchCaCertsResponse.CertChain.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FetchCaCertsResponse.CertChain.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FetchCaCertsResponse.CertChain.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FetchCaCertsResponse.CertChain.Builder
Overrides