Class SubordinateConfig.SubordinateConfigChain.Builder (2.57.0)

public static final class SubordinateConfig.SubordinateConfigChain.Builder extends GeneratedMessageV3.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.v1.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.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SubordinateConfig.SubordinateConfigChain.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SubordinateConfig.SubordinateConfigChain.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public SubordinateConfig.SubordinateConfigChain.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SubordinateConfig.SubordinateConfigChain.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SubordinateConfig.SubordinateConfigChain.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SubordinateConfig.SubordinateConfigChain.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SubordinateConfig.SubordinateConfigChain.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SubordinateConfig.SubordinateConfigChain.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

public SubordinateConfig.SubordinateConfigChain.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SubordinateConfig.SubordinateConfigChain.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SubordinateConfig.SubordinateConfigChain.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SubordinateConfig.SubordinateConfigChain.Builder
Overrides